:root {
  color-scheme: light;
  --mah-ink: #1f2933;
  --mah-muted: #5d6773;
  --mah-navy: #251a55;
  --mah-red: #c21116;
  --mah-red-dark: #951015;
  --mah-green: #17665f;
  --mah-paper: #fffdfa;
  --mah-warm: #f5f0e8;
  --mah-line: #d9dfe4;
  --mah-focus: #2b6cb0;
  --mah-danger: #a61b1b;
  --mah-success: #165f45;
  --mah-shadow: 0 22px 54px rgba(31, 41, 51, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--mah-ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 26, 85, 0.08), transparent 34rem),
    linear-gradient(180deg, var(--mah-warm) 0, var(--mah-paper) 31rem);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--mah-red-dark); }
a:hover { color: var(--mah-red); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--mah-focus);
  outline-offset: 3px;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--mah-line);
}

.header-inner,
.page-shell,
.site-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-logo {
  display: block;
  width: min(260px, 58vw);
  height: auto;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  font-size: 0.94rem;
  font-weight: 700;
}

.header-links a { min-height: 44px; display: inline-flex; align-items: center; }

.page-shell { padding: clamp(44px, 7vw, 82px) 0 64px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--mah-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--mah-navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
}

h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 6vw, 4.65rem);
  letter-spacing: -0.035em;
}

h2 { margin: 0 0 12px; font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { margin: 0 0 8px; font-size: 1.2rem; }

.lede {
  max-width: 760px;
  margin: 0;
  color: var(--mah-muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.enrollment-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  margin-top: clamp(34px, 6vw, 64px);
}

.program-points {
  display: grid;
  gap: 16px;
  margin: 0;
}

.program-point {
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--mah-line);
  border-radius: 14px;
}

.program-point p { margin: 0; color: var(--mah-muted); }

.separate-program-note {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--mah-green);
  background: #eef7f4;
  color: #24433e;
}

.form-card {
  padding: clamp(24px, 4vw, 38px);
  background: #fff;
  border: 1px solid rgba(37, 26, 85, 0.12);
  border-radius: 20px;
  box-shadow: var(--mah-shadow);
}

.form-card h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.form-intro { margin: 0 0 24px; color: var(--mah-muted); }

.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; font-weight: 800; }

.field input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--mah-ink);
  background: #fff;
  border: 1px solid #aeb8c2;
  border-radius: 9px;
  font: inherit;
  font-size: 1.05rem;
}

.field input[aria-invalid="true"] { border-color: var(--mah-danger); }

.field-hint {
  margin: 7px 0 0;
  color: var(--mah-muted);
  font-size: 0.88rem;
}

.consent-control {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 18px;
  background: #faf8f4;
  border: 1px solid var(--mah-line);
  border-radius: 12px;
}

.consent-control input {
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--mah-red);
}

.consent-copy { font-size: 0.94rem; line-height: 1.55; }
.consent-copy label { cursor: pointer; }
.consent-links { margin: 8px 0 0; }

.noscript-note {
  margin: 0 0 22px;
  padding: 14px 16px;
  color: var(--mah-ink);
  background: #fff4df;
  border: 1px solid #d6a447;
  border-radius: 9px;
  font-weight: 700;
}

.field-error {
  min-height: 1.45em;
  margin: 7px 0 0;
  color: var(--mah-danger);
  font-size: 0.9rem;
  font-weight: 700;
}

.submit-button {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  padding: 13px 20px;
  color: #fff;
  background: var(--mah-red);
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:hover { background: var(--mah-red-dark); }
.submit-button:disabled { cursor: not-allowed; opacity: 0.58; }

.form-status {
  min-height: 1.55em;
  margin: 14px 0 0;
  color: var(--mah-muted);
  font-size: 0.92rem;
}

.form-status[data-state="error"] { color: var(--mah-danger); font-weight: 700; }
.form-status[data-state="success"] { color: var(--mah-success); font-weight: 800; }

.privacy-note {
  margin: 16px 0 0;
  color: var(--mah-muted);
  font-size: 0.84rem;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(32px, 7vw, 82px);
  align-items: start;
  margin-top: 44px;
}

.legal-content {
  padding: clamp(24px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--mah-line);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(31, 41, 51, 0.08);
}

.legal-content section + section {
  margin-top: 34px;
  padding-top: 32px;
  border-top: 1px solid var(--mah-line);
}

.legal-content p { margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 22px; }
.legal-content li + li { margin-top: 7px; }

.legal-nav {
  position: sticky;
  top: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--mah-line);
  border-radius: 14px;
}

.legal-nav strong { display: block; margin-bottom: 9px; color: var(--mah-navy); }
.legal-nav a { display: block; min-height: 38px; padding: 5px 0; font-weight: 700; }

.site-footer {
  padding: 30px 0 38px;
  color: #e8e7ee;
  background: var(--mah-navy);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer a { color: #fff; }

@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .header-links { justify-content: flex-start; }
  .enrollment-grid, .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; order: -1; }
}

@media (max-width: 480px) {
  .header-inner, .page-shell, .site-footer-inner { width: min(100% - 28px, 1120px); }
  .page-shell { padding-top: 36px; }
  .form-card, .legal-content { border-radius: 14px; }
  .consent-control { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
