
/* =========================================
   CONTACT PAGE ONLY
   Does not style the shared header or footer
========================================= */

.contact-page {
    --contact-navy: #12253d;
    --contact-navy-2: #1b3654;
    --contact-teal: #087f78;
    --contact-teal-dark: #06655f;
    --contact-coral: #ff684a;
    --contact-text: #203247;
    --contact-muted: #667789;
    --contact-line: #e2e9ed;
    --contact-soft: #f4f8f8;
    --contact-white: #fff;
    --contact-shadow: 0 18px 50px rgba(18, 37, 61, .08);
    --contact-radius: 20px;

    color: var(--contact-text);
    background: #fff;
    line-height: 1.6;
}

.contact-page,
.contact-page * {
    box-sizing: border-box;
}

.contact-page a {
    color: inherit;
    text-decoration: none;
}

.contact-page button,
.contact-page input,
.contact-page select,
.contact-page textarea {
    font: inherit;
}

.contact-page a:focus-visible,
.contact-page button:focus-visible,
.contact-page input:focus-visible,
.contact-page select:focus-visible,
.contact-page textarea:focus-visible {
    outline: 3px solid rgba(8, 127, 120, .28);
    outline-offset: 3px;
}

.contact-page .container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.contact-page h1,
.contact-page h2,
.contact-page h3 {
    font-family: "Manrope", sans-serif;
    margin-top: 0;
    line-height: 1.2;
}

.contact-page h1 {
    max-width: 720px;
    margin: 18px 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -.045em;
}

.contact-page h2 {
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
}

.contact-page p {
    line-height: 1.75;
}

/* Eyebrow */

.contact-page .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--contact-teal);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.contact-page .eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--contact-coral);
    box-shadow: 0 0 0 5px rgba(255, 104, 74, .15);
}

/* Hero */

.contact-page .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 64px 0;
    color: #fff;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(8, 127, 120, .4),
            transparent 30%
        ),
        linear-gradient(120deg, #10233b 0%, #173c56 100%);
}

.contact-page .hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 340px;
    height: 340px;
    right: -100px;
    bottom: -210px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(255, 255, 255, .025),
        0 0 0 84px rgba(255, 255, 255, .02);
    pointer-events: none;
}

.contact-page .hero-content {
    position: relative;
    z-index: 1;
}

.contact-page .hero .eyebrow {
    color: #a7e5dc;
}

.contact-page .hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

/* Contact section */

.contact-page .contact-section {
    padding: 72px 0 86px;
}

.contact-page .section-intro {
    max-width: 650px;
    margin-bottom: 32px;
}

.contact-page .section-intro h2 {
    margin: 12px 0 10px;
    letter-spacing: -.035em;
}

.contact-page .section-intro p {
    margin: 0;
    color: var(--contact-muted);
}

/* Main two-column layout */

.contact-page .contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 28px;
}

/* Contact information cards */

.contact-page .contact-aside {
    display: grid;
    gap: 14px;
}

.contact-page .contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--contact-line);
    border-radius: 16px;
    background: #fff;
    transition:
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.contact-page .contact-card:hover {
    border-color: #b7d9d5;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(18, 37, 61, .05);
}

.contact-page .icon-box {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 13px;
    background: #eaf6f4;
    color: var(--contact-teal);
}

.contact-page .icon-box svg {
    width: 21px;
    height: 21px;
}

.contact-page .contact-card h3 {
    margin: 1px 0 5px;
    font-size: 16px;
    font-weight: 800;
}

.contact-page .contact-card p {
    margin: 0 0 8px;
    color: var(--contact-muted);
    font-size: 13px;
}

.contact-page .contact-card a {
    color: var(--contact-teal);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-page .contact-card address {
    color: var(--contact-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.7;
}

/* Form card */

.contact-page .form-card {
    min-width: 0;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--contact-line);
    border-radius: var(--contact-radius);
    background: #fff;
    box-shadow: var(--contact-shadow);
}

.contact-page .form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.contact-page .form-heading h2 {
    margin: 0 0 7px;
    font-size: 25px;
    letter-spacing: -.03em;
}

.contact-page .form-heading p {
    margin: 0;
    color: var(--contact-muted);
    font-size: 14px;
}

.contact-page .required-note {
    padding-top: 5px;
    color: var(--contact-muted);
    font-size: 12px;
    white-space: nowrap;
}

/* Form fields */

.contact-page .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-page .field {
    min-width: 0;
    margin-bottom: 18px;
}

.contact-page .field label {
    display: block;
    margin-bottom: 7px;
    color: #2c4055;
    font-size: 13px;
    font-weight: 700;
}

.contact-page .field label span {
    color: #d94e36;
}

.contact-page .field input,
.contact-page .field select,
.contact-page .field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid #d9e2e7;
    border-radius: 10px;
    color: var(--contact-text);
    background: #fff;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.contact-page .field input::placeholder,
.contact-page .field textarea::placeholder {
    color: #9aa7b3;
}

.contact-page .field input:hover,
.contact-page .field select:hover,
.contact-page .field textarea:hover {
    border-color: #b8c9d0;
}

.contact-page .field input:focus,
.contact-page .field select:focus,
.contact-page .field textarea:focus {
    outline: none;
    border-color: var(--contact-teal);
    box-shadow: 0 0 0 3px rgba(8, 127, 120, .1);
}

.contact-page .field textarea {
    min-height: 132px;
    resize: vertical;
}

.contact-page .field-hint {
    display: block;
    margin-top: 6px;
    color: #7a8997;
    font-size: 12px;
    line-height: 1.6;
}

/* Form footer */

.contact-page .form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
}

.contact-page .privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 290px;
    color: var(--contact-muted);
    font-size: 12px;
    line-height: 1.6;
}

.contact-page .privacy-note svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--contact-teal);
}

.contact-page .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 170px;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--contact-coral);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 104, 74, .2);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, background .2s, box-shadow .2s;
}

.contact-page .submit-btn:hover {
    transform: translateY(-1px);
    background: #ed563a;
    box-shadow: 0 10px 24px rgba(255, 104, 74, .28);
}

.contact-page .form-status {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff4e9;
    color: #874a1c;
    font-size: 13px;
}

/* Office locations */

.contact-page .locations {
    padding: 68px 0;
    background: var(--contact-soft);
}

.contact-page .location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-page .location-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--contact-line);
    border-radius: 16px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.contact-page .location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(18, 37, 61, .05);
}

.contact-page .location-card .country {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 5px 9px;
    border-radius: 7px;
    color: var(--contact-teal-dark);
    background: #eaf6f4;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.contact-page .location-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
}

.contact-page .location-card p {
    margin: 0;
    color: var(--contact-muted);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* Tablet */

@media (max-width: 900px) {
    .contact-page .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-page .contact-aside {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-page .contact-card {
        flex-direction: column;
        padding: 18px;
    }

    .contact-page .location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 640px) {
    .contact-page .container {
        width: calc(100% - 32px);
    }

    .contact-page .hero {
        padding: 48px 0 52px;
    }

    .contact-page h1 {
        font-size: clamp(30px, 8vw, 38px);
        margin: 16px 0;
    }

    .contact-page .hero p {
        font-size: 15px;
    }

    .contact-page .contact-section {
        padding: 46px 0 52px;
    }

    .contact-page .section-intro {
        margin-bottom: 24px;
    }

    .contact-page .section-intro h2 {
        font-size: 26px;
    }

    .contact-page .contact-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-page .contact-card {
        flex-direction: row;
        padding: 18px;
    }

    .contact-page .form-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .contact-page .form-heading {
        display: block;
        margin-bottom: 22px;
    }

    .contact-page .form-heading h2 {
        font-size: 23px;
    }

    .contact-page .required-note {
        display: block;
        margin-top: 10px;
    }

    .contact-page .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .contact-page .field input,
    .contact-page .field select,
    .contact-page .field textarea {
        font-size: 16px;
    }

    .contact-page .form-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-page .privacy-note {
        max-width: none;
    }

    .contact-page .submit-btn {
        width: 100%;
    }

    .contact-page .location-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-page .locations {
        padding: 46px 0;
    }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .contact-page *,
    .contact-page *::before,
    .contact-page *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
    }
}
