/* ===== CONTACT SECTION ===== */
.contact {
    --ct-red: #e3242b;
    --ct-blue: #2b8fd8;
    --ct-yellow: #fbc02d;
    --ct-green: #25a244;
    --ct-ink: #1c1c1c;
    --ct-muted: #5f6368;
    padding: 4.5rem 0 5rem;
    background: #fffdf7;
}

/* ----- Info cards ----- */
.ct-cards {
    margin-bottom: 3rem;
}

.ct-card {
    position: relative;
    height: 100%;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.4rem 1.5rem 1.7rem;
    text-align: center;
    border: 3px solid var(--ct-c, var(--ct-blue));
    box-shadow: 0 8px 0 var(--ct-c, var(--ct-blue));
    transition: transform .25s ease, box-shadow .25s ease;
}

.ct-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 var(--ct-c, var(--ct-blue));
}

.ct-card--red {
    --ct-c: var(--ct-red);
}

.ct-card--blue {
    --ct-c: var(--ct-blue);
}

.ct-card--yellow {
    --ct-c: var(--ct-yellow);
}

.ct-card--green {
    --ct-c: var(--ct-green);
}

.ct-icon {
    position: absolute;
    top: -1.7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ct-c);
    color: #fff;
    font-size: 1.4rem;
    border: 4px solid #fffdf7;
}

.ct-card--yellow .ct-icon {
    color: var(--ct-ink);
}

.ct-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: .4rem 0 .6rem;
    color: var(--ct-ink);
}

.ct-card p,
.ct-card address {
    margin: 0 0 .25rem;
    color: var(--ct-muted);
    font-size: .98rem;
    line-height: 1.55;
    word-break: break-word;
}

.ct-card a {
    color: var(--ct-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}

.ct-card a:hover,
.ct-card a:focus-visible {
    color: var(--ct-c);
}

.ct-card--yellow a:hover,
.ct-card--yellow a:focus-visible {
    color: #b88600;
}

/* ----- Form ----- */
.ct-form-wrap {
    height: 100%;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 3px dashed var(--ct-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.ct-form-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ct-ink);
    margin: 0 0 .3rem;
}

.ct-form-sub {
    color: var(--ct-muted);
    margin-bottom: 1.4rem;
}

.ct-label {
    display: block;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ct-ink);
    margin-bottom: .35rem;
}

.ct-label span {
    color: var(--ct-red);
}

.ct-input {
    width: 100%;
    padding: .75rem 1rem;
    font: inherit;
    color: var(--ct-ink);
    background: #f7fbff;
    border: 2px solid #d7e7f5;
    border-radius: .9rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ct-input::placeholder {
    color: #9aa5b1;
}

.ct-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--ct-blue);
    box-shadow: 0 0 0 4px rgba(43, 143, 216, .18);
}

.ct-input.is-invalid {
    border-color: var(--ct-red);
    background: #fff6f6;
}

textarea.ct-input {
    resize: vertical;
    min-height: 130px;
}

.ct-error {
    display: block;
    margin-top: .3rem;
    color: var(--ct-red);
    font-size: .85rem;
}

.ct-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ct-submit {
    width: 100%;
}

/* ----- Alerts ----- */
.ct-alert {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .9rem 1rem;
    border-radius: .9rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: .95rem;
}

.ct-alert i {
    font-size: 1.1rem;
    margin-top: .1rem;
}

.ct-alert--ok {
    background: #e8f7ec;
    color: #1b6b32;
    border: 2px solid #b9e4c5;
}

.ct-alert--err {
    background: #fdecec;
    color: #a31d22;
    border: 2px solid #f4b9bb;
}

/* ----- Map ----- */
.ct-map-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ct-map {
    flex: 1 1 auto;
    min-height: 380px;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    background: #e9eef3;
}

.ct-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
}

.ct-directions {
    align-self: flex-start;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    .contact {
        padding: 3.5rem 0 4rem;
    }

    .ct-cards {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .ct-form-wrap {
        padding: 1.4rem 1.1rem;
    }

    .ct-form-title {
        font-size: 1.35rem;
    }

    .ct-directions {
        align-self: stretch;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ct-card,
    .ct-input {
        transition: none;
    }

    .ct-card:hover {
        transform: none;
    }
}