/* ═══ Reset & tokens ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --p: #2563eb; --p-dk: #1d4ed8; --p-lt: #eff6ff; --p-ring: rgba(37,99,235,.18);
    --bg: #f1f5f9; --sur: #fff; --bdr: #e2e8f0; --bdr2: #cbd5e1;
    --tx: #0f172a; --tx2: #475569; --mu: #94a3b8;
    --ok: #059669; --ok-lt: #f0fdf4; --ok-bdr: #a7f3d0;
    --er: #dc2626; --er-lt: #fef2f2; --er-bdr: #fca5a5;
    --r: 10px; --rlg: 16px;
    --sh: 0 10px 25px -5px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.05);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg); color: var(--tx);
    min-height: 100vh; padding: 44px 16px 80px; line-height: 1.6;
}

/* ── ASP.NET Validation ── */
.field-validation-valid { display: none; }
.field-validation-error { font-size: .8rem; color: var(--er); display: block; margin-top: 2px; }
.validation-summary-valid { display: none; }
.validation-summary-errors {
    background: var(--er-lt); border: 1px solid var(--er-bdr); color: #991b1b;
    border-radius: var(--r); padding: 10px 14px; font-size: .875rem; margin-bottom: 16px;
}
.validation-summary-errors ul { margin: 0; padding-left: 18px; }

/* ── Header ── */
.hd { max-width: 600px; margin: 0 auto 36px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; letter-spacing: -.02em; }
.bi { width: 34px; height: 34px; background: var(--p); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sc { font-size: .8rem; font-weight: 600; color: var(--mu); background: var(--sur); border: 1px solid var(--bdr); padding: 4px 14px; border-radius: 99px; }

/* ── Progress ── */
.prog { max-width: 600px; margin: 0 auto 26px; display: flex; align-items: flex-start; }
.ps { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.ps:not(:last-child)::after {
    content: ''; position: absolute; top: 12px;
    left: calc(50% + 13px); right: calc(-50% + 13px);
    height: 2px; background: var(--bdr); z-index: 0; transition: background .35s;
}
.ps.done:not(:last-child)::after { background: var(--p); }
.pdot {
    width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bdr);
    background: var(--sur); display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; color: var(--mu); position: relative; z-index: 1; transition: all .2s;
}
.ps.cur .pdot { border-color: var(--p); background: var(--p-lt); color: var(--p); box-shadow: 0 0 0 3px var(--p-ring); }
.ps.done .pdot { border-color: var(--p); background: var(--p); color: transparent; font-size: 0; }
.ps.done .pdot::after {
    content: ''; display: block; width: 9px; height: 6px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(0, 1px);
}
.plbl { font-size: .675rem; font-weight: 600; color: var(--mu); text-align: center; line-height: 1.2; white-space: nowrap; }
.ps.cur .plbl { color: var(--p); }
.ps.done .plbl { color: var(--tx2); }

/* ── Card ── */
.card { max-width: 600px; margin: 0 auto; background: var(--sur); border-radius: var(--rlg); border: 1px solid var(--bdr); box-shadow: var(--sh); overflow: hidden; }
.card-hd { padding: 28px 32px 22px; border-bottom: 1px solid var(--bdr); background: linear-gradient(120deg, var(--p-lt) 0%, var(--sur) 65%); }
.sbadge { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--p); margin-bottom: 5px; }
.sttl { font-size: 1.225rem; font-weight: 700; letter-spacing: -.025em; color: var(--tx); margin-bottom: 3px; }
.sdsc { font-size: .875rem; color: var(--tx2); }
.card-body { padding: 28px 32px; min-height: 290px; display: flex; flex-direction: column; }

/* ── Step panels ── */
.sp { display: none; flex-direction: column; gap: 22px; }
.sp.cur { display: flex; animation: fup .22s ease both; }
@keyframes fup { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* ── Fields ── */
.f { display: flex; flex-direction: column; gap: 5px; }
.f > label { font-size: .875rem; font-weight: 600; color: var(--tx); }
.req { color: var(--er); margin-left: 1px; }
.f input, .f select, .f textarea {
    padding: 10px 13px; border: 1.5px solid var(--bdr); border-radius: var(--r);
    font: inherit; font-size: .9375rem; color: var(--tx); background: #fff;
    outline: none; width: 100%; transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
}
.f select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-ring); }
.f textarea { min-height: 96px; resize: vertical; line-height: 1.65; }
.hint { font-size: .8rem; color: var(--mu); }
.ferr { font-size: .8rem; color: var(--er); display: none; margin-top: 2px; }
.ferr.show { display: block; }

/* ── Radio cards ── */
.rg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rc { cursor: pointer; }
.rc input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.rcb {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 8px 12px; border: 1.5px solid var(--bdr); border-radius: var(--r);
    font-size: .8125rem; font-weight: 600; color: var(--tx2); background: #fafbfc;
    text-align: center; transition: all .15s; user-select: none; line-height: 1.3;
}
.rc:hover .rcb { border-color: #93c5fd; background: #f0f7ff; color: var(--tx); }
.rc input:checked + .rcb { border-color: var(--p); background: var(--p-lt); color: var(--p); box-shadow: 0 0 0 3px var(--p-ring); }

/* ── Row field ── */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Toggle row ── */
.trow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1.5px solid var(--bdr); border-radius: var(--r); background: #fafbfc; }
.tinfo strong { display: block; font-size: .9375rem; font-weight: 600; }
.tinfo small { font-size: .8rem; color: var(--mu); }
.sw { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sl { position: absolute; inset: 0; background: var(--bdr2); border-radius: 99px; cursor: pointer; transition: background .2s; }
.sl::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.22); }
.sw input:checked + .sl { background: var(--p); }
.sw input:checked + .sl::before { transform: translateX(20px); }

/* ── Contact panel ── */
.cpan { display: none; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--ok-lt); border: 1.5px solid var(--ok-bdr); }
.cpan.open { display: flex; animation: fup .2s ease both; }
.cpan-ttl { font-size: .9375rem; font-weight: 700; color: #065f46; }
.cpan-dsc { font-size: .8125rem; color: #047857; margin-bottom: 2px; }

/* ── Consent ── */
.consent { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--r); background: var(--p-lt); border: 1.5px solid #bfdbfe; }
.consent input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--p); cursor: pointer; }
.consent-txt { font-size: .875rem; color: var(--tx2); line-height: 1.55; }

/* ── Card nav ── */
.card-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; border-top: 1px solid var(--bdr); background: #fafbfc; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: var(--r); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; transition: all .15s; border: none; text-decoration: none; line-height: 1; white-space: nowrap; }
.btn-p { background: var(--p); color: #fff; }
.btn-p:hover { background: var(--p-dk); }
.btn-g { background: transparent; color: var(--tx2); border: 1.5px solid var(--bdr); }
.btn-g:hover { background: var(--bg); border-color: var(--bdr2); }
.btn-inv { visibility: hidden; pointer-events: none; }

/* ── Success ── */
.success-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.success-card {
    background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--rlg);
    box-shadow: var(--sh); padding: 48px 40px; text-align: center; max-width: 460px; width: 100%;
}
.success-icon {
    width: 56px; height: 56px; background: #dcfce7; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.success-card h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: 10px; }
.success-card p { font-size: .9375rem; color: var(--tx2); line-height: 1.6; }
.success-card a { color: var(--p); text-decoration: none; font-weight: 600; }
.success-card a:hover { color: var(--p-dk); text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 500px) {
    body { padding: 22px 12px 60px; }
    .card-hd, .card-body, .card-nav { padding-left: 20px; padding-right: 20px; }
    .plbl { display: none; }
    .frow { grid-template-columns: 1fr; }
}
