/* =================================================================
   Mighty Quote v4 — Typeform-style conversational layer.
   Sits on top of quote-v2.css brand tokens. Uses .mqv4__* namespace.
   ================================================================= */

:root {
    --mqv4-navy: #0A1E5E;
    --mqv4-navy-deep: #061343;
    --mqv4-blue: #2563EB;
    --mqv4-blue-soft: #EFF4FF;
    --mqv4-blue-soft-2: #DBEAFE;
    --mqv4-ink: #0F172A;
    --mqv4-muted: #475569;
    --mqv4-mute-2: #94A3B8;
    --mqv4-line: #E2E8F0;
    --mqv4-bg: #FAFBFD;
    --mqv4-white: #FFFFFF;
    --mqv4-success: #16A34A;
    --mqv4-success-soft: #DCFCE7;
    --mqv4-error: #DC2626;
    --mqv4-ease: cubic-bezier(.22, 1, .36, 1);
    --mqv4-radius: 18px;
    --mqv4-radius-lg: 24px;
    --mqv4-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -16px rgba(10, 30, 94, .18);
    --mqv4-shadow-lg: 0 22px 60px -20px rgba(10, 30, 94, .35), 0 8px 20px -8px rgba(10, 30, 94, .12);
}

/* Hide v3 sidebar / progress bar — we own the chrome now */
.mqv2 .mqv2__layout,
.mqv2 .mqv2__sidebar,
.mqv2 .mqv2__progress,
.mqv2 .mqv2__main { display: block; background: transparent; box-shadow: none; border: 0; padding: 0; margin: 0; max-width: none; }
.mqv2 .mqv2__sidebar { display: none !important; }
.mqv2 .mqv2__progress { display: none !important; }

/* Stage / canvas */
.mqv4 {
    position: relative;
    min-height: 78vh;
    background:
        radial-gradient(1100px 480px at 8% 0%, rgba(37, 99, 235, .07), transparent 70%),
        radial-gradient(900px 460px at 100% 100%, rgba(10, 30, 94, .06), transparent 70%),
        var(--mqv4-bg);
    border-radius: var(--mqv4-radius-lg);
    overflow: hidden;
    box-shadow: var(--mqv4-shadow);
    isolation: isolate;
    font-family: inherit;
    color: var(--mqv4-ink);
}

/* Trust strip */
.mqv4__trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 14px 24px;
    font-size: 12.5px;
    color: var(--mqv4-muted);
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--mqv4-line);
    flex-wrap: wrap;
}
.mqv4__trust span { display: inline-flex; align-items: center; gap: 6px; }
.mqv4__trust strong { color: var(--mqv4-navy); font-weight: 600; }
.mqv4__trust-dot { color: var(--mqv4-mute-2); }

/* Progress dots */
.mqv4__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 24px 4px;
    flex-wrap: wrap;
}
.mqv4__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mqv4-line);
    transition: all 260ms var(--mqv4-ease);
}
.mqv4__dot.is-done { background: var(--mqv4-blue); }
.mqv4__dot.is-current { background: var(--mqv4-navy); width: 22px; border-radius: 4px; }

/* Top bar with back + skip */
.mqv4__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px 0;
    min-height: 36px;
}
.mqv4__back {
    background: none;
    border: 0;
    color: var(--mqv4-muted);
    font: inherit;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 180ms var(--mqv4-ease);
}
.mqv4__back:hover { background: rgba(15, 23, 42, .06); }
.mqv4__back[hidden] { visibility: hidden; }
.mqv4__skip {
    background: none;
    border: 0;
    color: var(--mqv4-muted);
    font: inherit;
    font-size: 13.5px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
}
.mqv4__skip:hover { color: var(--mqv4-navy); background: rgba(15, 23, 42, .06); }

/* Stage holds the sliding screens */
.mqv4__stage {
    position: relative;
    min-height: 60vh;
    padding: 16px 24px 140px;
    overflow: hidden;
}

/* Screen — one question per view */
.mqv4__screen {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 0 24px;
    animation: mqv4-in 300ms var(--mqv4-ease) both;
}
.mqv4__screen.is-leaving {
    animation: mqv4-out 220ms var(--mqv4-ease) both;
}
.mqv4__screen.is-back-in { animation: mqv4-back-in 300ms var(--mqv4-ease) both; }
.mqv4__screen.is-back-out { animation: mqv4-back-out 220ms var(--mqv4-ease) both; }

@keyframes mqv4-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes mqv4-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-24px); }
}
@keyframes mqv4-back-in {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes mqv4-back-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(24px); }
}

.mqv4__qnum {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mqv4-blue);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    animation: mqv4-fade 600ms var(--mqv4-ease) 100ms both;
}
.mqv4__qnum svg { width: 12px; height: 12px; }

.mqv4__q {
    font-size: clamp(26px, 4.2vw, 38px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.015em;
    color: var(--mqv4-ink);
    margin: 0 0 10px;
    animation: mqv4-fade-up 560ms var(--mqv4-ease) 80ms both;
}
.mqv4__sub {
    color: var(--mqv4-muted);
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 28px;
    max-width: 580px;
    animation: mqv4-fade-up 560ms var(--mqv4-ease) 160ms both;
}
@keyframes mqv4-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mqv4-fade { from { opacity: 0; } to { opacity: 1; } }

.mqv4__body {
    animation: mqv4-fade-up 560ms var(--mqv4-ease) 240ms both;
}

/* Tiles (single/multi choice) */
.mqv4__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.mqv4__tiles--narrow { grid-template-columns: repeat(auto-fit, minmax(160px, 240px)); }
.mqv4__tile {
    position: relative;
    background: var(--mqv4-white);
    border: 2px solid var(--mqv4-line);
    border-radius: var(--mqv4-radius);
    padding: 22px 20px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: var(--mqv4-ink);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 96px;
    transition: transform 200ms var(--mqv4-ease), box-shadow 200ms var(--mqv4-ease),
                border-color 180ms var(--mqv4-ease), background 180ms var(--mqv4-ease);
}
.mqv4__tile:hover { border-color: var(--mqv4-blue); box-shadow: 0 12px 28px -16px rgba(37, 99, 235, .35); transform: translateY(-2px); }
.mqv4__tile:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.mqv4__tile:active { transform: scale(.97); }
.mqv4__tile.is-selected,
.mqv4__tile.is-pulsing { border-color: var(--mqv4-blue); background: var(--mqv4-blue-soft); }
.mqv4__tile.is-pulsing { animation: mqv4-pulse 280ms var(--mqv4-ease) both; }
@keyframes mqv4-pulse { 0% { transform: scale(1); } 50% { transform: scale(.97); } 100% { transform: scale(1); } }

.mqv4__tile-key {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--mqv4-blue-soft);
    color: var(--mqv4-blue);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mqv4__tile.is-selected .mqv4__tile-key { background: var(--mqv4-blue); color: white; }
.mqv4__tile-label {
    font-size: 17px;
    font-weight: 600;
    color: var(--mqv4-ink);
}
.mqv4__tile-meta {
    font-size: 13.5px;
    color: var(--mqv4-muted);
    line-height: 1.45;
}
.mqv4__tile-svg { margin-bottom: 6px; }
.mqv4__tile-svg svg { width: 80px; height: 50px; display: block; }
.mqv4__tile-check {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mqv4-blue);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
}
.mqv4__tile.is-selected .mqv4__tile-check,
.mqv4__tile.is-pulsing .mqv4__tile-check { display: inline-flex; animation: mqv4-pop 240ms var(--mqv4-ease) both; }
@keyframes mqv4-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* Big number input */
.mqv4__numwrap {
    position: relative;
    margin-bottom: 8px;
    max-width: 480px;
}
.mqv4__num {
    width: 100%;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    border: 0;
    border-bottom: 3px solid var(--mqv4-line);
    background: transparent;
    color: var(--mqv4-ink);
    padding: 14px 80px 14px 0;
    outline: 0;
    transition: border-color 200ms var(--mqv4-ease);
    font-family: inherit;
    letter-spacing: -.02em;
    -moz-appearance: textfield;
}
.mqv4__num::-webkit-outer-spin-button,
.mqv4__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mqv4__num:focus { border-bottom-color: var(--mqv4-blue); }
.mqv4__num-suffix {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mqv4-muted);
    font-size: 18px;
    font-weight: 500;
}
.mqv4__numhint {
    font-size: 13px;
    color: var(--mqv4-mute-2);
    margin: 6px 0 24px;
}

/* Text input */
.mqv4__textwrap { max-width: 520px; margin-bottom: 8px; }
.mqv4__text {
    width: 100%;
    font-size: 22px;
    font-weight: 500;
    border: 0;
    border-bottom: 2px solid var(--mqv4-line);
    background: transparent;
    color: var(--mqv4-ink);
    padding: 12px 0;
    outline: 0;
    font-family: inherit;
    transition: border-color 200ms var(--mqv4-ease);
}
.mqv4__text:focus { border-bottom-color: var(--mqv4-blue); }
.mqv4__textarea {
    width: 100%;
    font-size: 17px;
    border: 2px solid var(--mqv4-line);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--mqv4-white);
    font-family: inherit;
    resize: vertical;
    min-height: 110px;
    outline: 0;
    transition: border-color 200ms var(--mqv4-ease), box-shadow 200ms var(--mqv4-ease);
}
.mqv4__textarea:focus { border-color: var(--mqv4-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }

/* Colour swatch grid */
.mqv4__swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.mqv4__swatch-tile {
    background: var(--mqv4-white);
    border: 2px solid var(--mqv4-line);
    border-radius: 14px;
    padding: 14px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font: inherit;
    color: var(--mqv4-ink);
    transition: all 180ms var(--mqv4-ease);
}
.mqv4__swatch-tile:hover { border-color: var(--mqv4-blue); transform: translateY(-2px); }
.mqv4__swatch-tile.is-selected { border-color: var(--mqv4-blue); background: var(--mqv4-blue-soft); }
.mqv4__swatch-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .25), inset 0 -3px 6px rgba(0, 0, 0, .12);
}
.mqv4__swatch-dot--light { box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .25), inset 0 0 0 1px rgba(15, 23, 42, .15); }
.mqv4__swatch-name { font-size: 13px; font-weight: 500; text-align: center; line-height: 1.25; }

/* Continue button + Yes/Skip row + Pill row */
.mqv4__actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.mqv4__continue {
    background: var(--mqv4-navy);
    color: white;
    border: 0;
    padding: 14px 28px;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 22px -10px rgba(10, 30, 94, .5);
    transition: transform 180ms var(--mqv4-ease), box-shadow 180ms var(--mqv4-ease), background 180ms var(--mqv4-ease);
    min-height: 56px;
}
.mqv4__continue:hover:not(:disabled) { background: var(--mqv4-blue); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(37, 99, 235, .55); }
.mqv4__continue:active:not(:disabled) { transform: scale(.97); }
.mqv4__continue:disabled { opacity: .4; cursor: not-allowed; }
.mqv4__continue .mqv4__kbd {
    background: rgba(255, 255, 255, .15);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
}
.mqv4__enter-hint {
    color: var(--mqv4-mute-2);
    font-size: 13px;
}
.mqv4__enter-hint kbd {
    background: var(--mqv4-white);
    border: 1px solid var(--mqv4-line);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: inherit;
    color: var(--mqv4-ink);
}

/* Inline pill row (for thickness, finish etc) */
.mqv4__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.mqv4__pill {
    background: var(--mqv4-white);
    border: 2px solid var(--mqv4-line);
    border-radius: 999px;
    padding: 12px 22px;
    font: inherit;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--mqv4-ink);
    cursor: pointer;
    transition: all 180ms var(--mqv4-ease);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.mqv4__pill:hover { border-color: var(--mqv4-blue); }
.mqv4__pill.is-selected { background: var(--mqv4-navy); border-color: var(--mqv4-navy); color: white; }
.mqv4__pill .mqv4__pill-dot {
    width: 18px; height: 18px; border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .2);
}

/* Number stepper for addon qty */
.mqv4__stepper {
    display: inline-flex;
    align-items: stretch;
    border: 2px solid var(--mqv4-line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--mqv4-white);
    margin: 4px 0 14px;
}
.mqv4__stepper-btn {
    width: 56px;
    height: 56px;
    background: none;
    border: 0;
    font-size: 22px;
    cursor: pointer;
    color: var(--mqv4-navy);
    transition: background 160ms var(--mqv4-ease);
}
.mqv4__stepper-btn:hover { background: var(--mqv4-blue-soft); }
.mqv4__stepper-input {
    width: 100px;
    height: 56px;
    border: 0;
    border-left: 2px solid var(--mqv4-line);
    border-right: 2px solid var(--mqv4-line);
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    font-family: inherit;
    color: var(--mqv4-ink);
    background: transparent;
    outline: 0;
    -moz-appearance: textfield;
}
.mqv4__stepper-input::-webkit-outer-spin-button,
.mqv4__stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Auto-quantity hint */
.mqv4__auto-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 18px;
    padding: 8px 14px;
    background: var(--mqv4-success-soft);
    color: #166534;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
}
.mqv4__auto-hint svg { width: 14px; height: 14px; }

/* Sub-questions inside an addon screen (multi-step inline grouping for attrs) */
.mqv4__group { margin-bottom: 18px; }
.mqv4__group-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mqv4-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

/* Mighty avatar / speech bubble */
.mqv4__avatar {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--mqv4-navy), var(--mqv4-blue));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 22px -10px rgba(10, 30, 94, .55);
    pointer-events: none;
    z-index: 3;
    animation: mqv4-fade 700ms var(--mqv4-ease) 400ms both;
}
.mqv4__avatar svg { width: 22px; height: 22px; }

/* Phone fallback line */
.mqv4__phone-fallback {
    position: absolute;
    bottom: 24px;
    left: 80px;
    font-size: 12.5px;
    color: var(--mqv4-mute-2);
    pointer-events: auto;
    z-index: 3;
    line-height: 1.4;
}
.mqv4__phone-fallback a { color: var(--mqv4-navy); font-weight: 600; text-decoration: none; }
.mqv4__phone-fallback a:hover { text-decoration: underline; }

/* Live price ticker */
.mqv4__ticker {
    position: fixed;
    right: 22px;
    bottom: 22px;
    background: var(--mqv4-navy);
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: var(--mqv4-shadow-lg);
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 200px;
    animation: mqv4-ticker-in 360ms var(--mqv4-ease) both;
}
.mqv4__ticker.is-visible { display: flex; }
@keyframes mqv4-ticker-in { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.mqv4__ticker-label {
    font-size: 11px;
    opacity: .7;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.mqv4__ticker-amt {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.mqv4__ticker-amt.is-flip { animation: mqv4-flip 360ms var(--mqv4-ease) both; }
@keyframes mqv4-flip { 0% { transform: translateY(-6px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.mqv4__ticker-meta { font-size: 11px; opacity: .65; }

/* Review cards */
.mqv4__review {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.mqv4__review-card {
    background: var(--mqv4-white);
    border: 1px solid var(--mqv4-line);
    border-radius: 14px;
    padding: 16px 18px;
}
.mqv4__review-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}
.mqv4__review-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--mqv4-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.mqv4__review-edit {
    background: none;
    border: 0;
    color: var(--mqv4-blue);
    font: inherit;
    font-size: 13.5px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
}
.mqv4__review-edit:hover { background: var(--mqv4-blue-soft); }
.mqv4__review-body { font-size: 15.5px; color: var(--mqv4-ink); line-height: 1.5; }

.mqv4__totals {
    background: var(--mqv4-navy);
    color: white;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 18px;
}
.mqv4__totals-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; opacity: .9; }
.mqv4__totals-row--big { font-size: 22px; font-weight: 700; opacity: 1; border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 10px; padding-top: 12px; }

/* Error */
.mqv4__error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: var(--mqv4-error);
    padding: 12px 16px;
    border-radius: 12px;
    margin: 0 24px 12px;
    display: none;
}
.mqv4__error.is-visible { display: block; }

/* Loader */
.mqv4__loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: white;
    border-radius: 50%;
    animation: mqv4-spin 700ms linear infinite;
}
@keyframes mqv4-spin { to { transform: rotate(360deg); } }

/* Intro */
.mqv4__intro {
    text-align: center;
    padding: 24px 24px 24px;
    animation: mqv4-fade-up 600ms var(--mqv4-ease) both;
}
.mqv4__intro-wave {
    display: inline-block;
    font-size: 48px;
    margin-bottom: 12px;
    animation: mqv4-wave 1.4s ease-in-out infinite;
    transform-origin: 70% 70%;
}
@keyframes mqv4-wave { 0%, 60%, 100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(14deg); } }
.mqv4__intro-title {
    font-size: clamp(28px, 4.6vw, 42px);
    font-weight: 700;
    margin: 8px 0 12px;
    color: var(--mqv4-ink);
    letter-spacing: -.015em;
}
.mqv4__intro-sub {
    color: var(--mqv4-muted);
    font-size: 17px;
    line-height: 1.55;
    max-width: 500px;
    margin: 0 auto 32px;
}

/* Success */
.mqv4__success {
    text-align: center;
    padding: 24px 24px 32px;
    position: relative;
    animation: mqv4-fade-up 600ms var(--mqv4-ease) both;
}
.mqv4__success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    background: var(--mqv4-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mqv4-pop 480ms var(--mqv4-ease) 100ms both;
    box-shadow: 0 14px 36px -12px rgba(22, 163, 74, .5);
}
.mqv4__success-title { font-size: 32px; font-weight: 700; margin: 0 0 8px; }
.mqv4__success-sub { color: var(--mqv4-muted); font-size: 17px; max-width: 460px; margin: 0 auto 22px; line-height: 1.55; }
.mqv4__quote-ref {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--mqv4-blue-soft);
    color: var(--mqv4-navy);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 18px;
}
.mqv4__copy-btn {
    background: white;
    border: 1px solid var(--mqv4-blue);
    color: var(--mqv4-blue);
    border-radius: 999px;
    padding: 4px 12px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all 160ms;
}
.mqv4__copy-btn:hover { background: var(--mqv4-blue); color: white; }
.mqv4__success-link { color: var(--mqv4-blue); text-decoration: none; font-weight: 500; }
.mqv4__success-link:hover { text-decoration: underline; }

/* Sparkles */
.mqv4__sparkle {
    position: absolute;
    width: 8px; height: 8px;
    background: var(--mqv4-blue);
    border-radius: 50%;
    pointer-events: none;
    animation: mqv4-sparkle 1.6s var(--mqv4-ease) infinite;
}
.mqv4__sparkle:nth-child(1) { top: 20%; left: 18%; animation-delay: 0s; background: var(--mqv4-success); }
.mqv4__sparkle:nth-child(2) { top: 30%; right: 22%; animation-delay: .35s; background: var(--mqv4-blue); }
.mqv4__sparkle:nth-child(3) { top: 55%; left: 28%; animation-delay: .7s; background: #F59E0B; }
.mqv4__sparkle:nth-child(4) { bottom: 30%; right: 18%; animation-delay: 1.05s; background: var(--mqv4-success); }
@keyframes mqv4-sparkle {
    0%, 100% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Mobile */
@media (max-width: 640px) {
    .mqv4 { border-radius: 16px; }
    .mqv4__trust { font-size: 11.5px; gap: 10px; padding: 10px 14px; }
    .mqv4__trust-dot { display: none; }
    .mqv4__stage { padding: 8px 18px 220px; }
    .mqv4__q { font-size: 26px; }
    .mqv4__sub { font-size: 15px; }
    .mqv4__num { font-size: 40px; padding-right: 70px; }
    .mqv4__tiles { grid-template-columns: 1fr; gap: 10px; }
    .mqv4__tile { padding: 18px; min-height: 80px; }
    .mqv4__continue { width: 100%; justify-content: center; }
    .mqv4__phone-fallback { left: 80px; right: 24px; }
    .mqv4__ticker {
        right: 0; left: 0;
        bottom: 0;
        border-radius: 16px 16px 0 0;
        min-width: 0;
        padding: 14px 18px;
    }
}

/* iOS: prevent zoom on focus by ensuring 16px min */
@media (max-width: 640px) {
    .mqv4__num, .mqv4__text, .mqv4__textarea, .mqv4__stepper-input { font-size: 16px; }
    .mqv4__num { font-size: 36px; }
    .mqv4__text { font-size: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mqv4__screen, .mqv4__qnum, .mqv4__q, .mqv4__sub, .mqv4__body,
    .mqv4__avatar, .mqv4__ticker, .mqv4__success { animation: none !important; }
    .mqv4__tile, .mqv4__continue { transition: none !important; }
}

/* =================================================================
   v5 FULLSCREEN TAKEOVER — replaces site chrome with a canvas form
   ================================================================= */
html { scroll-behavior: smooth; }
html, body.mqv5-body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
    min-height: 100dvh;
    overflow-x: hidden;
}
body.mqv5-body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #0F172A; }

/* Nuke any leftover WP/theme chrome that might sneak in via plugins */
body.mqv5-body #wpadminbar { display: none !important; }
body.mqv5-body { margin-top: 0 !important; }
html[lang] body.mqv5-body { padding-top: 0 !important; }

.mqv5-topbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: 64px; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
    background: rgba(255,255,255,0.78);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(15,23,42,0.06);
}
.mqv5-topbar__logo { display: inline-flex; align-items: center; text-decoration: none; }
.mqv5-topbar__logo img { display: block; height: 36px; width: auto; }
.mqv5-topbar__right { display: flex; align-items: center; gap: 14px; }
.mqv5-topbar__phone {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; color: #0F172A; font-weight: 600; font-size: 14px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(37, 99, 235, 0.06);
    transition: background 0.18s ease, color 0.18s ease;
}
.mqv5-topbar__phone:hover { background: rgba(37, 99, 235, 0.12); color: #2563EB; }
.mqv5-topbar__phone svg { color: #2563EB; }
.mqv5-topbar__close {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; color: #475569; text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.mqv5-topbar__close:hover { background: rgba(15,23,42,0.06); color: #0F172A; }

.mqv5-canvas {
    padding-top: 0;
    min-height: 100dvh;
    display: block;
    overflow: visible;
}
.mqv5-topbar { display: none; }
@media (max-width: 900px) { .mqv5-topbar { display: flex; } .mqv5-canvas { padding-top: 56px; height: 100dvh; } }
.mqv5-canvas .mqv2 { flex: 1; }

@media (max-width: 640px) {
    .mqv5-topbar { padding: 0 14px; height: 56px; }
    .mqv5-topbar__logo img { height: 28px; }
    .mqv5-topbar__phone span { display: none; }
    .mqv5-topbar__phone { padding: 8px; }
    .mqv5-canvas { padding-top: 56px; }
}

/* =================================================================
   v5 ADVANCE LOCK — prevent stray clicks during transitions
   ================================================================= */
.mqv4__screen.is-leaving,
.mqv4__screen[data-locked="1"] { pointer-events: none !important; }
.mqv4.is-advancing { cursor: progress; }
.mqv4.is-advancing .mqv4__tile,
.mqv4.is-advancing .mqv4__pill,
.mqv4.is-advancing .mqv4__swatch-tile,
.mqv4.is-advancing .mqv4__continue { pointer-events: none; }

/* v5 multi-section spec screen */
.mqv5-section { margin-bottom: 22px; }
.mqv5-section + .mqv5-section { padding-top: 18px; border-top: 1px solid rgba(15,23,42,0.06); }
.mqv5-section__label {
    display: block;
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: #475569; margin-bottom: 10px;
}

/* v5 dimension pair (W + L on one screen) */
.mqv5-dimpair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 560px; }
.mqv5-dimpair__cell label {
    display: block; font-size: 13px; font-weight: 600; color: #475569;
    margin-bottom: 8px;
}
@media (max-width: 540px) {
    .mqv5-dimpair { grid-template-columns: 1fr; gap: 14px; }
}

/* v5 addon picker grid (checkboxes) */
.mqv5-addongrid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    max-width: 720px;
}
@media (max-width: 640px) {
    .mqv5-addongrid { grid-template-columns: 1fr; }
}
.mqv5-addonchk {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 18px;
    border: 1.5px solid rgba(15,23,42,0.08);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    text-align: left;
    width: 100%;
}
.mqv5-addonchk:hover { border-color: rgba(37,99,235,0.4); background: #fafbff; }
.mqv5-addonchk.is-checked {
    border-color: #2563EB;
    background: rgba(37,99,235,0.04);
}
.mqv5-addonchk__box {
    flex: 0 0 22px; width: 22px; height: 22px;
    border-radius: 6px; border: 2px solid rgba(15,23,42,0.18);
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: #fff; margin-top: 2px;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.mqv5-addonchk.is-checked .mqv5-addonchk__box {
    background: #2563EB; border-color: #2563EB;
}
.mqv5-addonchk__box svg { opacity: 0; transition: opacity 0.18s ease; }
.mqv5-addonchk.is-checked .mqv5-addonchk__box svg { opacity: 1; }
.mqv5-addonchk__body { flex: 1; min-width: 0; }
.mqv5-addonchk__title { display: block; font-weight: 700; font-size: 15px; color: #0F172A; margin-bottom: 4px; }
.mqv5-addonchk__meta { display: block; font-size: 13px; color: #64748B; line-height: 1.45; }
.mqv5-addonchk__qty {
    display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600;
    color: #2563EB; background: rgba(37,99,235,0.08);
    padding: 3px 8px; border-radius: 999px;
}

/* v5 contact stack */
.mqv5-contact { display: grid; gap: 14px; max-width: 560px; }
.mqv5-contact__field label {
    display: block; font-size: 13px; font-weight: 600; color: #475569;
    margin-bottom: 6px;
}

/* v5 delivery + postcode combined */
.mqv5-delivery-pc { margin-top: 18px; max-width: 480px; }
.mqv5-delivery-pc[hidden] { display: none; }

/* =================================================================
   v6 — SPLIT-SCREEN STRIPE-STYLE LAYOUT
   ================================================================= */

html, body.mqv6-body { margin: 0; padding: 0; }
html { height: auto; }
body.mqv6-body { min-height: 100dvh; background: #fff; overflow-y: auto; overflow-x: hidden; }
body.mqv6-body .mqv5-canvas,
body.mqv6-body .mqv6-canvas-host { padding: 0; margin: 0; max-width: none; }

/* Hide WP admin bar + theme chrome cleanly */
body.mqv6-body #wpadminbar { display: none !important; }
body.mqv6-body { padding-top: 0 !important; }

/* Hide the legacy v5 top bar on desktop — brand panel replaces it */
.mqv5-topbar.mqv6-mobilebar { display: none; }

/* Hide the legacy .mqv4 styling that wrapped everything */
body.mqv6-body .mqv2 { background: transparent !important; padding: 0 !important; margin: 0 !important; }

/* ---------- Shell grid ---------- */
.mqv6-shell {
    display: grid;
    grid-template-columns: minmax(360px, 38%) 1fr;
    min-height: 100dvh;
    width: 100%;
    background: #fff;
    color: var(--mqv4-ink);
    font-family: inherit;
    isolation: isolate;
    align-items: stretch;
}

/* ---------- Brand panel ---------- */
.mqv6-brand {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    background:
        radial-gradient(800px 400px at -10% 110%, rgba(37,99,235,.22), transparent 60%),
        radial-gradient(700px 380px at 110% -10%, rgba(96,165,250,.18), transparent 60%),
        linear-gradient(160deg, #0A1E5E 0%, #061343 100%);
    color: #fff;
    padding: 36px 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
    overflow-y: hidden;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
    height: 100%;
    min-height: 0;
}
.mqv6-brand::-webkit-scrollbar { width: 6px; }
.mqv6-brand::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }
.mqv6-brand::-webkit-scrollbar-track { background: transparent; }
.mqv6-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: .6;
}
.mqv6-brand > * { position: relative; z-index: 1; }

.mqv6-brand__top { display: flex; flex-direction: column; gap: 22px; }
.mqv6-brand__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform .3s var(--mqv4-ease);
}
.mqv6-brand__logo:hover { transform: translateY(-1px); }
.mqv6-brand__logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}
.mqv6-brand__trust {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    color: rgba(255,255,255,.7);
    line-height: 1.4;
}
.mqv6-brand__trust strong { color: #fff; font-weight: 600; letter-spacing: .01em; }
.mqv6-brand__trust span { display: flex; align-items: center; gap: 8px; }
.mqv6-brand__trust span::before {
    content: '';
    display: inline-block;
    width: 4px; height: 4px;
    background: #FBBF24;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Contextual visual */
.mqv6-brand__visual {
    flex: 1 1 auto;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}
.mqv6-brand__visual svg {
    width: 100%;
    height: auto;
    max-height: 320px;
    animation: mqv6FadeUp .5s var(--mqv4-ease);
}
@keyframes mqv6FadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Real product photo blocks in brand panel */
.mqv6-brand__photo {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.04);
    box-shadow: 0 18px 40px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset;
    animation: mqv6FadeUp .5s var(--mqv4-ease);
}
.mqv6-brand__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mqv6-brand__photo-caption {
    position: absolute;
    left: 14px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(6,19,67,.78);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .02em;
}
.mqv6-brand__photo-swatch {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,.85);
}
/* Colour tint overlay — multiplies the chosen colour over the sheet photo */
.mqv6-brand__photo--colour .mqv6-brand__photo-tint {
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
    opacity: .82;
    pointer-events: none;
}
.mqv6-brand__photo--colour::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.18));
    pointer-events: none;
}
/* Dimension annotation overlay */
.mqv6-brand__photo--dim .mqv6-brand__dimoverlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Running summary */
.mqv6-brand__summary { margin-top: auto; }
.mqv6-sum {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 18px 18px 16px;
    backdrop-filter: blur(8px);
}
.mqv6-sum__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: 12px;
}
.mqv6-sum__empty {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    line-height: 1.5;
}
.mqv6-sum__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mqv6-sum__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
    animation: mqv6FadeIn .35s var(--mqv4-ease);
}
@keyframes mqv6FadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.mqv6-sum__lbl {
    color: rgba(255,255,255,.55);
    flex-shrink: 0;
    font-size: 11.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 600;
}
.mqv6-sum__val {
    color: #fff;
    text-align: right;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mqv6-sum__swatch {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.85);
    box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.15);
    display: inline-block;
    flex-shrink: 0;
}
.mqv6-sum__total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 4px 12px;
}
.mqv6-sum__total-lbl {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}
.mqv6-sum__total-amt {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    font-feature-settings: 'tnum';
    transition: color .3s var(--mqv4-ease);
}
.mqv6-sum__total.is-live .mqv6-sum__total-amt { color: #FBBF24; }
.mqv6-sum__total-meta {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    grid-column: 1;
}

.mqv6-brand__foot { padding-top: 4px; }
.mqv6-brand__chat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mqv6-brand__chat-label {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}
.mqv6-brand__chat-num {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -.01em;
    transition: color .2s ease;
}
.mqv6-brand__chat-num:hover { color: #FBBF24; }

/* ---------- Canvas (right side) ---------- */
.mqv6-canvas {
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    overflow: visible;
}
.mqv6-canvas__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    flex-shrink: 0;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15,30,74,.04);
}
.mqv6-back {
    background: none;
    border: 1px solid var(--mqv4-line);
    color: var(--mqv4-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s ease;
}
.mqv6-back:hover { color: var(--mqv4-navy); border-color: var(--mqv4-navy); }
.mqv6-back[hidden] { visibility: hidden; display: inline-flex !important; }
.mqv6-close {
    color: var(--mqv4-mute-2);
    text-decoration: none;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: all .2s ease;
}
.mqv6-close:hover { color: var(--mqv4-navy); background: var(--mqv4-bg); }

.mqv6-canvas__topbar .mqv4__dots {
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    justify-content: center;
}

.mqv6-canvas__inner {
    flex: 1 1 auto;
    min-height: calc(100dvh - 64px); /* fill viewport below topbar so centering works */
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 48px 56px;
    transition: padding .2s ease;
}
/* Centre short screens vertically so the question feels deliberate, not floating top-left */
.mqv6-canvas__inner.is-short {
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 24px;
}
.mqv6-canvas__inner > .mqv4__stage { margin-top: 0; margin-bottom: 0; }

.mqv6-stage {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Calibrated question header — premium but never overwhelming */
.mqv6-stage .mqv4__q {
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.15;
    letter-spacing: -.018em;
    font-weight: 700;
    color: var(--mqv4-ink);
    margin: 6px 0 10px;
}
.mqv6-stage .mqv4__sub {
    font-size: 15.5px;
    color: var(--mqv4-muted);
    line-height: 1.5;
    margin-bottom: 22px;
    max-width: 52ch;
}
.mqv6-stage .mqv4__qnum {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mqv4-blue);
}
.mqv6-stage .mqv4__screen {
    padding: 0;
    min-height: auto;
}

/* Big inputs */
.mqv6-stage .mqv5-dimpair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1.5px solid var(--mqv4-line);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.mqv6-stage .mqv5-dimpair:focus-within {
    border-color: var(--mqv4-navy);
    box-shadow: 0 0 0 4px rgba(10,30,94,.08);
}
.mqv6-stage .mqv5-dimpair__cell {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mqv6-stage .mqv5-dimpair__cell + .mqv5-dimpair__cell {
    border-left: 1px solid var(--mqv4-line);
}
.mqv6-stage .mqv5-dimpair label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--mqv4-mute-2);
}
.mqv6-stage .mqv5-dimpair .mqv4__num {
    border: 0;
    font-size: 30px;
    font-weight: 600;
    padding: 0;
    background: transparent;
    color: var(--mqv4-ink);
    width: 100%;
    outline: none;
    letter-spacing: -.01em;
}
.mqv6-stage .mqv5-dimpair .mqv4__num-suffix {
    font-size: 16px;
    color: var(--mqv4-mute-2);
    font-weight: 500;
}

/* Wide text inputs in contact */
.mqv6-stage .mqv5-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mqv6-stage .mqv5-contact__field { width: 100%; }
.mqv6-stage .mqv5-contact label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mqv4-mute-2);
    margin-bottom: 6px;
}
.mqv6-stage .mqv4__text,
.mqv6-stage .mqv4__textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--mqv4-line);
    border-radius: 12px;
    font-size: 17px;
    background: #fff;
    color: var(--mqv4-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
    font-family: inherit;
}
.mqv6-stage .mqv4__text:focus,
.mqv6-stage .mqv4__textarea:focus {
    border-color: var(--mqv4-navy);
    box-shadow: 0 0 0 4px rgba(10,30,94,.08);
    outline: none;
}

/* Loud primary CTA */
.mqv6-stage .mqv4__continue {
    background: linear-gradient(180deg, #0F2A7A 0%, #061343 100%);
    color: #fff;
    border: 0;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px -8px rgba(10,30,94,.6), inset 0 1px 0 rgba(255,255,255,.12);
    transition: transform .15s ease, box-shadow .2s ease;
    min-height: 52px;
    min-width: 180px;
    justify-content: center;
}
.mqv6-stage .mqv4__continue:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px -8px rgba(10,30,94,.7), inset 0 1px 0 rgba(255,255,255,.14);
}
.mqv6-stage .mqv4__continue:disabled {
    /* Per spec: keep colour loud — show hint instead, don't visually disable */
    background: linear-gradient(180deg, #0F2A7A 0%, #061343 100%);
    color: rgba(255,255,255,.5);
    cursor: not-allowed;
    box-shadow: 0 4px 12px -8px rgba(10,30,94,.4);
}
.mqv6-stage .mqv4__actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    position: static;
    background: transparent;
    padding: 4px 0 4px;
}

.mqv6-stage .mqv4__kbd {
    font-size: 13px;
    opacity: .65;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
}

/* Tiles & pills override — sit nicely in 640px column */
.mqv6-stage .mqv4__tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}
.mqv6-stage .mqv4__tiles--narrow { grid-template-columns: 1fr 1fr; }
.mqv6-stage .mqv4__tile {
    background: #fff;
    border: 1.5px solid var(--mqv4-line);
    border-radius: 14px;
    padding: 18px 18px;
    text-align: left;
    cursor: pointer;
    transition: transform .18s var(--mqv4-ease), border-color .18s var(--mqv4-ease), background .18s var(--mqv4-ease), box-shadow .18s var(--mqv4-ease);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: inherit;
    min-height: 88px;
}
.mqv6-stage .mqv4__tile:hover {
    border-color: var(--mqv4-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -14px rgba(10,30,94,.4);
}
.mqv6-stage .mqv4__tile.is-selected {
    border-color: var(--mqv4-navy);
    background: var(--mqv4-blue-soft);
    box-shadow: 0 0 0 3px rgba(10,30,94,.12);
}

.mqv6-stage .mqv4__swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

/* Sections (multi-pick screen) */
.mqv6-stage .mqv5-section { margin-bottom: 16px; }
.mqv6-stage .mqv5-section + .mqv5-section { padding-top: 14px; }
.mqv6-stage .mqv5-section__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mqv4-mute-2);
    margin-bottom: 8px;
}
/* Pills tighter inside sections */
.mqv6-stage .mqv4__pills { gap: 8px; margin-bottom: 0; }
.mqv6-stage .mqv4__pill { padding: 10px 18px; font-size: 14.5px; min-height: 42px; border-width: 1.5px; }
/* Swatches: smaller, denser */
.mqv6-stage .mqv4__swatch-grid { gap: 8px; margin-bottom: 0; }
.mqv6-stage .mqv4__swatch-tile { padding: 10px 8px; gap: 6px; }
.mqv6-stage .mqv4__swatch-dot { width: 40px; height: 40px; }
.mqv6-stage .mqv4__swatch-name { font-size: 12.5px; }
/* Addon-pick cards tighter */
.mqv6-stage .mqv5-addongrid { gap: 8px; }
.mqv6-stage .mqv5-addonchk { padding: 12px 14px; }
.mqv6-stage .mqv5-addonchk__title { font-size: 14.5px; margin-bottom: 2px; }
.mqv6-stage .mqv5-addonchk__meta { font-size: 12.5px; }
/* Stepper compact */
.mqv6-stage .mqv4__stepper { margin: 0; }
/* Auto-hint compact */
.mqv6-stage .mqv4__auto-hint { margin: 0 0 8px; padding: 6px 12px; font-size: 12.5px; }
.mqv6-stage .mqv4__numhint { margin: 4px 0 14px; }
/* Review cards a touch tighter */
.mqv6-stage .mqv4__review { gap: 8px; margin-bottom: 14px; }
.mqv6-stage .mqv4__review-card { padding: 12px 16px; }
.mqv6-stage .mqv4__review-body { font-size: 14.5px; }
.mqv6-stage .mqv4__totals { padding: 16px 20px; margin-bottom: 14px; }
/* Group label tightening */
.mqv6-stage .mqv4__group { margin-bottom: 14px; }

/* Hide legacy ticker */
.mqv4__ticker[hidden] { display: none !important; }

/* Error banner inside canvas */
.mqv6-canvas .mqv4__error {
    max-width: 640px;
    margin: 0 auto 14px;
    width: 100%;
}

/* ---------- Mobile bottom sheet ---------- */
.mqv6-sheet {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, #0A1E5E 0%, #061343 100%);
    color: #fff;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -10px 30px -10px rgba(0,0,0,.3);
    z-index: 90;
    max-height: 70dvh;
    overflow: hidden;
    transition: transform .35s var(--mqv4-ease);
}
.mqv6-sheet__handle {
    width: 100%;
    background: transparent;
    border: 0;
    color: inherit;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-family: inherit;
}
.mqv6-sheet__label {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}
.mqv6-sheet__amt {
    font-size: 20px;
    font-weight: 700;
    color: #FBBF24;
    margin-left: auto;
    font-feature-settings: 'tnum';
}
.mqv6-sheet__chev { transition: transform .25s ease; opacity: .6; }
.mqv6-sheet.is-open .mqv6-sheet__chev { transform: rotate(180deg); }
.mqv6-sheet__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 20px;
}
.mqv6-sheet.is-open .mqv6-sheet__body {
    max-height: 50dvh;
    overflow-y: auto;
    padding: 4px 20px 22px;
}
.mqv6-sheet .mqv6-sum { background: transparent; border: 0; padding: 0; }
.mqv6-sheet .mqv6-sum__title { display: none; }

/* ---------- Mobile breakpoint ---------- */
@media (max-width: 900px) {
    body.mqv6-body { overflow-y: auto; overflow-x: hidden; }
    .mqv6-shell {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        min-height: 100dvh;
        height: auto;
        overflow: visible;
        padding-top: 56px;
    }
    .mqv6-brand { display: none; }
    .mqv5-topbar.mqv6-mobilebar {
        display: flex;
        height: 56px;
        background: linear-gradient(180deg, #0A1E5E 0%, #061343 100%);
        color: #fff;
        padding: 0 16px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .mqv5-topbar.mqv6-mobilebar .mqv5-topbar__logo img {
        filter: brightness(0) invert(1);
        max-height: 28px;
        width: auto;
    }
    .mqv5-topbar.mqv6-mobilebar .mqv5-topbar__right {
        display: flex;
        align-items: center;
        gap: 14px;
    }
    .mqv5-topbar.mqv6-mobilebar .mqv5-topbar__phone {
        color: #fff;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        font-weight: 500;
    }
    .mqv5-topbar.mqv6-mobilebar .mqv5-topbar__close {
        color: rgba(255,255,255,.7);
        display: inline-flex;
    }
    .mqv6-canvas {
        max-height: none;
        height: auto;
        min-height: calc(100dvh - 56px);
        overflow: visible;
    }
    /* Sheet handle on mobile is ~50px tall — leave space + safe-area */
    .mqv6-canvas__inner {
        padding: 16px 18px calc(78px + env(safe-area-inset-bottom, 0px));
        min-height: auto;
    }
    .mqv6-canvas__inner.is-short {
        padding-top: 16px;
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }
    .mqv6-stage .mqv4__actions { padding-bottom: 4px; }
    .mqv6-sheet { display: block; }
    .mqv6-sheet__handle { padding: 10px 18px; }
    .mqv6-sheet__amt { font-size: 17px; }
    .mqv6-sheet__label { font-size: 11px; }
    .mqv6-stage .mqv4__q { font-size: clamp(22px, 5.5vw, 30px); }
    .mqv6-stage .mqv4__tiles { grid-template-columns: 1fr; }
    .mqv6-canvas__topbar { padding: 12px 18px; }
}

@media (max-width: 480px) {
    .mqv6-canvas__topbar { padding: 14px 16px; }
    .mqv6-stage .mqv5-dimpair { grid-template-columns: 1fr; }
    .mqv6-stage .mqv5-dimpair__cell + .mqv5-dimpair__cell { border-left: 0; border-top: 1px solid var(--mqv4-line); }
}

/* v8 patch: force full-viewport width over theme's flex-column body */
body.mqv6-body { width: 100%; padding: 0 !important; }
body.mqv6-body .mqv5-canvas,
body.mqv6-body .mqv6-canvas-host { width: 100%; max-width: 100%; align-self: stretch; }
body.mqv6-body .mqv2 { width: 100%; max-width: 100%; }
body.mqv6-body .mqv6-shell { width: 100%; max-width: 100%; }

/* Override WP admin bar html margin */
html { margin-top: 0 !important; padding-top: 0 !important; }

/* v9 patch: force topbars horizontal */
.mqv6-canvas__topbar { flex-direction: row !important; flex-wrap: nowrap !important; }
.mqv6-canvas__topbar .mqv4__dots { flex-direction: row !important; flex-wrap: nowrap !important; }
.mqv5-topbar.mqv6-mobilebar { flex-direction: row !important; flex-wrap: nowrap !important; }
.mqv5-topbar.mqv6-mobilebar .mqv5-topbar__right { flex-direction: row !important; flex-wrap: nowrap !important; }
