/* LGMA Eligibility Checker — Pre-screener form
   Humana Design system tokens, light/dark via prefers-color-scheme.

   Two tokens are derived from the brand palette specifically to pass
   WCAG 2.2 AA contrast at the small text sizes they're used at:
     --muted-text  (darkened --muted,   4.5:1 on --card in light mode)
     --accent2-ink (darkened --accent2, 4.5:1 on --card in light mode)
   --muted and --accent2 stay at their brand values for non-text uses
   (borders, small decorative marks) where the 3:1 UI-component
   threshold applies instead. See README for the numbers. */

:root {
  --surface-1: #fcfcfb;
  --card: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #8a887f;
  --muted-text: #6b6a61;
  --line: #e7e5df;
  --accent: #004a60;
  --accent2: #3fbeb5;
  --accent2-ink: #2b837d;
  --error: #b3261e;
  --focus: #004a60;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-1: #1a1a19;
    --card: #222321;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #8f8e85;
    --muted-text: #a3a299;
    --line: #33332f;
    --accent: #7fd0c9;
    --accent2: #3fbeb5;
    --accent2-ink: #3fbeb5;
    --error: #ff8a80;
    --focus: #7fd0c9;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-1);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
}

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

.wrap {
  width: 100%;
  max-width: 560px;
  padding: 40px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}

@media (min-width: 480px) {
  .card {
    padding: 32px;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2-ink);
  margin: 0 0 12px;
}

h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--ink);
}

.intro {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0 0 8px;
}

.intro + .intro {
  margin-top: 8px;
}

.required-note {
  color: var(--muted-text);
  font-size: 13px;
  margin: 16px 0 24px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}

.field {
  margin: 0 0 22px;
}

label,
legend {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  padding: 0;
}

legend {
  margin-bottom: 10px;
}

.optional-tag {
  font-weight: 400;
  color: var(--muted-text);
}

.helper {
  font-size: 13px;
  color: var(--muted-text);
  margin: 0 0 8px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 12px 14px;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
button:focus-visible,
a.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 12px 14px;
}

.radio-option input[type="radio"],
.radio-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--accent);
}

.radio-option label {
  font-size: 15px;
  font-weight: 400;
  margin: 0;
}

.radio-option .option-desc {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-text);
  margin-top: 2px;
}

.radio-inline-group {
  display: flex;
  gap: 12px;
}

.radio-inline-group .radio-option {
  flex: 1;
}

.other-detail {
  margin-top: 10px;
  margin-left: 28px;
}

.other-detail label {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
}

.other-detail[hidden] {
  display: none;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--accent);
}

.checkbox-field label {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  margin: 0;
}

.error-text {
  display: none;
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
}

button[type="submit"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  margin-top: 8px;
  cursor: pointer;
}

button[type="submit"]:hover {
  opacity: 0.92;
}

.footnote {
  font-size: 13px;
  color: var(--muted-text);
  margin-top: 16px;
  text-align: center;
}

/* Thank-you page */
.thanks-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

a.button {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border-radius: 8px;
  padding: 14px 20px;
  text-decoration: none;
  margin-top: 20px;
}

a.button:hover {
  opacity: 0.92;
}
