:root {
  --ink: #071735;
  --muted: #64748b;
  --line: #d8e2ef;
  --blue: #075ce5;
  --blue2: #003c91;
  --pale: #eff6ff;
  --good: #079669;
  --danger: #be123c;
  --shadow: 0 22px 70px rgba(7, 23, 53, 0.1);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: linear-gradient(145deg, #f8fbff 0, #eef5ff 50%, #fff 100%);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  min-height: 100vh;
}
.program-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}
.application-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 28px auto 60px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 20px 28px 17px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}
.progress button {
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 0;
  background: none;
  color: #8190a7;
  font: inherit;
  font-size: 11px;
  cursor: default;
}
.progress b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #b8c7dc;
  border-radius: 50%;
  font-size: 10px;
}
.progress button.done b,
.progress button.active b {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.progress button.active {
  color: var(--blue);
  font-weight: 800;
}
.step {
  display: none;
  padding: clamp(24px, 5vw, 56px);
}
.step.active {
  display: block;
}
.hero.active {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 48px;
  min-height: 590px;
  align-items: center;
}
.eyebrow,
.step-heading > p {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero h1,
.step-heading h1,
.confirmation h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 55px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: #40516b;
  font-size: 18px;
  line-height: 1.65;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}
.hero-tags span {
  padding: 9px 12px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f5f9ff;
  font-size: 12px;
  font-weight: 800;
}
.principles {
  padding: 28px;
  border: 1px solid #cadbf1;
  border-radius: 18px;
  background: linear-gradient(155deg, #f2f8ff, #fff);
}
.principles h2 {
  margin-top: 0;
}
.principles ol {
  display: grid;
  gap: 22px;
  margin: 0;
  padding-left: 21px;
}
.principles li {
  padding-left: 7px;
}
.principles b,
.principles span {
  display: block;
}
.principles span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.primary,
.secondary,
.text-button {
  border: 0;
  border-radius: 9px;
  padding: 13px 19px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.primary {
  background: linear-gradient(135deg, var(--blue), #0045b2);
  color: #fff;
  box-shadow: 0 8px 20px rgba(7, 92, 229, 0.2);
}
.primary:hover {
  filter: brightness(0.95);
}
.secondary {
  border: 1px solid #cbd7e7;
  background: #fff;
  color: var(--ink);
}
.text-button {
  margin-left: 12px;
  background: transparent;
  color: var(--blue);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.step-heading {
  margin-bottom: 28px;
}
.step-heading h1 {
  font-size: clamp(28px, 4vw, 42px);
}
.step-heading > span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}
.field-grid {
  display: grid;
  gap: 18px;
}
.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field-grid.one {
  grid-template-columns: 1fr;
}
.field-grid label,
fieldset {
  display: grid;
  gap: 7px;
  color: #223552;
  font-size: 12px;
  font-weight: 800;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd7e7;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: 0;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 92, 229, 0.1);
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  margin-bottom: 10px;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 10px 0;
}
.choice-row label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.choice-row input,
.card-option input,
.consent input {
  width: auto;
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px;
  border: 1px solid #cbd7e7;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.card-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--pale);
  box-shadow: 0 0 0 2px rgba(7, 92, 229, 0.08);
}
.subheading {
  margin: 30px 0 14px;
  font-size: 18px;
}
.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.stage-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
}
.stage-row input {
  width: auto;
}
.stage-row select {
  padding: 8px;
  font-size: 12px;
}
.consent {
  margin-top: 22px;
  padding: 16px;
  border-radius: 10px;
  background: #f5f8fc;
}
.consent label {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.notice {
  margin: 20px 28px 0;
  padding: 13px 16px;
  border: 1px solid #fecdd3;
  border-radius: 9px;
  background: #fff1f2;
  color: var(--danger);
  font-size: 13px;
  font-weight: 750;
}
.notice strong {
  display: block;
}
.notice ul {
  margin: 8px 0 0;
  padding-left: 20px;
  font-weight: 650;
  line-height: 1.5;
}
[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(190, 18, 60, 0.1);
}
.confirmation {
  text-align: center;
}
.check {
  display: grid;
  place-items: center;
  width: 85px;
  height: 85px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #dff8ed;
  color: var(--good);
  font-size: 44px;
}
.confirmation > p {
  max-width: 650px;
  margin: 18px auto;
  color: var(--muted);
  line-height: 1.65;
}
.confirmation dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 28px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faff;
  text-align: left;
}
.confirmation dl div {
  padding: 0 18px;
  border-right: 1px solid var(--line);
}
.confirmation dl div:last-child {
  border-right: 0;
}
.confirmation dt {
  color: var(--muted);
  font-size: 11px;
}
.confirmation dd {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 850;
}
.safe-note {
  font-size: 12px;
}
.link-button {
  display: inline-block;
  text-decoration: none;
}
footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: #06234d;
  color: #fff;
}
footer a {
  color: #fff;
}
@media (max-width: 760px) {
  .application-shell {
    width: min(100% - 16px, 1040px);
    margin-top: 8px;
  }
  .program-header {
    padding: 14px 16px;
  }
  .brand img {
    width: 132px;
  }
  .progress {
    padding: 12px 5px;
  }
  .progress span {
    display: none;
  }
  .hero.active {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .step {
    padding: 28px 20px;
  }
  .field-grid.two,
  .card-grid,
  .stage-grid {
    grid-template-columns: 1fr;
  }
  .confirmation dl {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .confirmation dl div {
    padding: 0;
    border-right: 0;
  }
  .actions {
    position: sticky;
    bottom: 0;
    margin-inline: -20px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.96);
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
