:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #07132c;
  background: #f8f7f3;
  --paper: #f8f7f3;
  --blue: #0955eb;
  --muted: #596275;
  --line: #d7d9df;
  --gutter: clamp(54px, 10.4vw, 180px);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background-image: repeating-linear-gradient(to bottom, transparent 0 42px, #dce0e6 43px, transparent 44px);
  background-position: 0 35px;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
h1, h2, p { margin: 0; }
.shell { width: min(1340px, calc(100% - var(--gutter) - 5.5vw)); margin-left: var(--gutter); }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 11px; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: 9px; background: var(--blue); color: white; font-weight: 700; cursor: pointer; text-align: center; }
.button { -webkit-tap-highlight-color: transparent; }
.button:hover { background: #0344c5; }
.button:disabled { opacity: .62; cursor: wait; }
.button-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.button-outline:hover { background: #e6efff; }

.application-page .shell { width: min(1328px, calc(100% - 10vw)); margin-inline: auto; }
.application-page .application { max-width: 760px; padding-block: clamp(32px, 5vw, 66px) 56px; }
.application h1 { font-family: "Barlow Condensed", Inter, sans-serif; font-size: clamp(56px, 5vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: .95; margin-bottom: 22px; }
.application-steps { display: none; }
.application-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.application-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.application-steps span { display: grid; place-items: center; flex: none; inline-size: 36px; block-size: 36px; border-radius: 50%; border: 1px solid #c8cfdc; background: var(--paper); font-variant-numeric: tabular-nums; line-height: 1; }
.application-steps [aria-current="step"] { color: var(--blue); }
.application-steps [aria-current="step"] span { color: white; background: var(--blue); border-color: var(--blue); }
.form-panel { min-width: 0; padding: clamp(21px, 2.4vw, 36px); background: var(--paper); border: 1px solid #d3d6dd; border-radius: 12px; }
.form-step { display: grid; gap: 15px; }
.form-step h2, #success h2 { font-family: "Barlow Condensed", Inter, sans-serif; font-weight: 800; font-size: clamp(27px, 2.25vw, 36px); line-height: 1.1; }
.experience-step { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 22px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; }
input:not([type="radio"]), select, textarea { display: block; width: 100%; min-width: 0; padding: 10px 12px; min-height: 43px; border: 1px solid #c3c8d2; border-radius: 7px; background: #fff9; color: inherit; font-size: 16px; font-weight: 400; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #677184; }
input:user-invalid, select:user-invalid { border-color: #b62c38; }
.faculty-reach { border: 0; margin: 0; padding: 0; min-width: 0; }
.faculty-reach legend { padding: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.choice-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.choice-row label { position: relative; cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; margin: 0; width: 100%; height: 100%; pointer-events: none; }
.choice-row span { display: grid; place-items: center; min-width: 53px; min-height: 40px; padding: 5px 12px; border: 1px solid #c3c8d2; border-radius: 8px; background: #fff9; }
.choice-row input:checked + span { background: var(--blue); border-color: var(--blue); color: white; }
.choice-row input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-note, .form-error { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-note { font-weight: 400; }
.form-error { color: #a62231; }
.form-actions { display: flex; gap: 10px; }
.form-actions [type="submit"] { flex: 1; }
.mobile-step-button { display: none; }
#success { text-align: center; padding-block: clamp(20px, 5vw, 72px); }
.success-icon { display: grid; place-items: center; margin: 0 auto 21px; width: 84px; height: 84px; border-radius: 50%; background: var(--blue); color: white; font-size: 39px; }
#success p { max-width: 37ch; margin: 12px auto 22px; line-height: 1.55; color: var(--muted); }

@media (max-width: 720px) {
  .application-page .shell { width: calc(100% - 36px); }
  .application-page .application { padding-top: 24px; }
  .application h1 { font-family: Inter, sans-serif; font-size: clamp(38px, 9.5vw, 60px); font-weight: 900; letter-spacing: -.06em; margin: 24px 0 19px; }
  .application-steps { display: block; }
  .application-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .application-steps li { display: flex; flex-direction: column; text-align: center; gap: 5px; font-size: 11px; }
  .form-panel { border: 0; padding: 0; background: transparent; }
  .form-row { grid-template-columns: 1fr; gap: 15px; }
  .form-step { gap: 14px; }
  .form-step h2 { font-family: Inter, sans-serif; font-size: 21px; letter-spacing: -.035em; }
  .experience-step { padding: 0; margin: 0; border: none; }
  .mobile-step-button { display: inline-flex; }
  #next-step { margin-top: 6px; }
  form[data-step="1"] .experience-step, form[data-step="2"] .student-step { display: none; }
  .application:has(form[data-step="2"]) .application-intro { display: none; }
  .application:has(form[data-step="2"]) .form-panel { margin-top: 26px; }
  #success { padding-top: 55px; }
}
