@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --pri: #2c3380; --pri-dk: #1e2460; --pri-lt: #3d44a0;
    --acc: #f44336; --acc-dk: #d32f2f;
    --white: #fff; --g50: #fafafa; --g100: #f5f5f5; --g200: #eee;
    --g300: #e0e0e0; --g400: #bdbdbd; --g500: #9e9e9e;
    --g600: #757575; --g700: #616161; --g800: #424242; --g900: #212121;
    --font: 'Montserrat', sans-serif;
    --r: 8px; --rs: 6px; --rl: 12px;
    --text-base: 14px; --text-sm: 13px; --text-xs: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--g900); min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6; font-size: var(--text-base); -webkit-font-smoothing: antialiased; }

/* ── Accent bar ──────────────────────────────────────── */
.accent-bar { height: 3px; background: var(--acc); flex-shrink: 0; }

/* ── Header (WHITE) ──────────────────────────────────── */
.site-header { background: var(--white); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 68px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--g200); }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--g900); }
.logo-img { height: 36px; width: auto; }
.logo-divider { width: 1px; height: 28px; background: var(--g300); }
.logo-text { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pri); line-height: 1.25; }
.header-badge { display: flex; align-items: center; gap: 0.4rem; padding: 6px 12px; background: var(--g50); border: 1px solid var(--g200); border-radius: 100px; font-size: var(--text-xs); color: var(--g700); font-weight: 600; }
.badge-dot { width: 7px; height: 7px; background: #4caf50; border-radius: 50%; animation: pulse 2.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }

/* ── Main ────────────────────────────────────────────── */
.main-content { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 2.5rem 1.5rem 4rem; max-width: 720px; margin: 0 auto; width: 100%; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 2rem; animation: fadeUp .5s ease-out; }
.hero h1 { font-size: 1.6rem; font-weight: 800; color: var(--pri); margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.hero p { color: var(--g600); font-size: var(--text-base); max-width: 520px; margin: 0 auto; line-height: 1.7; }
.law-ref { display: inline-flex; align-items: center; gap: 6px; margin-top: 0.8rem; padding: 6px 14px; background: var(--g100); border: 1px solid var(--g300); border-radius: 100px; font-size: var(--text-xs); color: var(--g700); font-weight: 600; }
.law-ref svg { flex-shrink: 0; }

/* ── Stepper ──────────────────────────────────────────── */
.stepper { display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; animation: fadeUp .5s ease-out .05s backwards; }
.step-item { display: flex; align-items: center; gap: 6px; }
.step-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 700; border: 2px solid var(--g300); color: var(--g500); background: var(--white); transition: all .3s; flex-shrink: 0; }
.step-circle.active { border-color: var(--pri); background: var(--pri); color: var(--white); box-shadow: 0 2px 10px rgba(44,51,128,.25); }
.step-circle.done { border-color: var(--pri); color: var(--pri); }
.step-label { font-size: 11px; color: var(--g500); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; transition: color .3s; }
.step-label.active { color: var(--pri); }
.step-label.done { color: var(--g700); }
.step-line { width: 36px; height: 2px; background: var(--g300); margin: 0 4px; border-radius: 2px; transition: background .35s; flex-shrink: 0; }
.step-line.done { background: var(--pri); }

/* ── Anon banner ──────────────────────────────────────── */
.anon-banner { display: flex; align-items: flex-start; gap: 0.7rem; padding: 12px 16px; background: var(--g50); border: 1px solid var(--g200); border-left: 3px solid var(--pri); border-radius: 0 var(--r) var(--r) 0; margin-bottom: 2rem; font-size: var(--text-sm); color: var(--g700); line-height: 1.55; animation: fadeUp .5s ease-out .1s backwards; }
.anon-banner svg { flex-shrink: 0; margin-top: 1px; }
.anon-banner strong { color: var(--g900); }

/* ── Form card ────────────────────────────────────────── */
.form-card { width: 100%; background: var(--white); border: 1px solid var(--g200); border-radius: var(--rl); padding: 2rem; box-shadow: 0 4px 16px rgba(0,0,0,.06); animation: fadeUp .5s ease-out .15s backwards; }
.form-step { display: none; animation: fadeIn .35s ease-out; }
.form-step.active { display: block; }
.form-step-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; color: var(--g900); }
.form-step-desc { font-size: var(--text-sm); color: var(--g600); margin-bottom: 1.5rem; line-height: 1.6; }

/* ── Fields ───────────────────────────────────────────── */
.field-group { margin-bottom: 1.25rem; }
.field-label { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--g800); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.field-label .optional { color: var(--g500); font-weight: 500; text-transform: none; font-size: 11px; }

/* Radio cards */
.radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--white); border: 1px solid var(--g300); border-radius: var(--r); cursor: pointer; transition: all .2s; font-size: var(--text-sm); font-weight: 500; color: var(--g800); }
.radio-card label:hover { border-color: var(--g400); background: var(--g50); }
.radio-card input:checked + label { border-color: var(--pri); background: rgba(44,51,128,.04); color: var(--pri); box-shadow: 0 0 0 1px var(--pri); }
.icon-box { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: var(--g100); flex-shrink: 0; transition: background .2s; }
.radio-card input:checked + label .icon-box { background: rgba(44,51,128,.1); }
.icon-box svg { width: 14px; height: 14px; color: var(--g600); transition: color .2s; }
.radio-card input:checked + label .icon-box svg { color: var(--pri); }
.check { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--g400); margin-left: auto; flex-shrink: 0; transition: all .2s; display: flex; align-items: center; justify-content: center; }
.radio-card input:checked + label .check { border-color: var(--pri); background: var(--pri); }
.radio-card input:checked + label .check svg { display: block; }
.check svg { display: none; width: 9px; height: 9px; color: var(--white); }

/* Text inputs */
input[type="text"], textarea { width: 100%; padding: 10px 12px; background: var(--white); border: 1px solid var(--g300); border-radius: var(--r); color: var(--g900); font-family: var(--font); font-size: var(--text-base); transition: all .2s; outline: none; }
input[type="text"]:focus, textarea:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(44,51,128,.1); }
input::placeholder, textarea::placeholder { color: var(--g400); }
textarea { resize: vertical; min-height: 160px; line-height: 1.65; }
.inline-radios { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-radios .radio-card { flex: 1; min-width: 100px; }
.inline-radios .icon-box { display: none; }

/* ── Buttons ──────────────────────────────────────────── */
.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--g200); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: none; border-radius: var(--r); font-family: var(--font); font-size: var(--text-sm); font-weight: 700; cursor: pointer; transition: all .2s; text-decoration: none; }
.btn svg { flex-shrink: 0; }
.btn-back { background: transparent; color: var(--g600); padding-left: 0; }
.btn-back:hover { color: var(--g900); }
.btn-next { background: var(--pri); color: var(--white); box-shadow: 0 2px 8px rgba(44,51,128,.2); }
.btn-next:hover { background: var(--pri-dk); transform: translateY(-1px); }
.btn-submit { background: var(--acc); color: var(--white); box-shadow: 0 2px 8px rgba(244,67,54,.25); padding: 10px 24px; font-size: var(--text-base); }
.btn-submit:hover { background: var(--acc-dk); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Misc ─────────────────────────────────────────────── */
.char-counter { text-align: right; font-size: var(--text-xs); color: var(--g500); margin-top: 4px; font-weight: 500; }
.field-error { font-size: var(--text-sm); color: var(--acc); font-weight: 600; margin-top: 4px; display: none; }
.field-error.visible { display: block; animation: shake .35s ease; }

/* ── Success ──────────────────────────────────────────── */
.success-screen { display: none; text-align: center; padding: 3rem 1.5rem; animation: fadeIn .5s; }
.success-screen.active { display: block; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--pri); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; box-shadow: 0 4px 20px rgba(44,51,128,.2); }
.success-icon svg { color: var(--white); }
.success-screen h2 { font-size: 1.3rem; font-weight: 800; color: var(--g900); margin-bottom: 0.5rem; }
.success-screen p { color: var(--g600); font-size: var(--text-base); line-height: 1.7; max-width: 420px; margin: 0 auto; }
.protocol-box { display: inline-flex; flex-direction: column; margin: 1.25rem 0; padding: 12px 20px; background: var(--g50); border: 1px solid var(--g200); border-left: 3px solid var(--pri); border-radius: 0 var(--r) var(--r) 0; }
.protocol-label { font-size: 11px; font-weight: 700; color: var(--g500); text-transform: uppercase; letter-spacing: .05em; }
.protocol-number { font-size: 1rem; font-weight: 800; color: var(--pri); letter-spacing: .03em; margin-top: 2px; }
.protocol-hint { font-size: var(--text-sm); color: var(--g500); margin-top: 0.5rem; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--g900); text-align: center; padding: 1.25rem 2rem; font-size: var(--text-xs); color: var(--g500); line-height: 1.7; flex-shrink: 0; }
.site-footer a { color: var(--g400); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--white); }

/* ── Loading ──────────────────────────────────────────── */
.loading-overlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,.92); z-index: 1000; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; backdrop-filter: blur(4px); }
.loading-overlay.active { display: flex; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--g200); border-top-color: var(--pri); border-radius: 50%; animation: spin .7s linear infinite; }
.loading-overlay p { color: var(--g700); font-size: var(--text-base); font-weight: 600; }

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0}to{opacity:1} }
@keyframes shake { 0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)} }
@keyframes spin { to{transform:rotate(360deg)} }

/* ── Responsive ───────────────────────────────────────── */
@media(max-width:768px) {
    .site-header { padding: 0 1rem; height: 56px; }
    .logo-img { height: 28px; }
    .logo-divider, .logo-text { display: none; }
    .badge-text { display: none; }
    .main-content { padding: 1.5rem 1rem 3rem; }
    .hero h1 { font-size: 1.3rem; }
    .form-card { padding: 1.25rem; }
    .radio-grid { grid-template-columns: 1fr; }
    .step-label { display: none; }
    .step-line { width: 20px; }
    .form-nav { flex-direction: column-reverse; gap: 8px; }
    .form-nav .btn { width: 100%; justify-content: center; }
}
@media(max-width:400px) {
    .hero h1 { font-size: 1.15rem; }
    .hero p { font-size: var(--text-sm); }
}
