:root {
  --brand: #d71920;
  --ink: #16181c;
  --text: #1d1f23;
  --muted: #646a73;
  --line: #dfe2e6;
  --bg: #f3f4f6;
  --card: #fff;
  --field: #fff;
  --error: #c42b1c;
  --ok: #1f8a4c;
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--ink); border-bottom: 4px solid var(--brand); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: block; }
.logo img { height: 34px; width: auto; display: block; }
.header-tag { color: #c9ccd1; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; }

.intro { padding: 28px 0 8px; }
.intro h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.3px; }
.intro p { margin: 0; color: #3b3f45; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 18px rgba(0,0,0,.04); margin: 20px 0 40px; }
form.card { padding: 8px 0; }

.step { border: 0; margin: 0; padding: 22px 24px; min-width: 0; }
.step ~ .step { border-top: 1px solid var(--line); }
#finalSection { border-top: 1px solid var(--line); }
.step legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.step legend + * { clear: both; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; flex: none; }
.section-note { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 16px; }
.field.narrow { max-width: 280px; }
label, .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type=text], input:not([type]), input[type=email], input[type=tel], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--field);
  border: 1.5px solid #c8ccd2; border-radius: 8px; padding: 11px 12px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,24,28,.12); }
.invalid input, .invalid textarea, .invalid .choices, .invalid .dropzone { border-color: var(--error); }
.reg { text-transform: uppercase; font-weight: 700; letter-spacing: 1px; background: #fff6c2 !important; max-width: 200px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.error { color: var(--error); font-size: 14px; margin: 6px 0 0; font-weight: 600; }
.error:empty { display: none; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-radius: 10px; }
.choice { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; height: 100%; border: 1.5px solid #c8ccd2; border-radius: 8px; padding: 12px 14px 12px 40px; transition: border-color .15s, background .15s; position: relative; }
.choice span::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #9aa0a8; background: #fff; }
.choice strong { display: block; font-size: 15px; }
.choice small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.choice:hover span { border-color: #8a9098; }
.choice input:checked + span { border-color: var(--ink); background: #f6f7f8; box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + span::before { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 4px, #fff 5px); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(22,24,28,.25); }

.help { border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; margin: 0 0 18px; font-size: 14.5px; }
.help summary { cursor: pointer; padding: 11px 14px; font-weight: 600; color: var(--ink); }
.help > div { padding: 0 14px 6px; }
.help p { margin: 0 0 8px; }
.help ul { margin: 0 0 10px; padding-left: 20px; }
.help li { margin-bottom: 4px; }

.dropzone { display: flex; align-items: center; gap: 14px; border: 2px dashed #b9bec5; border-radius: 10px; padding: 18px; cursor: pointer; font-weight: 400; background: #fafbfc; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--ink); background: #f1f2f4; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone small { color: var(--muted); }
.dz-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e8eaed; color: var(--ink); flex: none; }

.previews { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.previews li { position: relative; border-radius: 8px; overflow: hidden; background: #e8eaed; aspect-ratio: 1; }
.previews img, .previews video { width: 100%; height: 100%; object-fit: cover; display: block; }
.previews .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.previews .remove { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.previews .file-badge { position: absolute; top: 6px; left: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 4px; }
.previews .noprev { display: grid; place-items: center; height: 100%; font-size: 12px; color: var(--muted); padding: 8px; text-align: center; }

.terms { margin: 22px 24px 0; padding: 16px 18px; background: #fff8e8; border: 1px solid #f0d58e; border-radius: 8px; }
.terms h2 { font-size: 16px; margin: 0 0 8px; }
.terms ul { margin: 0 0 14px; padding-left: 20px; font-size: 14.5px; }
.terms li { margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }

.hp { position: absolute; left: -9999px; }

.submit-row { padding: 20px 24px 18px; }
.form-error { color: var(--error); font-weight: 600; margin: 0 0 12px; }
.form-error:empty { display: none; }
.btn { appearance: none; border: 0; background: var(--brand); color: #fff; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1; padding: 16px 26px; border-radius: 8px; cursor: pointer; width: 100%; min-height: 52px; transition: filter .15s; }
.btn:hover { filter: brightness(.92); }
.btn:disabled { opacity: .6; cursor: progress; }
.progress { margin-top: 12px; position: relative; height: 26px; background: #e8eaed; border-radius: 6px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--ink); transition: width .2s; }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; mix-blend-mode: difference; }

.success { padding: 40px 28px; text-align: center; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; }
.success h2 { margin: 0 0 10px; font-size: 24px; }
.success .ref { font-size: 22px; letter-spacing: 1px; color: var(--ink); background: #f0f1f3; padding: 2px 10px; border-radius: 6px; }
.success p { max-width: 480px; margin: 10px auto; }
.muted { color: var(--muted); font-size: 15px; }

.site-footer { color: var(--muted); font-size: 13px; padding: 0 0 30px; text-align: center; }

@media (max-width: 600px) {
  .intro h1 { font-size: 25px; }
  .grid, .choices { grid-template-columns: 1fr; }
  .logo img { height: 28px; }
  .step { padding: 20px 16px; }
  .terms { margin: 18px 16px 0; }
  .submit-row { padding: 18px 16px; }
  .field.narrow { max-width: none; }
  .reg { max-width: none; }
}

/* Progressive steps */
.step-hint { display: none; margin: 4px 0 0; font-size: 14px; color: var(--muted); font-style: italic; }
.step.current .step-hint { display: block; }
.reveal { animation: reveal .3s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

.notice { background: #eef6ff; border: 1px solid #b9d6f5; color: #17375e; border-radius: 8px; padding: 12px 14px; font-size: 14.5px; margin: 0 0 16px; }
.notice.left { text-align: left; max-width: 480px; margin: 16px auto 0; background: #fff8e8; border-color: #f0d58e; color: var(--text); }

.steps-list { text-align: left; max-width: 480px; margin: 18px auto; padding-left: 22px; }
.steps-list li { margin-bottom: 8px; }
.btn-inline { display: inline-block; width: auto; text-decoration: none; padding: 16px 28px; }
