    :root {
        --brand-blue: #063088;
        --brand-orange: #fa9f15;
        /*        --ink: #111827;  */
        --ink: #063088;
        --muted: #6b7280;
        --bg: #f8fafc;
        --card: #ffffff;
        --ring-bg: #e5e7eb;
        --border: #063088;
    }

    .sr-wrap {
        max-width: 920px;
        margin: 8px auto;
        padding: 12px;
        background: var(--bg);
        border-radius: 18px
    }

    .sr-title {
        margin: 0 0 8px;
        font-size: clamp(24px, 3vw, 34px);
        color: var(--brand-blue)
    }

    .sr-intro {
        margin: 0 0 16px;
        color: var(--muted)
    }

    /* Progress */
    .srw-progress {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 10px 0 18px
    }

    .srw-progress-bar {
        flex: 1;
        height: 10px;
        background: #eef2f7;
        border-radius: 999px;
        overflow: hidden
    }

    .srw-progress-fill {
        display: block;
        height: 100%;
        width: var(--pct, 0%);
        background: linear-gradient(90deg, var(--brand-orange), #ffc56b);
        transition: width .4s ease
    }

    .srw-progress-meta {
        min-width: 120px;
        text-align: right;
        color: var(--muted);
        font-size: 14px
    }

    /* Steps */
    .srw-form {
        position: relative
    }

    .srw-step {
        display: none;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity .25s ease, transform .25s ease;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 16px
    }

    .srw-step.is-active {
        display: block;
        opacity: 1;
        transform: none
    }

    .srw-q {
        margin: 0 0 10px;
        color: var(--ink);
        font-weight: 700
    }

    /* Option cards */
    .srw-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        align-items: stretch;
    }

    @media (max-width:720px) {
        .srw-options {
            grid-template-columns: 1fr
        }
    }

    /* Default layout: radio | MAIN on top, SUB below */
    .srw-card {
        height: 100%;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "radio main"
            ".     sub";
        column-gap: 12px;
        row-gap: 8px;
        align-items: start;
        align-content: start;

        padding: 16px 18px;
        border: 2px solid #063088;
        border-radius: 12px;
        background: #fff;
        cursor: pointer;
        user-select: none;
        transition: box-shadow .2s ease, transform .15s ease;
    }

    .srw-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(6, 48, 136, .15);
    }

    .srw-card input[type="radio"] {
        grid-area: radio;
        align-self: baseline;
        /* lines up nicely with text */
        margin-top: 0;
        align-self: start;
        /* You can try this later if CRM allows:
     accent-color: #063088; */
    }

    /* Native radio (keep default look; just place/align it) */
    .srw-card input[type="radio"] {
        grid-area: radio;
        align-self: center;
        margin-top: 0;
        align-self: start;
        /* If your CRM allows, you can try brand color again later: 
     accent-color: #063088; */
    }

    /* Top line = short header */
    /* MAIN (headline on top) */
    .srw-card-main {
        grid-area: main;
        margin: 0;
        font-weight: 700;
        color: #063088;
        font-size: 15px;
        line-height: 1.35;
        border-bottom: 1px solid #063088;
        padding-bottom: 6px;
        align-self: start;
    }

    /* SUB (detail/examples below) */
    .srw-card-sub {
        grid-area: sub;
        margin: 0;
        font-size: 13px;
        line-height: 1.45;
        color: #063088;
        opacity: .9;
        align-self: start;
        /*        border-top: 1px solid #063088;
        padding-top: 8px;*/
    }

    /* Selected / active card */
    .srw-card:has(input:checked) {
        background: #eef2ff;
        box-shadow: 0 0 0 4px rgba(6, 48, 136, .25);
    }

    /* Controls */
    .srw-controls {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-top: 14px
    }

    .sr-btn {
        background: var(--brand-blue);
        color: #fff;
        border: none;
        border-radius: 999px;
        padding: 12px 18px;
        font-weight: 600;
        cursor: pointer
    }

    .sr-btn[disabled] {
        opacity: .5;
        cursor: not-allowed
    }

    /* === Grid layout safeguard for Back/Next buttons === */
    .srw-controls {
        grid-column: 1 / -1;
        /* makes sure it spans the full grid width */
        display: flex !important;
        /* force flex, even inside grid parents */
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .srw-controls .sr-btn {
        flex: 0 0 auto;
        min-width: 140px;
        /* keeps consistent button sizing */
    }

    /* Maintain clean left-right flow */
    #srw-prev {
        order: 1;
        margin-right: auto;
    }

    #srw-next,
    #srw-submit {
        order: 2;
        margin-left: 0;
    }

    .sr-validation {
        min-height: 18px;
        color: #b45309;
        font-size: 14px;
        padding-left: 4px;
        margin-top: 6px
    }

    /* Results layout */
    .sr-result {
        margin-top: 22px;
        display: grid;
        gap: 20px;
        grid-template-columns: 280px 1fr;
        align-items: center
    }

    @media (max-width:820px) {
        .sr-result {
            grid-template-columns: 1fr
        }
    }

    .sr-gauge {
        position: relative;
        width: 260px;
        height: 260px;
        margin: auto;
        isolation: isolate
    }

    .sr-gauge-ring {
        --pct: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: conic-gradient(var(--brand-orange) calc(var(--pct)*1%), var(--ring-bg) 0);
        display: grid;
        place-items: center;
        box-shadow: 0 4px 16px rgba(0, 0, 0, .08) inset, 0 2px 10px rgba(0, 0, 0, .06)
    }

    .sr-gauge::after {
        content: "";
        position: absolute;
        inset: 18px;
        border-radius: 50%;
        background: var(--card);
        z-index: 1
    }

    .sr-gauge-center {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 2;
        text-align: center
    }

    .sr-score {
        font-size: 58px;
        font-weight: 800;
        color: var(--brand-blue);
        line-height: 1
    }

    .sr-band {
        font-size: 14px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-top: 4px
    }

    .sr-band-range {
        font-size: 13px;
        color: var(--muted);
        margin-top: 2px;
        opacity: 0.9;
        transition: opacity 0.3s ease;
    }

    .sr-band-range.congrats {
        color: #fa9f15;          /* your accent orange */
        font-weight: 800;        /* strong emphasis */
        letter-spacing: 0.3px;   /* helps readability at small sizes */
        text-transform: none;    /* keep natural case */
        margin-top: 3px;
    }
    
    /* Better visual flow for the result details */
    .sr-meaning {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        /* consistent spacing between title, text, and details */
        color: var(--ink);
    }

    .sr-meaning h3 {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .sr-meaning p {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
        color: var(--muted);
    }

    .sr-details {
        background: #f9fafc;
        border-left: 3px solid var(--brand-blue);
        padding: 1rem 1.25rem;
        border-radius: 8px;
        text-align: left;
        /* left-justify the content */
    }

    .sr-details h4 {
        margin-top: 0;
        font-size: 1.05rem;
        color: var(--brand-blue);
        font-weight: 700;
    }

    .sr-details ul {
        margin: 0.25rem 0 0.75rem 1rem;
        padding: 0;
    }

    .sr-details li {
        margin: 0.4rem 0;
        line-height: 1.5;
    }

    /* Expanded results details */
    .sr-details {
        margin-top: 14px;
    }

    .sr-details h4 {
        margin: 16px 0 8px;
        color: var(--brand-blue);
        font-size: 16px;
    }

    .sr-details ul {
        margin: 0 0 8px 18px;
        padding: 0;
    }

    .sr-details li {
        margin: 6px 0;
        color: var(--ink);
        line-height: 1.45;
    }

    .sr-ctas {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 10px
    }

    .sr-cta {
        display: inline-block;
        border: 1px solid var(--brand-blue);
        color: var(--brand-blue);
        padding: 10px 14px;
        border-radius: 999px;
        text-decoration: none;
        font-weight: 600
    }

    .sr-cta:hover {
        background: #eef2ff
    }

    .sr-cta-primary {
        background: var(--brand-blue);
        color: #fff;
        border-color: var(--brand-blue)
    }

    .sr-cta-primary:hover {
        filter: brightness(1.05)
    }

    .sr-edit-wrap {
        margin-top: 10px;
        text-align: center;
    }

    .sr-cta-secondary {
        background: transparent;
        border: 1px solid var(--muted);
        color: var(--muted);
        font-weight: 500;
    }

    .sr-cta-secondary:hover {
        border-color: var(--brand-blue);
        color: var(--brand-blue);
    }

    /* Accessibility helpers */
    #sr-result {
        scroll-margin-top: 96px
    }

    @media (max-width:820px) {
    .sr-meaning { margin-top: 40px; }
    }

@media (prefers-reduced-motion: reduce) {
        .srw-progress-fill {
            transition: none
        }

        .srw-step {
            transition: none
        }
    }
