/*
 * Edify Components
 * Shared styles for Edify custom UI.
 *
 * Version: 1.0.0
 *
 * IMPORTANT:
 * This file is loaded site-wide, so page-title hiding rules that were
 * previously embedded on individual Funnel/Results pages are intentionally
 * NOT included here.
 */


/* ============================================================
   FUNNEL
   ============================================================ */

/* ============================================================
   EDIFY FIND-HELP FUNNEL
   ============================================================ */

#edify-funnel {
    --edify-bg: #fbf8f3;
    --edify-card: #ffffff;

    --edify-text: #35251d;
    --edify-muted: #75685f;

    --edify-brown: #8a5a32;
    --edify-brown-dark: #694121;

    --edify-green: #526a3c;
    --edify-green-light: #dce4d3;

    --edify-border: #e4d9cf;
    --edify-progress-bg: #ddd6cc;

    width: 100%;
    max-width: 720px;

    margin: 0 auto;

    padding: 28px 26px 60px;

    box-sizing: border-box;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--edify-text);
}


/* ============================================================
   PROGRESS
   ============================================================ */

.edify-progress-wrap {
    margin-bottom: 30px;
}

.edify-progress-track {
    width: 100%;
    height: 7px;

    background: var(--edify-progress-bg);

    border-radius: 999px;

    overflow: hidden;
}

#edify-progress-bar {
    height: 100%;
    width: 0%;

    background: var(--edify-green);

    border-radius: 999px;

    transition: width 0.35s ease;
}

#edify-progress-text {
    margin-top: 14px;

    text-align: center;

    font-size: 17px;
    font-weight: 600;

    color: var(--edify-green);

    letter-spacing: 0.02em;
}


/* ============================================================
   QUESTION
   ============================================================ */

#edify-question {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 34px;
    box-sizing: border-box;
}

#edify-question h2 {
    margin: 0;
    max-width: 100%;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;
    font-weight: 500;
    line-height: 1.17;

    text-align: center;
    color: var(--edify-text);

    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: balance;
}
/* ============================================================
   ANSWERS
   ============================================================ */

#edify-answers {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


/* ============================================================
   ANSWER CARD
   ============================================================ */
.edify-answer {
    -webkit-tap-highlight-color: transparent;
}


.edify-answer {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;

    min-height: 76px;

    padding: 18px 60px 18px 24px;

    border: 1px solid var(--edify-border);

    border-radius: 18px;

    background: var(--edify-card);

    box-shadow:
        0 4px 12px rgba(58, 39, 27, 0.06),
        0 1px 3px rgba(58, 39, 27, 0.04);

    color: var(--edify-text);

    text-align: left;

    cursor: pointer;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;

    -webkit-appearance: none;
    appearance: none;
}


/* Chevron */

.edify-answer::after {
    content: "›";

    position: absolute;

    right: 23px;
    top: 50%;

    transform: translateY(-52%);

    font-family: Georgia, serif;

    font-size: 36px;
    font-weight: 400;

    line-height: 1;

    color: var(--edify-green);

    transition:
        transform 0.15s ease,
        color 0.15s ease;
}


/* Main answer text */

.edify-answer-main {
    display: block;

    font-size: 17px;
    font-weight: 500;

    line-height: 1.42;

    color: var(--edify-text);
}


/* Secondary description */

.edify-answer-detail {
    display: block;

    margin-top: 5px;

    font-size: 14px;
    font-weight: 400;
    font-style: italic;

    line-height: 1.4;

    color: var(--edify-muted);
}


/* Hover */

.edify-answer:hover {
    transform: translateY(-2px);

    border-color: #c9b7a8;

    background: #fffdf9;

    box-shadow:
        0 8px 20px rgba(58, 39, 27, 0.10),
        0 2px 5px rgba(58, 39, 27, 0.05);
}

.edify-answer:hover::after {
    transform:
        translateY(-52%)
        translateX(3px);

    color: var(--edify-brown);
}


/* Keyboard accessibility */


.edify-answer:focus-visible {
    background: #fffdf9;
    color: var(--edify-text);

    outline: 3px solid rgba(82, 106, 60, 0.30);
    outline-offset: 3px;

    border-color: var(--edify-green);
}


/* Click */

.edify-answer:active {
    background: #fffdf9;
    color: var(--edify-text);

    transform: translateY(0);

    box-shadow:
        0 2px 6px rgba(58, 39, 27, 0.08);
}


/* ============================================================
   BACK BUTTON
   ============================================================ */

.edify-navigation {
    min-height: 56px;

    padding-top: 24px;
}

#edify-back {
    display: none;

    padding: 9px 4px;

    border: 0;

    background: transparent;

    color: var(--edify-muted);

    font-size: 15px;
    font-weight: 500;

    cursor: pointer;
}

#edify-back:hover {
    color: var(--edify-brown-dark);
}


/* ============================================================
   QUESTION TRANSITION
   ============================================================ */

.edify-enter {
    animation: edifyFadeIn 0.22s ease;
}

@keyframes edifyFadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    #edify-funnel {
        padding:
            20px
            16px
            42px;
    }

    .edify-progress-wrap {
        margin-bottom: 24px;
    }

    #edify-question {
        margin-bottom: 26px;
    }

    #edify-question h2 {
        font-size: 31px;
        line-height: 1.18;
    }

    #edify-answers {
        gap: 11px;
    }

    .edify-answer {
        min-height: 68px;

        padding:
            15px
            48px
            15px
            18px;

        border-radius: 16px;
    }

    .edify-answer-main {
        font-size: 16px;
    }

    .edify-answer-detail {
        font-size: 13px;
    }

    .edify-answer::after {
        right: 17px;
        font-size: 31px;
    }

}


/* ============================================================
   SMALL PHONE
   ============================================================ */

@media (max-width: 420px) {

    #edify-question h2 {
        font-size: 25px;
        line-height: 1.22;
    }

    #edify-progress-text {
        font-size: 15px;
    }

}


/* ============================================================
   THERAPIST RESULTS
   ============================================================ */

/* ============================================================
   EDIFY THERAPIST RESULTS
   ============================================================ */

#edify-results {
    --edify-bg: #fbf8f3;
    --edify-card: #ffffff;

    --edify-text: #35251d;
    --edify-muted: #75685f;

    --edify-brown: #8a5a32;
    --edify-brown-dark: #694121;

    --edify-green: #526a3c;
    --edify-green-light: #e4eadf;

    --edify-border: #e4d9cf;

    width: 100%;
    max-width: 1080px;

    margin: 0 auto;
    padding: 40px 24px 60px;

    box-sizing: border-box;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--edify-text);
}


/* ============================================================
   PAGE INTRO
   ============================================================ */

.edify-results-header {
    max-width: 720px;

    margin: 0 auto 36px;

    text-align: center;
}

.edify-results-header h1 {
    margin: 0 0 12px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 42px;
    font-weight: 500;
    line-height: 1.15;

    color: var(--edify-text);
}

.edify-results-header p {
    margin: 0;

    font-size: 17px;
    line-height: 1.5;

    color: var(--edify-muted);
}

.edify-results-header a {
    color: var(--edify-green);

    font-weight: 600;

    text-decoration: underline;
}

.edify-results-header a:hover {
    color: var(--edify-brown);
}


/* ============================================================
   CARD GRID
   ============================================================ */

.edify-clinician-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

/* When screening leaves only one clinician */

.edify-clinician-grid.single-result {
    grid-template-columns:
        minmax(0, 520px);

    justify-content: center;
}


/* ============================================================
   CLINICIAN CARD
   ============================================================ */

.edify-clinician-card {
    display: flex;
    flex-direction: column;

    min-height: 100%;

    padding: 28px;

    background: var(--edify-card);

    border:
        1px solid
        var(--edify-border);

    border-radius: 22px;

    box-shadow:
        0 7px 22px rgba(58, 39, 27, 0.07),
        0 2px 5px rgba(58, 39, 27, 0.04);

    box-sizing: border-box;
}


/* ============================================================
   TOP SECTION
   ============================================================ */

.edify-clinician-top {
    display: flex;

    align-items: flex-start;

    gap: 20px;
}


/* ============================================================
   PHOTO
   ============================================================ */

.edify-clinician-photo {
    width: 128px;
    height: 128px;

    flex: 0 0 128px;

    object-fit: cover;
    object-position: center;

    border-radius: 22px;

    background:
        var(--edify-green-light);

    border:
        1px solid
        var(--edify-border);
}


/* ============================================================
   NAME / TITLE
   ============================================================ */

.edify-clinician-info {
    min-width: 0;
}

.edify-clinician-name {
    margin:
        3px
        0
        5px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 29px;
    font-weight: 500;
    line-height: 1.15;

    color: var(--edify-text);
}

.edify-clinician-title {
    margin: 0;

    font-size: 15px;
    line-height: 1.4;

    color: var(--edify-brown);
}


/* ============================================================
   PROFILE HOOK
   ============================================================ */

.edify-clinician-bio {
    margin-top: 24px;

    font-size: 16px;
    line-height: 1.6;

    color: var(--edify-text);
}


/* ============================================================
   SERVICE INFO
   ============================================================ */

.edify-service-info {
    margin-top: auto;

    padding-top: 24px;
}

.edify-service-line {
    display: flex;
    align-items: center;

    gap: 11px;

    padding:
        13px
        0;

    border-top:
        1px solid
        var(--edify-border);

    font-size: 15px;

    color: var(--edify-text);
}

.edify-service-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border-radius: 50%;

    background:
        var(--edify-green-light);

    color:
        var(--edify-green);

    font-size: 17px;
}


/* ============================================================
   AVAILABILITY STATUS
   ============================================================ */

.edify-availability {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 4px;
    margin-bottom: 4px;

    padding: 10px 12px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.edify-availability::before {
    content: "";

    width: 9px;
    height: 9px;

    flex: 0 0 9px;

    border-radius: 50%;
}


/* Available */

.edify-availability.available {
    background: #edf3e9;

    color: #405832;
}

.edify-availability.available::before {
    background: #526a3c;
}


/* Waitlist */

.edify-availability.waitlist {
    background: #f6eee7;

    color: #70472a;
}

.edify-availability.waitlist::before {
    background: #8a5a32;
}


/* ============================================================
   SCHEDULE BUTTON
   ============================================================ */

.edify-schedule-button {
    display: block;

    width: 100%;

    margin-top: 16px;

    padding: 14px 18px;

    border: 0;
    border-radius: 14px;

    background:
        var(--edify-green);

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.edify-schedule-button:hover {
    background:
        var(--edify-brown-dark);

    color: #ffffff;

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 12px rgba(58, 39, 27, 0.12);
}

.edify-schedule-button:focus-visible {
    outline:
        3px solid
        rgba(82, 106, 60, 0.30);

    outline-offset: 3px;
}


/* ============================================================
   INSURANCE NOTICE
   ============================================================ */

.edify-insurance-notice {
    margin-top: 12px;

    padding: 12px 14px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}


/* Encouraging / in-network */

.edify-insurance-notice.success {
    background: #edf3e9;

    border:
        1px solid
        #cad9c0;

    color: #405832;
}


/* Important insurance warning */

.edify-insurance-notice.warning {
    background: #fff1df;

    border:
        2px solid
        #b86f2d;

    color: #673b19;

    box-shadow:
        0 3px 8px
        rgba(105, 65, 33, 0.08);
}
/* ============================================================
   MEDICAID NOTE BELOW CARDS
   ============================================================ */

.edify-medicaid-note {
    margin: 22px 0 0;
    padding: 18px 20px;

    background: #f3f5eb;

    border: 1px solid var(--edify-border);
    border-radius: 12px;

    font-size: 14px;
    line-height: 1.55;

    color: var(--edify-text);
}

.edify-medicaid-note strong {
    display: block;

    margin-bottom: 5px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;
    font-weight: 600;

    color: var(--edify-text);
}
/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 850px) {

    .edify-clinician-grid,
    .edify-clinician-grid.single-result {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    #edify-results {
        padding:
            28px
            16px
            46px;
    }

    .edify-results-header {
        margin-bottom: 28px;
    }

    .edify-results-header h1 {
        font-size: 34px;
    }

    .edify-clinician-card {
        padding: 20px;

        border-radius: 18px;
    }

    .edify-clinician-photo {
        width: 95px;
        height: 95px;

        flex-basis: 95px;

        border-radius: 17px;
    }

    .edify-clinician-top {
        gap: 15px;
    }

    .edify-clinician-name {
        font-size: 24px;
    }

    .edify-clinician-bio {
        margin-top: 19px;

        font-size: 15px;
    }

}


/* ============================================================
   LOCATIONS
   ============================================================ */

/* ============================================================
   EDIFY LOCATIONS
   ============================================================ */

#edify-locations {

    --edify-bg: #fbf8f3;
    --edify-card: #ffffff;

    --edify-text: #35251d;
    --edify-muted: #75685f;

    --edify-brown: #8a5a32;
    --edify-brown-dark: #694121;

    --edify-green: #526a3c;
    --edify-green-light: #e4eadf;

    --edify-border: #e4d9cf;

    width: 100%;
    max-width: 1080px;

    margin: 0 auto;

    padding: 40px 24px 60px;

    box-sizing: border-box;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--edify-text);
}



/* ============================================================
   GRID
   ============================================================ */

.edify-location-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}



/* ============================================================
   CARD
   Exact same visual treatment as clinician cards
   ============================================================ */

.edify-location-card {

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 28px;

    background: var(--edify-card);

    border:
        1px solid
        var(--edify-border);

    border-radius: 22px;

    box-shadow:
        0 7px 22px rgba(58, 39, 27, 0.07),
        0 2px 5px rgba(58, 39, 27, 0.04);

    box-sizing: border-box;
}



/* ============================================================
   LOCATION HEADING
   ============================================================ */

.edify-location-heading {

    margin-bottom: 22px;
}


.edify-location-heading h2 {

    margin:
        3px
        0
        6px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 29px;
    font-weight: 500;
    line-height: 1.15;

    color: var(--edify-text);
}


.edify-location-heading p {

    margin: 0;

    font-size: 15px;
    line-height: 1.5;

    color: var(--edify-brown);
}



/* ============================================================
   PHOTO GALLERY
   ============================================================ */

.edify-photo-gallery {

    position: relative;

    width: 100%;

    margin-bottom: 22px;
}


.edify-photo-track {

    display: flex;

    width: 100%;

    overflow-x: auto;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    border-radius: 18px;

    background:
        var(--edify-green-light);

    scrollbar-width: none;
}


.edify-photo-track::-webkit-scrollbar {
    display: none;
}


.edify-photo-track img {

    width: 100%;
    height: 285px;

    flex: 0 0 100%;

    object-fit: cover;
    object-position: center;

    scroll-snap-align: start;

    box-sizing: border-box;
}


/* ============================================================
   GALLERY ARROWS
   ============================================================ */

.edify-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 44px;
    height: 38px;

    transform: translateY(-50%);

    border: none;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.92);
    color: var(--edify-text);

    /* Properly center arrow */
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 3px 9px rgba(58, 39, 27, 0.18);

    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}

.edify-gallery-arrow:hover {
    background: #ffffff;
}

.edify-gallery-prev {
    left: 12px;
}

.edify-gallery-next {
    right: 12px;
}


/* ============================================================
   MAP
   ============================================================ */

.edify-map {

    width: 100%;

    overflow: hidden;

    border:
        1px solid
        var(--edify-border);

    border-radius: 18px;

    box-sizing: border-box;
}


.edify-map iframe {

    display: block;

    width: 100%;
    height: 285px;

    border: 0;
}



/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 850px) {

    .edify-location-grid {

        grid-template-columns: 1fr;

    }

}



@media (max-width: 600px) {

    #edify-locations {

        padding:
            28px
            16px
            46px;

    }


    .edify-location-card {

        padding: 20px;

        border-radius: 18px;

    }


    .edify-location-heading h2 {

        font-size: 24px;

    }


    .edify-photo-track img {

        height: 240px;

    }


    .edify-map iframe {

        height: 260px;

    }

}


/* ============================================================
   PHONE CALLOUT
   ============================================================ */

#edify-phone-callout {
    width: 100%;
    max-width: 520px;
    margin: 22px auto 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e4d9cf;
    border-radius: 22px;
    box-shadow:
        0 7px 22px rgba(58, 39, 27, 0.07),
        0 2px 5px rgba(58, 39, 27, 0.04);
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.edify-call-now-button {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: 14px;
    background: #526a3c;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.edify-call-now-button:hover {
    background: #694121;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 5px 12px rgba(58, 39, 27, 0.12);
}

.edify-call-now-button:focus-visible {
    outline: 3px solid rgba(82, 106, 60, 0.30);
    outline-offset: 3px;
}

.edify-phone-message {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    color: #35251d;
}

@media (max-width: 600px) {
    #edify-phone-callout {
        padding: 20px;
        border-radius: 18px;
    }
}
