:root {
  --ink: #0d1228;
  --muted: #566075;
  --line: #dfe3ec;
  --purple: #4c0ee9;
  --purple-dark: #3506b6;
  --purple-soft: #f1edff;
  --green: #247a5a;
  --green-soft: #eef8f3;
  --orange: #b85e18;
  --orange-soft: #fff3e8;
  --blue: #075fc6;
  --blue-soft: #ecf5ff;
  --paper: #ffffff;
  --wash: #f6f7fb;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(13, 18, 40, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; }

.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;
}

.site-header {
  min-height: 88px;
  padding: 18px max(28px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--purple);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 29px;
  height: 6px;
  margin-top: 29px;
  border-top: 2px solid var(--paper);
  border-radius: 50%;
}

.brand-mark { position: relative; }
.brand-mark span { color: var(--paper); }

.home-link {
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.home-link:hover { text-decoration: underline; }

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  padding: 72px 0 56px;
}

.intro-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  column-gap: 72px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p { letter-spacing: 0; }

h1 {
  grid-row: 2 / 5;
  margin: 0;
  max-width: 720px;
  font-size: clamp(39px, 5vw, 64px);
  line-height: 1.06;
}

.slogan {
  grid-column: 2;
  margin: 0 0 15px;
  color: var(--purple);
  font-size: 19px;
  font-weight: 600;
}

.lead {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.program-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.program-strip article {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.program-strip img {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
  object-position: center;
  background: var(--purple-soft);
}

.program-strip h2 {
  margin: 20px 22px 4px;
  font-size: 20px;
  line-height: 1.3;
}

.program-strip p {
  margin: 0 22px 22px;
  color: var(--muted);
  font-size: 14px;
}

.form-section {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 68px;
  align-items: start;
  padding: 66px 0 88px;
  border-top: 1px solid var(--line);
}

.form-heading {
  position: sticky;
  top: 28px;
}

.form-heading h2 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.2;
}

.form-heading > p:last-child {
  color: var(--muted);
}

form {
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

fieldset {
  padding: 0 0 36px;
  margin: 0 0 36px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 21px;
  font-weight: 600;
}

legend span,
label span[aria-hidden="true"],
.form-heading span[aria-hidden="true"] { color: var(--danger); }

.field-help {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.full-width { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #bbc3d1;
  border-radius: 4px;
  outline: none;
}

textarea { resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(76, 14, 233, 0.12);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice {
  min-height: 90px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.choice:hover { border-color: #aaa0cd; }

.choice:has(input:checked) {
  background: var(--purple-soft);
  border-color: var(--purple);
}

.choice input,
.consent input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--purple);
}

.choice strong,
.choice small { display: block; }

.choice strong { font-size: 14px; }

.choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.character-count {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.consent-area { margin-top: -5px; }

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.privacy-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  color: #174f3c;
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  font-size: 12px;
}

.privacy-note a { font-weight: 600; }

.submit-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

button {
  min-height: 48px;
  padding: 15px 22px;
  color: var(--paper);
  background: var(--purple);
  border: 0;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: var(--purple-dark); }

button:focus-visible {
  outline: 3px solid rgba(76, 14, 233, 0.3);
  outline-offset: 3px;
}

#form-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.error-message {
  min-height: 21px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.honeypot { display: none !important; }

.site-footer {
  min-height: 130px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px max(28px, calc((100vw - 1180px) / 2));
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
}

.site-footer span { color: #c9cede; }

.site-footer a { color: var(--paper); }

.thank-you {
  min-height: calc(100vh - 218px);
  display: grid;
  place-items: center;
  padding: 64px 20px;
}

.thank-you-content {
  width: min(720px, 100%);
  text-align: center;
}

.thank-you-content h1 { max-width: none; }

.thank-you-content p {
  color: var(--muted);
  font-size: 18px;
}

.primary-link {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 22px;
  color: var(--paper);
  background: var(--purple);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .intro-copy,
  .form-section { grid-template-columns: 1fr; }
  .intro-copy { gap: 20px; }
  h1 { grid-row: auto; }
  .slogan,
  .lead { grid-column: auto; }
  .program-strip { grid-template-columns: 1fr; }
  .program-strip article { display: grid; grid-template-columns: 180px 1fr; align-items: center; }
  .program-strip img { grid-row: 1 / 3; height: 140px; }
  .program-strip h2 { margin-top: 18px; }
  .form-section { gap: 28px; }
  .form-heading { position: static; }
  .site-footer { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 74px; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 42px; height: 42px; }
  .home-link { font-size: 12px; }
  main { width: min(100% - 28px, 1180px); }
  .intro { padding: 48px 0 38px; }
  h1 { font-size: 38px; }
  .slogan { margin-top: 18px; font-size: 17px; }
  .program-strip article { display: block; }
  .program-strip img { height: 180px; }
  .form-section { padding: 44px 0 64px; }
  form { padding: 25px 18px; }
  .field-grid,
  .choice-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .submit-row { align-items: stretch; flex-direction: column; }
  button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
