:root {
  --page: #087b98;
  --page-deep: #006f8c;
  --ink: #17212a;
  --muted: #667985;
  --surface: #ffffff;
  --field: #eef5f7;
  --field-hover: #e8f1f4;
  --line: #d7e3e7;
  --accent: #00799b;
  --accent-dark: #005f79;
  --danger: #c9232e;
  --amber: #f3ad19;
  --success: #26855b;
  --shadow: 0 26px 65px rgba(0, 44, 59, .23);
  --content-width: 780px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--page) 0%, var(--page-deep) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  background: #fff;
  color: #000;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.site-header { padding: 28px clamp(18px, 5vw, 72px) 22px; }
.site-header__inner {
  width: min(var(--content-width), 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo { display: block; width: min(180px, 75vw); height: auto; }
.draft-button {
  border: 1px solid rgba(255,255,255,.5);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: .55rem .9rem;
  cursor: pointer;
  white-space: nowrap;
}
.draft-button:hover { background: rgba(255,255,255,.12); }
.draft-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.page-shell { padding: 0 clamp(12px, 4vw, 56px) 70px; }
.form-card {
  width: min(var(--content-width), 100%);
  margin-inline: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}

/* Programme selection screen */
.programme-gate {
  padding: clamp(32px, 6vw, 52px) clamp(22px, 6vw, 62px) clamp(36px, 6vw, 54px);
}
.programme-gate h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
}
.programme-gate__intro {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 680;
}
.programme-gate__intro + p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}
.programme-selector {
  margin: 24px 0 0;
}
.programme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.programme-option {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}
.programme-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.programme-option__text {
  display: flex;
  min-height: 82px;
  align-items: center;
  padding: 16px 52px 16px 18px;
  border: 1.5px solid #c9dbe1;
  border-radius: 12px;
  background: #f8fbfc;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.programme-option__text::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #91a9b1;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 4px #fff;
}
.programme-option:hover .programme-option__text {
  border-color: #8ebdca;
  background: #f6fbfc;
  transform: translateY(-1px);
}
.programme-option input:checked + .programme-option__text {
  border-color: var(--accent);
  background: #eef9fb;
  box-shadow: 0 0 0 3px rgba(0,121,155,.12);
}
.programme-option input:checked + .programme-option__text::after {
  border-color: var(--accent);
  background: var(--accent);
}
.programme-option input:focus-visible + .programme-option__text {
  outline: 3px solid rgba(0,121,155,.28);
  outline-offset: 3px;
}
.programme-option__text strong {
  font-size: 1.02rem;
  line-height: 1.35;
}
.programme-option__text > span {
  display: none;
}
.programme-continue {
  width: fit-content;
  margin-top: 18px;
}
.programme-gate[hidden], #application-content[hidden] {
  display: none !important;
}
.intro { padding: clamp(28px, 6vw, 56px) clamp(22px, 6vw, 62px) 34px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: .79rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; }
h1 { margin: 0 0 28px; font-size: clamp(2rem, 4.8vw, 3.15rem); font-weight: 680; }
.intro h2 { margin: 30px 0 10px; font-size: 1.15rem; }
.intro p { margin: 0 0 18px; }
.intro ol { padding-left: 1.4rem; }
.intro li { margin: .45rem 0; }
.notice, .deadline, .section-note {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 26px 0;
  padding: 16px 18px;
  border: 1px solid #cee0e6;
  border-radius: 12px;
  background: #f6fbfc;
}
.deadline { border-left: 4px solid var(--amber); }
.contact-list { padding: 0; list-style: none; }
.contact-list li { margin: 7px 0; }
.diamond { display: inline-block; width: 8px; height: 8px; margin-right: 9px; transform: rotate(45deg); border-radius: 1px; }
.diamond--blue { background: #167da1; }
.diamond--amber { background: var(--amber); }

.progress-wrap {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 13px clamp(22px, 6vw, 62px) 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.progress-copy { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 8px; color: var(--muted); font-size: .82rem; }
.progress-track { height: 6px; overflow: hidden; background: #e5eff2; border-radius: 999px; }
.progress-bar { width: 0; height: 100%; background: var(--accent); border-radius: inherit; transition: width .25s ease; }

form { padding: 0 clamp(22px, 6vw, 62px) clamp(34px, 7vw, 62px); }
.form-section { padding: 50px 0 22px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.section-heading { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-bottom: 34px; }
.section-heading h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.section-heading p { margin: 0; color: var(--muted); }
.section-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 760;
  font-size: .86rem;
}

.field { margin: 0 0 30px; min-width: 0; }
.field[hidden], .conditional-group[hidden] { display: none !important; }
.field-grid { display: grid; gap: 20px; }
.field-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label, legend { display: block; margin: 0 0 9px; font-weight: 610; }
fieldset { padding: 0; border: 0; }
legend { width: 100%; }
.required-mark { color: var(--danger); }
.field-hint { margin: -2px 0 10px; color: var(--muted); font-size: .9rem; }
.field-error { min-height: 1.15em; margin: 7px 0 0; color: var(--danger); font-size: .86rem; font-weight: 560; }

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--field);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
textarea { min-height: 130px; resize: vertical; }
input:hover, textarea:hover, select:hover { background: var(--field-hover); }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,121,155,.14);
}
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(201,35,46,.11) !important; }

.date-selects { display: grid; grid-template-columns: minmax(95px, .7fr) minmax(150px, 1fr) minmax(115px, .8fr); gap: 10px; max-width: 480px; }
.option-list, .course-options { display: grid; gap: 10px; }
.option-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 10px 18px; }
.inline-options { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.choice { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 450; cursor: pointer; }
.choice input[type="radio"], .choice input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.choice--other { align-items: center; flex-wrap: wrap; }
.choice--other input[type="text"] { width: min(330px, 100%); min-height: 39px; padding-block: 8px; }
.choice--consent { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfc; }
.segmented-options { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
.segmented-options label { margin: 0; }
.segmented-options input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-options span { display: grid; place-items: center; min-height: 45px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 650; }
.segmented-options input:checked + span { color: #fff; border-color: var(--accent); background: var(--accent); }
.segmented-options input:focus-visible + span { outline: 3px solid rgba(0,121,155,.25); outline-offset: 2px; }

.course-options .choice { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.course-options .choice:has(input:checked) { border-color: var(--accent); background: #f2fafc; }
.course-options input:disabled + span { opacity: .55; }
.selection-count, .counter { margin: 8px 0 0; color: var(--muted); font-size: .84rem; text-align: right; }
.counter.is-over { color: var(--danger); font-weight: 650; }

.combobox { position: relative; }
.combobox-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: none;
  max-height: 290px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #bfd2d9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(22,49,60,.18);
}
.combobox-list.is-open { display: block; }
.combobox-option { display: block; width: 100%; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.combobox-option:hover, .combobox-option[aria-selected="true"] { background: #edf6f8; }
.combobox-option small { display: block; margin-top: 2px; color: var(--muted); }
.combobox-empty { padding: 10px 11px; color: var(--muted); font-size: .9rem; }
.inline-actions { margin-top: 8px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.igs-learn-more {
  margin: -10px 0 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfc;
}
.igs-learn-more summary {
  padding: 15px 18px;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 680;
}
.igs-learn-more summary:focus-visible {
  outline: 3px solid rgba(0,121,155,.25);
  outline-offset: 3px;
  border-radius: 9px;
}
.igs-learn-more__content {
  padding: 0 18px 17px;
  color: var(--muted);
}
.igs-learn-more__content p { margin: 0; }
.igs-eligibility-message {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid #d7c58b;
  border-radius: 11px;
  background: #fff9e8;
  color: #65531a;
  font-weight: 560;
}
.igs-application-panel {
  transition: opacity .15s ease;
}
.igs-application-panel.is-disabled {
  opacity: .55;
}
.igs-application-panel.is-disabled .choice {
  cursor: not-allowed;
}

.conditional-group { margin: 8px 0 30px; padding: 26px 24px 4px; border: 1px solid #cfe0e5; border-radius: 14px; background: #fbfdfe; }
.conditional-group--nested { background: #fff; }
.section-note { margin-top: 0; }

.native-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-picker {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed #a9c2cb;
  border-radius: 12px;
  background: #f6fafb;
  cursor: pointer;
  font-weight: 500;
}
.file-picker:hover { border-color: var(--accent); background: #eff8fa; }
.file-picker__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #e4f1f4; color: var(--accent-dark); font-size: 1.3rem; }
.file-picker strong, .file-picker small { display: block; }
.file-picker small { margin-top: 2px; color: var(--muted); font-weight: 400; }
.native-file:focus-visible + .file-error { outline: 3px solid rgba(0,121,155,.25); }

.submission-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding: 24px;
  border-radius: 14px;
  background: #eef7f9;
}
.submission-panel h2 { margin: 0 0 5px; font-size: 1.25rem; }
.submission-panel p { margin: 0; color: var(--muted); font-size: .9rem; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 210px;
  padding: 14px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 720;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(0,121,155,.23);
}
.primary-button:hover { background: var(--accent-dark); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.primary-button:focus-visible { outline: 3px solid rgba(0,121,155,.3); outline-offset: 3px; }
.form-message { margin-top: 20px; padding: 16px 18px; border-radius: 11px; }
.form-message.is-success { color: #155c40; border: 1px solid #a7d5c1; background: #edf9f3; }
.form-message.is-error { color: #8f1d28; border: 1px solid #efb8bd; background: #fff1f2; }

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

@media (max-width: 760px) {
  .site-header { padding-top: 22px; }
  .site-header__inner { align-items: flex-start; }
  .draft-button { font-size: .78rem; }
  .form-card { border-radius: 14px; }
  .field-grid--two, .option-grid { grid-template-columns: 1fr; }
  .segmented-options { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .submission-panel { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .programme-options { grid-template-columns: 1fr; }
  .programme-option__text { min-height: 74px; }
}

@media (max-width: 520px) {
  .site-header__inner { flex-direction: column; }
  .brand-logo { width: min(180px, 75vw); max-width: 180px; }
  .draft-button { align-self: flex-end; }
  .page-shell { padding-inline: 8px; padding-bottom: 22px; }
  .form-card { border-radius: 12px; }
  .programme-gate { padding-inline: 20px; }
  .intro { padding-inline: 20px; }
  .progress-wrap { padding-inline: 20px; }
  form { padding-inline: 20px; }
  .date-selects { grid-template-columns: 1fr 1.2fr 1fr; }
  .progress-copy { flex-direction: column; gap: 2px; }
  .conditional-group { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
#igs-access-code-status.is-success {
  color: #237a45;
}

.submission-success-screen {
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 64px clamp(24px, 7vw, 80px);
}

.submission-success-screen[hidden] {
  display: none !important;
}

.submission-success-card {
  width: min(100%, 720px);
  padding: clamp(34px, 6vw, 58px);
  border: 1px solid #cfe0e5;
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f4fafb 100%
    );
  box-shadow:
    0 18px 45px rgba(18, 56, 69, 0.11);
  text-align: center;
}

.submission-success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #087b98;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 750;
  line-height: 1;
}

.submission-success-label {
  margin: 0 0 10px;
  color: #087b98;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.submission-success-card h2 {
  margin: 0 0 16px;
  color: #17232d;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
}

.submission-success-text {
  max-width: 590px;
  margin: 0 auto;
  color: #667985;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .submission-success-screen {
    min-height: 360px;
    padding: 36px 18px;
  }

  .submission-success-card {
    padding: 32px 22px;
    border-radius: 18px;
  }

  .submission-success-icon {
    width: 58px;
    height: 58px;
    font-size: 1.7rem;
  }
}
#student-status-options {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

#student-status-options
  [data-student-status-option^="School Graduate"],
#student-status-options
  [data-student-status-option="Other"] {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  #student-status-options {
    grid-template-columns: 1fr;
  }

  #student-status-options
    [data-student-status-option^="School Graduate"],
  #student-status-options
    [data-student-status-option="Other"] {
    grid-column: auto;
  }
}

#student-status-options
  [data-student-status-option*="Graduate 2022"] {
  transform: translateX(-28px);
}

@media (max-width: 760px) {
  #student-status-options
    [data-student-status-option*="Graduate 2022"] {
    transform: none;
  }
}

#student-status-options {
  grid-template-columns:
    minmax(220px, 0.65fr)
    minmax(0, 1.35fr);
  column-gap: 24px;
}

#student-status-options
  [data-student-status-option*="Graduate 2022"] {
  transform: none;
}

#student-status-options
  [data-student-status-option*="Graduate 2022"]
  span {
  white-space: nowrap;
}

@media (max-width: 760px) {
  #student-status-options {
    grid-template-columns: 1fr;
  }

  #student-status-options
    [data-student-status-option*="Graduate 2022"]
    span {
    white-space: normal;
  }
}

.igs-learn-more__content p {
  margin: 0 0 1.25rem;
}

.igs-learn-more__content p:last-of-type {
  margin-bottom: 0.75rem;
}

.igs-learn-more__content ul {
  margin-top: 0;
}

.schedule-preview {
  width: 100%;
  margin: 2rem 0;
}

.schedule-all {
  width: 100%;
  margin: 0;
}

.schedule-main-summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  border: 1px solid #d9e3e8;
  border-radius: 14px;
  background: #f4f8fa;
  font-size: 1.15rem;
  font-weight: 700;
}

.schedule-all[open] > .schedule-main-summary {
  margin-bottom: 1rem;
}

.schedule-intro {
  margin-bottom: 1.25rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.schedule-day {
  overflow: hidden;
  border: 1px solid #d9e3e8;
  border-radius: 14px;
  background: #f8fbfc;
}

.schedule-day > summary {
  cursor: pointer;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.schedule-day[open] > summary {
  border-bottom: 1px solid #d9e3e8;
}

.schedule-day-content {
  padding: 1rem;
}

.schedule-course {
  padding: 0.8rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: #eaf3f6;
}

.schedule-course:last-child {
  margin-bottom: 0;
}

.schedule-course strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
}

.schedule-time {
  display: block;
  margin-bottom: 0.3rem;
  color: #087b98;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

#igs-application-questions[hidden] {
  display: none !important;
}

#igs-deadline-passed[hidden] {
  display: none !important;
}

.course-page-link {
  margin-bottom: 24px;
}

.course-page-link a {
  color: var(--accent);
  font-weight: 700;
}
