/* ──────────────────────────────────────────────────────────────────────
 * Questionnaire / consultation redesign overlay
 * Applies the gwl-get-started-mockup-v1_5 design tokens on top of the
 * existing form markup. Keeps the existing PHP / Perch form intact —
 * this file just retargets the existing class names and elements.
 * Loaded after /css/started/style.css so it wins specificity battles.
 * ────────────────────────────────────────────────────────────────────── */

:root {
    --gs-purple: #3328bf;
    --gs-purple-dark: #2a20a0;
    --gs-purple-tint: #f0eeff;
    --gs-green: #7dc241;
    --gs-green-dark: #5fa832;
    --gs-green-light: #f2fae8;
    --gs-text: #0f0f14;
    --gs-body: #4a4a5a;
    --gs-muted: #9090a0;
    --gs-white: #ffffff;
    --gs-off: #f8f8fc;
    --gs-section: #f7f6ff;
    --gs-line: #e8e8f0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
    background: var(--gs-off) !important;
    color: var(--gs-text) !important;
    -webkit-font-smoothing: antialiased;
}

/* ── Header (logo bar) — sticky 3-column shell matching .consult-header
 *   Left:   logo
 *   Center: progress bar (.header-progress)
 *   Right:  GPhC security badge (.header-secure)
 * ── */
section.header {
    background: var(--gs-white) !important;
    border-bottom: 1px solid var(--gs-line) !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 32px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}
section.header .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
section.header .header_content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 24px !important;
}
section.header .header_logo {
    justify-content: flex-start !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}
section.header .logo_image,
section.header .logo_image a {
    display: block !important;
    line-height: 0 !important;
}
section.header .logo_image img {
    height: 44px !important;
    width: auto !important;
    display: block !important;
    max-height: 44px !important;
    object-fit: contain !important;
}

/* Center progress bar */
section.header .header-progress {
    flex: 1 1 auto !important;
    max-width: 480px !important;
    margin: 0 16px !important;
    min-width: 0 !important;
}
section.header .header-progress-label {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--gs-muted) !important;
    margin-bottom: 6px !important;
}
section.header .header-progress-pct {
    color: var(--gs-purple) !important;
    font-weight: 700 !important;
}
section.header .header-progress-track {
    height: 6px !important;
    background: var(--gs-line) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}
section.header .header-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, var(--gs-purple), #7c6ef5) !important;
    border-radius: 999px !important;
    transition: width .3s ease !important;
    min-width: 0 !important;
}
section.header .header-progress-count {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 12px !important;
    color: var(--gs-muted) !important;
    margin-top: 6px !important;
}
section.header .header-progress-count span {
    color: var(--gs-purple) !important;
    font-weight: 700 !important;
}

/* Right-side GPhC security badge */
section.header .header-secure {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--gs-muted) !important;
    flex-shrink: 0 !important;
}
section.header .header-secure svg {
    width: 14px !important;
    height: 14px !important;
    color: var(--gs-green) !important;
    flex-shrink: 0 !important;
}

@media (max-width: 900px) {
    section.header .header-progress-count {
        display: none !important;
    }
}
@media (max-width: 700px) {
    section.header .header-progress {
        max-width: none !important;
        margin: 0 12px !important;
    }
    section.header .header-progress-label {
        font-size: 11px !important;
    }
}
@media (max-width: 600px) {
    section.header {
        padding: 0 18px !important;
    }
    section.header .logo_image img {
        height: 36px !important;
        max-height: 36px !important;
    }
    section.header .header-secure span {
        display: none !important;
    }
    section.header .header-progress-label {
        display: none !important;
    }
}

/* ── Section wrappers (each step) ── */
section.how_old,
section.under_18,
section.consultation_section,
section.start_a_consultation,
section.medical_history,
section.weight_loss,
section.consent_section,
section.review_section {
    background: transparent !important;
    padding: 56px 24px 80px !important;
    min-height: calc(100vh - 90px);
}
/* When the same form is rendered inside the client portal (re-order flow),
 * the surrounding `.portal-main` already provides padding and the page has
 * the portal nav above — drop the full-viewport min-height and the extra
 * vertical padding so the card sits naturally in the portal column. */
.reorder-questionnaire-shell section.how_old,
.reorder-questionnaire-shell section.under_18,
.reorder-questionnaire-shell section.medical_history,
.reorder-questionnaire-shell section.review_section {
    padding: 0 !important;
    min-height: 0 !important;
}
.reorder-questionnaire-shell {
    max-width: 720px;
    margin: 0 auto;
}

.how_old .contanier,
.how_old .container,
.under_18 .container {
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.are_you,
.what_Is_your,
.consult_inner,
.message-box {
    background: var(--gs-white) !important;
    border: 1px solid var(--gs-line) !important;
    border-radius: 20px !important;
    padding: 40px 44px !important;
    box-shadow: 0 4px 28px rgba(15, 15, 20, 0.04) !important;
    max-width: none !important;
}

@media (max-width: 600px) {
    .are_you,
    .what_Is_your,
    .consult_inner,
    .message-box {
        padding: 28px 20px !important;
        border-radius: 16px !important;
    }
}

/* ── Step heading ──
 * Legacy `.how_old .are_you .old_title h2` (specificity 0,3,1) and
 * `.what_Is_your h2` (0,1,1) carry !important font-size:1.25rem, so we
 * scope our overrides to match-or-beat them. */
.old_title h2,
.are_you > h2,
.what_Is_your > h2,
.message-box h2,
.how_old .are_you .old_title h2,
.how_old .are_you .old_title h2:first-of-type,
section.how_old .are_you .what_Is_your h2,
section.how_old .what_Is_your h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -.04em !important;
    line-height: 1.25 !important;
    color: var(--gs-text) !important;
    margin: 0 0 14px !important;
    text-align: left !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Subsequent h2 paragraphs inside .old_title used as sub-text — needs
 * higher specificity than the legacy `.how_old .are_you .old_title h2`. */
.old_title h2:not(:first-of-type),
.old_title h2 + h2,
.how_old .are_you .old_title h2:not(:first-of-type),
.how_old .are_you .old_title h2 + h2,
section.how_old .are_you .old_title h2:not(:first-of-type),
section.how_old .are_you .old_title h2 + h2 {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--gs-body) !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    margin: 0 0 10px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.old_title br {
    display: none !important;
}
.old_title {
    margin-bottom: 26px !important;
}

/* ── Radio options (".under" pattern) ── */
.under {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 28px !important;
}
.under input[type="radio"],
.under input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}
.under label {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 20px !important;
    background: var(--gs-white) !important;
    border: 1.5px solid var(--gs-line) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--gs-text) !important;
    user-select: none !important;
    transition: border-color .15s, background .15s !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    line-height: 1.4 !important;
}
.under label::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gs-line);
    flex-shrink: 0;
    background: var(--gs-white);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.under label:hover {
    border-color: var(--gs-purple) !important;
    background: var(--gs-purple-tint) !important;
}
.under input[type="radio"]:checked + label,
.under input[type="checkbox"]:checked + label {
    border-color: var(--gs-purple) !important;
    background: var(--gs-purple-tint) !important;
}
.under input[type="radio"]:checked + label::before,
.under input[type="checkbox"]:checked + label::before {
    background: var(--gs-purple);
    border-color: var(--gs-purple);
    box-shadow: inset 0 0 0 4px var(--gs-white);
}
.under input[type="checkbox"]:checked + label::before {
    border-radius: 6px;
    box-shadow: inset 0 0 0 2px var(--gs-purple);
}

/* Hide native radio dot fallback when label uses :before pseudo */
.under label[id$="Label"]::before {
    display: inline-block;
}

/* ── Number/text inputs ── */
.weight-inputs,
.input-row {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
}
.weight-inputs input,
.are_you input[type="text"],
.are_you input[type="email"],
.are_you input[type="tel"],
.are_you input[type="number"],
.what_Is_your input[type="text"],
.what_Is_your input[type="number"],
.what_Is_your textarea {
    flex: 1 !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    border: 1.5px solid var(--gs-line) !important;
    border-radius: 10px !important;
    background: var(--gs-white) !important;
    outline: none !important;
    color: var(--gs-text) !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.weight-inputs input:focus,
.are_you input:focus,
.what_Is_your input:focus,
.what_Is_your textarea:focus {
    border-color: var(--gs-purple) !important;
    box-shadow: 0 0 0 3px rgba(51, 40, 191, .1) !important;
}

/* ── Unit toggle (kg / st-lbs, cm / ft-in) ── */
.unit-selector,
.unit_selector {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
}
.unit-selector label,
.unit_selector label {
    flex: none !important;
    padding: 8px 16px !important;
    border: 1.5px solid var(--gs-line) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--gs-muted) !important;
    cursor: pointer !important;
    background: var(--gs-white) !important;
    transition: all .15s !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.unit-selector input[type="radio"],
.unit_selector input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
}
.unit-selector label:has(input:checked),
.unit_selector label:has(input:checked) {
    border-color: var(--gs-purple) !important;
    background: var(--gs-purple-tint) !important;
    color: var(--gs-purple) !important;
}

/* ── Nav buttons (back / next) ── */
.buttons,
.get_started,
.started_button,
.get_btn,
.btnGroup {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 24px !important;
    flex-wrap: wrap !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    max-width: none !important;
    border-radius: 0 !important;
}
/* Higher-specificity scoped overrides — legacy stylesheets define
 * `.how_old .are_you .get_started` (and variants) with !important borders
 * and a 150px max-width that wraps the Back button in a black-bordered box.
 * Match or beat those selectors to neutralise them. */
.how_old .are_you .get_started,
.how_old .are_you .started_button,
.how_old .are_you .started_button .get_btn,
.how_old .what_Is_your .get_started,
.how_old .what_Is_your .started_button,
.how_old .what_Is_your .started_button .get_btn,
section.how_old .get_started,
section.how_old .started_button,
section.how_old .started_button .get_btn,
section.under_18 .get_started,
section.under_18 .started_button,
section.under_18 .started_button .get_btn {
    background: none !important;
    border: none !important;
    max-width: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 24px !important;
}
/* Legacy .get_started:hover paints the whole wrapper green (#b0d136
 * !important) which renders a giant green rectangle behind the CTA on
 * the intro and questionnaire pages. Neutralise the hover state on every
 * surface where we use this wrapper. */
.get_started:hover,
.how_old .are_you .get_started:hover,
section.how_old .get_started:hover,
section.under_18 .get_started:hover,
section.treatment_journey .get_started:hover,
section.consultation .get_started:hover,
.consultation .get_started:hover {
    background: none !important;
    background-color: transparent !important;
    cursor: default !important;
}
.buttons button,
.get_btn button,
.started_button button,
button.back,
button.next,
button#review-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    border: 1.5px solid var(--gs-line) !important;
    background: var(--gs-white) !important;
    color: var(--gs-body) !important;
    cursor: pointer !important;
    transition: all .15s !important;
    line-height: 1 !important;
    width: auto !important;
    box-sizing: border-box !important;
}
/* Tighter padding for the small Back button so it sits naturally alongside
   a wider Next button — matches mockup .btn-back proportions. */
.buttons button.back,
button.back {
    padding: 12px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.buttons button.back,
button.back,
.get_btn button {
    background: var(--gs-white) !important;
    color: var(--gs-body) !important;
    border: 1.5px solid var(--gs-line) !important;
    text-decoration: none !important;
}
/* Inner anchor inside a Back button — strip its own background/border so it
   doesn't render as a nested button. Just inherit colour and remove the
   underline. */
.buttons button.back a,
button.back a,
.get_btn button a {
    background: none !important;
    border: none !important;
    color: inherit !important;
    padding: 0 !important;
    text-decoration: none !important;
    font: inherit !important;
}
.buttons button.back:hover,
button.back:hover {
    border-color: var(--gs-purple) !important;
    color: var(--gs-purple) !important;
}
.buttons button.next,
button.next,
button#review-btn {
    background: var(--gs-green) !important;
    color: var(--gs-white) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(125, 194, 65, .25) !important;
}
.buttons button.next span,
button.next span,
button.next a,
button#review-btn a {
    color: var(--gs-white) !important;
    text-decoration: none !important;
}
.buttons button.next:hover,
button.next:hover,
button#review-btn:hover {
    background: var(--gs-green-dark) !important;
}

/* Disabled state — matches mockup .btn-next:disabled */
.buttons button.next:disabled,
button.next:disabled,
.bottom_btn .btn_next:disabled,
button#nextButton:disabled {
    background: var(--gs-line) !important;
    color: var(--gs-muted) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    border: 1.5px solid var(--gs-line) !important;
}
.buttons button.next:disabled span,
button.next:disabled span,
.bottom_btn .btn_next:disabled span {
    color: var(--gs-muted) !important;
}

/* ── Alternative button wrappers (.bottom_btn) and classes (.btn_back / .btn_next)
 *   used by some medical-history steps. Same visual treatment as .back/.next. ── */
.bottom_btn {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 24px !important;
    flex-wrap: wrap !important;
    background: none !important;
    padding: 0 !important;
}
.bottom_btn .btn_back,
button.btn_back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    border: 1.5px solid var(--gs-line) !important;
    background: var(--gs-white) !important;
    color: var(--gs-body) !important;
    cursor: pointer !important;
    transition: border-color .15s, color .15s !important;
    line-height: 1 !important;
    width: auto !important;
    margin-right: 0 !important;
}
.bottom_btn .btn_back a,
button.btn_back a {
    color: var(--gs-body) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.bottom_btn .btn_back:hover,
button.btn_back:hover {
    border-color: var(--gs-purple) !important;
    color: var(--gs-purple) !important;
    background: var(--gs-white) !important;
}
.bottom_btn .btn_back:hover a {
    color: var(--gs-purple) !important;
}

.bottom_btn .btn_next,
button.btn_next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    border: none !important;
    background: var(--gs-green) !important;
    color: var(--gs-white) !important;
    box-shadow: 0 4px 16px rgba(125, 194, 65, .25) !important;
    cursor: pointer !important;
    transition: background .15s !important;
    line-height: 1 !important;
    width: auto !important;
}
.bottom_btn .btn_next span,
button.btn_next span,
.bottom_btn .btn_next a,
button.btn_next a {
    color: var(--gs-white) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}
.bottom_btn .btn_next:hover,
button.btn_next:hover {
    background: var(--gs-green-dark) !important;
}

/* ── Yes/No toggle (.custom_btn) — used on pregnancy, bariatric, etc.
 * The legacy `.unde` wrapper around .button-group is `display:flex;
 * justify-content:space-between` which shrinks the only-child
 * .button-group to content width. Force both to fill the card. */
.unde,
.unde:has(> .button-group),
.are_you .unde,
.what_Is_your .unde {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}
.button-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 0 28px !important;
    width: 100% !important;
}
button.custom_btn {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 16px 20px !important;
    background: var(--gs-white) !important;
    border: 1.5px solid var(--gs-line) !important;
    border-radius: 12px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--gs-text) !important;
    cursor: pointer !important;
    transition: border-color .15s, background .15s !important;
    text-align: left !important;
    line-height: 1.4 !important;
    position: relative !important;
    max-width: none !important;
}
/* Radio-dot indicator drawn as a ::before so Yes/No reads like the rest of
 * the radio cards even though the legacy markup has no <input>. */
button.custom_btn::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gs-line);
    background: var(--gs-white);
    flex-shrink: 0;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
button.custom_btn.active::before {
    background: var(--gs-purple);
    border-color: var(--gs-purple);
    box-shadow: inset 0 0 0 4px var(--gs-white);
}
button.custom_btn span {
    color: var(--gs-text) !important;
    font-weight: 500 !important;
}
button.custom_btn:hover {
    border-color: var(--gs-purple) !important;
    background: var(--gs-purple-tint) !important;
}
button.custom_btn.active {
    border-color: var(--gs-purple) !important;
    background: var(--gs-purple-tint) !important;
    color: var(--gs-text) !important;
}
button.custom_btn.active span {
    color: var(--gs-text) !important;
}

/* ── "No suitable treatment" page ── */
.message-box {
    text-align: center !important;
    padding: 56px 40px !important;
    border: 1.5px solid #f5c6c2 !important;
    background: var(--gs-white) !important;
}
.message-box .icon {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    background: #fdf0ef !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 24px !important;
    font-size: 28px !important;
}
.message-box h2 {
    color: #c0392b !important;
    text-align: center !important;
    font-size: 26px !important;
    margin-bottom: 14px !important;
}
.message-box p {
    font-size: 15px !important;
    color: var(--gs-body) !important;
    line-height: 1.7 !important;
    margin: 0 auto 16px !important;
    max-width: 440px !important;
}
.message-box .homepage-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gs-muted);
}
.message-box .homepage-link:hover {
    color: var(--gs-purple);
}

/* ── Progress bar (if any) ── */
.progress_bar {
    height: 6px !important;
    background: var(--gs-line) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    margin-bottom: 28px !important;
}
.progress_bar .nambar {
    height: 100% !important;
    background: linear-gradient(90deg, var(--gs-purple), #7c6ef5) !important;
    border-radius: 999px !important;
}
.progress_bar .nambar span {
    display: none !important;
}

/* ── Misc utility overrides ── */
.consultation_section h1,
.consultation_section h2,
.medical_history h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -.04em !important;
    line-height: 1.25 !important;
    color: var(--gs-text) !important;
}

/* ────────────────────────────────────────────────────────────────────
 * Dynamic renderer (questionnaire_dynamic_renderer.php)
 * Markup uses Bootstrap classes — retarget them here.
 * ──────────────────────────────────────────────────────────────────── */
section.dynamic-questionnaire {
    background: transparent !important;
    padding: 56px 24px 80px !important;
}
section.dynamic-questionnaire .container {
    max-width: 720px !important;
}
.dynamic-progress {
    height: 6px !important;
    background: var(--gs-line) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    margin-bottom: 14px !important;
}
.dynamic-progress__bar {
    height: 100% !important;
    background: linear-gradient(90deg, var(--gs-purple), #7c6ef5) !important;
    border-radius: 999px !important;
    transition: width .3s ease !important;
}
section.dynamic-questionnaire .text-muted.small {
    color: var(--gs-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-bottom: 28px !important;
}
.dynamic-question {
    background: var(--gs-white) !important;
    border: 1px solid var(--gs-line) !important;
    border-radius: 20px !important;
    padding: 40px 44px !important;
    box-shadow: 0 4px 28px rgba(15, 15, 20, 0.04) !important;
}
.dynamic-question h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -.04em !important;
    line-height: 1.25 !important;
    color: var(--gs-text) !important;
    margin: 0 0 22px !important;
}
.dynamic-option {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 20px !important;
    background: var(--gs-white) !important;
    border: 1.5px solid var(--gs-line) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--gs-text) !important;
    margin: 0 0 10px 0 !important;
    transition: border-color .15s, background .15s !important;
}
.dynamic-option:hover {
    border-color: var(--gs-purple) !important;
    background: var(--gs-purple-tint) !important;
}
.dynamic-option:has(input:checked) {
    border-color: var(--gs-purple) !important;
    background: var(--gs-purple-tint) !important;
}
.dynamic-option input[type="radio"],
.dynamic-option input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid var(--gs-line) !important;
    background: var(--gs-white) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    transition: all .15s !important;
}
.dynamic-option input[type="checkbox"] {
    border-radius: 6px !important;
}
.dynamic-option input[type="radio"]:checked {
    background: var(--gs-purple) !important;
    border-color: var(--gs-purple) !important;
    box-shadow: inset 0 0 0 4px var(--gs-white) !important;
}
.dynamic-option input[type="checkbox"]:checked {
    background: var(--gs-purple) !important;
    border-color: var(--gs-purple) !important;
}
.dynamic-option .ms-2 {
    margin-left: 0 !important;
}

/* Continue / Back buttons in dynamic renderer */
section.dynamic-questionnaire .btn-primary,
.choose-product-step .btn-primary {
    background: var(--gs-green) !important;
    border: none !important;
    color: var(--gs-white) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(125, 194, 65, .25) !important;
    transition: background .15s !important;
}
section.dynamic-questionnaire .btn-primary:hover,
.choose-product-step .btn-primary:hover {
    background: var(--gs-green-dark) !important;
}
section.dynamic-questionnaire .btn-outline-secondary,
.choose-product-step .btn-outline-secondary {
    background: var(--gs-white) !important;
    color: var(--gs-body) !important;
    border: 1.5px solid var(--gs-line) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    transition: all .15s !important;
    text-decoration: none !important;
}
section.dynamic-questionnaire .btn-outline-secondary:hover,
.choose-product-step .btn-outline-secondary:hover {
    border-color: var(--gs-purple) !important;
    color: var(--gs-purple) !important;
}

/* Form inputs inside dynamic renderer (textarea, text input) */
section.dynamic-questionnaire .form-control,
.choose-product-step .form-control {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    border: 1.5px solid var(--gs-line) !important;
    border-radius: 10px !important;
    background: var(--gs-white) !important;
    outline: none !important;
    color: var(--gs-text) !important;
    transition: border-color .15s, box-shadow .15s !important;
}
section.dynamic-questionnaire .form-control:focus,
.choose-product-step .form-control:focus {
    border-color: var(--gs-purple) !important;
    box-shadow: 0 0 0 3px rgba(51, 40, 191, .1) !important;
}

/* ── Choose product step (product picker cards) ── */
section.choose-product-step {
    background: transparent !important;
    padding: 56px 24px 80px !important;
}
section.choose-product-step .container {
    max-width: 900px !important;
}
section.choose-product-step h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -.04em !important;
    line-height: 1.25 !important;
    color: var(--gs-text) !important;
}
section.choose-product-step .text-muted {
    color: var(--gs-muted) !important;
    font-size: 14px !important;
}
.choose-product-card {
    background: var(--gs-white) !important;
    border: 1.5px solid var(--gs-line) !important;
    border-radius: 16px !important;
    padding: 28px !important;
    color: var(--gs-text) !important;
    transition: all .2s ease !important;
    text-align: left !important;
    cursor: pointer !important;
}
.choose-product-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--gs-purple) !important;
    background: var(--gs-purple-tint) !important;
    box-shadow: 0 12px 32px rgba(51, 40, 191, .12) !important;
    color: var(--gs-text) !important;
}
.choose-product-card h3 {
    color: var(--gs-text) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}
.choose-product-card span {
    color: var(--gs-muted) !important;
    font-size: 13.5px !important;
}

/* ────────────────────────────────────────────────────────────────────
 * Step 0 — Intro page (/get-started)
 * Markup uses .treatment_journey > .treatment_menu cards. Restyle them
 * to match the mockup's numbered step list with a highlighted first card.
 * ──────────────────────────────────────────────────────────────────── */
section.treatment_journey {
    background: transparent !important;
    padding: 56px 24px 80px !important;
    counter-reset: gs-intro-step !important;
}
section.treatment_journey .container {
    max-width: 720px !important;
    margin: 0 auto !important;
}

/* Title block — centered, large heading + sub-text */
section.treatment_journey .title_content {
    max-width: none !important;
    text-align: center !important;
    margin: 0 0 40px !important;
}
section.treatment_journey .treatment_title {
    padding: 0 !important;
    margin-bottom: 16px !important;
}

/* Eyebrow chip injected before H1 */
section.treatment_journey .treatment_title::before {
    content: "Weight loss consultation";
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gs-green-dark);
    background: var(--gs-green-light);
    border: 1px solid rgba(125, 194, 65, .25);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}
section.treatment_journey .treatment_title .title_content h1,
section.treatment_journey h1 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    letter-spacing: -.04em !important;
    line-height: 1.15 !important;
    color: var(--gs-text) !important;
    text-align: center !important;
    margin: 0 0 12px !important;
}
section.treatment_journey .treatment_content {
    padding: 0 !important;
}
section.treatment_journey .treatment_content .content_text p {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--gs-body) !important;
    line-height: 1.65 !important;
    text-align: center !important;
    max-width: 560px !important;
    margin: 0 auto !important;
}

/* Step cards — numbered via CSS counter, first highlighted */
section.treatment_journey .treatment_menu {
    border-radius: 16px !important;
    border: 1.5px solid var(--gs-line) !important;
    background: var(--gs-white) !important;
    max-width: none !important;
    margin: 0 0 12px !important;
    padding: 20px 24px !important;
    counter-increment: gs-intro-step !important;
}
/* The first .treatment_menu is the second <div> sibling (after .title_content),
   so :first-of-type doesn't match. Use adjacent-sibling combinator. */
section.treatment_journey .title_content + .treatment_menu {
    border-color: var(--gs-purple) !important;
    background: var(--gs-purple-tint) !important;
}
section.treatment_journey .treatment_menu .menu_about {
    width: 100% !important;
}
section.treatment_journey .treatment_menu .about_content {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
}

/* Replace the icon box with a numbered circle */
section.treatment_journey .treatment_menu .about_logo .logo_box {
    background: var(--gs-purple) !important;
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--gs-white) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
section.treatment_journey .title_content + .treatment_menu .about_logo .logo_box {
    background: var(--gs-green) !important;
}
section.treatment_journey .treatment_menu .about_logo .logo_box::before {
    content: counter(gs-intro-step);
}
section.treatment_journey .treatment_menu .about_logo .logo_box .logo_icon,
section.treatment_journey .treatment_menu .about_logo .logo_box i {
    display: none !important;
}

/* Step text */
section.treatment_journey .treatment_menu .about_you {
    flex: 1 !important;
    padding-top: 4px !important;
}
section.treatment_journey .treatment_menu .about_you .about_titlr {
    margin-bottom: 4px !important;
}
section.treatment_journey .treatment_menu .about_you .about_titlr b {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--gs-text) !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
section.treatment_journey .treatment_menu .about_you .about_text span {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: var(--gs-body) !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
}

/* "Get started" CTA — left-aligned, matching the mockup's .nav-btns
   default flex-start. The wrapper sits inside the 720px container. */
section.treatment_journey .get_started {
    margin: 28px 0 0 !important;
    padding: 0 !important;
    background: none !important;
    max-width: none !important;
    border-radius: 0 !important;
}
section.treatment_journey .started_button .get_btn {
    display: flex !important;
    justify-content: flex-start !important;
    padding: 0 !important;
}
section.treatment_journey .started_button .get_btn a {
    text-decoration: none !important;
    display: inline-block !important;
}
section.treatment_journey .started_button .get_btn button {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background: var(--gs-green) !important;
    color: var(--gs-white) !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(125, 194, 65, .25) !important;
    transition: background .15s !important;
    max-width: none !important;
    cursor: pointer !important;
}
section.treatment_journey .started_button .get_btn button:hover {
    background: var(--gs-green-dark) !important;
}
section.treatment_journey .excellent_content {
    display: none !important;
}

/* ────────────────────────────────────────────────────────────────────
 * Step 1 — Consent / Terms page (/get-started/consultation)
 * Markup uses .consultation > .bar + .tab-buttons + .consent_title
 * + .agree_content > #tab1 > <ul><li>. Restyle to match the mockup's
 * eyebrow + heading + checkbox-style consent cards.
 * ──────────────────────────────────────────────────────────────────── */
section.consultation {
    background: transparent !important;
    padding: 56px 24px 80px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
}

/* Hide the legacy progress bar and tab buttons (mockup omits them) */
section.consultation .bar,
section.consultation .terms_content.tab-buttons {
    display: none !important;
}

/* Eyebrow + heading */
section.consultation .consent_title {
    max-width: none !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    text-align: left !important;
}
section.consultation .consent_title::before {
    content: "Step 1: Terms";
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gs-purple);
    background: var(--gs-purple-tint);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}
section.consultation .consent_title h2 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -.04em !important;
    line-height: 1.25 !important;
    color: var(--gs-text) !important;
    text-align: left !important;
    margin: 0 0 10px !important;
}
section.consultation .consent_title::after {
    content: "Please read and confirm each statement to continue.";
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    color: var(--gs-body);
    line-height: 1.65;
    margin-top: 6px;
}

/* Consent items as bordered cards with green check */
section.consultation .agree_content {
    max-width: none !important;
    height: auto !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    display: block !important;
}
section.consultation .agree_content #tab1 {
    display: block !important;
}
section.consultation .agree_content #tab2,
section.consultation .agree_content #tab3 {
    display: none !important;
}
section.consultation .agree_content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
section.consultation .agree_content ul li {
    list-style: none !important;
    position: relative !important;
    background: var(--gs-white) !important;
    border: 1.5px solid var(--gs-line) !important;
    border-radius: 12px !important;
    padding: 16px 20px 16px 56px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    color: var(--gs-body) !important;
    transition: border-color .15s, background .15s !important;
}
section.consultation .agree_content ul li:hover {
    border-color: var(--gs-purple) !important;
    background: var(--gs-purple-tint) !important;
}

/* Pre-checked indicator (the user implicitly agrees by clicking the CTA) */
section.consultation .agree_content ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 20px !important;
    top: 18px !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    background: var(--gs-green) !important;
    border: 1.5px solid var(--gs-green) !important;
    box-sizing: border-box !important;
}
section.consultation .agree_content ul li::after {
    content: "" !important;
    position: absolute !important;
    left: 26px !important;
    top: 23px !important;
    width: 10px !important;
    height: 6px !important;
    border-left: 2px solid var(--gs-white) !important;
    border-bottom: 2px solid var(--gs-white) !important;
    transform: rotate(-45deg) !important;
    background: none !important;
}

/* Override the legacy ::after overlays (which positioned a SVG checkmark
   using absolute coordinates) so they don't render the old icon. */
section.consultation .agree_content .agree_menu .menu_list::after,
section.consultation .agree_content .agree_menu .menu_lis::after,
section.consultation .agree_content .agree_menu .menu_li::after,
section.consultation .agree_content .agree_menu .menu_l::after,
section.consultation .agree_content .agree_menu .menu_::after {
    background: none !important;
    background-image: none !important;
    width: 0 !important;
    height: 0 !important;
}
section.consultation .agree_content ul li a {
    color: var(--gs-purple) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* "Agree and start consultation" CTA */
section.consultation .get_started {
    background: none !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
section.consultation .started_button .get_btn {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0 !important;
    gap: 10px !important;
}
section.consultation .started_button .get_btn a {
    text-decoration: none !important;
}
section.consultation .started_button .get_btn button {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background: var(--gs-green) !important;
    color: var(--gs-white) !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(125, 194, 65, .25) !important;
    max-width: none !important;
    cursor: pointer !important;
    transition: background .15s !important;
}
section.consultation .started_button .get_btn button:hover {
    background: var(--gs-green-dark) !important;
}
/* Hide the loose FA arrow (it sits outside the button) — the mockup shows
   the arrow inside the green pill. We add a chevron via ::after below. */
section.consultation .started_button .get_btn .fa-arrow-right {
    display: none !important;
}
section.consultation .started_button .get_btn button::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>") center / contain no-repeat;
}

/* Make sure the (now-hidden) tab handlers don't break the layout when
   the active class is on the wrapper. */
section.consultation .agree_content.tab-content {
    display: block !important;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    section.treatment_journey,
    section.consultation {
        padding: 32px 18px 60px !important;
    }
    section.treatment_journey .treatment_title .title_content h1,
    section.treatment_journey h1 {
        font-size: 28px !important;
    }
    section.consultation .consent_title h2 {
        font-size: 24px !important;
    }
    section.consultation .started_button .get_btn {
        justify-content: stretch !important;
        width: 100% !important;
    }
    section.consultation .started_button .get_btn a,
    section.consultation .started_button .get_btn button {
        width: 100% !important;
    }
}
