:root {
  color-scheme: light;
  --ink: #24302f;
  --muted: #61706d;
  --line: #cdd8d5;
  --panel: #ffffff;
  --soft: #f4f7f6;
  --accent: #0f766e;
  --accent-dark: #0b5d56;
  --danger: #9f1239;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.45;
}

.intake-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.brand-header {
  padding: 18px 0 22px;
  border-bottom: 3px solid var(--accent);
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  color: var(--accent-dark);
  font-weight: 700;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 10px; }
h2 { font-size: 1.3rem; margin-bottom: 16px; }
h3 { font-size: 1.05rem; margin: 22px 0 10px; }

.privacy-note,
.section-help {
  color: var(--muted);
  max-width: 760px;
}

section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  padding: 20px;
}

label,
legend {
  display: block;
  font-weight: 700;
  font-size: .95rem;
}

input,
textarea,
button { font: inherit; }

input:not([type="radio"]):not([type="checkbox"]),
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #aebdb9;
  border-radius: 6px;
  padding: 10px;
  min-height: 42px;
  background: #fff;
  color: var(--ink);
}

textarea { resize: vertical; }

label + label,
fieldset + label,
label + fieldset,
.grid + label,
.family-grid + .table-wrap { margin-top: 14px; }

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two,
.family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.checks,
.radio-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 9px 14px;
  margin-top: 10px;
}

.checks label,
.radio-row label,
.consent-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #e8f1ef;
  color: #173936;
  font-size: .86rem;
}

td:not(:first-child),
th:not(:first-child) {
  text-align: center;
  width: 96px;
}

tr:last-child td { border-bottom: 0; }

.yesno-list {
  display: grid;
  gap: 10px;
}

.yesno-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.yesno-options {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.consent button {
  margin-top: 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
}

.redirect-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.human-check {
  margin-top: 14px;
}

.consent button:hover,
.consent button:focus { background: var(--accent-dark); }

#formStatus {
  margin: 12px 0 0;
  font-weight: 700;
}

#formStatus.error { color: var(--danger); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.website-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 720px) {
  .grid.two,
  .family-grid { grid-template-columns: 1fr; }
  section { padding: 16px; }
  .yesno-item { grid-template-columns: 1fr; }
  .yesno-options { justify-content: flex-start; }
}
