:root {
  color-scheme: light;
  --ink: #15312e;
  --muted: #60736f;
  --surface: #ffffff;
  --wash: #eff8f4;
  --line: #d5e4de;
  --brand: #0d6b5b;
  --brand-dark: #09483f;
  --danger: #b42318;
  --danger-wash: #fff1f0;
  --shadow: 0 18px 45px rgba(13, 77, 64, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(160deg, #f4fbf8 0%, #e8f3ee 100%);
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(100% - 2rem, 760px); margin: 0 auto; padding: 2rem 0 3rem; }
.hero { padding: 1rem .25rem 1.5rem; }
.eyebrow, .step { color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 18ch; margin-bottom: .8rem; font-size: clamp(2.1rem, 9vw, 4.25rem); line-height: 1.02; letter-spacing: -.055em; }
h2 { margin-bottom: .35rem; font-size: 1.55rem; letter-spacing: -.025em; }
.hero > p:last-child, .section-heading > p:last-child, .helper { color: var(--muted); }
.card { padding: 1.25rem; background: var(--surface); border: 1px solid rgba(13, 107, 91, .09); border-radius: 1.15rem; box-shadow: var(--shadow); }
.section-heading { margin-bottom: 1.5rem; }
fieldset { min-width: 0; margin: 0 0 1.35rem; padding: 0; border: 0; }
legend { margin-bottom: .85rem; font-size: 1.05rem; font-weight: 750; }
label { display: block; margin: .9rem 0 .35rem; font-weight: 650; }
input:not([type="checkbox"]), textarea { width: 100%; padding: .78rem .85rem; color: var(--ink); background: #fcfefd; border: 1px solid var(--line); border-radius: .65rem; font: inherit; }
textarea { resize: vertical; }
input:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(13, 107, 91, .24); outline-offset: 2px; border-color: var(--brand); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 1.1rem; margin: .25rem 0 0; color: var(--danger); font-size: .86rem; }
.helper { margin: -.25rem 0 .8rem; font-size: .9rem; }
.optional { color: var(--muted); font-size: .88rem; font-weight: 450; }
.upload-grid { display: grid; gap: .85rem; margin-top: .4rem; }
input[type="file"] { width: 100%; padding: .55rem; color: var(--muted); background: var(--wash); border: 1px dashed var(--line); border-radius: .65rem; font: inherit; }
.consent-row { display: flex; gap: .65rem; align-items: flex-start; margin: .35rem 0 0; font-weight: 500; }
input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--brand); flex: 0 0 auto; }
button { width: 100%; margin-top: .9rem; padding: .9rem 1rem; color: white; background: var(--brand); border: 0; border-radius: .7rem; font: inherit; font-weight: 750; cursor: pointer; }
button:hover { background: var(--brand-dark); }
button:disabled { cursor: wait; opacity: .65; }
button.secondary { color: var(--brand-dark); background: var(--wash); }
.notice { margin: 0 0 1rem; padding: .8rem .9rem; border-radius: .65rem; }
.notice.error { color: var(--danger); background: var(--danger-wash); }
.success-card { text-align: center; }
.success-mark { display: grid; width: 3.25rem; height: 3.25rem; margin: 0 auto 1rem; place-items: center; color: white; background: var(--brand); border-radius: 50%; font-size: 1.8rem; }
.reference { padding: .8rem; color: var(--brand-dark); background: var(--wash); border-radius: .6rem; }
footer { padding: 1.5rem .25rem 0; color: var(--muted); font-size: .88rem; text-align: center; }

@media (min-width: 620px) {
  .shell { padding-top: 4rem; }
  .card { padding: 2rem; }
  .upload-grid { grid-template-columns: 1fr 1fr; }
}

