/* Password-gated programme forms, following the waiting-list workspace.
   Light theme: the section sits on white like the rest of the programme
   page, so the lime stays a fill colour and the type carries the contrast. */
#main > section.foundation-forms { padding: 0 !important; background: #fff !important; color: #14181d; scroll-margin-top: 145px; }
.foundation-forms { --fpf-line: #e3e7ec; --fpf-muted: #5a646f; --fpf-lime: #baf33d; --fpf-accent: #3f6212; }
.foundation-forms [hidden] { display: none !important; }
.foundation-forms h2, .foundation-forms h3, .foundation-forms h4 { color: #14181d; }
.foundation-forms button, .foundation-forms input, .foundation-forms select, .foundation-forms textarea { font: inherit; }
.foundation-forms button { cursor: pointer; }
.foundation-forms button:disabled { cursor: default; opacity: .45; }
.foundation-forms button:focus-visible, .foundation-forms a:focus-visible { outline: 2px solid #3f6212; outline-offset: 4px; }
.foundation-forms a { color: #3f6212; }
.foundation-forms .fpf-eyebrow { margin: 0 0 18px; color: #3f6212; font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.fpf-gate { display: grid; grid-template-columns: 1fr 410px; align-items: center; gap: 80px; width: min(calc(100% - 80px), 1200px); margin: auto; padding: 90px 0; }
.fpf-gate h2 { margin: 0 0 22px; font-size: clamp(38px, 5vw, 68px); font-weight: 400; line-height: 1.05; letter-spacing: -.05em; }
.fpf-gate-intro > p:not(.fpf-eyebrow) { max-width: 500px; color: #5a646f; font-size: 18px; line-height: 1.6; }
.fpf-gate-intro > a { font-size: 13px; }
.fpf-unlock { padding: 30px; border: 1px solid #e3e7ec; border-radius: 22px; background: #f8f9fb; box-shadow: 0 10px 30px rgba(20, 24, 29, .05); }
.fpf-lock-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border: 1px solid #d8d2ee; border-radius: 12px; background: #f1eefb; color: #5b4a9e; font-size: 28px; }
.fpf-unlock h3 { margin: 0 0 12px; font-size: 26px; font-weight: 500; }
.fpf-unlock > p { color: #5a646f; font-size: 14px; }
.fpf-unlock > label { display: block; margin: 24px 0 8px; font-size: 13px; font-weight: 600; }
.fpf-password-row { display: flex; border: 1px solid #cdd4dc; border-radius: 10px; background: #fff; overflow: hidden; }
.fpf-password-row:focus-within { outline: 2px solid #3f6212; outline-offset: 2px; }
.fpf-password-row input { min-width: 0; width: 100%; padding: 12px; border: 0; outline: 0; color: #14181d; background: #fff; }
.fpf-password-row button { padding: 10px 14px; border: 0; border-left: 1px solid #e3e7ec; color: #45505c; background: #f1f3f6; font-size: 12px; }
.fpf-primary, .fpf-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font-size: 14px !important; font-weight: 650 !important; text-decoration: none; }
.fpf-primary { color: #14181d; background: #baf33d; }
.fpf-primary:hover { background: #a8e225; }
.fpf-secondary { color: #14181d; background: transparent; border-color: #cdd4dc; }
.fpf-secondary:hover { background: #f1f3f6; }
.fpf-unlock .fpf-primary { width: 100%; }
.fpf-unlock > small { display: block; margin-top: 18px; color: #6b7682; font-size: 11px; line-height: 1.6; }
.foundation-forms .fpf-error { min-height: 18px; margin: 12px 0; color: #b3261e; font-size: 13px; line-height: 1.5; }
.fpf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 720px; }
.fpf-workspace { min-width: 0; padding: 0 clamp(24px, 4vw, 64px) 64px; }
.fpf-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; margin-bottom: 42px; border-bottom: 1px solid #e3e7ec; }
.fpf-topbar button { padding: 8px 0; border: 0; color: #45505c; background: none; font-size: 12px; }
.fpf-topbar span { color: #6b7682; font-size: 11px; }
.fpf-content { max-width: 840px; margin: auto; }
.fpf-content h2 { margin: 0 0 20px; font-size: clamp(30px, 3.8vw, 50px); font-weight: 400; letter-spacing: -.045em; line-height: 1.12; }
.fpf-content h2:focus { outline: none; }
.fpf-lead { margin: 0 0 28px; color: #4d5762; font-size: 16px; line-height: 1.65; }
.fpf-note { padding: 16px 18px; border: 1px solid #e3e7ec; border-radius: 12px; background: #f8f9fb; color: #45505c; font-size: 13px; line-height: 1.6; }
.fpf-profile-card { margin: 30px 0; padding: clamp(20px, 3vw, 32px); border: 1px solid #e6e3f2; border-radius: 20px; background: linear-gradient(130deg, #f6f4fd, #f3f7f9); }
.fpf-profile-card h3 { max-width: 600px; margin: 12px 0; font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.fpf-profile-card p { color: #4d5762; font-size: 14px; line-height: 1.6; }
.fpf-profile-card ol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; padding-left: 20px; margin: 24px 0; color: #3c4650; font-size: 12px; }
.fpf-profile-card li { padding-left: 3px; }
.fpf-sidebar { padding: 36px 24px; border-left: 1px solid #e3e7ec; background: #f8f9fb; }
.fpf-sidebar > strong { display: block; margin-bottom: 22px; color: #5b4a9e; font-size: 13px; }
.fpf-sidebar ol { list-style: none; padding: 0; margin: 0; }
.fpf-sidebar li { margin-bottom: 6px; }
.fpf-sidebar button { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 0; border: 0; text-align: left; color: #5a646f; background: transparent; font-size: 12px; line-height: 1.45; }
.fpf-sidebar i { display: grid; flex: 0 0 26px; place-items: center; width: 26px; height: 26px; border: 1px solid #cdd4dc; border-radius: 50%; background: #fff; font-size: 10px; font-style: normal; }
.fpf-sidebar button span { padding-top: 4px; }
.fpf-sidebar button[aria-current="step"] { color: #14181d; font-weight: 600; }
.fpf-sidebar button[aria-current="step"] i { color: #fff; border-color: #14181d; background: #14181d; box-shadow: 0 0 0 4px #e8e4f6; }
.fpf-sidebar .is-complete i { border-color: #baf33d; background: #baf33d; color: #14181d; }
.fpf-sidebar > p { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e3e7ec; color: #6b7682; font-size: 11px; line-height: 1.6; }
.fpf-stage-progress { height: 3px; margin: 0 0 26px; border-radius: 3px; background: #e3e7ec; overflow: hidden; }
.fpf-stage-progress span { display: block; height: 100%; background: #8fc524; }
.fpf-fields { display: grid; gap: 28px; margin: 30px 0; }
.fpf-field { min-width: 0; padding-bottom: 28px; border: 0; border-bottom: 1px solid #e9ecf0; }
.fpf-field > label, .fpf-field > legend { display: block; width: 100%; padding: 0; margin-bottom: 8px; color: #14181d; font-size: 16px; font-weight: 550; line-height: 1.5; }
.fpf-field-code { display: inline-block; margin-right: 8px; color: #5b4a9e; font-size: 11px; font-weight: 650; }
.fpf-optional { display: block; margin-top: 3px; color: #78828e; font-size: 11px; font-weight: 400; }
.fpf-help { margin: 6px 0 14px; color: #5a646f; font-size: 12px; line-height: 1.6; }
.fpf-field input:not([type="checkbox"]), .fpf-field select, .fpf-field textarea { display: block; width: 100%; max-width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cdd4dc; border-radius: 10px; background: #fff; color: #14181d; font-size: 15px; line-height: 1.5; color-scheme: light; }
.fpf-field textarea { min-height: 115px; resize: vertical; }
.fpf-field input:read-only { color: #5a646f; background: #f1f3f6; }
.fpf-field input:focus, .fpf-field select:focus, .fpf-field textarea:focus { outline: 2px solid #3f6212; outline-offset: 2px; }
.fpf-field input::placeholder, .fpf-field textarea::placeholder { color: #9aa4b0; }
.fpf-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fpf-search-label { margin-top: 18px; }
.fpf-field input[type="search"] { margin-bottom: 14px; }
.fpf-option[hidden] { display: none; }
.fpf-option { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 13px; border: 1px solid #d9dfe6; border-radius: 12px; background: #fff; cursor: pointer; }
.fpf-option:has(input:checked) { border-color: #8fc524; background: #f4fbe6; }
.fpf-option input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: #8fc524; }
.fpf-option span { min-width: 0; color: #22282f; font-size: 13px; font-weight: 400; line-height: 1.5; }
.fpf-option small { display: block; margin-top: 6px; color: #6b7682; font-size: 11px; }
.fpf-follow-up { margin-top: 16px; }
.fpf-follow-up > label { display: block; margin-bottom: 8px; color: #3c4650; font-size: 13px; }
.fpf-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.fpf-actions .fpf-primary { margin-left: auto; }
.fpf-review-section { margin: 18px 0; border: 1px solid #dfe4ea; border-radius: 12px; overflow: hidden; }
.fpf-review-section summary { padding: 18px; font-size: 15px; font-weight: 600; cursor: pointer; background: #f4f6f8; }
.fpf-review-section dl { margin: 0; padding: 18px; }
.fpf-review-section dt { margin-top: 18px; color: #6b7682; font-size: 12px; }
.fpf-review-section dt:first-child { margin-top: 0; }
.fpf-review-section dd { margin: 6px 0 0; color: #14181d; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fpf-review-section > button { margin: 0 18px 18px; }
.fpf-privacy { display: block; margin-top: 26px; color: #6b7682; font-size: 12px; line-height: 1.6; }
@media (max-width: 1000px) {
  .fpf-gate { grid-template-columns: 1fr 350px; gap: 36px; width: calc(100% - 48px); }
  .fpf-layout { grid-template-columns: minmax(0, 1fr); }
  .fpf-sidebar { order: -1; padding: 20px 24px; border-left: 0; border-bottom: 1px solid #e3e7ec; }
  .fpf-sidebar > strong, .fpf-sidebar > p { display: none; }
  .fpf-sidebar ol { display: flex; gap: 16px; overflow-x: auto; }
  .fpf-sidebar li { flex: 0 0 170px; }
  .fpf-sidebar button { font-size: 11px; }
}
@media (max-width: 650px) {
  .fpf-gate { grid-template-columns: minmax(0, 1fr); gap: 32px; width: calc(100% - 40px); padding: 48px 0; }
  .fpf-unlock { padding: 24px; }
  .fpf-workspace { padding: 0 20px 46px; }
  .fpf-topbar { gap: 12px; min-height: 64px; margin-bottom: 30px; }
  .fpf-topbar span { display: none; }
  .fpf-options, .fpf-profile-card ol { grid-template-columns: minmax(0, 1fr); }
  .fpf-content h2 { font-size: 34px; }
  .fpf-actions { flex-direction: column-reverse; }
  .fpf-actions button { width: 100%; }
  .fpf-sidebar { padding-inline: 20px; }
  .fpf-field > label, .fpf-field > legend { font-size: 15px; }
}

/* ==========================================================================
   Standalone forms page
   The forms live on their own page now rather than as a section inside the
   programme, so they get a slim bar of their own with a way back instead of
   the site header and the programme tabs.
   ========================================================================== */
.fpf-standalone { margin: 0; background: #fff; }
.fpf-standalone #main { min-height: calc(100vh - 61px); }

/* The section stops being a band inside a page and becomes the page. */
.fpf-standalone section.foundation-forms { padding: 0 !important; background: #fff !important; scroll-margin-top: 0; }

.fpf-bar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #e3e7ec; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
.fpf-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(calc(100% - 48px), 1200px); min-height: 60px; margin: auto; }
.fpf-bar-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.fpf-bar-title strong { color: #14181d; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.fpf-bar-title span { color: #6b7682; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpf-close { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 15px; border: 1px solid #cdd4dc; border-radius: 999px; color: #14181d !important; font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .18s, background .18s; }
.fpf-close:hover { border-color: #14181d; background: #f1f3f6; }

/* The gate fills the page rather than sitting in a band of its own. */
.fpf-standalone .fpf-gate { padding: clamp(48px, 7vh, 96px) 0; }

@media (max-width: 650px) {
  .fpf-bar-in { width: calc(100% - 32px); min-height: 54px; }
  .fpf-bar-title span { display: none; }
  .fpf-close span { display: none; }
  .fpf-close { padding: 9px; }
}
