/* ==================================================================
   HIS — Form pages: Campus Visit, General Enquiry, Student Application
   and Careers. Loads after styles.css (nav, menu, type, footer) and is
   driven by forms.js. One field language everywhere: uppercase labels,
   underlined inputs that draw a navy line on focus, pill choices, and
   dashed drop zones for files.
   ================================================================== */

:root { --pad: 9vw; --req: #c0392b; }
.fpage { background: #fff; }

/* ---------- buttons (same as the admissions page) ---------- */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.abtn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 26px; border-radius: var(--radius);
  border: 1px solid #c9c9cf; background: #fff; color: var(--ink);
  font: 600 13px/1 "Raleway", sans-serif; letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  transition: color 0.45s var(--ease-out), border-color 0.45s, opacity 0.3s;
}
.abtn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); clip-path: inset(100% 0 0 0); transition: clip-path 0.55s var(--ease-out); }
.abtn:hover { color: #fff; border-color: var(--gold); }
.abtn:hover::before { clip-path: inset(0 0 0 0); }
.abtn i { font-style: normal; transition: transform 0.45s var(--ease-spring); }
.abtn:hover i { transform: translateX(5px); }
.abtn.back:hover i { transform: translateX(-5px); }
.abtn.solid { background: var(--gold); border-color: var(--gold); color: #fff; }
.abtn.solid::before { background: var(--navy); }
.abtn.solid:hover { border-color: var(--navy); }
.abtn.ghost { border-color: transparent; background: transparent; color: var(--grey-text); padding-left: 8px; padding-right: 8px; }
.abtn.ghost::before { display: none; }
.abtn.ghost:hover { color: var(--navy); }
.abtn[disabled] { opacity: 0.45; pointer-events: none; }
.abtn:focus-visible, .opt input:focus-visible + span, .tick input:focus-visible + span, .drop input:focus-visible + .drop-in { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- page hero ---------- */
.fp-hero { position: relative; padding: 170px var(--pad) 70px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 6vw; align-items: end; }
.fp-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.fp-title { font-weight: 300; font-size: clamp(34px, 4.6vw, 78px); line-height: 1.04; text-transform: uppercase; color: var(--ink); }
.fp-title .ln > span { animation: lineUp 1.2s var(--ease-out) 0.2s forwards; }
.fp-title .ln:nth-child(2) > span { animation-delay: 0.32s; }
.fp-title .ln:nth-child(3) > span { animation-delay: 0.44s; }
.fp-lead { max-width: 46ch; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.7; color: var(--grey-text); opacity: 0; animation: fadeTo 1s ease 0.6s forwards; }
.fp-lead + .fp-lead { margin-top: 1em; }
.fp-lead a { color: var(--navy); }

/* ---------- two-column form layout (visit, enquiry, careers) ---------- */
.fp-wrap { position: relative; padding: 10px var(--pad) 120px; display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 5vw; align-items: start; }
.fp-aside { position: relative; }   /* not pinned: it can be taller than the screen, and its last links must stay reachable */
.fp-aside h2 { font-weight: 400; font-size: clamp(20px, 1.8vw, 30px); line-height: 1.2; margin-bottom: 14px; }
.info-list { display: grid; gap: 18px; margin-top: 30px; }
.info-list dt { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-text); margin-bottom: 4px; }
.info-list dd { font-size: clamp(13px, 1vw, 16px); line-height: 1.6; }
.info-list a { text-decoration: none; border-bottom: 1px solid #d6d6db; transition: border-color 0.3s, color 0.3s; }
.info-list a:hover { color: var(--navy); border-color: var(--gold); }
.fp-photo { margin-top: 34px; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--ph); rotate: -2deg; box-shadow: 0 30px 60px rgba(16, 22, 60, 0.14); }
.fp-also { margin-top: 30px; display: grid; gap: 8px; }
.fp-also a { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); text-decoration: none; }
.fp-also a i { font-style: normal; color: var(--gold); transition: transform 0.45s var(--ease-spring); }
.fp-also a:hover i { transform: translateX(6px); }

/* ---------- the form card ---------- */
.fcard { position: relative; border-radius: var(--radius); background: #f4f4f6; padding: clamp(26px, 3vw, 52px); }
.fcard + .fcard { margin-top: 20px; }
.fsec + .fsec { margin-top: 44px; padding-top: 36px; border-top: 1px solid #e2e2e6; }
.fsec-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; font-weight: 500; font-size: clamp(15px, 1.15vw, 19px); text-transform: uppercase; letter-spacing: 0.04em; }
.fsec-title small { font: 600 11px/1 "Poppins", sans-serif; letter-spacing: 0.14em; color: var(--gold); }
.fsec-note { margin: -12px 0 26px; font-size: 13px; line-height: 1.65; color: var(--grey-text); max-width: 62ch; }
.req-note { font-size: 12px; color: var(--grey-text); margin-bottom: 26px; }
.req-note em, .lbl em { font-style: normal; color: var(--gold); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 30px; }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.g4 { grid-template-columns: 0.6fr 1fr 1fr 1fr; }
.grid + .grid, .grid + .group, .group + .grid, .group + .group { margin-top: 28px; }
.wide { grid-column: 1 / -1; }

/* label text above every field and group */
.lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-text); transition: color 0.3s; }
.lbl em { margin-left: 3px; }
.hint { font-size: 12px; line-height: 1.55; color: #9a9ba1; }

/* text-type fields */
.field { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid #c9c9cf; background: transparent; padding: 8px 0 10px;
  font: 500 15px/1.4 "Raleway", sans-serif; color: var(--ink); border-radius: 0; outline: none; resize: vertical;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: #b4b5bb; font-weight: 400; }
.field select { padding-right: 20px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: right 6px top 55%, right 1px top 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; text-overflow: ellipsis; }
.field select:invalid, .field select option[value=""] { color: #9a9ba1; }
.field .bar { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); pointer-events: none; }
.field:focus-within .bar { transform: scaleX(1); }
.field:focus-within > .lbl { color: var(--navy); }
/* the bar sits on the input's underline: put it right after the control */
.field .ctl { position: relative; }
.field .ctl .bar { bottom: 0; }

/* a composite (name / address / place) is a labelled set of small fields */
.combo { display: flex; flex-direction: column; gap: 12px; }
.combo .grid { gap: 20px 24px; }
.combo .field .lbl { font-size: 10px; letter-spacing: 0.1em; color: #a3a4aa; }

/* ---------- pill choices: radios and checkboxes ---------- */
.group { display: flex; flex-direction: column; gap: 12px; min-width: 0; border: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts.col { flex-direction: column; align-items: flex-start; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid #cfd0d5; background: #fff;
  font-size: 13px; line-height: 1.35; color: var(--ink); transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.opt span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #b9bac0; transition: background 0.3s, border-color 0.3s, scale 0.4s var(--ease-spring); }
.opt input[type="checkbox"] + span::before { border-radius: 2px; }
.opt:hover span { border-color: var(--navy); }
.opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt input:checked + span::before { background: var(--gold-soft); border-color: var(--gold-soft); scale: 1.15; }
.opts.col .opt span { border-radius: 14px; }

/* 0 to 10 scale */
.scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; max-width: 520px; }
.scale .opt span { justify-content: center; width: 100%; padding: 9px 0; border-radius: 10px; font-weight: 600; }
.scale .opt span::before { display: none; }
.scale-ends { display: flex; justify-content: space-between; max-width: 520px; font-size: 11px; color: #9a9ba1; }
.rate-row { display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; align-items: center; }
.rate-row + .rate-row { margin-top: 14px; }
.rate-row > .lbl { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--ink); }

/* ---------- consent ticks ---------- */
.tick { position: relative; display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 14px; line-height: 1.55; font-weight: 500; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick > span { flex: none; position: relative; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid #b9bac0; background: #fff; transition: background 0.3s, border-color 0.3s; }
.tick > span::after { content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; scale: 0; transition: scale 0.35s var(--ease-spring); }
.tick input:checked + span { background: var(--navy); border-color: var(--navy); }
.tick input:checked + span::after { scale: 1; }
.tick:hover > span { border-color: var(--navy); }

/* ---------- file drop zones ---------- */
.drop { position: relative; display: block; cursor: pointer; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-in {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; border: 1.5px dashed #c3c4ca; background: #fff;
  transition: border-color 0.3s, background 0.3s;
}
.drop:hover .drop-in, .drop.over .drop-in { border-color: var(--navy); background: #f9f9fc; }
.drop-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eef0f8; color: var(--navy); }
.drop-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop-txt { min-width: 0; font-size: 13px; line-height: 1.5; color: var(--grey-text); }
.drop-txt b { color: var(--navy); font-weight: 600; }
.drop-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.drop-files:empty { display: none; }
.drop-files span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; }
.drop.has .drop-in { border-style: solid; border-color: var(--navy); }
.drop-thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #eef0f8; display: none; }
.drop.has .drop-thumb:not(:empty) { display: block; }
.drop.has .drop-thumb:not(:empty) + .drop-ic { display: none; }

/* ---------- signature pad ---------- */
.sig { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: stretch; }
.sig-pad { position: relative; border-radius: 14px; border: 1.5px solid #c3c4ca; background: #fff; overflow: hidden; touch-action: none; min-height: 150px; }
.sig-pad canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.sig-pad .sig-line { position: absolute; left: 18px; right: 18px; bottom: 34px; height: 1px; background: #d9d9de; pointer-events: none; }
.sig-pad .sig-ph { position: absolute; left: 18px; bottom: 12px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #b4b5bb; pointer-events: none; }
.sig-pad .sig-clear { position: absolute; right: 10px; top: 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid #d6d6db; background: #fff; font-size: 11px; font-weight: 600; cursor: pointer; }
.sig-pad .sig-clear:hover { border-color: var(--navy); color: var(--navy); }
.sig .drop-in { height: 100%; flex-direction: column; justify-content: center; text-align: center; }

/* ---------- errors ---------- */
.bad > .lbl, .bad .combo-lbl { color: var(--req); }
.field.bad input, .field.bad select, .field.bad textarea { border-bottom-color: var(--req); }
.bad .opt span, .bad .drop-in, .bad.tick > span, .bad .tick > span, .bad .sig-pad { border-color: var(--req); }
.err { font-size: 12px; color: var(--req); }
.err:empty { display: none; }
.form-error { min-height: 1em; font-size: 13px; color: var(--req); }

/* conditional pieces */
[data-show-if][hidden] { display: none !important; }

/* ---------- form actions ---------- */
.factions { margin-top: 40px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.factions .form-error { flex-basis: 100%; }

/* ---------- sent state (simple forms) ---------- */
.done {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(26px, 3.4vw, 60px); background: var(--navy); color: #fff; border-radius: var(--radius);
  clip-path: circle(0% at 14% 86%); transition: clip-path 0.9s var(--ease-out); pointer-events: none;
}
.sent .done { clip-path: circle(150% at 14% 86%); pointer-events: auto; }
.sent { min-height: 460px; }
.done-tick { width: 60px; height: 60px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; margin-bottom: 26px; }
.done-tick svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset 0.6s var(--ease-out) 0.5s; }
.done-tick .ic-tip { fill: #fff; stroke: none; }
.sent .done-tick svg { stroke-dashoffset: 0; }
.done h3 { font-weight: 300; font-size: clamp(26px, 2.6vw, 44px); text-transform: uppercase; margin-bottom: 14px; }
.done p { max-width: 44ch; font-size: clamp(13px, 1vw, 16px); line-height: 1.7; color: rgba(255, 255, 255, 0.8); }
.done p + p { margin-top: 10px; }
.done .ref { display: inline-block; margin-top: 18px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); font-size: 12px; letter-spacing: 0.1em; color: var(--gold-soft); }
.done .btn-row { margin-top: 28px; }
.done .abtn { background: transparent; border-color: rgba(255,255,255,0.45); color: #fff; }
.done .abtn.solid { background: var(--gold); border-color: var(--gold); }
.done .abtn.solid::before { background: #fff; }
.done .abtn.solid:hover { color: var(--navy); border-color: #fff; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70; translate: -50% 140%; padding: 13px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px; box-shadow: 0 18px 40px rgba(0,0,0,0.2);
  opacity: 0; visibility: hidden; transition: translate 0.6s var(--ease-spring), opacity 0.3s, visibility 0s 0.6s; pointer-events: none;
}
.toast.on { translate: -50% 0; opacity: 1; visibility: visible; transition: translate 0.6s var(--ease-spring), opacity 0.3s; }

/* ==================================================================
   STUDENT APPLICATION: the multi-step form
   ================================================================== */
.ap-hero { align-items: start; }
.ap-need { align-self: end; display: grid; gap: 12px; padding: 26px 28px; border-radius: var(--radius); background: var(--navy); color: #fff; opacity: 0; animation: fadeTo 1s ease 0.8s forwards; }
.ap-need h2 { font: 600 11px/1 "Poppins", sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px; }
.ap-need ul { display: grid; gap: 10px; }
.ap-need li { list-style: none; display: flex; gap: 12px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.82); }
.ap-need li::before { content: ""; flex: none; width: 14px; height: 1.5px; margin-top: 10px; background: var(--gold-soft); }

.ap { position: relative; padding: 10px var(--pad) 120px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 4.5vw; align-items: start; }

/* the step rail */
.rail { position: sticky; top: 100px; }
.rail-bar { display: none; }
.rail ol { position: relative; list-style: none; display: grid; gap: 2px; }
.rail ol::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 1px; background: #e1e1e5; }
.rail ol::after { content: ""; position: absolute; left: 15px; top: 18px; width: 1px; height: calc((100% - 36px) * var(--done, 0)); background: var(--gold); transition: height 0.7s var(--ease-out); }
.rail li button {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; width: 100%; padding: 7px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-size: 13px; font-weight: 500; color: #a3a4aa; transition: color 0.3s;
}
.rail li button:disabled { cursor: default; }
.rail .n { flex: none; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; border: 1px solid #d6d6db; background: #fff; font-size: 11px; font-weight: 700; transition: background 0.4s, border-color 0.4s, color 0.4s, scale 0.5s var(--ease-spring); }
.rail li.seen button { color: var(--ink); }
.rail li.seen .n { border-color: var(--gold); color: var(--gold); }
.rail li.ok .n { background: var(--gold); border-color: var(--gold); color: #fff; }
.rail li.on button { color: var(--navy); font-weight: 700; }
.rail li.on .n { background: var(--navy); border-color: var(--navy); color: #fff; scale: 1.1; }
.rail li:not(.on).seen button:hover { color: var(--navy); }
.rail-save { margin-top: 26px; padding-left: 47px; display: grid; gap: 8px; font-size: 12px; color: var(--grey-text); line-height: 1.5; }
.rail-save .abtn { justify-self: start; padding: 11px 18px; }

/* the panel and its steps */
.panel { min-width: 0; }
.step { display: none; }
.step.on { display: block; animation: stepIn 0.6s var(--ease-out); }
.step.on.back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(26px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-26px); } }
.step-head { margin-bottom: 26px; }
.step-no { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.step-head h2 { font-weight: 300; font-size: clamp(26px, 2.6vw, 44px); line-height: 1.1; text-transform: uppercase; }
.step-head p { margin-top: 12px; max-width: 64ch; font-size: 14px; line-height: 1.7; color: var(--grey-text); }

.prose { font-size: 14px; line-height: 1.75; color: #55565c; }
.prose p + p, .prose ol, .prose ul { margin-top: 12px; }
.prose ol, .prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--navy); }

/* terms: one card each, read then agree */
.term { padding: 26px 0; border-top: 1px solid #e2e2e6; }
.term:first-of-type { border-top: 0; padding-top: 0; }
.term h3 { display: flex; gap: 14px; align-items: baseline; margin-bottom: 12px; font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: 0.03em; }
.term h3 small { font: 700 11px/1 "Poppins", sans-serif; color: var(--gold); letter-spacing: 0.1em; }
.term .tick { margin-top: 16px; }

/* fee table */
.fees-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.fees-t th, .fees-t td { padding: 13px 10px; text-align: left; border-bottom: 1px solid #e2e2e6; }
.fees-t th { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-text); }
.fees-t td:not(:first-child), .fees-t th:not(:first-child) { text-align: right; white-space: nowrap; }
.fees-t td:last-child { font-weight: 600; color: var(--navy); }
.fees-one { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.fees-one div { padding: 18px 20px; border-radius: 14px; background: #fff; }
.fees-one span { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-text); margin-bottom: 6px; }
.fees-one b { font: 500 20px/1.2 "Raleway", sans-serif; color: var(--navy); }
.fees-one small { display: block; margin-top: 4px; font-size: 12px; color: var(--grey-text); }

/* payment */
.pay { display: grid; gap: 18px; padding: 28px; border-radius: 16px; background: #fff; }
.pay-row { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.pay-row b { font-weight: 600; }
.pay-row.total { padding-top: 16px; border-top: 1px solid #e2e2e6; font-size: 16px; }
.pay-row.total b { color: var(--navy); font-size: 20px; }
.pay-by { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--grey-text); }
.pay-by i { font-style: normal; padding: 4px 10px; border-radius: 6px; background: #eef0f8; color: var(--navy); font-weight: 700; letter-spacing: 0.04em; }
.pay-ok { display: none; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #eaf5ee; color: #1d6b3a; font-size: 14px; font-weight: 500; }
.pay.paid .pay-ok { display: flex; }
.pay.paid .pay-go { display: none; }
.pay.bad { outline: 1.5px solid var(--req); }

/* step footer */
.step-nav { margin-top: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step-nav .grow { flex: 1; }
.step-nav .form-error { flex-basis: 100%; order: 9; }

/* the application's sent screen */
.ap-done { display: none; }
.ap.sent .rail, .ap.sent .step-nav, .ap.sent .step.on { display: none; }
.ap.sent .ap-done { display: block; grid-column: 1 / -1; position: relative; min-height: 460px; }
.ap.sent .ap-done .done { clip-path: circle(150% at 14% 86%); pointer-events: auto; }

/* ==================================================================
   CAREERS
   ================================================================== */
.cr-hero { align-items: center; }
.cr-hero-ph { aspect-ratio: 5 / 4; border-radius: var(--radius); background: var(--ph); rotate: 3deg; box-shadow: 0 40px 80px rgba(16, 22, 60, 0.16); opacity: 0; animation: fadeTo 1.2s ease 0.4s forwards; }
.cr-section { position: relative; padding: 70px var(--pad); }
.cr-head { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: end; margin-bottom: 46px; }
.cr-head .cap-title { font-weight: 300; }

.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why li { list-style: none; position: relative; padding: 30px 26px 34px; border-radius: var(--radius); background: #f4f4f6; min-height: 250px; display: flex; flex-direction: column; }
.why li:nth-child(2) { background: var(--navy); color: #fff; }
.why li:nth-child(3) { background: var(--gold); color: #fff; }
.why em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--gold); }
.why li:nth-child(2) em { color: var(--gold-soft); }
.why li:nth-child(3) em { color: #fff; }
.why h3 { margin-top: auto; font-weight: 500; font-size: clamp(16px, 1.3vw, 21px); line-height: 1.25; text-transform: uppercase; margin-bottom: 10px; }
.why p { font-size: 13px; line-height: 1.65; color: var(--grey-text); }
.why li:nth-child(2) p, .why li:nth-child(3) p { color: rgba(255,255,255,0.82); }

.roles-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.roles { border-top: 1px solid #e2e2e6; }
.role { border-bottom: 1px solid #e2e2e6; }
.role[hidden] { display: none; }
.role-q { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 40px; gap: 24px; align-items: center; width: 100%; padding: 26px 0; background: none; border: 0; text-align: left; cursor: pointer; }
.role-q h3 { font-weight: 400; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.2; transition: color 0.3s; }
.role-q:hover h3 { color: var(--navy); }
.role-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-text); white-space: nowrap; }
.role-tag { padding: 6px 12px; border-radius: 999px; background: #eef0f8; color: var(--navy); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap; }
.role-x { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d6d6db; transition: background 0.4s, border-color 0.4s; }
.role-x::before, .role-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--ink); transition: rotate 0.5s var(--ease-spring), background 0.3s; }
.role-x::after { rotate: 90deg; }
.role.open .role-x { background: var(--navy); border-color: var(--navy); }
.role.open .role-x::before, .role.open .role-x::after { background: #fff; }
.role.open .role-x::after { rotate: 0deg; }
.role-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease-out); }
.role.open .role-a { grid-template-rows: 1fr; }
.role-a > div { overflow: hidden; }
.role-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4vw; padding: 0 0 34px; }
.role-body h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-text); margin-bottom: 10px; }
.role-body .abtn { margin-top: 22px; }
.roles-empty { padding: 30px 0; color: var(--grey-text); font-size: 14px; }

.cr-form { background: #fafafb; }

/* ==================================================================
   Tablet / mobile
   ================================================================== */
@media (max-width: 1100px) {
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --pad: 7vw; }
  .fp-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 120px; padding-bottom: 44px; }
  .fp-wrap { grid-template-columns: 1fr; gap: 36px; padding-bottom: 80px; }
  .fp-aside { position: static; }
  .fp-photo { display: none; }
  .fcard { padding: 26px 20px; }
  .grid, .grid.g3, .grid.g4 { grid-template-columns: 1fr; gap: 24px; }
  .combo .grid { grid-template-columns: 1fr 1fr; }
  .rate-row { grid-template-columns: 1fr; }
  .scale { gap: 3px; }
  .scale .opt span { font-size: 12px; padding: 8px 0; border-radius: 8px; }
  .sig { grid-template-columns: 1fr; }
  .fees-one { grid-template-columns: 1fr; }
  .fees-t { font-size: 13px; }
  .fees-t th, .fees-t td { padding: 11px 6px; }

  /* the rail becomes a slim progress bar that stays at the top */
  .ap { grid-template-columns: 1fr; gap: 20px; padding-bottom: 80px; }
  .rail { top: 62px; z-index: 5; margin: 0 calc(-1 * var(--pad)); padding: 12px var(--pad); background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #ececef; }
  .rail ol, .rail-save p { display: none; }
  .rail-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; font-size: 12px; }
  .rail-bar b { font-weight: 700; color: var(--navy); }
  .rail-bar span { color: var(--grey-text); }
  .rail-bar i { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: #ececef; overflow: hidden; }
  .rail-bar i::after { content: ""; display: block; height: 100%; width: calc(var(--done, 0) * 100%); background: var(--gold); transition: width 0.6s var(--ease-out); }
  .rail-save { display: none; }
  .step-nav .abtn { flex: 1; }
  .step-nav .grow { display: none; }

  .cr-section { padding: 50px var(--pad); }
  .cr-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
  .why { grid-template-columns: 1fr; }
  .why li { min-height: 0; }
  .why h3 { margin-top: 40px; }
  .role-q { grid-template-columns: minmax(0, 1fr) 40px; gap: 8px 16px; }
  .role-q .role-meta, .role-q .role-tag { grid-row: 2; justify-self: start; }
  .role-q .role-tag { grid-column: 1; margin-left: 0; }
  .role-q .role-meta { display: none; }
  .role-x { grid-row: 1; grid-column: 2; }
  .role-body { grid-template-columns: 1fr; gap: 20px; }
}

/* ==================================================================
   SUPPORT HIS
   ================================================================== */
.sp-btns { margin-top: 30px; opacity: 0; animation: fadeTo 1s ease 0.8s forwards; }
.sp-band { position: relative; margin: 20px var(--pad) 40px; display: grid; grid-template-columns: 1.3fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; }
.sp-band-in { position: relative; padding: clamp(40px, 5vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.sp-mark { position: absolute; left: clamp(26px, 3vw, 54px); top: clamp(4px, 1vw, 20px); font: 300 clamp(90px, 10vw, 180px)/1 "Raleway", sans-serif; color: var(--gold); opacity: 0.5; }
.sp-quote { position: relative; font: 300 clamp(26px, 3vw, 52px)/1.15 "Raleway", sans-serif; text-transform: uppercase; }
.sp-quote b { font-weight: 500; color: var(--gold-soft); }
.sp-sub { margin-top: 24px; max-width: 46ch; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.7; color: rgba(255, 255, 255, 0.74); }
.sp-band-ph { min-height: 380px; background: var(--ph-dark); }
.sp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(28px, 3vw, 52px); border-radius: var(--radius); background: #f4f4f6; min-height: 340px; }
.sp-card.navy { background: var(--navy); color: #fff; }
.sp-no { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--gold); margin-bottom: auto; }
.sp-card.navy .sp-no { color: var(--gold-soft); }
.sp-card h3 { margin-top: 40px; font-weight: 400; font-size: clamp(22px, 2vw, 34px); line-height: 1.15; text-transform: uppercase; }
.sp-card p { max-width: 42ch; font-size: 14px; line-height: 1.7; color: var(--grey-text); }
.sp-card.navy p { color: rgba(255, 255, 255, 0.76); }
.sp-card .abtn { margin-top: 10px; }
.sp-card small { font-size: 12px; color: #9a9ba1; }
.sp-card.navy small, .sp-card.navy small a { color: rgba(255, 255, 255, 0.6); }
.abtn.light { background: transparent; border-color: rgba(255,255,255,0.45); color: #fff; }
.abtn.light::before { background: var(--gold); }
.abtn.light:hover { border-color: var(--gold); }
.sp-end { margin-top: 46px; padding-top: 30px; border-top: 1px solid #e2e2e6; font-size: 15px; color: var(--grey-text); }
.sp-end a { color: var(--navy); }
.menu-open .menu a:nth-child(8) { transition-delay: 0.55s; }
@media (max-width: 900px) {
  .sp-band { grid-template-columns: 1fr; margin: 10px var(--pad) 20px; }
  .sp-band-ph { min-height: 240px; }
  .sp-cards { grid-template-columns: 1fr; }
  .sp-card { min-height: 0; }
  .sp-card h3 { margin-top: 24px; }
}
