/* /apply — admission form.
   Design tokens only, scoped to .page-apply. */

/* The site header is absolutely positioned over the page, so a hero has to
   clear it with the shared hero-pad tokens rather than its own padding —
   otherwise the h1 sits under the nav and the affiliation strip on mobile. */
body.page-apply main .ap-hero {
  padding: var(--ice-hero-pad-top-mobile) 0 clamp(20px, 4vw, 48px);
}

@media (min-width: 768px) {
  body.page-apply main .ap-hero { padding-top: var(--ice-hero-pad-top-tablet); }
}

@media (min-width: 1181px) {
  body.page-apply main .ap-hero { padding-top: var(--ice-hero-pad-top-wide); }
}

/* NOTE: never use a `padding: X 0` shorthand on an element that also carries
   .wrap — .wrap sets the site gutter via padding-inline, and the shorthand
   silently zeroes it, dumping content against the viewport edge. Sections wrap
   an inner .wrap instead. */
/* Mobile-first, and the form is the page. DOM order is intro → form → aside,
   which is exactly the mobile reading order: a student meets the first field
   without scrolling past anything decorative. Desktop re-flows to two columns
   via grid areas, so the visual layout changes but the reading order does not. */
/* One centred column, the form as the centrepiece. DOM order is
   intro → form → aside, which is also the mobile reading order: a student
   meets the first field without scrolling past anything decorative. */
body.page-apply main .ap-hero__grid {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  grid-template-columns: 1fr;
  grid-template-areas: 'intro' 'form' 'aside';
}

body.page-apply main .ap-intro { grid-area: intro; }
body.page-apply main .ap-formcol { grid-area: form; }
body.page-apply main .ap-aside { grid-area: aside; }

body.page-apply main .ap-intro h1 { margin: 0 0 12px; }
body.page-apply main .ap-intro .lede { line-height: 1.62; margin: 0; }

@media (min-width: 900px) {
  body.page-apply main .ap-hero__grid { max-width: 820px; margin-inline: auto; }

  /* Centred composition — the copy is short enough to centre without hurting
     the reading line. */
  body.page-apply main .ap-intro { text-align: center; }
  body.page-apply main .ap-intro .course-breadcrumb { justify-content: center; }
  body.page-apply main .ap-intro .lede { max-width: 58ch; margin-inline: auto; }

  /* Supporting facts sit side by side under the form rather than beside it, so
     nothing competes with the fields for attention. */
  body.page-apply main .ap-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
  }
  body.page-apply main .ap-aside .ap-stats { grid-column: 1 / -1; }
}

/* At-a-glance figures — the reason to keep reading. */
body.page-apply main .ap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 0 22px;
  padding: 0;
  background: var(--ice-color-border, rgba(127, 127, 127, .25));
  border: 1px solid var(--ice-color-border, rgba(127, 127, 127, .25));
  border-radius: 12px;
  overflow: hidden;
}

body.page-apply main .ap-stats > div {
  margin: 0;
  padding: 11px 10px;
  background: var(--ice-color-surface, var(--course-paper, transparent));
}

body.page-apply main .ap-stats dt {
  margin: 0 0 3px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .68;
}

body.page-apply main .ap-stats dd {
  margin: 0;
  font-size: clamp(1rem, 3.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
}

body.page-apply main .ap-callnow {
  margin: 14px 0 0;
  text-align: center;
  font-size: .94rem;
  opacity: .85;
  line-height: 1.6;
}

/* Included-at-no-cost block. The free hostel and the Koteshwor bus are the two
   facts that answer "Tathali is too far", which is the objection that has cost
   this college students before — so they get their own treatment rather than
   being buried in a bullet list. */
body.page-apply main .ap-included {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--ice-color-border, rgba(127, 127, 127, .28));
  border-radius: 14px;
  background: var(--ice-color-surface-sunken, rgba(127, 127, 127, .06));
}

body.page-apply main .ap-included__head {
  margin: 0 0 14px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .66;
}

body.page-apply main .ap-included ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

body.page-apply main .ap-included li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'tag name' '. desc';
  gap: 3px 10px;
  align-items: center;
}

body.page-apply main .ap-included__tag {
  grid-area: tag;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ice-color-accent, #c41e3a);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.page-apply main .ap-included li b { grid-area: name; font-weight: 700; font-size: 1.02rem; }
body.page-apply main .ap-included li span:last-child {
  grid-area: desc;
  opacity: .8;
  font-size: .91rem;
  line-height: 1.55;
}

body.page-apply main .ap-promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

body.page-apply main .ap-promises li {
  display: grid;
  gap: 3px;
  padding-left: 26px;
  position: relative;
  line-height: 1.55;
}

body.page-apply main .ap-promises li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ice-color-accent, #c41e3a);
}

body.page-apply main .ap-promises b { font-weight: 700; }
body.page-apply main .ap-promises span { opacity: .82; font-size: .94rem; }

/* ── Card ──────────────────────────────────────────────────────────────── */

body.page-apply main .ap-formcard {
  padding: clamp(22px, 3.4vw, 40px);
  border: 1px solid var(--ice-color-border, rgba(127, 127, 127, .3));
  border-radius: 16px;
  background: var(--ice-color-surface-raised, transparent);
}

body.page-apply main .ap-progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
  margin-bottom: 12px;
}

body.page-apply main .ap-progress__seg {
  height: 4px;
  border-radius: 999px;
  background: var(--ice-color-border, rgba(127, 127, 127, .3));
  transition: background .28s ease;
}

body.page-apply main .ap-progress__seg.is-done,
body.page-apply main .ap-progress__seg.is-now { background: var(--ice-color-accent, #c41e3a); }
body.page-apply main .ap-progress__seg.is-now { opacity: .6; }

body.page-apply main .ap-stepcount {
  margin: 0 0 18px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .68;
}

body.page-apply main .ap-step { border: 0; margin: 0; padding: 0; min-width: 0; }

body.page-apply main .ap-step legend {
  padding: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
}

body.page-apply main .ap-hint { margin: 6px 0 18px; opacity: .78; line-height: 1.55; font-size: .95rem; }

body.page-apply main .ap-field { margin-bottom: 18px; }

body.page-apply main .ap-field label,
body.page-apply main .ap-field .ap-label {
  display: block;
  margin-bottom: 7px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .8;
}

body.page-apply main .ap-req { color: var(--ice-color-accent, #c41e3a); }

body.page-apply main .ap-field input[type='text'],
body.page-apply main .ap-field input[type='tel'],
body.page-apply main .ap-field select,
body.page-apply main .ap-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--ice-color-border, rgba(127, 127, 127, .42));
  border-radius: 10px;
  background: var(--ice-color-surface, transparent);
  color: inherit;
  font: inherit;
  font-size: 1.02rem;
}

body.page-apply main .ap-field textarea { resize: vertical; }

body.page-apply main .ap-field input:focus-visible,
body.page-apply main .ap-field select:focus-visible,
body.page-apply main .ap-field textarea:focus-visible {
  outline: 2px solid var(--ice-color-accent, #c41e3a);
  outline-offset: 2px;
}

body.page-apply main .ap-field small { display: block; margin-top: 6px; opacity: .72; line-height: 1.5; }

body.page-apply main .ap-note { margin: 0; font-size: .9rem; opacity: .72; line-height: 1.55; }

body.page-apply main .ap-rankecho {
  margin: 9px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--ice-color-surface-sunken, rgba(127, 127, 127, .09));
  font-size: .92rem;
  line-height: 1.55;
}

/* ── Choices ───────────────────────────────────────────────────────────── */

body.page-apply main .ap-choices { display: grid; gap: 9px; margin-bottom: 20px; }

body.page-apply main .ap-choice { display: block; cursor: pointer; }
body.page-apply main .ap-choice input { position: absolute; opacity: 0; pointer-events: none; }

body.page-apply main .ap-choice__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--ice-color-border, rgba(127, 127, 127, .32));
  border-radius: 10px;
  transition: border-color .18s ease, background .18s ease;
}

body.page-apply main .ap-choice__body b { font-weight: 600; }
body.page-apply main .ap-choice__body small { opacity: .7; white-space: nowrap; font-size: .85rem; }

body.page-apply main .ap-choice input:checked + .ap-choice__body {
  border-color: var(--ice-color-accent, #c41e3a);
  background: rgba(196, 30, 58, .07);
}

body.page-apply main .ap-choice input:focus-visible + .ap-choice__body {
  outline: 2px solid var(--ice-color-accent, #c41e3a);
  outline-offset: 2px;
}

body.page-apply main .ap-pills { display: flex; flex-wrap: wrap; gap: 8px; }
body.page-apply main .ap-pill { cursor: pointer; }
body.page-apply main .ap-pill input { position: absolute; opacity: 0; pointer-events: none; }

body.page-apply main .ap-pill span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--ice-color-border, rgba(127, 127, 127, .32));
  border-radius: 999px;
  font-size: .94rem;
  transition: border-color .18s ease, background .18s ease;
}

body.page-apply main .ap-pill input:checked + span {
  border-color: var(--ice-color-accent, #c41e3a);
  background: rgba(196, 30, 58, .1);
  font-weight: 600;
}

body.page-apply main .ap-pill input:focus-visible + span {
  outline: 2px solid var(--ice-color-accent, #c41e3a);
  outline-offset: 2px;
}

/* ── Actions ───────────────────────────────────────────────────────────── */

body.page-apply main .ap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

body.page-apply main .ap-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }

/* The shared .btn rule sets `display`, which outranks the `hidden` attribute —
   without this, Back and Submit stay visible on every step. */
body.page-apply main .ap-actions .btn[hidden] { display: none; }

body.page-apply main .ap-error {
  margin: 16px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: rgba(196, 30, 58, .12);
  font-size: .93rem;
  line-height: 1.5;
}

body.page-apply main .ap-privacy { margin: 16px 0 0; font-size: .85rem; opacity: .7; line-height: 1.55; }

/* ── Done ──────────────────────────────────────────────────────────────── */

body.page-apply main .ap-done { text-align: center; padding: clamp(16px, 3vw, 34px) 0; }

body.page-apply main .ap-done__tick {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ice-color-accent, #c41e3a);
  color: #fff;
  font-size: 1.7rem;
}

body.page-apply main .ap-done h2 { margin: 0 0 10px; }
body.page-apply main .ap-done p { margin: 0 0 12px; line-height: 1.62; }
body.page-apply main .ap-done__meta { font-size: .92rem; opacity: .8; }
body.page-apply main .ap-done__next { margin-top: 20px; }

/* ── What happens next ─────────────────────────────────────────────────── */

body.page-apply main .ap-next { padding-block: clamp(28px, 5vw, 60px); }

body.page-apply main .ap-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: apstep;
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  body.page-apply main .ap-timeline { grid-template-columns: repeat(4, 1fr); gap: 26px; }
}

body.page-apply main .ap-timeline li {
  counter-increment: apstep;
  padding-top: 42px;
  position: relative;
  line-height: 1.6;
}

body.page-apply main .ap-timeline li::before {
  content: counter(apstep);
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy, #13234b);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
}

html[data-theme='dark'] body.page-apply main .ap-timeline li::before {
  background: var(--ice-color-text-accent, #8fa8dd);
  color: #10141c;
}

body.page-apply main .ap-timeline b { display: block; margin-bottom: 5px; }
body.page-apply main .ap-timeline p { margin: 0; opacity: .84; font-size: .95rem; }

body.page-apply main .ap-honest {
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: clamp(16px, 2.5vw, 24px);
  border-radius: 12px;
  background: var(--ice-color-surface-sunken, rgba(127, 127, 127, .08));
  line-height: 1.66;
}

/* ── Come and see it ───────────────────────────────────────────────────── */

body.page-apply main .ap-see { padding-block: clamp(28px, 5vw, 60px); }

body.page-apply main .ap-gallery {
  display: grid;
  gap: 16px;
  margin: 24px 0 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  body.page-apply main .ap-gallery { grid-template-columns: repeat(3, 1fr); }
}

body.page-apply main .ap-gallery figure { margin: 0; }
body.page-apply main .ap-gallery img { width: 100%; height: auto; display: block; border-radius: 12px; }
body.page-apply main .ap-gallery figcaption {
  margin-top: 9px;
  font-size: .88rem;
  opacity: .76;
}

body.page-apply main .ap-see .cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

iframe[name='apply-sink'] { display: none; }
