.contact-page {
    --contact-blue: #1b2b49;
    --contact-red: #d51f2a;
    --contact-orange: #e85b22;
    --contact-ink: #243349;
    --contact-muted: #657083;
    background: #f4f6f9;
    color: var(--contact-ink);
    font-size: 16px;
    line-height: 1.55;
}

.contact-container {
    margin: 0 auto;
    max-width: 1220px;
    padding-inline: clamp(20px, 4vw, 54px);
}

.contact-intro {
    background: linear-gradient(118deg, #132742 0%, #1b3556 62%, #223c5e 100%);
    border-bottom: 3px solid #61b9d6;
    padding-block: clamp(24px, 3.2vw, 40px);
}

.contact-intro-grid {
    align-items: stretch;
    display: grid;
    gap: clamp(24px, 4vw, 46px);
    grid-template-columns: minmax(230px, 0.72fr) minmax(520px, 1.55fr);
}

.contact-eyebrow {
    color: #a91d25;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    margin: 0 0 0.65rem;
}

.contact-intro .contact-eyebrow {
    color: #b8d9e7;
    font-size: 0.74rem;
    margin-bottom: 0.8rem;
}

.contact-intro .contact-eyebrow::after {
    background: #55bddf;
    content: "";
    display: block;
    height: 3px;
    margin-top: 0.65rem;
    width: 2.25rem;
}

.contact-intro h1 {
    color: #fff;
    font-size: clamp(2.15rem, 4vw, 3.45rem);
    letter-spacing: -0.025em;
    line-height: 0.98;
    margin: 0;
    max-width: 8ch;
}

.contact-intro-details {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.contact-email {
    color: #fff;
    font-size: 1rem;
    font-weight: 750;
    text-decoration-color: #62bad7;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

section.contact-intro a:not(.bouton) {
    color: #fff;
}

section.contact-intro a:not(.bouton):hover,
section.contact-intro a:not(.bouton):focus-visible {
    color: #b8d9e7;
    text-decoration-color: #fff;
}

section.contact-intro a:not(.bouton):focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.contact-emergency {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    margin-top: 0;
}

.contact-emergency span {
    color: #c5d0df;
    font-size: 0.82rem;
    font-weight: 650;
}

.contact-emergency a {
    color: #fff;
    font-size: 0.96rem;
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.contact-hours {
    align-self: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgb(4 14 31 / 28%);
    color: #172742;
    padding: 0.7rem 1rem;
}

.contact-hours-table {
    border-collapse: collapse;
    color: inherit;
    font-size: 0.92rem;
    margin: 0;
    width: 100%;
}

.contact-hours-day th,
.contact-hours-day td {
    border-bottom: 1px solid #e1e6ed;
    padding: 0.5rem 0.6rem;
    vertical-align: middle;
}

.contact-hours-day:last-child th,
.contact-hours-day:last-child td {
    border-bottom: 0;
}

.contact-hours-day th {
    font-weight: 750;
    text-align: left;
    white-space: nowrap;
}

.contact-hours-day td {
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    text-align: left;
    white-space: nowrap;
}

.contact-hours-day td.is-closed {
    background: #f0f3f7;
    color: var(--contact-red);
}

.contact-locations {
    padding-block: clamp(30px, 4.5vw, 56px);
}

.contact-locations-layout {
    align-items: start;
    display: grid;
    gap: clamp(26px, 4vw, 48px);
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.5fr);
}

.contact-section-heading h2,
.contact-map-heading h2 {
    color: var(--contact-blue);
    line-height: 1.15;
    margin: 0;
}

.contact-section-heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.contact-section-heading .contact-overview-link {
    color: #1b2b49;
    text-decoration-color: #8b9bb0;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.contact-section-heading .contact-overview-link:hover,
.contact-section-heading .contact-overview-link:focus-visible {
    color: #304f7a;
    text-decoration-color: #d51f2a;
}

.contact-section-heading .contact-overview-link:focus-visible {
    outline: 2px solid #27466f;
    outline-offset: 4px;
}

.contact-section-heading > p:last-child {
    color: var(--contact-muted);
    margin: 0.75rem 0 0;
}

.contact-office-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.contact-office-card {
    background: #fff;
    border: 1px solid #d9dfe8;
    border-radius: 8px;
    cursor: pointer;
    padding: 1.05rem 1.15rem;
    position: relative;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.contact-office-card:hover,
.contact-office-card:focus-within {
    background: #fbfcfe;
    border-color: #aeb8c7;
    box-shadow: 0 6px 16px rgb(31 47 77 / 8%);
}

.contact-office-card[data-selected="true"] {
    background: #f2f6fb;
    border-color: #27466f;
    box-shadow: 0 0 0 2px #27466f, 0 9px 22px rgb(31 47 77 / 14%);
}

.contact-office-card-heading {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

.contact-office-selected-indicator {
    background: #27466f;
    border-radius: 999px;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    margin-left: auto;
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
}

body:not(.home) .contact-office-card h3 {
    color: #1b2b49;
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.contact-office-card address {
    color: #566174;
    font-style: normal;
    margin: 0.65rem 0;
}

.contact-office-phone {
    color: var(--contact-blue);
    font-weight: 750;
    position: relative;
    z-index: 2;
}

.contact-office-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 0.85rem;
    position: relative;
    z-index: 2;
}

.contact-office-actions a {
    color: #304f7a;
    font-size: 0.86rem;
    font-weight: 700;
    text-underline-offset: 3px;
}

.contact-office-map-hit {
    border-radius: inherit;
    inset: 0;
    position: absolute;
    z-index: 1;
}

.contact-office-map-hit:focus-visible {
    outline: 2px solid #667892;
    outline-offset: 2px;
}

.contact-map-panel {
    animation: contact-map-enter 500ms ease-out both;
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 12px;
    box-shadow: 0 22px 55px rgb(28 43 69 / 13%);
    overflow: hidden;
    position: sticky;
    top: 110px;
}

.contact-map-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.2rem;
}

.contact-map-heading .contact-eyebrow {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
}

.contact-map-heading h2 {
    font-size: 1.3rem;
}

.contact-map-office-name {
    color: #1b2b49;
    font-weight: 800;
}

.contact-map-heading > span {
    color: var(--contact-muted);
    font-size: 0.82rem;
    text-align: right;
}

.contact-map-frame {
    background: #e8ecf2;
    min-height: 430px;
    position: relative;
}

.contact-map-frame iframe {
    border: 0;
    display: block;
    height: clamp(430px, 54vw, 620px);
    width: 100%;
}

.contact-map-frame[data-contact-map-mode="overview"] iframe {
    pointer-events: none;
}

.contact-map-markers {
    inset: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 180ms ease, visibility 180ms ease;
    z-index: 3;
}

.contact-map-frame[data-contact-map-mode="office"] .contact-map-markers {
    opacity: 0;
    visibility: hidden;
}

.contact-map-marker {
    height: 54px;
    left: calc(50% + var(--marker-offset-x));
    pointer-events: auto;
    position: absolute;
    top: calc(50% + var(--marker-offset-y));
    transform: translate(-50%, -100%);
    transition: filter 150ms ease, transform 150ms ease;
    width: 42px;
}

.contact-map-marker:hover,
.contact-map-marker:focus-visible {
    filter: drop-shadow(0 6px 8px rgb(20 36 60 / 35%));
    transform: translate(-50%, -100%) scale(1.12);
}

.contact-map-marker:focus-visible {
    border-radius: 50%;
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.contact-map-marker img {
    display: block;
    height: 100%;
    width: 100%;
}

.contact-map-frame.is-zooming iframe {
    animation: contact-map-zoom 650ms cubic-bezier(0.22, 0.78, 0.28, 1);
}

@keyframes contact-map-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes contact-map-zoom {
    0% { opacity: 1; transform: scale(1); }
    45% { opacity: 0.58; transform: scale(1.045); }
    100% { opacity: 1; transform: scale(1); }
}

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

    .contact-map-panel {
        position: static;
    }

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

    .contact-intro-copy {
        align-items: end;
        display: grid;
        gap: 0 1.5rem;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .contact-intro-copy .contact-eyebrow,
    .contact-intro-copy h1 {
        grid-column: 1;
    }

    .contact-intro-details {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin-top: 0;
    }
}

@media (max-width: 700px) {
    .contact-office-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-map-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-map-heading > span {
        text-align: left;
    }

    .contact-map-frame,
    .contact-map-frame iframe {
        height: 430px;
        min-height: 430px;
    }

    .contact-intro-copy {
        display: block;
    }

    .contact-intro-details {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-hours-table {
        font-size: 0.8rem;
    }

    .contact-hours {
        padding-inline: 0.45rem;
    }

    .contact-hours-day th,
    .contact-hours-day td {
        padding-inline: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-map-panel {
        animation: none;
    }

    .contact-map-frame.is-zooming iframe {
        animation: none;
    }

    .contact-office-card {
        transition: none;
    }

    .contact-map-marker,
    .contact-map-markers {
        transition: none;
    }
}
