
.co-trail {
    --co-blue: #7fb9c8;
    --co-green: #8fc6ad;
    --co-deep: #214f59;
    --co-text: #21363a;
    --co-soft: #f6fbfa;
    --co-border: #dce9e6;
    position: relative;
    max-width: 1050px;
    margin: 40px auto;
    padding: 30px 24px 60px;
    color: var(--co-text);
    overflow: hidden;
}

.co-trail * {
    box-sizing: border-box;
}

.co-trail__intro {
    position: relative;
    z-index: 3;
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

.co-trail__eyebrow,
.co-stop__label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: .83rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4b7d77;
}

.co-trail__intro h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    color: var(--co-deep);
}

.co-trail__intro p {
    margin: 0 auto;
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.co-trail__path {
    position: absolute;
    inset: 165px 9% 70px 9%;
    z-index: 0;
    pointer-events: none;
}

.co-trail__path svg {
    width: 100%;
    height: 100%;
}

.co-trail__path path {
    fill: none;
    stroke: url(#gradient);
    stroke: #a8d8cf;
    stroke-width: 18;
    stroke-linecap: round;
    opacity: .72;
}

.co-stop {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 82px minmax(0, 520px);
    align-items: start;
    gap: 18px;
    margin: 0 0 80px;
}

.co-stop--left {
    justify-content: start;
    margin-right: 28%;
}

.co-stop--right {
    justify-content: end;
    grid-template-columns: minmax(0, 520px) 82px;
    margin-left: 28%;
}

.co-stop--right .co-stop__marker {
    grid-column: 2;
    grid-row: 1;
}

.co-stop--right .co-stop__card {
    grid-column: 1;
    grid-row: 1;
}

.co-stop__marker {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 7px solid #a8d8cf;
    background: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--co-deep);
    box-shadow: 0 8px 24px rgba(33,79,89,.10);
}

.co-stop__card {
    background: rgba(255,255,255,.97);
    border: 1px solid var(--co-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 15px 45px rgba(33,79,89,.08);
}

.co-stop__card h3 {
    margin: 0 0 18px;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.2;
    color: var(--co-deep);
}

.co-options {
    display: grid;
    gap: 10px;
}

.co-option {
    width: 100%;
    appearance: none;
    border: 1px solid var(--co-border);
    border-radius: 14px;
    background: #fff;
    color: var(--co-text);
    padding: 14px 16px;
    text-align: left;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.co-option:hover,
.co-option:focus-visible {
    transform: translateY(-1px);
    border-color: #9bc9bd;
    box-shadow: 0 7px 18px rgba(33,79,89,.08);
    outline: none;
}

.co-option.is-selected {
    border-color: #6fae9f;
    background: #edf8f4;
    box-shadow: inset 0 0 0 2px rgba(111,174,159,.15);
}

.co-option.is-selected::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
    background: #6fae9f;
    color: white;
    font-size: .85rem;
}

.co-text-link {
    display: inline-block;
    margin-top: 17px;
    font-weight: 700;
    color: #3d756d;
}

.co-summary {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--co-soft);
    line-height: 1.55;
}

.co-final-actions {
    display: grid;
    gap: 11px;
}

.co-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    border-radius: 14px;
    border: 0;
    padding: 13px 18px;
    font: inherit;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.co-button--primary {
    background: var(--co-deep);
    color: white !important;
}

.co-button--secondary {
    background: #e7f4f0;
    color: var(--co-deep);
}

.co-help-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--co-border);
}

.co-help-form[hidden] {
    display: none !important;
}

.co-form-heading h4 {
    margin: 0 0 6px;
    color: var(--co-deep);
    font-size: 1.25rem;
}

.co-form-heading p {
    margin: 0 0 18px;
    line-height: 1.5;
}

.co-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.co-form-grid label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.co-form-grid input,
.co-form-grid select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cddeda;
    border-radius: 11px;
    padding: 10px 12px;
    background: white;
    color: var(--co-text);
    font: inherit;
}

.co-form-status {
    margin: 12px 0 0;
    font-weight: 700;
}

.co-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 780px) {
    .co-trail {
        padding-inline: 12px;
    }

    .co-trail__path {
        left: 31px;
        right: auto;
        top: 185px;
        bottom: 75px;
        width: 18px;
    }

    .co-trail__path svg {
        display: none;
    }

    .co-trail__path::before {
        content: "";
        display: block;
        width: 10px;
        height: 100%;
        margin-left: 4px;
        border-radius: 999px;
        background: #a8d8cf;
        opacity: .72;
    }

    .co-stop,
    .co-stop--left,
    .co-stop--right {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
        margin: 0 0 42px;
    }

    .co-stop--right .co-stop__marker,
    .co-stop--right .co-stop__card {
        grid-column: auto;
        grid-row: auto;
    }

    .co-stop__marker {
        width: 52px;
        height: 52px;
        border-width: 6px;
        font-size: 1rem;
    }

    .co-stop__card {
        padding: 21px;
        border-radius: 20px;
    }

    .co-form-grid {
        grid-template-columns: 1fr;
    }
}


.co-option-wrap { display: grid; gap: 6px; }
.co-inline-learn { display: inline-block; width: fit-content; margin-left: 4px; font-size: .9rem; font-weight: 700; color: #3d756d; text-decoration: none; }
.co-inline-learn:hover, .co-inline-learn:focus-visible { text-decoration: underline; }
.co-school-panel { margin-top: 20px; padding: 18px; border: 1px solid var(--co-border); border-radius: 16px; background: var(--co-soft); }
.co-school-panel[hidden], .co-school-suggest-form[hidden] { display: none !important; }
.co-school-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.co-school-columns h4 { margin: 0 0 8px; color: var(--co-deep); font-size: 1rem; }
.co-school-columns ul { margin: 0; padding-left: 20px; line-height: 1.6; }
.co-school-suggest-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--co-border); }
.co-school-status { margin: 10px 0 0; font-weight: 700; }
@media (max-width: 780px) { .co-school-columns { grid-template-columns: 1fr; } }


.co-school-choice {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid var(--co-border);
    border-radius: 14px;
    background: var(--co-soft);
}

.co-school-choice[hidden],
.co-other-school[hidden],
.co-therapy-link[hidden] {
    display: none !important;
}

.co-school-choice label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.co-school-choice select,
.co-school-choice input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cddeda;
    border-radius: 11px;
    padding: 10px 12px;
    background: white;
    color: var(--co-text);
    font: inherit;
}

.co-other-school {
    margin-top: 12px;
}


.co-school-note {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--co-border);
    border-radius: 12px;
    background: #fff;
    line-height: 1.5;
    font-size: .95rem;
}

.co-handoff-panel{margin-top:24px;padding:22px;border:1px solid var(--co-border);border-radius:18px;background:#fff}
.co-handoff-panel[hidden],.co-handoff-fallback[hidden]{display:none!important}
.co-handoff-summary,.co-handoff-guide{margin-top:18px;padding:16px;border-radius:14px;background:var(--co-soft)}
.co-handoff-summary p{margin:6px 0}
.co-handoff-guide ol{margin:10px 0 0;padding-left:22px;line-height:1.65}
.co-handoff-note{margin:14px 0 0;padding:12px 14px;border-left:4px solid #8fc6ad;background:#fff;line-height:1.5}
.co-handoff-form{margin-top:18px;padding-top:18px;border-top:1px solid var(--co-border)}
.co-handoff-status,.co-handoff-help,.co-handoff-fallback{margin:12px 0 0;line-height:1.5}
.co-handoff-status{font-weight:700}


.co-location-choice[hidden],
.co-step3[hidden],
.co-therapy-link[hidden],
.co-help-toggle[hidden] {
    display: none !important;
}

.co-school-picker,
.co-step2-other-school {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.co-school-picker select,
.co-step2-other-school input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cddeda;
    border-radius: 11px;
    padding: 10px 12px;
    background: #fff;
    color: var(--co-text);
    font: inherit;
}

.co-step2-other-school {
    margin-top: 12px;
}

.co-step2-other-school[hidden] {
    display: none !important;
}

.co-school-routing-note {
    margin: 12px 0 0;
    line-height: 1.5;
    font-weight: 700;
}


.co-location-options:empty::before {
    content: "Choose a service above to see available locations.";
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--co-soft);
    line-height: 1.45;
}

.co-step3[hidden],
.co-therapy-link[hidden],
.co-help-toggle[hidden] {
    display: none !important;
}

.co-school-picker,
.co-step2-other-school {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.co-school-picker select,
.co-step2-other-school input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cddeda;
    border-radius: 11px;
    padding: 10px 12px;
    background: #fff;
    color: var(--co-text);
    font: inherit;
}

.co-step2-other-school {
    margin-top: 12px;
}

.co-step2-other-school[hidden] {
    display: none !important;
}

.co-school-routing-note {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--co-soft);
    line-height: 1.55;
    font-weight: 700;
}


.co-handoff-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.co-handoff-left,
.co-handoff-right {
    min-width: 0;
}

.co-handoff-right {
    position: sticky;
    top: 20px;
}

.co-handoff-form {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    padding: 18px;
    border: 1px solid var(--co-border);
    border-radius: 14px;
    background: #fff;
}

.co-handoff-form-grid {
    grid-template-columns: 1fr;
}

.co-handoff-form .co-form-heading {
    margin-bottom: 14px;
}

.co-handoff-form .co-form-heading h5 {
    margin: 0 0 6px;
}

.co-handoff-form .co-form-heading p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .co-handoff-layout {
        grid-template-columns: 1fr;
    }

    .co-handoff-right {
        position: static;
    }
}


/* v1.7.6: Let the scheduling handoff breathe on larger screens. */
.co-stop__card--handoff-wide {
    width: 100%;
    max-width: 520px;
}

.co-stop__card--handoff-wide.is-handoff-open {
    width: min(1120px, calc(100vw - 72px));
    max-width: none;
}

.co-handoff-panel {
    width: 100%;
    max-width: none;
    padding: 28px;
}

.co-handoff-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
    gap: 32px;
}

.co-handoff-left > p:first-of-type,
.co-handoff-left > h4 {
    max-width: 720px;
}

.co-handoff-summary,
.co-handoff-guide {
    max-width: none;
}

.co-handoff-right {
    min-width: 320px;
}

@media (max-width: 1100px) {
    .co-stop__card--handoff-wide.is-handoff-open {
        width: min(960px, calc(100vw - 48px));
    }

    .co-handoff-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .co-stop__card--handoff-wide,
    .co-stop__card--handoff-wide.is-handoff-open {
        width: 100%;
        max-width: 100%;
    }

    .co-handoff-panel {
        padding: 22px;
    }

    .co-handoff-layout {
        grid-template-columns: 1fr;
    }

    .co-handoff-right {
        min-width: 0;
    }
}


/* v1.7.9: Full-width centered final stop while the Scheduling Guide is open. */
.co-step4.is-handoff-open {
    margin-left: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: stretch !important;
    width: 100%;
}

.co-step4.is-handoff-open .co-step4-marker {
    display: none !important;
}

.co-step4.is-handoff-open .co-stop__card--handoff-wide,
.co-step4.is-handoff-open .co-stop__card--handoff-wide.is-handoff-open {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
}

.co-step4.is-handoff-open .co-handoff-panel {
    width: 100%;
    max-width: none;
}

@media (min-width: 901px) {
    .co-step4.is-handoff-open .co-handoff-layout {
        grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
        gap: 28px;
    }
}
