/* First visit page. Reference layouts: 1920, 960 and 375 px. */
.page-first-visit main { overflow: hidden; }
.first-visit-page { color: #27313d; background: #fff; }
.page-first-visit .clinic-container,
.page-first-visit .treatment-container,
.page-first-visit .appointment-section .clinic-container {
    width: min(calc(100% - 72px), 1420px);
    max-width: none;
}

.first-visit-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 13px;
    height: 61px;
    border-top: 1px solid #7d8288;
    border-bottom: 1px solid #7d8288;
    font-size: 18px;
    line-height: 1;
}
.first-visit-breadcrumbs a { color: #a7aaad; }
.first-visit-breadcrumbs a:hover { color: #27313d; }

.first-visit-page__container > h1 {
    margin: 65px 0 52px;
    font-size: 43px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}
.first-visit-page__video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1420 / 800;
    overflow: hidden;
    background: #d8d8d8;
}
.first-visit-page__video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.first-visit-page__intro-copy {
    display: grid;
    grid-template-columns: 700px minmax(0, 600px);
    gap: 120px;
    min-height: 262px;
    margin-top: 96px;
}
.first-visit-page__intro-column {
    min-width: 0;
    min-height: 262px;
    margin: 0;
    color: #304352;
    font-size: 15px;
    line-height: 22px;
}
.first-visit-page__intro-column p { margin: 0; }
.first-visit-page__intro-column p + p { margin-top: 22px; }
.first-visit-page__intro-column--warm {
    padding-left: 110px;
    border-left: 18px solid #a58782;
}
.first-visit-page__intro-column--sage {
    padding-left: 18px;
    border-left: 6px solid #8c968c;
}

.first-visit-treatment {
    padding-top: 134px;
    padding-bottom: 31px;
}
.first-visit-treatment .treatment-heading { margin-bottom: 58px; }
.first-visit-treatment .treatment-card__media {
    background-image: url('/local/templates/clinic/assets/images/first-visit-plan-custom.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.first-visit-appointment { padding-top: 118px; }
.first-visit-appointment .appointment-heading { max-width: 800px; }
.first-visit-appointment .appointment-lead a { white-space: nowrap; }
.first-visit-appointment .appointment-collage {
    background-image: url('/local/templates/clinic/assets/images/first-visit-form-custom.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.first-visit-contacts { padding: 78px 0 128px; }
.first-visit-contacts .contacts-head { margin-bottom: 51px; }
.first-visit-contacts .map-frame { height: auto; aspect-ratio: 1420 / 693; }
.page-first-visit .site-footer { min-height: 606px; }
.page-first-visit .header-phone a { white-space: nowrap; }

/* Adaptive layout: 376–960 px. */
@media (min-width: 376px) and (max-width: 960px) {
    .page-first-visit .clinic-container,
    .page-first-visit .treatment-container,
    .page-first-visit .appointment-section .clinic-container {
        width: calc(100% - 72px);
    }

    .first-visit-page__container > h1 {
        margin: 34px 0 58px;
        font-size: 40px;
        line-height: 1.2;
    }
    .first-visit-page__video { aspect-ratio: 888 / 500.282; }
    .first-visit-page__intro-copy {
        grid-template-columns: 434px minmax(0, 434px);
        gap: 20px;
        min-height: 371px;
        margin-top: 37px;
    }
    .first-visit-page__intro-column { min-height: 371px; }
    .first-visit-page__intro-column--warm { padding-left: 30px; }
    .first-visit-page__intro-column--sage { padding-left: 18px; }

    .first-visit-treatment {
        padding-top: 29px;
        padding-bottom: 27px;
    }
    .first-visit-treatment .treatment-heading {
        max-width: none;
        margin-bottom: 42px;
        font-size: 40px;
        line-height: 56px;
    }
    .first-visit-treatment .treatment-layout { display: block; height: auto; }
    .first-visit-treatment .treatment-card {
        display: grid;
        grid-template-columns: 318px minmax(0, 1fr);
        width: 100%;
        height: 356px;
        overflow: hidden;
        border-radius: 20px;
        background: #dfdbd7;
    }
    .first-visit-treatment .treatment-card::before { display: none; }
    .first-visit-treatment .treatment-card__media {
        width: 282px;
        max-width: none;
        height: 320px;
        min-height: 0;
        margin: 36px 0 0 36px;
        background-image: url('/local/templates/clinic/assets/images/first-visit-plan-custom.png');
        background-size: contain;
        background-position: center bottom;
        background-repeat: no-repeat;
    }
    .first-visit-treatment .treatment-card__copy {
        min-height: 0;
        padding: 0 36px;
    }
    .first-visit-treatment .treatment-card .section-kicker {
        margin-bottom: 12px;
        font-size: 23px;
        line-height: 34px;
    }
    .first-visit-treatment .treatment-feature__text { font-size: 24px; line-height: 34px; }
    .first-visit-treatment .treatment-note {
        width: 100%;
        max-width: none;
        height: auto;
        margin-top: 28px;
        padding: 0 0 4px;
        border-left: 0;
        font-size: 15px;
        line-height: 22px;
    }
    .first-visit-treatment .treatment-note .section-kicker {
        margin-bottom: 12px;
        font-size: 16px;
        line-height: 22px;
    }
    .first-visit-treatment .treatment-steps {
        box-sizing: border-box;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 105px 127px;
        column-gap: 20px;
        row-gap: 22px;
        height: 283px;
        min-height: 0;
        margin-top: 21px;
    }
    .first-visit-treatment .treatment-steps article,
    .first-visit-treatment .treatment-steps article:nth-child(even),
    .first-visit-treatment .treatment-steps article:nth-child(odd) {
        min-height: 0;
        padding: 0;
        border: 0;
    }
    .first-visit-treatment .treatment-button { width: 100%; min-width: 0; }

    .first-visit-appointment {
        padding-top: 20px;
        padding-bottom: 35px;
    }
    .first-visit-appointment .appointment-heading {
        position: relative;
        top: -1px;
        width: 100%;
        max-width: none;
        margin-bottom: 33px;
    }
    .first-visit-appointment h2 {
        position: relative;
        top: -4px;
        margin-bottom: 28px;
        font-size: 40px;
        line-height: 1.08;
    }
    .first-visit-appointment .appointment-lead { font-size: 18px; line-height: 25px; }
    .first-visit-desktop-break { display: none; }
    .first-visit-appointment .appointment-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .first-visit-appointment .appointment-collage {
        width: 100%;
        height: 700px;
        min-height: 700px;
        aspect-ratio: auto;
        background-image: url('/local/templates/clinic/assets/images/first-visit-form-custom.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .first-visit-appointment .clinic-webform .form-question:not(.form-question--consent) { height: 104px; }
    .first-visit-appointment .clinic-webform .form-question:not(.form-question--consent) + .form-question:not(.form-question--consent) { margin-top: 62px; }
    .first-visit-appointment .clinic-webform .form-label {
        position: relative;
        top: 5px;
        margin-bottom: 4px;
        font-size: 18px;
        line-height: 19px;
    }
    .first-visit-appointment .clinic-webform input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
    .first-visit-appointment .clinic-webform textarea,
    .first-visit-appointment .clinic-webform select {
        height: 79px;
        min-height: 79px;
        padding: 13px 0 7px;
        font-size: 32px;
        line-height: 58px;
    }
    .first-visit-appointment .clinic-consent { font-size: 14px; line-height: 20px; }
    .first-visit-appointment .clinic-webform .form-question--consent { margin-top: 18px; }
    .first-visit-appointment .clinic-webform .form-question--consent + .col-12 { margin-top: 88px; }
    .first-visit-appointment .clinic-webform .clinic-btn--wide {
        height: 98px;
        min-height: 98px;
        font-size: 24px;
    }

    .first-visit-contacts { padding: 65px 0 36px; }
    .first-visit-contacts .contacts-head { margin-bottom: 43px; }
    .first-visit-contacts .map-frame { height: 433px; aspect-ratio: auto; }

    .page-first-visit .footer-grid {
        grid-template-columns: 1fr 1fr 1.05fr;
        column-gap: 54px;
        row-gap: 44px;
    }
    .page-first-visit .footer-column--patients { grid-column: 1; grid-row: 1; }
    .page-first-visit .footer-column--useful { grid-column: 2; grid-row: 1; }
    .page-first-visit .footer-column--services { grid-column: 1; grid-row: 2; }
    .page-first-visit .footer-column--other { grid-column: 2; grid-row: 2; }
    .page-first-visit .footer-legal { grid-column: 3; grid-row: 1 / span 2; min-height: 100%; }
}

/* Mobile header for widths below the desktop breakpoint. */
@media (min-width: 376px) and (max-width: 959.98px) {
    .page-first-visit .header-top { display: none; }
    .page-first-visit .header-main,
    .page-first-visit .header-main .clinic-container { min-height: 222px; }
    .page-first-visit .header-main .clinic-container {
        display: flex !important;
        flex-wrap: wrap;
        align-content: flex-start;
        width: calc(100% - 72px);
        padding-top: 27px;
        padding-bottom: 24px;
    }
    .page-first-visit .header-main.is-sticky { position: relative; min-height: 222px; box-shadow: none; }
    .page-first-visit .header-main.is-sticky .clinic-container { min-height: 222px; }
    .page-first-visit .site-header.has-sticky { padding-bottom: 0; }
    .page-first-visit .header-nav { display: none; }
    .page-first-visit .accessibility-toggle { order: 1; width: 40px; height: 34px; margin-left: 0; }
    .page-first-visit .navbar-toggler { display: block; order: 2; margin-left: auto; }
    .page-first-visit .header-main .clinic-brand { order: 3; width: 100%; margin-top: 27px; }
    .page-first-visit .clinic-brand__image,
    .page-first-visit .header-main.is-sticky .clinic-brand__image { width: min(229px, 100%); height: auto; }
}

/* The supplied 960px reference keeps the full desktop header. */
@media (min-width: 960px) {
    .page-first-visit .header-top { display: block; }
    .page-first-visit .header-main,
    .page-first-visit .header-main .clinic-container { min-height: 145px; }
    .page-first-visit .header-main .clinic-container {
        display: flex !important;
        flex-wrap: nowrap;
        align-content: normal;
        align-items: center;
        width: min(calc(100% - 72px), 1420px);
        padding-top: 0;
        padding-bottom: 0;
    }
    .page-first-visit .header-main.is-sticky { position: fixed; min-height: 82px; box-shadow: 0 10px 30px rgba(39,49,61,.08); }
    .page-first-visit .header-main.is-sticky .clinic-container { min-height: 82px; }
    .page-first-visit .header-nav { display: block; order: initial; }
    .page-first-visit .accessibility-toggle { order: initial; width: 40px; height: 26px; margin-left: 34px; }
    .page-first-visit .navbar-toggler { display: none; order: initial; margin-left: 0; }
    .page-first-visit .header-main .clinic-brand { order: initial; width: auto; margin-top: 0; }
    .page-first-visit .clinic-brand__image { width: 220px; height: 74px; }
    .page-first-visit .header-main.is-sticky .clinic-brand__image { width: 180px; height: auto; }
}

@media (min-width: 960px) and (max-width: 960px) {
    .first-visit-page__container > h1 { margin-bottom: 47px; }
    .page-first-visit .site-footer {
        box-sizing: border-box;
        height: 768px;
        min-height: 768px;
        overflow: hidden;
        padding-bottom: 39px;
    }
}

/* Compact layout: up to and including 375 px. */
@media (max-width: 375px) {
    .page-first-visit .clinic-container,
    .page-first-visit .treatment-container,
    .page-first-visit .appointment-section .clinic-container {
        width: calc(100% - 48px);
    }

    .page-first-visit .header-top { display: none; }
    .page-first-visit .header-main,
    .page-first-visit .header-main .clinic-container { min-height: 222px; }
    .page-first-visit .header-main .clinic-container {
        display: flex !important;
        flex-wrap: wrap;
        align-content: flex-start;
        width: calc(100% - 48px);
        padding-top: 27px;
        padding-bottom: 24px;
    }
    .page-first-visit .header-main.is-sticky { position: relative; min-height: 222px; box-shadow: none; }
    .page-first-visit .header-main.is-sticky .clinic-container { min-height: 222px; }
    .page-first-visit .site-header.has-sticky { padding-bottom: 0; }
    .page-first-visit .header-nav { display: none; }
    .page-first-visit .accessibility-toggle { order: 1; width: 40px; height: 34px; margin-left: 0; }
    .page-first-visit .navbar-toggler { display: block; order: 2; margin-left: auto; }
    .page-first-visit .header-main .clinic-brand { order: 3; width: 100%; margin-top: 27px; }
    .page-first-visit .header-main .clinic-brand__image,
    .page-first-visit .header-main.is-sticky .clinic-brand__image {
        width: 327px;
        height: 110px;
        max-width: 100%;
    }

    .first-visit-breadcrumbs { gap: 9px; height: 61px; font-size: 14px; white-space: nowrap; }
    .first-visit-page__container > h1 {
        margin: 34px 0 30px;
        font-size: 28px;
        line-height: 39px;
    }
    .first-visit-page__video { aspect-ratio: 327 / 184.225; }
    .first-visit-page__video .play-button--large { width: 80px; height: 80px; font-size: 28px; }
    .first-visit-page__intro-copy {
        display: block;
        min-height: 1005px;
        margin-top: 33px;
    }
    .first-visit-page__intro-column { min-height: 0; }
    .first-visit-page__intro-column--warm {
        min-height: 503px;
        padding-left: 30px;
        border-left-width: 18px;
    }
    .first-visit-page__intro-column--sage {
        min-height: 481px;
        margin-top: 21px;
        padding-left: 19px;
        border-left-width: 6px;
    }

    .first-visit-treatment { padding: 34px 0 32px; }
    .first-visit-treatment .treatment-heading {
        max-width: none;
        margin-bottom: 30px;
        font-size: 28px;
        line-height: 39px;
    }
    .first-visit-treatment .treatment-layout { display: block; height: auto; }
    .first-visit-treatment .treatment-card {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 536px 317px;
        width: 100%;
        height: 853px;
        overflow: hidden;
        border-radius: 18px;
        background: #dfdbd7;
    }
    .first-visit-treatment .treatment-card::before { display: none; }
    .first-visit-treatment .treatment-card__copy {
        grid-row: 1;
        justify-content: flex-start;
        height: 536px;
        padding: 25px 25px 11px;
    }
    .first-visit-treatment .treatment-card__media {
        grid-row: 2;
        width: 279px;
        height: 317px;
        min-height: 317px;
        margin: 0 24px;
        background-image: url('/local/templates/clinic/assets/images/first-visit-plan-custom.png');
        background-size: contain;
        background-position: center bottom;
        background-repeat: no-repeat;
    }
    .first-visit-treatment .treatment-card .section-kicker {
        margin-bottom: 12px;
        font-size: 23px;
        line-height: 34px;
    }
    .first-visit-treatment .treatment-feature__text { font-size: 24px; line-height: 34px; }
    .first-visit-treatment .treatment-note {
        width: 100%;
        height: 361px;
        min-height: 361px;
        margin-top: 28px;
        padding: 0;
        overflow: visible;
        border-left: 0;
        font-size: 15px;
        line-height: 22px;
    }
    .first-visit-treatment .treatment-note .section-kicker {
        margin-bottom: 12px;
        font-size: 16px;
        line-height: 22px;
    }
    .first-visit-treatment .treatment-note p:last-child { margin-bottom: 0; }
    .first-visit-treatment .treatment-steps {
        grid-template-columns: 1fr;
        grid-template-rows: 127px 152px 127px 127px;
        row-gap: 22px;
        min-height: 628px;
        margin-top: 21px;
    }
    .first-visit-treatment .treatment-steps article,
    .first-visit-treatment .treatment-steps article:nth-child(even),
    .first-visit-treatment .treatment-steps article:nth-child(odd) {
        min-height: 0;
        padding: 0;
        border: 0;
    }
    .first-visit-treatment .treatment-button { width: 100%; min-width: 0; }

    .first-visit-appointment { padding: 20px 0 24px; }
    .first-visit-appointment .appointment-heading {
        width: 100%;
        max-width: none;
        margin-bottom: 29px;
    }
    .first-visit-appointment h2 { margin-bottom: 19px; font-size: 28px; line-height: 1.25; }
    .first-visit-appointment .appointment-lead { font-size: 18px; line-height: 25px; }
    .first-visit-desktop-break { display: none; }
    .first-visit-appointment .appointment-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .first-visit-appointment .appointment-collage {
        order: -1;
        width: 100%;
        height: 327px;
        min-height: 327px;
        aspect-ratio: auto;
        background-image: url('/local/templates/clinic/assets/images/first-visit-form-custom.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .first-visit-appointment .appointment-form { padding: 0; }
    .first-visit-appointment .clinic-webform .form-question:not(.form-question--consent) { height: 74px; }
    .first-visit-appointment .clinic-webform .form-question:not(.form-question--consent) + .form-question:not(.form-question--consent) { margin-top: 16px; }
    .first-visit-appointment .clinic-webform .form-label {
        position: static;
        top: auto;
        margin: 0 0 2px;
        font-size: 15px;
        line-height: 20px;
    }
    .first-visit-appointment .clinic-webform input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
    .first-visit-appointment .clinic-webform textarea,
    .first-visit-appointment .clinic-webform select {
        height: 52px;
        min-height: 52px;
        padding: 8px 0 7px;
        font-size: 20px;
        line-height: 31px;
    }
    .first-visit-appointment .clinic-consent { font-size: 14px; line-height: 20px; }
    .first-visit-appointment .clinic-webform .form-question--consent { margin-top: 18px; }
    .first-visit-appointment .clinic-webform .form-question--consent + .col-12 { margin-top: 38px; }
    .first-visit-appointment .clinic-webform .clinic-btn--wide {
        height: 73px;
        min-height: 73px;
        font-size: 18px;
    }

    .first-visit-contacts { padding: 20px 0 24px; }
    .first-visit-contacts .contacts-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 25px;
    }
    .first-visit-contacts .contacts-head h2 { font-size: 18px; }
    .first-visit-contacts .contacts-head h2 span { display: inline; }
    .first-visit-contacts .contacts-head > a { font-size: 18px; }
    .first-visit-contacts .map-frame { height: 327px; aspect-ratio: auto; }

    .page-first-visit .site-footer { min-height: 0; padding: 52px 0 15px; }
    .page-first-visit .footer-grid { display: block; }
    .page-first-visit .footer-column + .footer-column { margin-top: 36px; }
    .page-first-visit .footer-menu a { font-size: 14px; }
    .page-first-visit .footer-legal { min-height: 0; margin-top: 34px; }
    .page-first-visit .footer-design { margin-top: 34px; }
}

