/*
 * Best Lift — assets/css/quote-builder.css
 * Purpose: Smart Quote Builder page (quote-builder.php) — hero chips,
 *          form + side panel layout, live summary, elevator-type cards,
 *          why-us cards, closing banner.
 * Loaded by the page itself, AFTER main.css / forms.css, so it can use every
 * token from variables.css / main.css (--bl-line, --bl-grad-solid, ...).
 * Reuses main.css: .home-section, .home-grid, .home-steps, .home-faq,
 * .consultation-banner, .btn--ghost, .pp-wide.
 * Prefix: qb-  (nothing here touches other pages).
 */

/* ---------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------- */
.qb-hero .container {
    max-width: 820px;
}

.qb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.36rem 1rem;
    border: 1px solid rgba(75, 0, 114, 0.22);
    border-radius: 999px;
    background: rgba(75, 0, 114, 0.06);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.qb-eyebrow i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-accent);
}

body.lang-bn .qb-eyebrow {
    letter-spacing: 0;
    text-transform: none;
}

.qb-hero h1 {
    font-size: clamp(2.1rem, 4.8vw, 3.2rem);
    font-weight: 800;
}

.qb-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.qb-chips li {
    position: relative;
    padding: 0.45rem 1rem 0.45rem 2.2rem;
    border: 1px solid var(--bl-line, #E8DCF0);
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(75, 0, 114, 0.06);
    color: var(--color-text-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

.qb-chips li::before {
    content: "\2713";
    position: absolute;
    left: 0.7rem;
    top: 50%;
    display: grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: -0.55rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: #FFFFFF;
    font-size: 0.62rem;
    font-weight: 800;
}

/* ---------------------------------------------------------------------
 * Form + side panel layout
 * (replaces the old 640px .quote-builder__inner limit for this page)
 * ------------------------------------------------------------------- */
.qb-wrap {
    max-width: var(--pp-wide, 1480px);
}

.qb-layout {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
    align-items: start;
}

.qb-main {
    min-width: 0;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

@media (min-width: 1000px) {
    .qb-layout {
        grid-template-columns: minmax(0, 640px) minmax(0, 360px);
        justify-content: center;
        gap: clamp(2rem, 4vw, 3.5rem);
    }

    .qb-main {
        margin: 0;
    }

    .qb-aside {
        position: sticky;
        top: 7.5rem;
    }
}

.qb-aside {
    display: grid;
    gap: var(--space-md);
}

.qb-card {
    padding: 1.5rem 1.5rem 1.6rem;
    border: 1px solid var(--bl-line, #E8DCF0);
    border-radius: var(--bl-radius-card, 24px);
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(75, 0, 114, 0.06);
}

.qb-card h2 {
    margin: 0 0 0.9rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.qb-card p {
    margin: 0 0 0.9rem;
}

.qb-checks {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.qb-checks li {
    position: relative;
    padding-left: 1.8rem;
}

.qb-checks li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.1rem;
    display: grid;
    place-items: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
}

.qb-card--help {
    border-left: 5px solid var(--color-accent);
    background: linear-gradient(100deg, #FBF8FD 0%, #FFFFFF 100%);
}

.qb-help__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    min-height: 44px;
    color: var(--color-primary);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.qb-help__link svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.qb-help__link:hover,
.qb-help__link:focus-visible {
    color: var(--color-accent);
}

/* ---------------------------------------------------------------------
 * Live summary on step 5
 * ------------------------------------------------------------------- */
.qb-summary {
    margin-bottom: var(--space-md);
    padding: 1rem 1.1rem;
    border: 1px solid var(--bl-line, #E8DCF0);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    background: #FBF8FD;
}

.qb-summary__title {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.lang-bn .qb-summary__title {
    letter-spacing: 0;
    text-transform: none;
}

.qb-summary dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem 1.5rem;
    margin: 0;
}

@media (min-width: 520px) {
    .qb-summary dl {
        grid-template-columns: 1fr 1fr;
    }
}

.qb-summary dl > div {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.2rem 0;
    border-bottom: 1px dashed var(--bl-line, #E8DCF0);
}

.qb-summary dt {
    color: var(--color-text-body);
    font-size: 0.85rem;
}

.qb-summary dd {
    margin: 0;
    color: var(--color-text-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.qb-privacy {
    margin: 0 0 var(--space-xs);
    color: var(--color-text-body);
    font-size: 0.82rem;
}

/* ---------------------------------------------------------------------
 * Which lift fits? — type cards
 * ------------------------------------------------------------------- */
.qb-types {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: 1fr;
}

@media (min-width: 640px)  { .qb-types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .qb-types { grid-template-columns: repeat(4, 1fr); } }

.qb-type {
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.5rem 1.5rem;
    border: 1px solid var(--bl-line, #E8DCF0);
    border-radius: var(--bl-radius-card, 24px);
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(75, 0, 114, 0.05);
}

.qb-type__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    border-radius: 17px;
    background: var(--bl-grad-solid, linear-gradient(100deg, #4B0072, #0F8247));
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgba(75, 0, 114, 0.2);
}

.qb-type__icon svg {
    width: 26px;
    height: 26px;
}

.qb-type h3 {
    margin: 0 0 0.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.qb-type p {
    margin: 0 0 1rem;
}

.qb-type__best {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 130, 71, 0.1);
    color: var(--color-accent);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

/* ---------------------------------------------------------------------
 * Why request a quote — cards
 * ------------------------------------------------------------------- */
.qb-why {
    position: relative;
    overflow: hidden;
    padding: 1.7rem 1.5rem 1.6rem;
    border: 1px solid var(--bl-line, #E8DCF0);
    border-radius: var(--bl-radius-card, 24px);
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(75, 0, 114, 0.05);
}

.qb-why::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--bl-grad, linear-gradient(100deg, #4B0072, #12A05A));
}

.qb-why__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: rgba(75, 0, 114, 0.09);
    color: var(--color-primary);
}

.qb-why__icon svg {
    width: 26px;
    height: 26px;
}

.qb-why h3 {
    margin: 0 0 0.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.qb-why p {
    margin: 0;
}

/* ---------------------------------------------------------------------
 * Closing banner
 * ------------------------------------------------------------------- */
.qb-cta {
    margin-bottom: var(--space-lg);
}

.qb-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
}

.qb-cta p {
    max-width: 560px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
}

.qb-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.qb-cta .btn--accent {
    background: #FFFFFF;
    color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 12px 26px rgba(0, 0, 0, 0.25);
}

/* ---------------------------------------------------------------------
 * Motion
 * ------------------------------------------------------------------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .qb-type,
    .qb-why,
    .qb-chips li {
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .qb-type:hover,
    .qb-why:hover {
        transform: translateY(-4px);
        border-color: rgba(75, 0, 114, 0.28);
        box-shadow: 0 16px 36px rgba(75, 0, 114, 0.14);
    }

    .qb-chips li:hover {
        transform: translateY(-2px);
        border-color: rgba(75, 0, 114, 0.28);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .qb-eyebrow i {
        animation: qb-ping 2s ease-out infinite;
    }
}

@keyframes qb-ping {
    0%   { box-shadow: 0 0 0 0 rgba(15, 130, 71, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(15, 130, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 130, 71, 0); }
}

/* ---------------------------------------------------------------------
 * Small phones
 * ------------------------------------------------------------------- */
@media (max-width: 480px) {
    .qb-card {
        padding: 1.2rem 1.1rem 1.3rem;
    }

    .qb-chips li {
        font-size: 0.82rem;
    }
}

/* =====================================================================
 * v52 — Quote Builder motion + interaction polish
 * Pairs with forms.js v52 (floors stepper, progress fill).
 * Everything animated sits inside prefers-reduced-motion: no-preference.
 * ===================================================================== */

/* ---- Dropdowns (native select, nicer look) ---- */
.quote-builder .form-field select,
.quote-builder .form-field input[type="text"],
.quote-builder .form-field input[type="email"],
.quote-builder .form-field input[type="tel"],
.quote-builder .form-field input[type="number"] {
    border-radius: 14px;
    background-color: #FFFFFF;
}
.quote-builder .form-field select {
    min-height: 54px;
    font-weight: 600;
    background-position: right 1.1rem center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, background-position 0.25s ease;
}
.quote-builder .form-field select:hover { background-color: #FBF8FD; }
.quote-builder .form-field select:focus { background-position: right 1.1rem center; background-color: #FFFFFF; }
/* a real option chosen -> green accent so progress feels rewarding */
.quote-builder .form-field select:required:valid:not(:focus) {
    border-color: rgba(15, 130, 71, 0.55);
    background-color: #F6FBF8;
}

/* Chrome/Edge customizable select: styled open list (falls back to native elsewhere) */
@supports (appearance: base-select) {
    .quote-builder .form-field select,
    .quote-builder .form-field select::picker(select) { appearance: base-select; }
    .quote-builder .form-field select { background-image: none; }
    .quote-builder .form-field select::picker-icon {
        color: var(--color-primary);
        transition: rotate 0.25s ease;
    }
    .quote-builder .form-field select:open::picker-icon { rotate: 180deg; }
    .quote-builder .form-field select::picker(select) {
        margin-top: 6px;
        padding: 6px;
        border: 1.5px solid #dcdce3;
        border-radius: 16px;
        background: #FFFFFF;
        box-shadow: 0 18px 40px rgba(13, 2, 26, 0.18);
    }
    .quote-builder .form-field select option {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.7rem 0.9rem;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .quote-builder .form-field select option:hover,
    .quote-builder .form-field select option:focus-visible { background: #F3EAF9; color: var(--color-primary); }
    .quote-builder .form-field select option:checked { background: rgba(75, 0, 114, 0.1); color: var(--color-primary); }
    .quote-builder .form-field select option:checked::after { content: "\2713"; margin-left: auto; color: var(--color-accent); font-weight: 800; }
    .quote-builder .form-field select option::checkmark { display: none; }
    .quote-builder .form-field select option:first-child { color: #8a8a96; }
    @media (prefers-reduced-motion: no-preference) {
        .quote-builder .form-field select::picker(select) {
            opacity: 0;
            transform: translateY(-6px);
            transition: opacity 0.2s ease, transform 0.2s ease, display 0.2s allow-discrete, overlay 0.2s allow-discrete;
        }
        .quote-builder .form-field select::picker(select):popover-open { opacity: 1; transform: none; }
        @starting-style {
            .quote-builder .form-field select::picker(select):popover-open { opacity: 0; transform: translateY(-6px); }
        }
    }
}

/* ---- Floors stepper ---- */
.qb-stepper {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
}
.qb-stepper input[type="number"] {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qb-stepper input[type="number"]::-webkit-outer-spin-button,
.qb-stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qb-stepper__btn {
    flex: none;
    width: 52px;
    border: 1.5px solid #dcdce3;
    border-radius: 14px;
    background: #FFFFFF;
    color: var(--color-primary);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.qb-stepper__btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: #FFFFFF; }
.qb-stepper__btn:active { transform: scale(0.92); }
.qb-stepper__btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* ---- Progress: fill line + step counter ---- */
.quote-builder__progress::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    height: 2px;
    width: calc((100% - 32px) * var(--qb-fill, 0));
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: translateY(-50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.qb-stepcount {
    margin: -0.9rem 0 var(--space-md);
    text-align: center;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
body.lang-bn .qb-stepcount { letter-spacing: 0; text-transform: none; }

/* ---- Card + buttons ---- */
.quote-builder-page .quote-builder__form { border-top: 0; }
.quote-builder__nav .btn { position: relative; overflow: hidden; }
.quote-builder__nav .btn:hover { transform: translateY(-2px); }
.quote-builder__nav .btn:active { transform: translateY(0) scale(0.98); }

.quote-builder__nav button[type="submit"]::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
}

/* ---- Success message ---- */
.js-lead-alert.form-alert--success {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.4rem 1.5rem;
}
.js-lead-alert.form-alert--success::before {
    content: "\2713";
    flex: none;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: #FFFFFF;
    font-size: 1.4rem;
    font-weight: 800;
}

/* ---- Blurred drifting blobs behind the form area ---- */
.quote-builder-page .quote-builder { position: relative; overflow: hidden; }
.quote-builder-page .quote-builder > .container { position: relative; z-index: 1; }
.quote-builder-page .quote-builder::before,
.quote-builder-page .quote-builder::after {
    content: "";
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
}
.quote-builder-page .quote-builder::before { top: -120px; left: -100px; background: rgba(75, 0, 114, 0.35); }
.quote-builder-page .quote-builder::after  { bottom: -140px; right: -80px; background: rgba(15, 130, 71, 0.30); }

/* ---- Side cards ---- */
.qb-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.qb-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(75, 0, 114, 0.13); }
.qb-help__link { transition: transform 0.2s ease, color 0.2s ease; }
.qb-help__link:hover { transform: translateX(4px); }


/* =====================================================================
 * Motion (only when the visitor hasn't asked for reduced motion)
 * ===================================================================== */
@media (prefers-reduced-motion: no-preference) {

    @keyframes qb-rise      { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
    @keyframes qb-in-fwd    { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
    @keyframes qb-in-back   { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
    @keyframes qb-card-in   { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
    @keyframes qb-pop       { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
    @keyframes qb-shake     { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
    @keyframes qb-bump      { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
    @keyframes qb-nudge     { 0%, 100% { box-shadow: 0 0 0 0 rgba(75, 0, 114, 0.45); } 60% { box-shadow: 0 0 0 10px rgba(75, 0, 114, 0); } }
    @keyframes qb-shine     { from { left: -60%; } to { left: 130%; } }
    @keyframes qb-drift-a   { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(60px, 40px); } }
    @keyframes qb-drift-b   { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-60px, -30px); } }
    @keyframes qb-check-in  { from { opacity: 0; transform: translateX(-10px) scale(0.6); } to { opacity: 1; transform: none; } }

    /* page load */
    .qb-eyebrow, .qb-hero h1, .qb-hero p { animation: qb-rise 0.7s ease both; }
    .qb-hero h1 { animation-delay: 0.08s; }
    .qb-hero p  { animation-delay: 0.16s; }
    .qb-chips li { animation: qb-rise 0.6s ease both; }
    .qb-chips li:nth-child(1) { animation-delay: 0.25s; }
    .qb-chips li:nth-child(2) { animation-delay: 0.33s; }
    .qb-chips li:nth-child(3) { animation-delay: 0.41s; }

    .quote-builder__progress { animation: qb-rise 0.6s ease 0.1s both; }
    .quote-builder-page .quote-builder__form { animation: qb-rise 0.7s ease 0.2s both; }

    .qb-aside > .qb-card { animation: qb-rise 0.7s ease both; }
    .qb-aside > .qb-card:nth-child(1) { animation-delay: 0.3s; }
    .qb-aside > .qb-card:nth-child(2) { animation-delay: 0.42s; }

    .qb-checks li { animation: qb-check-in 0.5s ease both; }
    .qb-checks li:nth-child(1) { animation-delay: 0.55s; }
    .qb-checks li:nth-child(2) { animation-delay: 0.65s; }
    .qb-checks li:nth-child(3) { animation-delay: 0.75s; }
    .qb-checks li:nth-child(4) { animation-delay: 0.85s; }

    .quote-builder-page .quote-builder::before { animation: qb-drift-a 16s ease-in-out infinite; }
    .quote-builder-page .quote-builder::after  { animation: qb-drift-b 19s ease-in-out infinite; }

    /* direction-aware step slide (forms.js sets data-dir on the form) */
    .quote-builder__form[data-dir="fwd"]  .quote-builder__step.is-active { animation: qb-in-fwd 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .quote-builder__form[data-dir="back"] .quote-builder__step.is-active { animation: qb-in-back 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }


    /* completed step ticks pop */
    .quote-builder__progress li.is-complete::after { animation: qb-pop 0.4s ease both; }
    .quote-builder__progress li.is-active { animation: qb-pop 0.4s ease both; }


    /* invalid field */
    .qb-shake { animation: qb-shake 0.45s ease; }

    /* after picking a card, gently nudge "Next" */
    .quote-builder__step.has-choice [data-step-next] { animation: qb-nudge 1.1s ease 0.15s 2; }

    /* final submit shimmer */
    .quote-builder__nav button[type="submit"]::before { animation: qb-shine 3.2s ease-in-out 1s infinite; }

    /* summary rows reveal one by one on step 5 */
    .quote-builder__step.is-active .qb-summary dl > div { animation: qb-rise 0.45s ease both; }
    .quote-builder__step.is-active .qb-summary dl > div:nth-child(1) { animation-delay: 0.15s; }
    .quote-builder__step.is-active .qb-summary dl > div:nth-child(2) { animation-delay: 0.22s; }
    .quote-builder__step.is-active .qb-summary dl > div:nth-child(3) { animation-delay: 0.29s; }
    .quote-builder__step.is-active .qb-summary dl > div:nth-child(4) { animation-delay: 0.36s; }

    /* success tick */
    .js-lead-alert.form-alert--success::before { animation: qb-pop 0.5s ease 0.1s both; }
}

/* =====================================================================
 * v53 — Borders, edges & surfaces refinement (layout/content unchanged)
 * ===================================================================== */
.quote-builder-page {
    --qb-border: #E4D9EC;
    --qb-border-strong: #CDBAD9;
    --qb-ring: 0 0 0 4px rgba(75, 0, 114, 0.14);
}

/* ---- Main card: hairline border, softer layered shadow, rounder ---- */
.quote-builder-page .quote-builder__form {
    border: 1px solid var(--qb-border);
    border-radius: 22px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 2px 4px rgba(13, 2, 26, 0.04),
        0 22px 50px -12px rgba(75, 0, 114, 0.22);
}
.quote-builder-page .quote-builder__form::before { height: 5px; }

/* legend divider fades out instead of a hard line */
.quote-builder-page .quote-builder__step legend {
    border-bottom: 0;
    position: relative;
}
.quote-builder-page .quote-builder__step legend::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--qb-border-strong), var(--qb-border) 55%, transparent);
}
.quote-builder-page .quote-builder__nav {
    border-top: 0;
    position: relative;
}
.quote-builder-page .quote-builder__nav::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--qb-border) 20%, var(--qb-border) 80%, transparent);
}

/* ---- Fields ---- */
.quote-builder-page .quote-builder .form-field input[type="text"],
.quote-builder-page .quote-builder .form-field input[type="email"],
.quote-builder-page .quote-builder .form-field input[type="tel"],
.quote-builder-page .quote-builder .form-field input[type="number"],
.quote-builder-page .quote-builder .form-field select {
    border: 1.5px solid var(--qb-border-strong);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(13, 2, 26, 0.04) inset;
}
.quote-builder-page .quote-builder .form-field input:hover,
.quote-builder-page .quote-builder .form-field select:hover {
    border-color: #9F7DB8;
}
.quote-builder-page .quote-builder .form-field input:focus,
.quote-builder-page .quote-builder .form-field select:focus {
    border-color: var(--color-primary);
    box-shadow: var(--qb-ring);
}
.quote-builder-page .quote-builder .form-field label {
    font-weight: 700;
    color: var(--color-text-heading);
}
.quote-builder-page .form-field__hint {
    display: block;
    margin-top: 0.5rem;
    padding-left: 0.7rem;
    border-left: 3px solid var(--qb-border-strong);
    color: var(--color-text-body);
    line-height: 1.5;
}

/* ---- Buttons ---- */
.quote-builder-page .quote-builder__nav .btn { border-radius: 999px; }
.quote-builder-page .quote-builder__nav .btn--outline {
    border: 2px solid var(--color-primary);
    background: #FFFFFF;
    color: var(--color-primary);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.quote-builder-page .quote-builder__nav .btn--outline:hover {
    background: rgba(75, 0, 114, 0.07);
    box-shadow: 0 8px 18px rgba(75, 0, 114, 0.14);
}
.quote-builder-page .quote-builder__nav .btn--primary {
    border: 2px solid transparent;
    background: linear-gradient(135deg, #1B0533 0%, var(--color-primary) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 22px rgba(75, 0, 114, 0.30);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.quote-builder-page .quote-builder__nav .btn--primary:hover {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 14px 28px rgba(75, 0, 114, 0.38);
    filter: brightness(1.12);
}
.quote-builder-page .quote-builder__nav .btn--accent {
    border: 2px solid transparent;
    background: linear-gradient(135deg, #0B6B3A 0%, var(--color-accent) 60%, #17A862 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 26px rgba(15, 130, 71, 0.34);
}

/* ---- Progress circles: clearer rings, thicker line ---- */
.quote-builder-page .quote-builder__progress::before,
.quote-builder-page .quote-builder__progress::after { height: 3px; border-radius: 3px; }
.quote-builder-page .quote-builder__progress::before { background: #E0D4EA; }
.quote-builder-page .quote-builder__progress li {
    border: 2px solid var(--qb-border-strong);
    color: var(--color-primary);
    font-weight: 800;
    box-shadow: 0 0 0 5px #F5F1F9, 0 4px 10px rgba(75, 0, 114, 0.08);
}
.quote-builder-page .quote-builder__progress li.is-active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 5px #F5F1F9, 0 0 0 8px rgba(75, 0, 114, 0.20), 0 8px 18px rgba(75, 0, 114, 0.30);
}
.quote-builder-page .quote-builder__progress li.is-complete {
    box-shadow: 0 0 0 5px #F5F1F9, 0 6px 14px rgba(15, 130, 71, 0.28);
}

/* ---- Floors stepper ---- */
.quote-builder-page .qb-stepper__btn {
    border: 1.5px solid var(--qb-border-strong);
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(75, 0, 114, 0.08);
}
/* ---- Side cards ---- */
.quote-builder-page .qb-card {
    position: relative;
    border: 1px solid var(--qb-border);
    border-radius: 22px;
    box-shadow: 0 2px 4px rgba(13, 2, 26, 0.03), 0 16px 36px -14px rgba(75, 0, 114, 0.20);
}
.quote-builder-page .qb-card:not(.qb-card--help)::before {
    content: "";
    position: absolute;
    top: 0; left: 1.5rem; right: 1.5rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.quote-builder-page .qb-card--help {
    border-left: 5px solid var(--color-accent);
}
.quote-builder-page .qb-checks li + li {
    padding-top: 0.75rem;
    border-top: 1px dashed var(--qb-border);
}
.quote-builder-page .qb-checks li::before { box-shadow: 0 3px 8px rgba(15, 130, 71, 0.3); }
.quote-builder-page .qb-checks li + li::before { top: 0.85rem; }

/* ---- Step 5 summary box ---- */
.quote-builder-page .qb-summary {
    border: 1px solid var(--qb-border);
    border-left: 4px solid var(--color-accent);
    border-radius: 16px;
    background: linear-gradient(135deg, #FBF8FD, #FFFFFF);
    box-shadow: 0 6px 16px -8px rgba(75, 0, 114, 0.2);
}
.quote-builder-page .qb-summary dl > div { border-bottom: 1px solid var(--qb-border); }

/* spam challenge box */
.quote-builder-page .quote-builder .form-field:has(input[name="spam_answer"]),
.quote-builder-page .quote-builder .spam-challenge {
    border: 1px dashed var(--qb-border-strong);
    border-radius: 14px;
    background: #FBF8FD;
}

/* ---- Edge case: remove old height jitter on tiny screens ---- */
@media (max-width: 480px) {
    .quote-builder-page .quote-builder__form { border-radius: 18px; }
}

/* =====================================================================
 * v54 — Open dropdown list polish (Chrome/Edge customizable select)
 * Chevron icon, icon tile per option, hidden placeholder row, scroll,
 * accent bar on hover/selected, smooth open. Native list elsewhere.
 * ===================================================================== */
@supports (appearance: base-select) {
    .quote-builder-page .quote-builder .form-field select {
        padding-right: 1rem;
        align-items: center;
    }
    /* chevron instead of the default filled triangle */
    .quote-builder-page .quote-builder .form-field select::picker-icon {
        content: "";
        flex: none;
        width: 14px;
        height: 14px;
        margin-left: auto;
        background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272.6%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27m6%209%206%206%206-6%27/%3E%3C/svg%3E") center / contain no-repeat;
        transition: rotate 0.25s ease;
    }
    .quote-builder-page .quote-builder .form-field select:open::picker-icon { rotate: 180deg; }

    /* the list */
    .quote-builder-page .quote-builder .form-field select::picker(select) {
        padding: 8px;
        max-height: min(340px, 60vh);
        overflow-y: auto;
        border: 1.5px solid #CDBAD9;
        border-radius: 18px;
        background: #FFFFFF;
        box-shadow: 0 2px 6px rgba(13, 2, 26, 0.06), 0 24px 48px -8px rgba(75, 0, 114, 0.30);
        scrollbar-width: thin;
        scrollbar-color: #CDBAD9 transparent;
    }

    /* placeholder row ("Select…") only shows while it is the chosen one */
    .quote-builder-page .quote-builder .form-field select option[value=""]:not(:checked) { display: none; }

    .quote-builder-page .quote-builder .form-field select option {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        margin: 2px 0;
        padding: 0.55rem 2.4rem 0.55rem 0.55rem;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.97rem;
        color: var(--color-text-heading);
        transition: background 0.15s ease, color 0.15s ease, padding-left 0.18s ease;
    }
    /* icon tile */
    .quote-builder-page .quote-builder .form-field select option::before {
        content: "";
        flex: none;
        width: 38px;
        height: 38px;
        border-radius: 11px;
        background-color: rgba(75, 0, 114, 0.08);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 20px;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }
    .quote-builder-page .quote-builder .form-field select option[value=""]::before { display: none; }
    .quote-builder-page .quote-builder .form-field select option[value=""] { padding-left: 0.9rem; color: #8A8A96; }

    .quote-builder-page .quote-builder .form-field select option:hover,
    .quote-builder-page .quote-builder .form-field select option:focus-visible {
        background: #F6EFFB;
        color: var(--color-primary);
        outline: none;
    }
    .quote-builder-page .quote-builder .form-field select option:hover::before { background-color: rgba(75, 0, 114, 0.15); transform: scale(1.06); }

    .quote-builder-page .quote-builder .form-field select option:checked {
        background: linear-gradient(90deg, rgba(75, 0, 114, 0.11), rgba(15, 130, 71, 0.06));
        color: var(--color-primary);
        box-shadow: inset 3px 0 0 var(--color-accent);
    }
    .quote-builder-page .quote-builder .form-field select option:checked::before { background-color: rgba(15, 130, 71, 0.16); }
    /* round tick on the right */
    .quote-builder-page .quote-builder .form-field select option:checked::after {
        content: "\2713";
        position: absolute;
        right: 0.7rem;
        top: 50%;
        margin: 0;
        display: grid;
        place-items: center;
        width: 1.35rem;
        height: 1.35rem;
        border-radius: 50%;
        background: var(--color-accent);
        color: #FFFFFF;
        font-size: 0.75rem;
        font-weight: 800;
        translate: 0 -50%;
    }
    .quote-builder-page .quote-builder .form-field select option[value=""]:checked::after { display: none; }
    .quote-builder-page .quote-builder .form-field select option[value=""]:checked { box-shadow: none; background: transparent; }

    /* per-option icons */
    .quote-builder-page .quote-builder .form-field select option[value="Passenger Lift"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2%27/%3E%3Ccircle%20cx=%279%27%20cy=%277%27%20r=%274%27/%3E%3Cpath%20d=%27M22%2021v-2a4%204%200%200%200-3-3.87%27/%3E%3Cpath%20d=%27M16%203.13a4%204%200%200%201%200%207.75%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Hospital / Bed Lift"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Crect%20x=%273%27%20y=%273%27%20width=%2718%27%20height=%2718%27%20rx=%274%27/%3E%3Cpath%20d=%27M12%208v8M8%2012h8%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Cargo / Freight Lift"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M21%208%2012%203%203%208v8l9%205%209-5z%27/%3E%3Cpath%20d=%27m3%208%209%205%209-5M12%2013v8%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Home Lift"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27m3%2011%209-8%209%208%27/%3E%3Cpath%20d=%27M5%2010v10h14V10%27/%3E%3Cpath%20d=%27M10%2020v-6h4v6%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Residential"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Crect%20x=%274%27%20y=%273%27%20width=%2716%27%20height=%2718%27%20rx=%272%27/%3E%3Cpath%20d=%27M9%207h2M13%207h2M9%2011h2M13%2011h2M9%2015h2M13%2015h2%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Commercial"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Crect%20x=%273%27%20y=%277%27%20width=%2718%27%20height=%2713%27%20rx=%272%27/%3E%3Cpath%20d=%27M9%207V5a2%202%200%200%201%202-2h2a2%202%200%200%201%202%202v2M3%2013h18%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Hospital"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Crect%20x=%273%27%20y=%273%27%20width=%2718%27%20height=%2718%27%20rx=%274%27/%3E%3Cpath%20d=%27M12%208v8M8%2012h8%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Industrial"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M3%2021V10l6%204v-4l6%204V4h6v17z%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Private House"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27m3%2011%209-8%209%208%27/%3E%3Cpath%20d=%27M5%2010v10h14V10%27/%3E%3Cpath%20d=%27M10%2020v-6h4v6%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Planning Stage"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M12%2020h9%27/%3E%3Cpath%20d=%27M16.5%203.5a2.1%202.1%200%200%201%203%203L7%2019l-4%201%201-4z%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Under Construction"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27m12%202%2010%205-10%205L2%207z%27/%3E%3Cpath%20d=%27m2%2017%2010%205%2010-5%27/%3E%3Cpath%20d=%27m2%2012%2010%205%2010-5%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Structure Completed"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Crect%20x=%274%27%20y=%273%27%20width=%2716%27%20height=%2718%27%20rx=%272%27/%3E%3Cpath%20d=%27M9%2021v-4h6v4M9%207h.01M15%207h.01M9%2011h.01M15%2011h.01%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Ready for Elevator Installation"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Ccircle%20cx=%2712%27%20cy=%2712%27%20r=%2710%27/%3E%3Cpath%20d=%27m9%2012%202%202%204-4%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Existing Building"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27m3%2011%209-8%209%208%27/%3E%3Cpath%20d=%27M5%2010v10h14V10%27/%3E%3C/svg%3E"); }
    .quote-builder-page .quote-builder .form-field select option[value="Renovation / Modernization"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%234B0072%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M14.7%206.3a4%204%200%200%200-5.4%205.4L3%2018l3%203%206.3-6.3a4%204%200%200%200%205.4-5.4l-2.5%202.5-2.4-.6-.6-2.4z%27/%3E%3C/svg%3E"); }

    @media (prefers-reduced-motion: no-preference) {
        @keyframes qb-opt-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
        .quote-builder-page .quote-builder .form-field select:open option { animation: qb-opt-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
        .quote-builder-page .quote-builder .form-field select:open option:nth-child(2) { animation-delay: 0.03s; }
        .quote-builder-page .quote-builder .form-field select:open option:nth-child(3) { animation-delay: 0.06s; }
        .quote-builder-page .quote-builder .form-field select:open option:nth-child(4) { animation-delay: 0.09s; }
        .quote-builder-page .quote-builder .form-field select:open option:nth-child(5) { animation-delay: 0.12s; }
        .quote-builder-page .quote-builder .form-field select:open option:nth-child(6) { animation-delay: 0.15s; }
        .quote-builder-page .quote-builder .form-field select:open option:nth-child(7) { animation-delay: 0.18s; }
    }
}

/* closed select: match the new radius/typography */
.quote-builder-page .quote-builder .form-field select { font-size: 1rem; }

/* Dropdown list always opens BELOW the select (no flip-to-top) */
@supports (appearance: base-select) {
    .quote-builder-page .quote-builder .form-field select::picker(select) {
        position-area: block-end span-inline-end;
        position-try-order: normal;
        position-try-fallbacks: none;
        margin: 6px 0 0;
        min-width: anchor-size(width);
    }
}

/* Side panel removed — form is a single centered column */
.qb-layout { grid-template-columns: minmax(0, 640px); justify-content: center; }
.qb-main { margin: 0 auto; }
@media (min-width: 1000px) {
    .qb-layout { grid-template-columns: minmax(0, 640px); justify-content: center; }
    .qb-main { margin: 0 auto; }
}

/* =====================================================================
 * v55 — Lower sections: "Which lift fits", "How your quote works",
 * "Why request a quote", "Quote questions, answered".
 * CSS only (markup untouched), scoped to .quote-builder-page.
 * ===================================================================== */

/* ---- Section headings: gradient underline bar ---- */
.quote-builder-page .home-section > h2 { position: relative; padding-bottom: 1.1rem; }
.quote-builder-page .home-section > h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: translateX(-50%);
    -webkit-text-fill-color: initial;
}
.quote-builder-page .home-section { padding-top: clamp(2.4rem, 5vw, 4rem); }

/* ---------------------------------------------------------------------
 * 1) Which lift fits — type cards
 * ------------------------------------------------------------------- */
.quote-builder-page .qb-type {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--qb-border, #E4D9EC);
    border-radius: 24px;
    background:
        radial-gradient(120% 70% at 100% 0%, rgba(75, 0, 114, 0.06), transparent 60%),
        #FFFFFF;
    box-shadow: 0 2px 4px rgba(13, 2, 26, 0.03), 0 18px 36px -18px rgba(75, 0, 114, 0.25);
}
/* top accent that slides in on hover */
.quote-builder-page .qb-type::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.quote-builder-page .qb-type:hover::before { transform: scaleX(1); }

.quote-builder-page .qb-type__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    box-shadow: 0 0 0 6px rgba(75, 0, 114, 0.08), 0 10px 20px rgba(75, 0, 114, 0.25);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.quote-builder-page .qb-type:hover .qb-type__icon {
    transform: translateY(-2px) rotate(-6deg) scale(1.06);
    box-shadow: 0 0 0 8px rgba(15, 130, 71, 0.12), 0 14px 26px rgba(75, 0, 114, 0.3);
}
.quote-builder-page .qb-type h3 { font-size: 1.2rem; }
.quote-builder-page .qb-type__best {
    position: relative;
    width: 100%;
    align-self: stretch;
    margin-top: auto;
    padding: 0.7rem 0 0 1.1rem;
    border-radius: 0;
    background: none;
    border-top: 1px dashed var(--qb-border-strong, #CDBAD9);
}
.quote-builder-page .qb-type__best::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(0.7rem + 0.5em);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(15, 130, 71, 0.18);
}

/* ---------------------------------------------------------------------
 * 2) How your quote works — timeline cards
 * ------------------------------------------------------------------- */
.quote-builder-page .home-steps__item {
    border: 1px solid var(--qb-border, #E4D9EC);
    border-radius: 24px;
    box-shadow: 0 2px 4px rgba(13, 2, 26, 0.03), 0 18px 36px -18px rgba(75, 0, 114, 0.25);
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.quote-builder-page .home-steps__item::before {
    box-shadow: 0 0 0 5px #F3EAF9, 0 0 0 6px rgba(75, 0, 114, 0.18), 0 8px 16px rgba(75, 0, 114, 0.3);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quote-builder-page .home-steps__item:hover {
    transform: translateY(-5px);
    border-color: rgba(75, 0, 114, 0.3);
    box-shadow: 0 22px 40px -16px rgba(75, 0, 114, 0.35);
}
.quote-builder-page .home-steps__item:hover::before { transform: scale(1.12) rotate(-8deg); }
/* last step = the goal: green with a tick */
.quote-builder-page .home-steps__item:last-child::before {
    content: "\2713";
    background: linear-gradient(135deg, #0B6B3A, var(--color-accent) 60%, #17A862);
    box-shadow: 0 0 0 5px #E6F4EC, 0 0 0 6px rgba(15, 130, 71, 0.3), 0 8px 16px rgba(15, 130, 71, 0.35);
}
.quote-builder-page .home-steps__item h3 { font-size: 1.12rem; }
@media (min-width: 1024px) {
    .quote-builder-page .home-steps__item:not(:last-child)::after {
        opacity: 0.55;
        background: repeating-linear-gradient(90deg, var(--color-primary) 0 6px, transparent 6px 12px);
        background-size: 24px 100%;
    }
}

/* ---------------------------------------------------------------------
 * 3) Why request a quote — feature cards
 * ------------------------------------------------------------------- */
.quote-builder-page .qb-why {
    border: 1px solid var(--qb-border, #E4D9EC);
    border-radius: 24px;
    background:
        radial-gradient(90% 60% at 100% 100%, rgba(15, 130, 71, 0.07), transparent 65%),
        #FFFFFF;
    box-shadow: 0 2px 4px rgba(13, 2, 26, 0.03), 0 18px 36px -18px rgba(75, 0, 114, 0.25);
}
.quote-builder-page .qb-why::before { height: 5px; }
.quote-builder-page .qb-why__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(75, 0, 114, 0.12), rgba(15, 130, 71, 0.12));
    box-shadow: inset 0 0 0 1px rgba(75, 0, 114, 0.12);
    transition: background 0.3s ease, color 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quote-builder-page .qb-why:hover .qb-why__icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #FFFFFF;
    transform: translateY(-2px) rotate(-6deg) scale(1.06);
}
.quote-builder-page .qb-why h3 { font-size: 1.18rem; }

/* ---------------------------------------------------------------------
 * 4) FAQ — round toggle, accent bar when open, smooth open/close
 * ------------------------------------------------------------------- */
.quote-builder-page .home-faq { gap: 0.85rem; }
.quote-builder-page .home-faq details {
    position: relative;
    border: 1px solid var(--qb-border, #E4D9EC);
    border-radius: 20px;
    padding: 0 1.4rem 0 1.5rem;
    box-shadow: 0 2px 4px rgba(13, 2, 26, 0.03), 0 10px 24px -14px rgba(75, 0, 114, 0.22);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.quote-builder-page .home-faq details:hover {
    border-color: #B99ACE;
    transform: translateY(-2px);
}
.quote-builder-page .home-faq details[open] {
    border-color: rgba(75, 0, 114, 0.35);
    background: linear-gradient(135deg, #FBF8FD, #FFFFFF 60%);
    box-shadow: inset 4px 0 0 var(--color-accent), 0 16px 32px -14px rgba(75, 0, 114, 0.28);
}
.quote-builder-page .home-faq summary {
    min-height: 60px;
    font-size: 1.02rem;
    transition: color 0.2s ease;
}
.quote-builder-page .home-faq summary:hover { color: var(--color-primary); }
.quote-builder-page .home-faq summary::after,
.quote-builder-page .home-faq details[open] summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(75, 0, 114, 0.08);
    color: var(--color-primary);
    font-size: 1.35rem;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.25s ease, color 0.25s ease;
}
.quote-builder-page .home-faq summary:hover::after { background: rgba(75, 0, 114, 0.16); }
.quote-builder-page .home-faq details[open] summary::after {
    transform: rotate(135deg);
    background: var(--color-accent);
    color: #FFFFFF;
}
.quote-builder-page .home-faq details p {
    padding-right: 3rem;
    margin: 0 0 1.3rem;
    line-height: 1.7;
}

/* smooth height animation where supported (Chrome/Edge 131+) */
@supports selector(::details-content) {
    .quote-builder-page .home-faq { interpolate-size: allow-keywords; }
    @media (prefers-reduced-motion: no-preference) {
        .quote-builder-page .home-faq details::details-content {
            block-size: 0;
            overflow: clip;
            transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
        }
        .quote-builder-page .home-faq details[open]::details-content { block-size: auto; }
        .quote-builder-page .home-faq details[open] p { animation: qb-faq-in 0.4s ease 0.05s both; }
        @keyframes qb-faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
    }
}

/* ---------------------------------------------------------------------
 * Hover lifts (types + why share the same feel) and scroll reveal
 * ------------------------------------------------------------------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .quote-builder-page .qb-type:hover,
    .quote-builder-page .qb-why:hover {
        transform: translateY(-6px);
        border-color: rgba(75, 0, 114, 0.3);
        box-shadow: 0 26px 44px -16px rgba(75, 0, 114, 0.36);
    }
}

/* Cards fade/slide in as they scroll into view (progressive: older
   browsers just show them normally). */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        @keyframes qb-reveal { from { opacity: 0; transform: translateY(34px) scale(0.97); } to { opacity: 1; transform: none; } }
        .quote-builder-page .home-section > h2,
        .quote-builder-page .home-section__lede,
        .quote-builder-page .qb-type,
        .quote-builder-page .home-steps__item,
        .quote-builder-page .qb-why,
        .quote-builder-page .home-faq details {
            animation: qb-reveal linear backwards;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

/* =====================================================================
 * v56 — Lower sections: extra motion
 * staggered scroll reveal, drawing heading bar, floating icons, card
 * shine on hover, "floor ping" along the steps, flowing connector,
 * shimmering top bars, CTA pulse. All inside no-preference.
 * ===================================================================== */
@media (prefers-reduced-motion: no-preference) {

    @keyframes qb-bob      { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
    @keyframes qb-sweep    { from { left: -80%; } to { left: 140%; } }
    @keyframes qb-flow     { from { background-position: 0 0; } to { background-position: 24px 0; } }
    @keyframes qb-floor-ping {
        0%        { outline: 2px solid rgba(75, 0, 114, 0.45); outline-offset: 2px; }
        35%, 100% { outline: 2px solid rgba(75, 0, 114, 0);    outline-offset: 15px; }
    }
    @keyframes qb-floor-ping-green {
        0%        { outline: 2px solid rgba(15, 130, 71, 0.55); outline-offset: 2px; }
        35%, 100% { outline: 2px solid rgba(15, 130, 71, 0);    outline-offset: 15px; }
    }
    @keyframes qb-bar-shimmer { from { background-position: 0% 0; } to { background-position: 100% 0; } }
    @keyframes qb-cta-pulse {
        0%   { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 12px 26px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(255, 255, 255, 0.35); }
        70%  { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 12px 26px rgba(0, 0, 0, 0.25), 0 0 0 16px rgba(255, 255, 255, 0); }
        100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 12px 26px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(255, 255, 255, 0); }
    }

    /* ---- floating icons (uses `translate`, so hover `transform` still works) ---- */
    .quote-builder-page .qb-type__icon { animation: qb-bob 4.5s ease-in-out infinite; }
    .quote-builder-page .qb-type:nth-child(2) .qb-type__icon { animation-delay: -1.1s; }
    .quote-builder-page .qb-type:nth-child(3) .qb-type__icon { animation-delay: -2.2s; }
    .quote-builder-page .qb-type:nth-child(4) .qb-type__icon { animation-delay: -3.3s; }

    .quote-builder-page .qb-why__icon { animation: qb-bob 5s ease-in-out infinite; }
    .quote-builder-page .qb-why:nth-child(2) .qb-why__icon { animation-delay: -1.6s; }
    .quote-builder-page .qb-why:nth-child(3) .qb-why__icon { animation-delay: -3.2s; }

    /* ---- shine sweep across a card on hover ---- */
    .quote-builder-page .qb-type::after,
    .quote-builder-page .qb-why::after {
        content: "";
        position: absolute;
        top: 0; bottom: 0;
        left: -80%;
        width: 45%;
        background: linear-gradient(100deg, transparent, rgba(75, 0, 114, 0.07), transparent);
        transform: skewX(-20deg);
        pointer-events: none;
    }
    .quote-builder-page .qb-type:hover::after,
    .quote-builder-page .qb-why:hover::after { animation: qb-sweep 0.9s ease; }

    /* ---- "Why" top bar slowly shimmers ---- */
    .quote-builder-page .qb-why::before {
        background-size: 220% 100%;
        animation: qb-bar-shimmer 5s ease-in-out infinite alternate;
    }

    /* ---- steps: connector flows, floors ping one after another ---- */
    @media (min-width: 1024px) {
        .quote-builder-page .home-steps__item:not(:last-child)::after {
            animation: qb-flow 1.2s linear infinite;
        }
    }
    .quote-builder-page .home-steps__item::before { animation: qb-floor-ping 4.8s ease-out infinite; }
    .quote-builder-page .home-steps__item:nth-child(2)::before { animation-delay: 1.2s; }
    .quote-builder-page .home-steps__item:nth-child(3)::before { animation-delay: 2.4s; }
    .quote-builder-page .home-steps__item:nth-child(4)::before { animation-name: qb-floor-ping-green; animation-delay: 3.6s; }

    /* ---- FAQ: question nudges right on hover ---- */
    .quote-builder-page .home-faq summary { transition: color 0.2s ease, padding-left 0.25s ease; }
    .quote-builder-page .home-faq summary:hover { padding-left: 0.35rem; }

    /* ---- closing banner button pulse ---- */
    .quote-builder-page .qb-cta .btn--accent { animation: qb-cta-pulse 2.4s ease-out infinite; }
    .quote-builder-page .qb-cta .btn--accent:hover { animation: none; }
}

/* ---- scroll reveal: stagger within a row + heading bar draws itself ---- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        @keyframes qb-bar-draw { from { scale: 0 1; } to { scale: 1 1; } }

        .quote-builder-page .qb-type,
        .quote-builder-page .home-steps__item,
        .quote-builder-page .qb-why,
        .quote-builder-page .home-faq details {
            animation-range: entry var(--qb-d, 0%) entry calc(40% + var(--qb-d, 0%));
        }
        .quote-builder-page .qb-type:nth-child(2),
        .quote-builder-page .home-steps__item:nth-child(2),
        .quote-builder-page .qb-why:nth-child(2),
        .quote-builder-page .home-faq details:nth-child(2) { --qb-d: 8%; }
        .quote-builder-page .qb-type:nth-child(3),
        .quote-builder-page .home-steps__item:nth-child(3),
        .quote-builder-page .qb-why:nth-child(3),
        .quote-builder-page .home-faq details:nth-child(3) { --qb-d: 16%; }
        .quote-builder-page .qb-type:nth-child(4),
        .quote-builder-page .home-steps__item:nth-child(4),
        .quote-builder-page .home-faq details:nth-child(4) { --qb-d: 24%; }
        .quote-builder-page .home-faq details:nth-child(n+5) { --qb-d: 30%; }

        .quote-builder-page .home-section > h2::after {
            animation: qb-bar-draw linear both;
            animation-timeline: view();
            animation-range: entry 25% entry 80%;
        }
    }
}