/* Anchor Medicare registration page.
   Light ground for a 65-75 reader; Anchor navy is the ink, gold is the one button.
   Direction and tokens: brand/brand-kit.md (Medicare funnel section).
   Contrast is measured, not assumed - see log.md for the token table. */

:root {
  --paper: #F7F4EF;      /* warm off-white page ground */
  --card: #FFFFFF;       /* form card */
  --ink: #0A1628;        /* Anchor navy, used as text */
  --ink-2: #3E4C5E;      /* secondary text, 7.9:1 on paper */
  --gold: #C9A84C;       /* button fill + hairlines only, never text */
  --gold-hover: #D4B65E;
  --ctrl: #6B7A8A;       /* field borders, 4.4:1 on card */
  --helper: #4A5A6C;     /* helper text, 7:1 on card */
  --error-ink: #8C2F1F;
  --error-bg: #FBEDE9;
  --radius-card: 16px;
  --radius-field: 10px;
  --shadow-card: 0 10px 24px rgba(10, 22, 40, 0.08), 0 2px 6px rgba(10, 22, 40, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.6;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 36px;
}
.brand img { width: 30px; height: 30px; }
.brand span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Hero */
h1 {
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 18px;
}
.gold-rule {
  width: 64px;
  height: 4px;
  background: var(--gold);
  border: 0;
  border-radius: 2px;
  margin: 0 0 22px;
}
.sub {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 26px;
  text-wrap: pretty;
}
.details {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 44px;
}
.details .slot {
  border-bottom: 2px dashed var(--ctrl);
  font-weight: 700;
}

/* Covers */
h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}
.covers {
  list-style: none;
  margin-bottom: 40px;
}
.covers li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px solid rgba(107, 122, 138, 0.25);
  font-size: 19px;
}
.covers li:last-child { border-bottom: 0; }
.covers li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1.05em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.promise p {
  font-size: 19px;
  margin-bottom: 16px;
  text-wrap: pretty;
}
.promise { margin-bottom: 44px; }

/* Block 3: the solicitation disclosure. Body size, full-strength ink, right above
   the form. It must never be smaller, lighter, or further from the form than this. */
.block3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 22px;
}

/* Form card */
.form-card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  margin-bottom: 48px;
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 20px;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ctrl);
  border-radius: var(--radius-field);
  padding: 13px 14px;
  min-height: 54px;
}
.field input:focus-visible,
input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible,
.cta:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

fieldset {
  border: 0;
  margin-bottom: 22px;
}
legend {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0;
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 19px;
  padding: 10px 4px;
  cursor: pointer;
}
.radio input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-top: 2px;
  accent-color: var(--ink);
  cursor: pointer;
}

/* Honeypot: never shown, never focusable. Bots that fill by field name land here. */
.hp-wrap { display: none; }

/* Block 4: the consent element. Its own bordered box, never merged with anything. */
.consent {
  border: 2px solid var(--ctrl);
  border-radius: 12px;
  padding: 16px;
  margin: 26px 0;
}
.consent.is-locked { border-style: dashed; }
.consent.is-unlocked { border-style: solid; border-color: var(--ink); }
.consent .row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.consent input[type="checkbox"] {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  margin-top: 3px;
  accent-color: var(--ink);
}
.consent.is-locked input[type="checkbox"] { cursor: not-allowed; }
.consent label {
  font-size: 18px;
  line-height: 1.55;
  cursor: pointer;
}
#consentNumber { font-weight: 700; white-space: nowrap; }
#consentNumber.is-empty { font-weight: 400; color: var(--helper); }
.helper {
  font-size: 18px;
  color: var(--helper);
  margin: 10px 0 0 38px;
}
.helper.is-problem { color: var(--error-ink); font-weight: 600; }
.consent.is-unlocked .helper { display: none; }

/* One gold action on the page. Navy border carries the 3:1 control boundary. */
.cta {
  display: block;
  width: 100%;
  min-height: 58px;
  font: inherit;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  margin-top: 6px;
}
.cta:hover { background: var(--gold-hover); }
.cta[disabled] { opacity: 0.7; cursor: wait; }

.submit-error {
  display: none;
  font-size: 19px;
  font-weight: 600;
  color: var(--error-ink);
  background: var(--error-bg);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
}
.submit-error.is-visible { display: block; }

.under-cta {
  text-align: center;
  font-size: 18px;
  margin-top: 18px;
}
.under-cta a { color: var(--ink); }

/* Footer legal block: blocks 1, 2 and 5. Same size and strength as body text,
   by rule - a disclaimer is never restyled smaller or lighter to tidy the page. */
.legal {
  border-top: 3px solid var(--gold);
  padding: 32px 20px 44px;
  background: var(--card);
}
.legal-inner { max-width: 680px; margin: 0 auto; }
.legal p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.legal p:last-child { margin-bottom: 0; }

/* Thanks page */
.thanks-card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 48px;
}
.thanks-card h1 { font-size: clamp(30px, 6vw, 40px); }
.thanks-card p { font-size: 19px; margin-bottom: 16px; text-wrap: pretty; }
.thanks-card p:last-child { margin-bottom: 0; }

@media (min-width: 720px) {
  .wrap { padding-top: 40px; }
  .form-card { padding: 36px 32px; }
  body { font-size: 20px; }
}
