/* --- Fonts (self-hosted) --- */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('fonts/montserrat-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/montserrat-italic-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Yanone Kaffeesatz';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/yanone-kaffeesatz-latin.woff2') format('woff2');
}

/* --- 1. Variables & Reset (Darkroom Palette) --- */
:root {
    --bg-color: #0f0f0f;
    --glass-bg: rgba(20, 20, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f0;
    --text-secondary: #8f8f8f;
    --accent-gold: #C5A059;
    --accent-hover: #d4b06a;
    --error-red: #ff5c5c;
    --font-header: 'Yanone Kaffeesatz', 'Arial Narrow', sans-serif;
    --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    color-scheme: dark;
}

html {
    background-color: var(--bg-color);
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    overflow-x: hidden;
}

/* --- 2. The Card --- */
.main-content-strip {
    width: 100%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
}

.fade-in-up {
    animation: fadeInStep 0.8s ease-out both;
}

/* Thin gold progress line along the top of the card */
.progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent-gold);
    transition: width 0.5s ease;
}

.step-count {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: -0.5rem 0 1.5rem;
    min-height: 1em;
}

/* --- 3. Typography --- */
#logo-container {
    margin-bottom: 2rem;
}

#logo-container img {
    max-width: 300px;
    width: 100%;
    height: auto;
    opacity: 0.95;
}

h1, h2 {
    font-family: var(--font-header);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: inline-block;
    padding-bottom: 5px;
}

p {
    font-weight: 300;
    line-height: 1.6;
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: #fff; }

.intro {
    margin-bottom: 2rem;
}

/* Intro and contact details only on the first screen */
.js .past-first-step .first-step-only,
.js .is-done .first-step-only {
    display: none;
}

/* --- 4. Steps --- */
.js .form-step { display: none; }
.js .form-step.active {
    display: block;
    animation: fadeInStep 0.45s ease-out both;
}

/* Without JavaScript the whole form shows as one classic page */
html:not(.js) .form-step { margin-bottom: 2.5rem; }
html:not(.js) .js-only,
html:not(.js) .js-only-block { display: none !important; }

@keyframes fadeInStep {
    0%   { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-up, .js .form-step.active { animation: none; }
    .progress-bar { transition: none; }
}

fieldset {
    border: 0;
    min-width: 0;
}

/* --- 5. Labels & Inputs --- */
.step-label,
legend.step-label {
    display: block;
    text-align: left;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    font-weight: 500;
    padding: 0;
}

.sub-label {
    display: block;
    text-align: left;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    padding: 10px 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 400;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
    margin-bottom: 5px;
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"] {
    display: block;
    min-height: 46px;
    text-align: left;
    color-scheme: dark;
}
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
}
input[type="date"]:invalid:not(:focus),
input[type="date"]:placeholder-shown { color: #888; }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    transition: background-color 50000s ease-in-out 0s;
    -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
    caret-color: #fff;
}

input:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
    box-shadow: 0 1px 0 0 var(--accent-gold);
}

input.has-error, textarea.has-error {
    border-bottom-color: var(--error-red);
    box-shadow: 0 1px 0 0 var(--error-red);
}

textarea {
    resize: none;
    overflow: hidden;
    min-height: 46px;
    line-height: 1.5;
}

::placeholder {
    color: #6f6f6f;
    font-weight: 300;
    font-style: italic;
    opacity: 1;
}

/* --- 6. Radio "chips" --- */
.radio-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0.5rem 0 1rem;
}

.radio-options-container > div { position: relative; }

.radio-options-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.radio-options-container label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    padding: 11px 18px;
    font-size: 0.85rem;
    color: #b5b5b5;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-tap-highlight-color: transparent;
}

.radio-options-container input[type="radio"]:checked + label {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
    font-weight: 600;
}

@media (hover: hover) {
    .radio-options-container label:hover {
        border-color: var(--accent-gold);
        color: var(--accent-gold);
    }
    .radio-options-container input[type="radio"]:checked + label:hover { color: #000; }
}

.radio-options-container input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
}

.other-input-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}
.other-input-wrapper.active {
    max-height: 120px;
    opacity: 1;
    margin-top: 10px;
}
html:not(.js) .other-input-wrapper { max-height: none; opacity: 1; }

/* --- 7. Buttons --- */
.button-container {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.next-btn, .submit-btn, .start-btn {
    background: transparent;
    color: var(--accent-gold);
    font-family: var(--font-header);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 35px;
    min-height: 46px;
    border: 1px solid var(--accent-gold);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.next-btn, .submit-btn { margin-left: auto; }

.start-btn {
    display: inline-block;
    margin: 1rem auto 0.5rem;
}

@media (hover: hover) {
    .next-btn:hover, .submit-btn:hover, .start-btn:hover {
        background: var(--accent-gold);
        color: #0f0f0f;
        box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
    }
}
.next-btn:active, .submit-btn:active { background: var(--accent-gold); color: #0f0f0f; }

/* "Skip" is quieter than "Next" */
.next-btn.is-skip {
    color: #a8a8a8;
    border-color: #555;
}
@media (hover: hover) {
    .next-btn.is-skip:hover { background: transparent; color: var(--accent-gold); border-color: var(--accent-gold); box-shadow: none; }
}

.submit-btn:disabled { opacity: 0.6; cursor: wait; }

.prev-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 11px;
    opacity: 0.6;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}
.prev-btn svg { fill: var(--text-primary); width: 24px; height: 24px; }
@media (hover: hover) {
    .prev-btn:hover { opacity: 1; }
    .prev-btn:hover svg { fill: var(--accent-gold); }
}

/* Visible keyboard focus everywhere (mouse and touch users don't see it) */
button:focus-visible,
a:focus-visible,
h2:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
}
h2:focus { outline: none; }

/* --- 8. Helpers & Errors --- */
.instructions {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 8px;
    margin-bottom: 0;
    font-style: italic;
    text-align: left;
}
.touch .desktop-only { display: none; }

.error-message {
    color: var(--error-red);
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
    min-height: 1rem;
    text-align: left;
}

.submit-error {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--error-red);
    text-align: left;
}
.submit-error p { margin: 0; font-size: 0.9rem; }

.thank-you-container .success-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* --- 9. Contact Info --- */
#contact-info-container {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}
#contact-info-container p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* --- 10. Phones --- */
@media (max-width: 480px) {
    body { padding-top: 16px; padding-bottom: 16px; align-items: flex-start; }
    .main-content-strip { padding: 2.25rem 1.4rem 2rem; }
    #logo-container { margin-bottom: 1.5rem; }
    #logo-container img { max-width: 240px; }
    .intro p { font-size: 0.95rem; }
    h2 { font-size: 1.5rem; }
    input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
        font-size: 1.05rem; /* stays above 16px so iPhones don't zoom in */
    }
    .name-row { gap: 1rem; }
    .radio-options-container { gap: 8px; }
    .radio-options-container label { padding: 10px 14px; font-size: 0.78rem; }
    #contact-info-container { margin-top: 3rem; }
}

/* =====================================================================
   v6 (2026-11-06): matches the new traifilms.com look. Only the look
   changes: every step, field and behaviour above is unchanged.
   ===================================================================== */
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('fonts/raleway-latin.woff2') format('woff2'); }
@font-face { font-family: 'Yanone Kaffeesatz'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('fonts/yanone-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/cormorant-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/cormorant-italic-latin.woff2') format('woff2'); }

:root {
    --bg-color: #262727;
    --glass-bg: rgba(30, 31, 31, 0.78);
    --glass-border: rgba(220, 192, 142, 0.45);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-gold: #dcc08e;
    --accent-hover: #ecdcbc;
    --font-header: 'Yanone Kaffeesatz', 'Arial Narrow', sans-serif;
    --font-body: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
}
*, *::before, *::after { font-variant-numeric: lining-nums; }
html { background-color: #262727; }
body { background: transparent; }

/* the moving film behind the card (same clip as the home page) */
.bg-film { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #111 url('/wp-content/themes/traimatthew/assets/video/hero-poster.jpg') center / cover; }
.bg-film video { width: 100%; height: 100%; object-fit: cover; }
.bg-film__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(20,20,20,.45), rgba(20,20,20,.82) 75%), linear-gradient(rgba(20,20,20,.5), rgba(20,20,20,.35)); }
@media (prefers-reduced-motion: reduce) { .bg-film video { display: none; } }

/* card = an infographic tile */
.main-content-strip {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    max-width: 620px;
}
.progress { height: 3px; background: rgba(220, 192, 142, 0.15); }

#logo-container img { max-width: 320px; opacity: 1; }
#logo-container a { display: inline-block; }

.intro p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.86);
}

/* ---------- Progress: a film-timeline scrubber ----------
   Rounded bar in 7 segments (one per question) with a glowing playhead.
   The form script still sets #progress-bar's width, exactly as before. */
.step-meter {
    margin: 0.4rem 0 2.2rem;
    text-align: left;
}
.step-meter__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    min-height: 1.3rem;
}
.step-meter .step-count {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}
.step-meter .step-count:not(:empty)::before { content: "Step "; color: var(--accent-gold); }
.step-meter__chapter {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--accent-gold);
    white-space: nowrap;
}
/* chapter title for the question on screen */
#card:has([data-step="name"].active) .step-meter__chapter::after { content: "Introductions"; }
#card:has([data-step="email"].active) .step-meter__chapter::after { content: "Staying in touch"; }
#card:has([data-step="date"].active) .step-meter__chapter::after { content: "The big day"; }
#card:has([data-step="venue"].active) .step-meter__chapter::after { content: "The setting"; }
#card:has([data-step="phone"].active) .step-meter__chapter::after { content: "Best number"; }
#card:has([data-step="heard"].active) .step-meter__chapter::after { content: "How we found each other"; }
#card:has([data-step="questions"].active) .step-meter__chapter::after { content: "Anything else"; }

.step-meter .progress {
    position: relative;
    top: auto; left: auto; right: auto;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(220, 192, 142, 0.22);
    overflow: visible;
}
/* the 6 thin gaps that split the bar into 7 segments */
.step-meter .progress::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 3px), #232424 calc(100% / 7 - 3px) calc(100% / 7));
    -webkit-mask: linear-gradient(90deg, #000 calc(100% - 4px), transparent calc(100% - 4px));
            mask: linear-gradient(90deg, #000 calc(100% - 4px), transparent calc(100% - 4px));
}
.step-meter .progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #b89a62, var(--accent-gold) 60%, #f1e2c2);
    box-shadow: 0 0 14px rgba(220, 192, 142, 0.35);
    transition: width 0.7s cubic-bezier(.2, .7, .2, 1);
}
/* the playhead */
.step-meter .progress-bar::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(220, 192, 142, 0.35), 0 0 18px rgba(220, 192, 142, 0.8);
    animation: tmf-ph 2.4s ease-in-out infinite;
}
.step-meter .progress-bar { position: relative; min-width: 10px; }
@keyframes tmf-ph { 0%, 100% { box-shadow: 0 0 0 4px rgba(220,192,142,.35), 0 0 16px rgba(220,192,142,.7); } 50% { box-shadow: 0 0 0 7px rgba(220,192,142,.18), 0 0 24px rgba(220,192,142,.9); } }
@media (prefers-reduced-motion: reduce) { .step-meter .progress-bar, .step-meter .progress-bar::after { transition: none; animation: none; } }
.js .is-done .step-meter { display: none; }
@media (max-width: 480px) {
    .step-meter__chapter { font-size: 0.98rem; }
    .step-meter .step-count { font-size: 0.66rem; letter-spacing: 0.16em; }
}

.step-label,
legend.step-label {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 2.1rem;
    line-height: 1.1;
    text-transform: none;
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 1.1rem;
}
.sub-label { font-family: var(--font-header); font-size: 1rem; letter-spacing: 0.2em; color: var(--accent-gold); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
}
input:focus, textarea:focus { border-bottom-color: var(--accent-gold); box-shadow: 0 1px 0 0 var(--accent-gold); }
::placeholder { color: rgba(255, 255, 255, 0.32); font-style: normal; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 1000px #2a2b2b inset !important; }

.radio-options-container label {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(220, 192, 142, 0.35);
    border-radius: 40px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.8);
}
.radio-options-container input[type="radio"]:checked + label { background: var(--accent-gold); border-color: var(--accent-gold); color: #262727; }
@media (hover: hover) { .radio-options-container input[type="radio"]:checked + label:hover { color: #262727; } }

/* buttons: the site's flat gold */
.next-btn, .submit-btn, .start-btn {
    background: var(--accent-gold);
    color: #262727;
    border: 1px solid var(--accent-gold);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    padding: 16px 34px;
    min-height: 50px;
}
@media (hover: hover) {
    .next-btn:hover, .submit-btn:hover, .start-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #262727; box-shadow: none; transform: translateY(-1px); }
}
.next-btn:active, .submit-btn:active { background: var(--accent-hover); color: #262727; }
.next-btn.is-skip { background: transparent; color: rgba(255, 255, 255, 0.75); border-color: rgba(255, 255, 255, 0.3); }
@media (hover: hover) { .next-btn.is-skip:hover { background: transparent; color: var(--accent-gold); border-color: var(--accent-gold); } }
.prev-btn { opacity: 0.75; }
.prev-btn svg { fill: var(--accent-gold); }

.instructions { font-size: 0.8rem; color: var(--text-secondary); }

h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 2rem;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
}
.thank-you-container .success-icon { color: var(--accent-gold); }
#contact-info-container { border-top-color: var(--glass-border); }
#contact-info-container h2 { font-size: 1.6rem; }
#contact-info-container p { color: rgba(255, 255, 255, 0.66); }
#contact-info-container a { color: var(--accent-gold); }

.back-home {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.back-home:hover { color: var(--accent-gold); }

@media (max-width: 480px) {
    .main-content-strip { background: rgba(30, 31, 31, 0.84); }
    #logo-container img { max-width: 250px; }
    .intro p { font-size: 1.2rem; }
    .step-label, legend.step-label { font-size: 1.8rem; }
    .radio-options-container label { font-size: 0.68rem; letter-spacing: 0.12em; }
    .next-btn, .submit-btn { padding: 15px 26px; }
}

/* v10: quieter progress bar */
.step-meter { margin: 0.2rem 0 2rem; }
.step-meter__row { margin-bottom: 10px; }
.step-meter .step-count { font-weight: 500; font-size: 0.66rem; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.55); }
.step-meter .step-count:not(:empty)::before { color: rgba(220, 192, 142, 0.75); }
.step-meter__chapter { font-size: 0.98rem; color: rgba(220, 192, 142, 0.8); }
.step-meter .progress { height: 4px; background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.step-meter .progress::after { background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 2px), #262727 calc(100% / 7 - 2px) calc(100% / 7)); }
.step-meter .progress-bar { background: rgba(220, 192, 142, 0.75); box-shadow: none; min-width: 6px; }
.step-meter .progress-bar::after {
    right: -5px;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    background: #f3e6cb;
    box-shadow: 0 0 0 3px rgba(38, 39, 39, 0.9);
    animation: none;
}
@media (max-width: 480px) {
    .step-meter__chapter { font-size: 0.92rem; }
    .step-meter .step-count { font-size: 0.62rem; }
}

/* v11: back to the fuller rounded bar, no playhead */
.step-meter .progress { height: 10px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(220, 192, 142, 0.22); }
.step-meter .progress::after { background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 3px), #232424 calc(100% / 7 - 3px) calc(100% / 7)); }
.step-meter .progress-bar { background: linear-gradient(90deg, #b89a62, var(--accent-gold) 60%, #f1e2c2); box-shadow: 0 0 14px rgba(220, 192, 142, 0.35); min-width: 10px; }
.step-meter .progress-bar::after { content: none; display: none; }

/* v12: make the active field clearly the focus (subtle panel + gold underline that draws from the centre) */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
    padding: 13px 14px;
    background-color: rgba(255, 255, 255, 0.035);
    background-image: linear-gradient(var(--accent-gold), var(--accent-gold));
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0% 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px 4px 0 0;
    caret-color: var(--accent-gold);
    transition: background-color 0.35s ease, background-size 0.45s cubic-bezier(.2, .7, .2, 1), border-color 0.35s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="date"]:focus, textarea:focus {
    outline: none;
    background-color: rgba(220, 192, 142, 0.07);
    background-size: 100% 2px;
    border-bottom-color: transparent;
    box-shadow: none;
}
input:focus::placeholder, textarea:focus::placeholder { opacity: 0.55; }
input.has-error, textarea.has-error { border-bottom-color: var(--error-red); box-shadow: 0 1px 0 0 var(--error-red); background-color: rgba(255, 92, 92, 0.05); }
input.has-error:focus, textarea.has-error:focus { background-image: linear-gradient(var(--error-red), var(--error-red)); }
.error-message, .instructions { padding-left: 14px; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 1000px #2c2c2b inset !important; }
@media (prefers-reduced-motion: reduce) { input, textarea { transition: none; } }
