/* ==========================================================================
   Partner With Us — Figma "Partner With Us" (193:2094 / 194:2809)
   Light masthead, two-column enquiry (intro + accessible validated form),
   "Looking to study" band.
   ========================================================================== */
:root {
  --pw-ink: #172033;
  --pw-muted: #576477;
  --pw-placeholder: #7a8698;
  --pw-line: #e8edf3;
  --pw-input: #d9e0e9;
  --pw-error: #c62828;
  --pw-error-bg: #fdf2f2;
}

.i-university { --i: url("data:image/svg+xml,%3C%21-- %40license lucide-static v1.68.0 - ISC --%3E%3Csvg%0A  class=%22lucide lucide-university%22%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  width=%2224%22%0A  height=%2224%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22currentColor%22%0A  stroke-width=%222%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%3Cpath d=%22M14 21v-3a2 2 0 0 0-4 0v3%22 /%3E%3Cpath d=%22M18 12h.01%22 /%3E%3Cpath d=%22M18 16h.01%22 /%3E%3Cpath d=%22M22 7a1 1 0 0 0-1-1h-2a2 2 0 0 1-1.143-.359L13.143 2.36a2 2 0 0 0-2.286-.001L6.143 5.64A2 2 0 0 1 5 6H3a1 1 0 0 0-1 1v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2z%22 /%3E%3Cpath d=%22M6 12h.01%22 /%3E%3Cpath d=%22M6 16h.01%22 /%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%222%22 /%3E%3C/svg%3E") /* icon: partner-university.svg */; }
.i-book-open { --i: url("data:image/svg+xml,%3C%21-- %40license lucide-static v1.68.0 - ISC --%3E%3Csvg%0A  class=%22lucide lucide-book-open%22%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  width=%2224%22%0A  height=%2224%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22currentColor%22%0A  stroke-width=%222%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%3Cpath d=%22M12 5v16%22 /%3E%3Cpath d=%22M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z%22 /%3E%3C/svg%3E") /* icon: partner-book-open.svg */; }
.i-handshake { --i: url("data:image/svg+xml,%3C%21-- %40license lucide-static v1.68.0 - ISC --%3E%3Csvg%0A  class=%22lucide lucide-handshake%22%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  width=%2224%22%0A  height=%2224%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22currentColor%22%0A  stroke-width=%222%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%3Cpath d=%22m11 17 2 2a1 1 0 1 0 3-3%22 /%3E%3Cpath d=%22m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4%22 /%3E%3Cpath d=%22m21 3 1 11h-2%22 /%3E%3Cpath d=%22M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3%22 /%3E%3Cpath d=%22M3 4h8%22 /%3E%3C/svg%3E") /* icon: partner-handshake.svg */; }
.i-chevron-down { --i: url("data:image/svg+xml,%3C%21-- %40license lucide-static v1.68.0 - ISC --%3E%3Csvg%0A  class=%22lucide lucide-chevron-down%22%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  width=%2224%22%0A  height=%2224%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22currentColor%22%0A  stroke-width=%222%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%3Cpath d=%22m6 9 6 6 6-6%22 /%3E%3C/svg%3E") /* icon: partner-chevron-down.svg */; }
.i-check { --i: url("data:image/svg+xml,%3C%21-- %40license lucide-static v1.68.0 - ISC --%3E%3Csvg%0A  class=%22lucide lucide-check%22%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  width=%2224%22%0A  height=%2224%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22currentColor%22%0A  stroke-width=%222%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%3Cpath d=%22M20 6 9 17l-5-5%22 /%3E%3C/svg%3E") /* icon: partner-check.svg */; }

/* ------------------------------------------------------------ PAGE HEADER */
.page-head {
  background: var(--slate-50);
  padding: clamp(128px, 6.5rem + 6vw, 207px) 0 clamp(40px, 2rem + 2vw, 73px);
}
.page-head__inner { display: flex; flex-direction: column; gap: 10px; }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.crumbs li { font-size: var(--fs-16); color: var(--slate-400); }
.crumbs li + li::before { content: "/"; margin: 0 .3em; color: var(--slate-400); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--tb-500); }
.crumbs a[aria-current] { color: var(--tb-500); }
.page-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-42);
  line-height: 1.2;
  color: var(--black);
}
.page-head__lead { font-size: var(--fs-16); line-height: 1.6; color: var(--pw-muted); }

/* ------------------------------------------------------------ ENQUIRY LAYOUT */
.enquiry { padding: clamp(40px, 2rem + 1.6vw, 64px) 0 clamp(48px, 2.4rem + 2.4vw, 80px); }
.enquiry__grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 808px);
  justify-content: space-between;
  gap: clamp(32px, 1rem + 3vw, 64px);
  align-items: start;
}
.enquiry__aside { display: flex; flex-direction: column; gap: 32px; }
.enquiry__invite { display: flex; flex-direction: column; gap: 16px; }
.enquiry__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.625rem, 1.45rem + .8vw, 2rem); /* 26 → 32 */
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--pw-ink);
}
.enquiry__intro { font-size: var(--fs-16); line-height: 1.7; color: var(--pw-muted); }
.enquiry__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 440 / 258;
}
.enquiry__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.enquiry__photo:hover img { transform: scale(1.04); }

.audience { display: flex; flex-direction: column; gap: 24px; }
.audience__title, .next__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-24);
  line-height: 1.2;
  color: var(--pw-ink);
}
.audience__list { display: grid; gap: 24px; }
.aud { display: flex; gap: 16px; align-items: flex-start; }
.aud__icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--tb-50);
  color: var(--tb-500);
  transition: background .4s var(--ease-out), color .4s var(--ease-out), transform .5s var(--ease-out);
}
.aud__icon .i { width: 22px; height: 22px; }
.aud:hover .aud__icon { background: var(--tb-500); color: #fff; transform: rotate(-6deg) scale(1.05); }
.aud__name { font-weight: 600; font-size: clamp(.9375rem, .92rem + .05vw, .9375rem); color: var(--pw-ink); margin-bottom: 6px; }
.aud__text { font-size: var(--fs-14); line-height: 1.7; color: var(--pw-muted); }

.next {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--tb-50);
}
.next__title { font-size: var(--fs-22); color: var(--tb-700); }
.next__text { font-size: var(--fs-14); line-height: 1.7; color: var(--pw-muted); }
.next__note { font-size: clamp(.8125rem, .8rem + .05vw, .8125rem); line-height: 1.6; color: var(--tb-500); }

/* ------------------------------------------------------------ FORM CARD */
.form-card {
  background: var(--white);
  border: 1px solid var(--pw-line);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, .03);
  padding: clamp(20px, 1rem + 1.4vw, 36px);
}
.pform { display: flex; flex-direction: column; gap: 28px; }
.pform[hidden] { display: none; }
.pform__intro { display: flex; flex-direction: column; gap: 8px; }
.pform__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-28);
  line-height: 1.2;
  color: var(--pw-ink);
}
.pform__guide, .pform__hint { font-size: var(--fs-14); line-height: 1.6; color: var(--pw-muted); }
.pform__req { font-size: .8125rem; color: var(--pw-muted); }
.req { color: var(--tb-500); }
.pform__alert {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--pw-error-bg);
  border: 1px solid rgba(198, 40, 40, .25);
  color: var(--pw-error);
  font-size: var(--fs-14);
  outline: none;
}
.pform__alert ul { margin: 6px 0 0; padding-left: 18px; }
.pform__alert a { text-decoration: underline; }
.pform__group { display: flex; flex-direction: column; gap: 18px; border: 0; margin: 0; padding: 0; min-width: 0; }
.pform__legend {
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-24);
  line-height: 1.2;
  color: var(--pw-ink);
}
.pform__group > .pform__legend { margin-bottom: 18px; }
.checks > .pform__legend { margin-bottom: 8px; }
.pform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.pform__divider { border: 0; height: 1px; background: var(--pw-line); margin: 0; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label { font-weight: 500; font-size: var(--fs-14); color: var(--pw-ink); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--pw-input);
  border-radius: 8px;
  background: var(--white);
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--pw-ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: var(--pw-placeholder); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--tb-400);
  box-shadow: 0 0 0 4px rgba(65, 106, 210, .14);
}
.field [aria-invalid="true"] { border-color: var(--pw-error) !important; background: var(--pw-error-bg); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, .14); }
.select { position: relative; }
.select select { padding-right: 42px; cursor: pointer; }
.select select:invalid, .select select.is-empty { color: var(--pw-placeholder); }
.select option { color: var(--pw-ink); }
.select__chev { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--pw-muted); pointer-events: none; transition: transform .35s var(--ease-out); }
.select:focus-within .select__chev { transform: rotate(180deg); color: var(--tb-500); }
.field__err {
  font-size: .8125rem; line-height: 1.4; color: var(--pw-error);
  display: flex; gap: 6px; align-items: flex-start;
}
.field__err:empty { display: none; }
.field__err::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--pw-error); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* Checkboxes */
.checks { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.checks__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: 4px; }
.check {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-size: var(--fs-14);
  color: var(--pw-ink);
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; left: 0; cursor: pointer; }
.check__box {
  width: 18px; height: 18px; flex: none;
  border: 1.5px solid var(--pw-input);
  border-radius: 4px;
  background: var(--white);
  display: grid; place-items: center;
  transition: background .25s, border-color .25s, transform .3s var(--ease-out);
}
.check__box::after {
  content: ""; width: 12px; height: 12px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3C%21-- %40license lucide-static v1.68.0 - ISC --%3E%3Csvg%0A  class=%22lucide lucide-check%22%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  width=%2224%22%0A  height=%2224%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22currentColor%22%0A  stroke-width=%222%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%3Cpath d=%22M20 6 9 17l-5-5%22 /%3E%3C/svg%3E") /* icon: partner-check.svg */ center / contain no-repeat;
          mask: url("data:image/svg+xml,%3C%21-- %40license lucide-static v1.68.0 - ISC --%3E%3Csvg%0A  class=%22lucide lucide-check%22%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  width=%2224%22%0A  height=%2224%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22currentColor%22%0A  stroke-width=%222%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%3Cpath d=%22M20 6 9 17l-5-5%22 /%3E%3C/svg%3E") /* icon: partner-check.svg */ center / contain no-repeat;
  transform: scale(0); transition: transform .3s var(--ease-out);
}
.check:hover .check__box { border-color: var(--tb-400); }
.check input:checked + .check__box { background: var(--tb-500); border-color: var(--tb-500); }
.check input:checked + .check__box::after { transform: scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--tb-300); outline-offset: 3px; }
.check input:active + .check__box { transform: scale(.9); }
.checks[aria-invalid="true"] .check__box, .field--consent [aria-invalid="true"] + .check__box { border-color: var(--pw-error); }
.check--consent { align-items: flex-start; gap: 12px; font-size: .8125rem; line-height: 1.7; color: var(--pw-muted); min-height: 0; }
.check--consent input { top: 3px; }
.check--consent .check__box { margin-top: 3px; }
.link { color: var(--tb-500); text-decoration: underline; text-underline-offset: 2px; }
.link:hover { color: var(--tb-400); }

.pform__submit { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pform__btn { min-width: min(214px, 100%); }
.pform__btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.pform__btn[aria-busy="true"] .btn__icon { animation: pw-spin .8s linear infinite; -webkit-mask-image: none; mask-image: none; border-radius: 50%; background: transparent; border: 2px solid currentColor; border-right-color: transparent; }
@keyframes pw-spin { to { transform: rotate(360deg); } }
.pform__privacy { font-size: var(--fs-12); line-height: 1.7; color: var(--pw-muted); }

/* Success state */
.success { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(8px, 1vw, 20px) 0; outline: none; }
.success[hidden] { display: none; }
.success__icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tb-500); color: #fff;
  box-shadow: 0 0 0 10px var(--tb-50);
}
.success__icon .i { width: 30px; height: 30px; }
.success__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-28); line-height: 1.2; color: var(--pw-ink);
}
.success__text { font-size: var(--fs-16); line-height: 1.7; color: var(--pw-muted); max-width: 60ch; }
.success__text strong { color: var(--pw-ink); font-weight: 600; word-break: break-word; }
.success__steps { display: grid; gap: 12px; width: 100%; margin: 6px 0; }
.success__steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; background: var(--slate-50); font-size: var(--fs-14); color: var(--pw-ink); }
.success__steps b { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--tb-50); color: var(--tb-500); display: grid; place-items: center; font-family: var(--font-nav); font-weight: 800; }
.success__actions { align-self: stretch; display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--tb-500); --btn-hover: var(--tb-50); border: 1px solid var(--tb-200); }
.btn--ghost:hover { box-shadow: none; }

/* ------------------------------------------------------------ STUDENT BAND */
.study-band { background: #02002d; color: #fff; padding: clamp(28px, 1.5rem + 1vw, 34px) 0; }
.study-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.study-band__copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.study-band__title { font-weight: 700; font-size: var(--fs-24); line-height: 1.5; }
.study-band__copy p { font-size: var(--fs-16); }
.study-band__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 56px; padding: 8px 26px;
  font-weight: 500; font-size: var(--fs-16);
  border-bottom: 1px solid #fff;
  transition: color .3s, background .3s;
}
.study-band__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--tb-300); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.study-band__link:hover { color: var(--tb-200); }
.study-band__link:hover::after { transform: scaleX(1); transform-origin: left; }
.study-band__link .i { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.study-band__link:hover .i { transform: translateX(4px); }

/* ------------------------------------------------------------ RESPONSIVE */
/* Tablet/mobile: intro first, then the form, then the supporting content */
@media (max-width: 1100px) {
  .enquiry__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .enquiry__aside { display: contents; }
  .enquiry__invite { order: 1; grid-column: 1 / -1; }
  .form-card { order: 2; grid-column: 1 / -1; }
  .enquiry__photo { order: 3; grid-column: 1 / -1; aspect-ratio: 16 / 7; }
  .audience { order: 4; }
  .next { order: 5; align-self: start; }
}
@media (max-width: 760px) {
  .enquiry__grid { grid-template-columns: minmax(0, 1fr); }
  .enquiry__photo { aspect-ratio: 440 / 258; }
  .pform__row, .checks__grid { grid-template-columns: minmax(0, 1fr); }
  .form-card { border-radius: 14px; }
  .pform__btn { width: 100%; }
  .study-band__link { padding-inline: 4px; }
}
