/* Minimal flow styles — replace with your own design per domain */

:root {
    --ink: #111114;
    --muted: #71717a;
    --line: #e8e8eb;
    --row: #f4f4f5;
    --white: #ffffff;
    --r: 14px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--white);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
}
.site-header__logo { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.logo-text { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }

.topbar {
    height: 3px;
    background: var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}
.topbar__fill {
    height: 100%;
    width: 0%;
    background: var(--ink);
    border-radius: 0 2px 2px 0;
    transition: width 0.55s ease;
}

.page {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    padding: clamp(40px, 7vh, 68px) 24px 56px;
}
.flow {
    width: 100%;
    max-width: 520px;
}

.step { display: none; }
.step.is-active { display: block; animation: fade 0.34s ease both; }
@keyframes fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c81e27;
    background: #fdeaec;
    padding: 6px 12px;
    border-radius: 999px;
}
.title {
    margin-top: 18px;
    font-size: clamp(1.55rem, 4.2vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.14;
    max-width: 19ch;
    outline: none;
}
.q-label {
    margin-top: 30px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
}
.q-heading {
    font-size: clamp(1.4rem, 3.9vw, 1.78rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
    max-width: 20ch;
    outline: none;
}
.q-heading + .options { margin-top: 24px; }

.step-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    padding: 4px 2px 4px 0;
}
.step-back:hover { color: var(--ink); }
.step-back svg { width: 16px; height: 16px; }

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: var(--ink);
    background: var(--row);
    border: 1.5px solid transparent;
    border-radius: var(--r);
    padding: 16px 18px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.option:hover { background: #ededee; }
.option[aria-checked="true"] {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.option__label { font-size: 1rem; font-weight: 500; }
.option__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--muted);
    flex-shrink: 0;
    transition: border-color 0.18s ease;
}
.option[aria-checked="true"] .option__radio {
    border-color: #fff;
    background: #fff;
    box-shadow: inset 0 0 0 3px var(--ink);
}

.field-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.field {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.field.is-invalid { border-color: #c81e27; }
.field-error {
    font-size: 0.82rem;
    color: #c81e27;
    margin-top: 4px;
    min-height: 1em;
}
.field-error.show { display: block; }

.tcpa {
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}
.tcpa a { color: var(--ink); }

.btn-next {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--ink);
    border: none;
    border-radius: var(--r);
    cursor: pointer;
    transition: opacity 0.18s ease, background 0.18s ease;
    text-align: center;
}
.btn-next:hover { background: #333; }
.btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-next:focus-visible { outline: 3px solid rgba(0,0,0,0.2); outline-offset: 2px; }

.site-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 20px 24px;
}
.site-footer__inner { max-width: 1080px; margin: 0 auto; }
.site-footer__legal { font-size: 0.82rem; color: var(--muted); text-align: center; }

.thank-you {
    max-width: 520px;
    margin: 80px auto;
    text-align: center;
    padding: 40px;
}
.thank-you h1 { font-size: 2rem; margin-bottom: 12px; }
.thank-you p { color: var(--muted); margin-bottom: 24px; }
.thank-you a { color: var(--ink); font-weight: 600; }

.error {
    max-width: 520px;
    margin: 80px auto;
    text-align: center;
    padding: 40px;
}
.error h1 { font-size: 1.5rem; margin-bottom: 12px; color: #c81e27; }
.error p { color: var(--muted); margin-bottom: 24px; }
