:root {
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #d6dbe4;
  --bg: #f5f7fa;
  --card: #ffffff;
  --accent: #1f5fbf;
  --error: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 24px; }
form { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-weight: 600; margin-bottom: 8px; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
label.field { display: block; margin-bottom: 14px; font-weight: 500; }
label.field input, label.field select, label.field textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.yesno { margin-bottom: 14px; }
.yesno p { margin: 0 0 4px; font-weight: 500; }
.yesno label { margin-right: 20px; font-weight: 400; }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.9rem; color: var(--muted); margin: 8px 0 16px;
}
.consent input { margin-top: 4px; flex: none; }
.attest { font-size: 0.9rem; color: var(--muted); margin: 0 0 16px; }
button {
  width: 100%; padding: 14px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
button[disabled] { opacity: 0.6; cursor: wait; }
.msg { margin-top: 14px; font-weight: 500; }
.msg.error { color: var(--error); }
footer { color: var(--muted); font-size: 0.8rem; margin-top: 24px; }
footer a { color: inherit; }
