/* B2B partner registration page. Builds on lp.css (fonts, buttons, form fields) with the form's own blues. */
.pf-page { --pf-blue: #205E9A; --pf-navy: #053B75; --pf-tint: #eef4fb; --pf-line: #d3dfec; --pf-err: #b3261e; background: #f6f8fb; }

.pf-hero { position: relative; overflow: hidden; color: #e8eff8; background: linear-gradient(135deg, var(--pf-navy) 0%, #0b4a8c 55%, var(--pf-blue) 100%); padding: calc(var(--hdr, 148px) + clamp(28px, 5vw, 64px)) 0 clamp(64px, 9vw, 112px); }
.pf-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); pointer-events: none; }
.pf-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b9d3ee; margin: 0 0 10px; }
.lp main .pf-hero h1 { color: #fff; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; margin: 0 0 16px; max-width: 16ch; }
.pf-hero h1 em { font-style: italic; color: #cfe2f6; }
.pf-lead { max-width: 62ch; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; color: #dbe6f3; margin: 0 0 22px; }
.pf-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pf-facts li { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: 14px; background: rgba(255, 255, 255, .07); }
.pf-facts strong { color: #fff; }

.pf-body { padding: 0 0 clamp(48px, 7vw, 88px); }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(20px, 3vw, 36px); align-items: start; margin-top: clamp(-72px, -6vw, -48px); position: relative; }
.pf-card { background: #fff; border: 1px solid var(--pf-line); border-radius: 16px; box-shadow: 0 30px 60px -40px rgba(5, 59, 117, .45); padding: clamp(20px, 3.4vw, 40px); color: var(--ink); }
.pf-required-note { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.pf-req { color: var(--pf-err); font-weight: 700; }
.pf-opt { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 4px; }
.pf-alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #7a1712; border: 1px solid #f3c3be; font-weight: 600; }

/* Progress */
.pf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 4px 0 24px; counter-reset: s; }
.pf-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12.5px; color: var(--muted); }
.pf-steps li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--pf-line); }
.pf-steps li:first-child::before { display: none; }
.pf-steps li.is-done::before, .pf-steps li.is-current::before { background: var(--pf-blue); }
.pf-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #fff; border: 2px solid var(--pf-line); color: var(--muted); transition: background-color .25s, border-color .25s, color .25s; }
.pf-steps li.is-current .pf-dot { border-color: var(--pf-blue); color: var(--pf-blue); box-shadow: 0 0 0 4px rgba(32, 94, 154, .15); }
.pf-steps li.is-done .pf-dot { background: var(--pf-blue); border-color: var(--pf-blue); color: #fff; }
.pf-steps li.is-current .pf-step-name { color: var(--pf-navy); font-weight: 700; }

/* Sections */
.pf-step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
form.is-stepped .pf-step { margin-bottom: 8px; }
.pf-step legend { display: flex; align-items: center; gap: 12px; width: 100%; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); color: var(--pf-navy); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--pf-line); outline: none; }
.pf-num { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--pf-navy); color: #fff; font-family: inherit; font-size: 17px; }
.pf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.pf-fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-wide { grid-column: 1 / -1; }
.pf-card label { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--pf-navy); }
.pf-card input:not([type=radio]):not([type=checkbox]):not([type=file]), .pf-card select, .pf-card textarea {
  display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 11px 13px; border: 1px solid #b9c7d8; border-radius: 10px; background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.pf-card textarea { min-height: 90px; resize: vertical; }
.pf-card input:hover, .pf-card textarea:hover { border-color: var(--pf-blue); }
.pf-card input:focus, .pf-card textarea:focus { outline: none; border-color: var(--pf-blue); box-shadow: 0 0 0 3px rgba(32, 94, 154, .22); }
.pf-card [aria-invalid=true] { border-color: var(--pf-err) !important; box-shadow: 0 0 0 3px rgba(179, 38, 30, .14) !important; }
.pf-error { display: block; margin-top: 6px; color: var(--pf-err); font-size: 13.5px; font-weight: 600; }
.pf-error[hidden] { display: none; }
.pf-help, .pf-small { font-size: 14px; color: var(--muted); line-height: 1.55; }
.pf-small { font-size: 13px; }

/* Ticks */
.pf-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.pf-group-wide { grid-column: 1 / -1; }
.pf-group h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--pf-blue); margin: 0 0 10px; }
.pf-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
/* The site theme (style.css) sets "appearance: none !important" on every input, which leaves native checkboxes and
   radios with no visible box at all. So each control here is drawn in full on the real input: native semantics,
   keyboard and focus are kept, and nothing is hidden or covered. */
.pf-card .pf-tick, .pf-card .pf-radio { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--pf-line); border-radius: 10px; font-weight: 400; cursor: pointer; background: #fff; transition: border-color .2s, background-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.pf-card .pf-tick:hover, .pf-card .pf-radio:hover { border-color: var(--pf-blue); }
.pf-card .pf-tick:has(input:checked), .pf-card .pf-radio:has(input:checked) { border-color: var(--pf-blue); background: var(--pf-tint); box-shadow: 0 0 0 1px var(--pf-blue); }
.pf-card .pf-tick:has(input:focus-visible), .pf-card .pf-radio:has(input:focus-visible) { border-color: var(--pf-blue); box-shadow: 0 0 0 1px var(--pf-blue), 0 0 0 4px rgba(32, 94, 154, .25); }
.pf-tick span, .pf-radio span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-tick strong, .pf-radio strong { color: var(--pf-navy); font-size: 15px; }
.pf-tick small, .pf-radio small { color: var(--muted); font-size: 13px; }
.pf-tick-compact { align-items: center; }

/* Card indicator: a small round check on the right, empty until selected. One size in every state, so nothing shifts. */
.pf-card .pf-tick input, .pf-card .pf-radio input {
  order: 2; flex: none; -webkit-appearance: none; appearance: none; display: block; position: static; opacity: 1;
  width: 22px; height: 22px; min-height: 0; margin: 0 0 0 auto; padding: 0;
  border: 1.5px solid #9fb4cc; border-radius: 50%; background: #fff center / 14px no-repeat; cursor: pointer;
  transition: border-color .2s, background-color .2s; }
.pf-card .pf-tick:hover input, .pf-card .pf-radio:hover input { border-color: var(--pf-blue); }
.pf-card .pf-tick input:checked { border-color: var(--pf-blue); background-color: var(--pf-blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); }
.pf-card .pf-radio input:checked { border-color: var(--pf-blue); background-color: var(--pf-blue); box-shadow: inset 0 0 0 4px #fff; }
.pf-card .pf-tick input:focus-visible, .pf-card .pf-radio input:focus-visible { outline: none; }
.pf-card .pf-tick:has(input[aria-invalid=true]) { border-color: var(--pf-err); }

/* Declaration: a clearly drawn square box to the left of its label, the whole row clickable. */
.pf-card .pf-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 18px; border: 1px solid var(--pf-line); border-radius: 10px; background: #fff; font-weight: 600; line-height: 1.45; cursor: pointer; transition: border-color .2s, background-color .2s; -webkit-tap-highlight-color: transparent; }
.pf-card .pf-check:hover { border-color: var(--pf-blue); }
.pf-card .pf-check:has(input:checked) { border-color: var(--pf-blue); background: var(--pf-tint); }
.pf-card .pf-check:has(input[aria-invalid=true]) { border-color: var(--pf-err); }
.pf-card .pf-check:has(+ .pf-error:not([hidden])) { margin-bottom: 0; }
.pf-card .pf-check + .pf-error { margin: 6px 0 16px; }
.pf-card .pf-check input {
  flex: none; -webkit-appearance: none; appearance: none; display: block; position: static; opacity: 1;
  width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0;
  border: 2px solid #6f86a3; border-radius: 5px; background: #fff center / 16px no-repeat; cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s; }
.pf-card .pf-check:hover input { border-color: var(--pf-blue); }
.pf-card .pf-check input:checked { border-color: var(--pf-blue); background-color: var(--pf-blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); }
.pf-card .pf-check input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(32, 94, 154, .35); }
@media (forced-colors: active) {
  .pf-card .pf-tick input, .pf-card .pf-radio input, .pf-card .pf-check input { -webkit-appearance: auto !important; appearance: auto !important; }
}
.pf-other { margin-top: 4px; max-width: 520px; }
.pf-other[hidden] { display: none; }

/* Declaration and signature */
.pf-declaration { padding: 14px 16px; border-left: 4px solid var(--pf-blue); background: var(--pf-tint); border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.6; color: #1d3150; margin-bottom: 14px; }
.pf-label { font-size: 14px; font-weight: 700; color: var(--pf-navy); margin: 4px 0 8px; }
.pf-sign-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.pf-sign-panel { margin: 4px 0 16px; }
.pf-sign-panel[hidden] { display: none; }
.pf-card .pf-signature-input { font-family: var(--serif) !important; font-size: 24px !important; font-style: italic; color: var(--pf-navy) !important; }
.pf-card .pf-file input[type=file] { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1.5px dashed #9fb4cc; border-radius: 10px; background: #fbfdff; font-size: 15px; cursor: pointer; }
.pf-preview { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.pf-preview[hidden] { display: none; }
.pf-preview img { max-width: 260px; max-height: 90px; padding: 6px; border: 1px solid var(--pf-line); border-radius: 8px; background: #fff; }
.pf-link { background: none; border: 0; padding: 4px; color: var(--pf-blue); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Navigation */
.pf-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--pf-line); }
.pf-nav .pf-next, .pf-nav .pf-submit { margin-left: auto; }
.pf-nav [hidden] { display: none !important; }
.pf-page .lp-btn-primary { background: var(--pf-blue); border-color: var(--pf-blue); box-shadow: 0 14px 30px -14px rgba(5, 59, 117, .7); }
.pf-page .lp-btn-primary:hover { background: var(--pf-navy); border-color: var(--pf-navy); }
.pf-submit[disabled] { opacity: .75; cursor: progress; }

/* Aside */
.pf-aside { display: grid; gap: 16px; position: sticky; top: 96px; }
.pf-aside-card { background: #fff; border: 1px solid var(--pf-line); border-radius: 14px; padding: 20px 22px; font-size: 14.5px; line-height: 1.55; }
.lp main .pf-aside-card h2 { font-family: var(--sans, inherit); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--pf-blue); margin: 0 0 12px; }
.pf-how { list-style: none; counter-reset: h; padding: 0; margin: 0; display: grid; gap: 14px; }
.pf-how li { counter-increment: h; position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: 2px; }
.pf-how li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pf-tint); color: var(--pf-navy); font-weight: 700; font-size: 14px; }
.pf-how strong { color: var(--pf-navy); }
.pf-how span { color: var(--muted); }
.pf-terms { background: var(--pf-navy); color: #dbe6f3; border-color: var(--pf-navy); }
.lp main .pf-terms h2 { color: #b9d3ee; }
.pf-office p { margin: 0 0 8px; color: var(--muted); }
.pf-office a { color: var(--pf-blue); font-weight: 600; }
.pf-done h2 { font-family: var(--serif); color: var(--pf-navy); font-size: 34px; margin: 0 0 10px; }

@media (prefers-reduced-motion: no-preference) {
  form.is-stepped .pf-step:not([hidden]) { animation: pf-in .3s ease both; }
  @keyframes pf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 991px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-aside-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pf-fields, .pf-fields-3, .pf-groups, .pf-services, .pf-sign-choice, .pf-aside { grid-template-columns: minmax(0, 1fr); }
  .pf-card { border-radius: 12px; padding: 20px 16px; }
  .pf-step-name { display: none; }
  .pf-steps li.is-current .pf-step-name { display: block; position: absolute; top: 40px; white-space: nowrap; font-size: 12px; }
  .pf-steps li:first-child.is-current .pf-step-name { left: 0; }
  .pf-steps li:last-child.is-current .pf-step-name { right: 0; }
  .pf-steps { margin-bottom: 40px; }
  .pf-nav { flex-wrap: wrap; }
  .pf-nav .lp-btn { flex: 1 1 auto; justify-content: center; }
  .pf-preview { flex-direction: column; align-items: flex-start; }
}
@media print {
  .pf-hero, .pf-aside, .pf-nav, .pf-steps { display: none !important; }
  .pf-step[hidden] { display: block !important; }
}

/* Success dialog (same as enquiry-success.js on the student forms). Kept here so the live enquiry.css stays untouched. */
.enq-success {
  --enq-blue: #205E9A; --enq-navy: #053B75; --enq-tint: #EAF2FA; --enq-ink: #0F2236; --enq-muted: #4A5B6E;
  width: min(440px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 0; border-radius: 20px; background: #fff; color: var(--enq-ink); overflow: visible;
  box-shadow: 0 32px 80px -24px rgba(5, 59, 117, .55), 0 2px 8px rgba(5, 59, 117, .08);
}
.enq-success::backdrop { background: rgba(5, 33, 66, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.enq-success.is-fallback { position: fixed; inset: 0; z-index: 2000; }
.enq-success-card { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 36px 28px 24px; border-radius: 20px; text-align: center; }
.enq-success-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--enq-blue), var(--enq-navy)); }
.enq-success-x {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--enq-muted); cursor: pointer; transition: background-color .15s, color .15s;
}
.enq-success-x:hover { background: var(--enq-tint); color: var(--enq-navy); }
.enq-success-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--enq-tint); }
.enq-success-ring { stroke: var(--enq-blue); opacity: .35; }
.enq-success-tick { stroke: var(--enq-navy); }
.lp .enq-success-title, .enq-success-title {
  margin: 0 0 8px; color: var(--enq-navy); font-family: inherit; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.6rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
}
.enq-success-text { margin: 0 auto 20px; max-width: 34ch; color: var(--enq-muted); font-size: 1rem; line-height: 1.6; }
.enq-success-ref { margin: 0 0 14px; padding: 14px 16px; border: 1px solid #D6E3F0; border-radius: 14px; background: #F6F9FC; text-align: left; }
.enq-success-ref-label { display: block; margin: 0 0 6px; color: var(--enq-muted); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.enq-success-ref-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.enq-success-ref-value { padding: 0; background: none; color: var(--enq-navy); font: 700 1.05rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; word-break: break-all; user-select: all; }
.enq-success-copy {
  display: inline-flex; gap: 6px; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--enq-blue); border-radius: 999px;
  background: #fff; color: var(--enq-blue); font-family: inherit; font-size: .875rem; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.enq-success-copy:hover { background: var(--enq-tint); }
.enq-success-copy.is-copied { border-color: #1E7A4D; background: #E8F5EE; color: #1E7A4D; }
.enq-success-note { margin: 0 0 22px; color: var(--enq-muted); font-size: .875rem; line-height: 1.55; }
.enq-success-actions { display: grid; gap: 10px; }
.enq-success-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.enq-success-btn-primary { border: 0; background: var(--enq-blue); color: #fff; box-shadow: 0 8px 18px -10px rgba(5, 59, 117, .8); }
.enq-success-btn-primary:hover { background: var(--enq-navy); color: #fff; }
.enq-success-btn-ghost { border: 1px solid #C9D8E8; background: #fff; color: var(--enq-navy); }
.enq-success-btn-ghost:hover { border-color: var(--enq-blue); color: var(--enq-navy); }
.enq-success :focus-visible { outline: 3px solid rgba(32, 94, 154, .45); outline-offset: 2px; }
.enq-success-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.enq-success-open { overflow: hidden; padding-right: var(--enq-scrollbar, 0); }
@media (max-width: 380px) {
  .enq-success-card { padding: 32px 18px 18px; }
  .enq-success-icon { width: 72px; height: 72px; }
  .enq-success-icon svg { width: 54px; height: 54px; }
  .enq-success-ref-row { flex-direction: column; align-items: stretch; }
  .enq-success-copy { justify-content: center; }
}
@media (min-width: 560px) { .enq-success-card { padding: 40px 36px 28px; } }
/* Entrance and exit, about 300 ms; the tick draws itself after the card settles */
@media (prefers-reduced-motion: no-preference) {
  .enq-success[open] { animation: enq-success-in .3s cubic-bezier(.2, .8, .2, 1) both; }
  .enq-success[open]::backdrop { animation: enq-success-fade .3s ease-out both; }
  .enq-success.is-leaving { animation: enq-success-out .26s ease-in both; }
  .enq-success.is-leaving::backdrop { animation: enq-success-fade .26s ease-in reverse both; }
  .enq-success-ring { stroke-dasharray: 151; stroke-dashoffset: 151; animation: enq-success-draw .5s .12s ease-out forwards; }
  .enq-success-tick { stroke-dasharray: 36; stroke-dashoffset: 36; animation: enq-success-draw .35s .45s cubic-bezier(.65, 0, .45, 1) forwards; }
  .enq-success-icon { animation: enq-success-pop .45s .1s cubic-bezier(.2, 1.4, .4, 1) both; }
}
@keyframes enq-success-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes enq-success-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes enq-success-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes enq-success-draw { to { stroke-dashoffset: 0; } }
@keyframes enq-success-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
