:root {
  --ink: #25282d;
  --muted: #62676d;
  --graphite: #000000;
  --accent: #8f5d3c;
  --accent-dark: #70462f;
  --accent-gradient: linear-gradient(to right, #f9c89d 1%, #d59b70 25%, #af704a 37%, #b0754b 63%, #b67c52 71%, #c99065 83%, #e3ab80 94%, #e1a97e 97%, #dba278 98%, #d0966d 99%, #c2855d 99%, #af704a 100%, #8f5d3c 100%);
  --page: #fff;
  --line: #d9dadd;
  --success: #34745a;
  --danger: #b4473a;
  font-family: "Manrope", "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); color: var(--ink); line-height: 1.6; }
button, input, textarea { font: inherit; color: inherit; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
:focus-visible { outline: 3px solid #d59b70; outline-offset: 2px; }
[hidden] { display: none !important; }

header { background: var(--graphite); }
header a { display: block; width: min(560px, 100vw); margin: 0 auto; padding: 14px 0; line-height: 0; }
header img { width: 100%; height: auto; }
.progress { height: 3px; background: var(--line); }
.progress span { display: block; height: 100%; width: 0; background: var(--accent-gradient); transition: width .3s ease; }

main { flex: 1; width: min(560px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 72px; }
.step-meta { margin: 0 0 8px; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; }
.lead { margin: 0 0 32px; color: var(--muted); }
.optional { color: var(--muted); font-size: .85em; font-weight: 400; }

.drop { position: relative; display: block; border: 1px dashed #b9babd; border-radius: 8px; padding: 28px 20px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s; }
.drop:hover, .drop:focus-within, .drop.is-over { border-color: var(--accent); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { display: block; color: var(--accent); }
.drop small { color: var(--muted); }
.files { margin: 10px 0 0; padding: 0; list-style: none; font-size: .88rem; }
.files li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.group + .group { margin-top: 28px; }
.label { display: block; margin-bottom: 8px; font-weight: 700; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
label.field span { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }
.control { width: 100%; min-height: 46px; border: 1px solid #c9cace; border-radius: 6px; padding: 10px 12px; background: #fff; }
textarea.control { min-height: 140px; resize: vertical; }
.control[aria-invalid="true"] { border-color: var(--danger); }
.hint { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }

fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 10px; padding: 0; font-weight: 700; }
.options { display: grid; gap: 8px; }
.option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: #fff; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); }
.reveal { margin: 4px 0 4px 28px; }

.error { margin: 18px 0 0; color: var(--danger); font-size: .9rem; font-weight: 600; }
.error::before { content: "! "; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; }
.button { min-height: 48px; border: 0; border-radius: 6px; padding: 12px 22px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.button:hover { background: var(--accent-dark); }
.link { border: 0; padding: 8px 0; background: none; color: var(--muted); cursor: pointer; }
.link:hover { color: var(--ink); }
.note { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }

.start h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.start .button { width: 100%; }
.claims { margin: 0 0 32px; color: var(--ink); font-weight: 700; }
.done { text-align: center; }
.done-icon { display: grid; width: 56px; height: 56px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: #e6f0eb; color: var(--success); font-size: 1.6rem; }
.success-link { display: inline-block; text-decoration: none; }

footer { padding: 20px; color: var(--muted); font-size: .8rem; text-align: center; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  main { width: calc(100% - 32px); padding-top: 36px; }
  .fields { grid-template-columns: 1fr; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .link { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
