/*
 The order form (orderform.php) and order confirmation (orderconfirmation.php), in the new site's design: the site's
 colours (main.css .hl: ink, muted, line, soft, blue), white cards with soft borders, the free trial form's inputs,
 dark pill buttons. Everything is scoped to .ofm, except the pop-ups js/orderform.js adds straight to <body>
 (#validation-popup, .submit-button-tooltip), the pricing guide pop-up and its scroll lock, which are at the bottom.

 js/orderform.js shows and hides the sections by setting style.display to block/none on them, so layout never goes
 on those sections themselves, only on their containers (.ofm-steps, .ofm-side-card) and their insides.
*/

.ofm {
  --ink: #141a2e;
  --mut: #5b6275;
  --grey: #868d9b;
  --line: #e8eaf0;
  --soft: #f5f6fa;
  --blue: #3d5afe;
  --red: #c02626;
  --field: #dfe2ea;
  color: var(--ink);
}
.ofm *, .ofm *::before, .ofm *::after { box-sizing: border-box; }

/* "← Back to plans" (elements/nav.php) lined up with the page's left edge */
body:has(.ofm) .mb-back { max-width: 1200px; padding: 0 28px; }
body:has(.ofm) .mb-back a { left: 28px; }

/* ---------- page and hero ---------- */
.ofm .pagecontainer { max-width: 1200px; margin: 0 auto; padding: 0 28px 104px; scroll-margin-top: 80px; }
.ofm-hero { max-width: 1060px; padding: 108px 0 40px; }
body.skills .ofm-hero h1 { margin: 0; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.025em; font-weight: 800; color: var(--ink); }
.ofm-lede { margin: 18px 0 0; max-width: 1000px; font-size: 17px; line-height: 1.6; color: var(--mut); }
body.skills .ofm-lede a,
.ofm .order-pricing-guide-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(20, 26, 46, .3); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
body.skills .ofm-lede a:hover,
.ofm .order-pricing-guide-link:hover { text-decoration-color: currentColor; }
.ofm .order-pricing-guide-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

/* ---------- two columns: the steps, then "Your order" ---------- */
.ofm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.ofm-steps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ofm-side { position: sticky; top: 92px; min-width: 0; }

/* the page sits on a soft grey-blue so the white cards stand out (the body, not just main, so the footer's
   overlapping call-to-action band shows the same colour above it) */
body.skills:has(main.ofm) { background: #f2f4f8; }

/* a step: a white card */
.ofm-card { padding: 26px 28px; border: 1px solid #e1e5ee; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(20, 26, 46, .04), 0 12px 28px -20px rgba(20, 26, 46, .22); }
/* the individual note ("Please note: for your use only") sits straight on the page in the left column: a white card
   like the steps, with "Please note" as a small blue label above the text */
.ofm .ofm-steps > .individualnote { padding: 20px 24px; border: 1px solid #e1e5ee; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(20, 26, 46, .04), 0 12px 28px -20px rgba(20, 26, 46, .22); }
body.skills .ofm .ofm-steps > .individualnote h4 { margin: 0 0 6px; font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ofm .ofm-steps > .individualnote p { font-size: 14.5px; line-height: 1.6; color: #4a5268; }
.ofm .ofm-steps > .individualnote p strong { font-weight: 700; color: var(--ink); }
body.skills .ofm .ofm-h,
body.skills .ofm .schoolsection h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 800; color: var(--ink); }
.ofm hr.custom-line { margin: 26px 0 22px; border: 0; border-top: 1px solid var(--line); }

/* ---------- the first step: questions answered with option tiles, one under another ---------- */
.ofm .combined-order-section { display: flex; flex-direction: column; gap: 22px; }
.ofm .combined-order-section > .form-group { position: relative; }
/* each question after the first is set off by a faint line */
.ofm .combined-order-section > .form-group + .form-group { padding-top: 20px; border-top: 1px solid var(--line); }
.ofm .ofm-label { display: block; margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }

/* a pair of tiles */
.ofm .ofm-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* a tile: icon (or logo), name and a line under it, and a round tick at the right. --c is its colour when chosen */
.ofm .ofm-opt { --c: var(--blue); --t: rgba(61, 90, 254, .05); position: relative; display: flex; align-items: center; gap: 12px; min-height: 62px; margin: 0; padding: 11px 44px 11px 16px; border: 1px solid var(--field); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.ofm .ofm-opt.is-primary { --c: #3fa9f5; --t: rgba(63, 169, 245, .07); }
.ofm .ofm-opt.is-secondary { --c: #1d3b8b; --t: rgba(29, 59, 139, .05); }
.ofm .ofm-opt:hover { border-color: #b9bfcc; }
/* chosen: the tile's colour on the border and tick; green for the order type and "Who is it for?" tiles (the school
   type tiles keep their light / dark blue) */
.ofm .ofm-opt:has(input:checked) { border-color: var(--c); box-shadow: 0 0 0 .5px var(--c); }
.ofm .ofm-opt:not(.ofm-school-card):has(input:checked) { --c: #10b981; }
.ofm .ofm-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
/* the radio itself: out of sight (the tile shows the state) */
.ofm .ofm-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
/* the tick */
.ofm .ofm-opt::after { content: ""; position: absolute; top: 50%; right: 14px; width: 20px; height: 20px; margin-top: -10px; border: 1.5px solid var(--field); border-radius: 50%; background: #fff no-repeat center / 12px; transition: background-color .15s, border-color .15s; }
.ofm .ofm-opt:has(input:checked)::after { border-color: var(--c); background-color: var(--c); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
/* the icon in a soft square (it stays as it is when chosen: the border and tick show the choice) */
.ofm .ofm-opt img { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.ofm .ofm-opt-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ofm .ofm-opt-text b { font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.ofm .ofm-opt-text span { font-size: 12.5px; line-height: 1.3; font-weight: 400; color: var(--grey); }
/* not answered when the order was submitted: js/orderform.js marks the hidden select, so the tiles go red */
.ofm .form-group:has(select.field-error) .ofm-opt { border-color: var(--red); }
/* the address/individual "country" boxes: filled from the Country step, so out of sight (not display:none, so still sent) */
.ofm .ofm-auto-country { position: absolute !important; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ofm #region { position: relative; }
.ofm .ofm-country-field { position: relative; }

/* the custom country list: a button like the other fields, and a panel that always opens below it */
.ofm .ofm-cselect { position: relative; }
.ofm .ofm-cselect-btn { display: flex; align-items: center; width: 100%; height: 48px; padding: 0 42px 0 14px; border: 1.5px solid var(--field); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6275' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; font: inherit; font-size: 16px; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ofm .ofm-cselect-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofm .ofm-cselect-btn:hover { border-color: #c5cad6; }
.ofm .ofm-cselect-btn:focus-visible,
.ofm .ofm-cselect-btn[aria-expanded="true"] { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 90, 254, .15); }
.ofm .ofm-cselect-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; min-width: 240px; padding: 8px; border: 1px solid #e1e5ee; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -12px rgba(20, 26, 46, .28); }
.ofm .ofm-cselect-panel[hidden] { display: none; }
.ofm input[type="text"].ofm-cselect-search { height: 40px; margin: 0 0 6px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; }
.ofm .ofm-cselect-list { max-height: 260px; margin: 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.ofm .ofm-cselect-opt { padding: 8px 10px; border-radius: 8px; font-size: 14.5px; line-height: 1.3; color: var(--ink); cursor: pointer; }
.ofm .ofm-cselect-opt[hidden] { display: none; }
.ofm .ofm-cselect-opt.is-active { background: var(--soft); }
.ofm .ofm-cselect-opt.is-selected { font-weight: 700; color: var(--blue); }
/* United Kingdom (always first) set off from the A–Z list */
.ofm .ofm-cselect-opt:first-child { margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
/* the Country field: a heading-sized label while it sits in its own card (renewals); a normal field label next to Postcode */
body.skills .ofm #region .ofm-country-field > label { display: block; margin: 0 0 14px; font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
/* the card is emptied when the field moves next to Postcode; !important beats the display:block js/orderform.js sets */
.ofm #region.ofm-region-moved { display: none !important; }
.ofm #schooltype:has(.field-error) .ofm-school-card { border-color: var(--red); }
/* the real select: out of sight but not display:none, as js/orderform.js only sends fields it can "see" */
.ofm .ofm-school-select { position: absolute !important; left: 0; bottom: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* field grids */
.ofm .schooldetails,
.ofm .ofm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.ofm .schooldetails.ofm-one { grid-template-columns: minmax(0, 1fr); }
.ofm .ofm-full { grid-column: 1 / -1; }
.ofm .addressinput { display: grid; gap: 8px; }
.ofm .invoicedetails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.ofm #fullInvoicingDetails { display: block; }
.ofm #sameInvoicingAddressOption { margin: -4px 0 18px; }

/* ---------- labels, inputs, selects ---------- */
.ofm .form-group { min-width: 0; margin: 0; }
.ofm label { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ofm .required-asterisk { color: #d23b3b; font-weight: 700; }
.ofm input[type="text"],
.ofm input[type="email"],
.ofm select { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 12px; background-color: #fff; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ofm select { padding-right: 42px; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6275' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.ofm select::-ms-expand { display: none; }
.ofm input::placeholder { color: var(--grey); }
.ofm input[type="text"]:hover,
.ofm input[type="email"]:hover,
.ofm select:hover { border-color: #c5cad6; }
.ofm input[type="text"]:focus,
.ofm input[type="email"]:focus,
.ofm select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 90, 254, .15); }
.ofm .ofm-hint { margin: 7px 0 0; font-size: 13px; line-height: 1.45; color: var(--mut); }

/* checkboxes with their text beside them (same invoicing address, terms) */
.ofm label.ofm-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--mut); cursor: pointer; }
/* the terms line in "Your order": smaller */
.ofm .tandc label.ofm-check { align-items: center; gap: 7px; font-size: 12px; line-height: 1.45; }
.ofm .tandc .ofm-check input { width: 18px; height: 18px; margin-top: 0; }
.ofm .ofm-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }

/* text box + button (password suggestion) */
.ofm .input-with-button { display: flex; gap: 8px; }
.ofm .input-with-button input { flex: 1; min-width: 0; }
.ofm .input-with-button button { flex: none; height: 48px; padding: 0 18px; border: 1.5px solid rgba(20, 26, 46, .18); border-radius: 12px; background: #fff; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.ofm .input-with-button button:hover { border-color: var(--ink); background: var(--soft); }
.ofm .input-with-button button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* the (i) on Region: a dark tooltip on hover or focus */
.ofm .info-icon { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--mut); cursor: help; }
.ofm .info-icon:hover { color: var(--ink); background: var(--soft); }
.ofm .info-icon[data-tooltip]::after { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 20; width: 260px; padding: 10px 12px; border-radius: 10px; background: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; color: #fff; text-align: left; opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.ofm .info-icon[data-tooltip]:hover::after,
.ofm .info-icon[data-tooltip]:focus::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ofm label .info-icon { vertical-align: middle; margin: -3px 0 0 2px; font-weight: 500; }
.ofm .info-icon:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* how did you hear about us: radio buttons as pills */
.ofm .toggle-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ofm .toggle-buttons .option { position: relative; margin: 0; }
/* the real radio is clipped to nothing, NOT opacity: 0 or display: none: js/orderform.js skips fields it thinks are
   hidden (opacity 0 counts), and the chosen answer would then never be sent */
.ofm .toggle-buttons .option input[type="radio"] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ofm .toggle-buttons .option label { display: inline-flex; align-items: center; height: 42px; margin: 0; padding: 0 18px; border: 1.5px solid rgba(20, 26, 46, .18); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.ofm .toggle-buttons .option:hover label { border-color: var(--ink); }
.ofm .toggle-buttons .option input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff; }
.ofm .toggle-buttons .option input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- notes (individual, payment terms, payment on the next page) ---------- */
.ofm .individualnote { padding: 16px 18px; border-radius: 16px; background: var(--soft); }
.ofm .individualnote .noteline { display: none; }
body.skills .ofm .individualnote h4 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--ink); }
.ofm .individualnote p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--mut); }
.ofm .individualnote p strong { color: var(--ink); }
/* "Payment on the next page": the same soft grey as the school's payment terms note (red read as an error) */

/* ---------- "Your order" ---------- */
.ofm-side-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid #e1e5ee; border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(20, 26, 46, .05), 0 30px 60px -36px rgba(20, 26, 46, .38); }
/* before a price shows: the three prices (hidden as soon as js/orderform.js shows a summary heading) */
.ofm-side-empty p { margin: -6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--mut); }
.ofm-side-card:has(.summary-section-header[style*="block"]) .ofm-side-empty { display: none; }
/* an empty dashed panel where the price will go */
.ofm .ofm-empty-box { display: grid; place-items: center; height: 200px; padding: 0 28px; border: 2px dashed #e3e7ee; border-radius: 16px; background: #fafbfd; text-align: center; }
.ofm .ofm-side-empty .ofm-empty-box p { margin: 0; font-size: 14px; line-height: 1.5; color: #a3a9b6; }
.ofm .ofm-small { margin: 10px 0 0; font-size: 13px; color: var(--mut); }
body.skills .ofm .summary-section-header h2 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 800; color: var(--ink); }

/* the summary: product, length, voucher, totals */
.ofm .item { padding: 0 0 16px; border-bottom: 1px solid var(--line); }
/* logo beside three lines (title, length, price) spread to the logo's exact height: top line level with its top,
   price level with its bottom */
.ofm .itemleft { display: flex; align-items: stretch; gap: 14px; }
.ofm .itemleft img { flex: none; width: 56px; height: 56px; border-radius: 14px; }
.ofm .itemleft .item-details { display: flex; flex-direction: column; justify-content: space-between; gap: 3px; min-width: 0; min-height: 56px; }
/* price with "+ VAT" in light grey beside it (UK only) */
.ofm .ofm-price-line { display: flex; align-items: baseline; gap: 5px; margin-top: 0; line-height: 1; }
.ofm .ofm-price-line .price { margin-top: 0; font-size: 16px; line-height: 1; }
.ofm .ofm-plus-vat { font-size: 12px; font-weight: 600; line-height: 1; color: var(--grey); }
/* the length lists live in the summary for js/orderform.js but are set from the left: out of sight, not display:none */
.ofm .itemright.ofm-length-hidden { position: absolute !important; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ofm .summary { position: relative; }
.ofm .item { border-bottom: 0; padding-bottom: 6px; }
.ofm .order-summary { margin-top: 6px; }
.ofm #internationalsummary .total { margin-top: 0; padding-top: 4px; border-top: 0; }

/* subscription length: its own card of three tiles (1, 2, 3 years), shown once a price is showing */
.ofm-grid:not(:has(.summary-section-header[style*="block"])) #lengthPicker { display: none; }
.ofm .ofm-opts.ofm-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.skills .ofm .item-details :is(h1,h3) { margin: 0; font-size: 15px; line-height: 1.15; letter-spacing: 0; font-weight: 800; color: var(--ink); }
.ofm .item-details :is(h1,h3) span { color: var(--mut); }
.ofm .item-details :is(h1,h3) br { display: none; }
.ofm .item-details :is(h1,h3) span::before { content: " "; }
.ofm .spec { margin-top: 0; font-size: 13px; line-height: 1.2; color: var(--mut); }
.ofm .price { margin-top: 4px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.ofm .itemright { margin-top: 14px; }
.ofm .subscription-form { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ofm .subscription-form label,
.ofm .subscription-form > p { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.ofm .subscription-form label p { margin: 0; }
.ofm .select-wrapper select { width: 132px; height: 42px; font-size: 15px; font-weight: 600; }

/* sits under the Total */
.ofm .voucher-section { margin: 2px 0 0; line-height: 1.3; }
/* "Have a promo code? Click here": one quiet line of small grey text; clicking it opens the code box below */
.ofm .voucher-details { border: 0; }
.ofm .voucher-summary.voucher-label { display: inline-block; padding: 0; list-style: none; font-size: 12px; line-height: 1.3; font-weight: 400; color: var(--grey); cursor: pointer; }
.ofm .voucher-summary::-webkit-details-marker { display: none; }
.ofm .voucher-summary::marker { content: ""; }
.ofm .voucher-click { color: var(--mut); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(91, 98, 117, .35); text-underline-offset: 2px; }
.ofm .voucher-summary:hover .voucher-click { color: var(--ink); text-decoration-color: currentColor; }
.ofm .voucher-summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
/* once open, the line has done its job */
.ofm .voucher-details[open] .voucher-summary.voucher-label { display: none; }
.ofm .voucher-dropdown-content { padding: 6px 0 8px; }
.ofm .voucher-row { display: flex; gap: 8px; }
.ofm .voucher-row .voucher-code-input { flex: 1; min-width: 0; height: 44px; font-size: 14.5px; }
.ofm .voucher-update-btn { flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: #23252f; font: inherit; font-size: 14.5px; font-weight: 700; color: #fff; cursor: pointer; transition: background .15s; }
.ofm .voucher-update-btn:hover { background: #000; }
.ofm .voucher-update-btn:disabled { opacity: .6; cursor: wait; }
.ofm .voucher-message { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: #15803d; }
.ofm .voucher-message:empty { display: none; }
.ofm .voucher-message.voucher-message--error { color: var(--red); font-weight: 600; }

body.skills .ofm .order-summary h2 { margin: 16px 0 6px; font-size: 14px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: var(--grey); }
.ofm .order-summary details summary { padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--mut); cursor: pointer; }
.ofm .order-summary details summary:hover { color: var(--ink); }
.ofm .breakdown { padding: 6px 0 2px; }
.ofm .breakdown .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; color: var(--mut); }
.ofm .total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 700; color: var(--ink); }
.ofm .total span:last-child { font-size: 24px; font-weight: 800; letter-spacing: -.015em; }
.ofm #internationalsummary .order-summary { margin-top: 6px; }

/* terms, submit */
.ofm .tandc a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(20, 26, 46, .3); text-underline-offset: 2px; }
.ofm .tandc a:hover { text-decoration-color: currentColor; }
.ofm .submit { margin: 0; }
.ofm .submit button[type="submit"] { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; padding: 0 24px; border: 0; border-radius: 999px; background: #23252f; font: inherit; font-size: 16.5px; font-weight: 800; color: #fff; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.ofm .submit button[type="submit"]:not(:disabled):hover { background: #000; transform: translateY(-1px); box-shadow: 0 14px 26px -16px rgba(20, 26, 46, .7); }
.ofm .submit button[type="submit"]:disabled { background: #e6e8ee; color: #8a91a1; cursor: not-allowed; }
.ofm .submit button[type="submit"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.ofm .ofm-secure { margin: -4px 0 0; text-align: center; }
body.skills .ofm .ofm-secure a { color: var(--grey); font-weight: 500; text-decoration: none; text-underline-offset: 3px; transition: color .15s; }
body.skills .ofm .ofm-secure a:hover { color: var(--ink); text-decoration: underline; }

/* field errors (js/orderform.js adds .field-error and a .field-error-message) */
.ofm .form-group.field-error input:not([type="checkbox"]):not([type="radio"]),
.ofm .form-group.field-error select,
.ofm input.field-error,
.ofm select.field-error { border-color: #d23b3b; box-shadow: 0 0 0 3px rgba(210, 59, 59, .12); }
.ofm .tandc.field-error { margin: -6px; padding: 6px; border-radius: 10px; background: #fdecec; }
.ofm .field-error-message { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--red); }

/* hidden things */
.ofm .ofm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ofm .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- tablets and phones: one column, "Your order" after the steps ---------- */
@media (max-width: 980px) {
  .ofm-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ofm-side { position: static; }
  .ofm-hero { padding-top: 88px; }
}
@media (max-width: 620px) {
  body:has(.ofm) .mb-back { padding: 0 16px; }
  body:has(.ofm) .mb-back a { left: 16px; }
  .ofm .pagecontainer { padding: 0 16px 72px; }
  .ofm-hero { padding: 72px 0 28px; }
  .ofm-card, .ofm-side-card { padding: 20px 18px; border-radius: 18px; }
  .ofm .schooldetails, .ofm .ofm-fields, .ofm .invoicedetails, .ofm .ofm-opts, .ofm .ofm-opts.ofm-opts-3 { grid-template-columns: minmax(0, 1fr); }
  .ofm .toggle-buttons .option { flex: 1 1 calc(50% - 4px); }
  .ofm .toggle-buttons .option label { width: 100%; justify-content: center; }
  .ofm .info-icon[data-tooltip]::after { left: auto; right: -40px; transform: translateY(4px); width: 230px; }
  .ofm .info-icon[data-tooltip]:hover::after { transform: none; }
}

/* ---------- order confirmation (orderconfirmation.php) ---------- */
/* a white card centred on the grey page (body background set above for every .ofm page) */
.ofm-done { max-width: 600px; margin: 0 auto; padding: 120px 0 96px; }
.ofm-done-card { padding: 44px 44px 36px; border: 1px solid #e1e5ee; border-radius: 28px; background: #fff; text-align: center; box-shadow: 0 1px 2px rgba(20, 26, 46, .05), 0 40px 80px -40px rgba(20, 26, 46, .35); }
.ofm-tick { display: inline-grid; place-items: center; width: 68px; height: 68px; margin: 0 0 20px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 8px rgba(16, 185, 129, .12); }
.ofm-tick svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
/* paymentfailed.php: amber "!"; ordererror.php: red "!" */
.ofm-tick.is-warn { background: #f59e0b; box-shadow: 0 0 0 8px rgba(245, 158, 11, .14); }
.ofm-tick.is-error { background: #e5484d; box-shadow: 0 0 0 8px rgba(229, 72, 77, .12); }
body.skills .ofm-done h1 { margin: 0; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
.ofm-done .ofm-done-lede { max-width: 440px; margin: 12px auto 0; font-size: 16px; line-height: 1.6; color: var(--mut); }
/* the details paragraph: smaller, set off by a faint line */
.ofm-done .ofm-done-text { max-width: 460px; margin: 22px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.65; color: var(--mut); }
.ofm-done .ofm-done-text strong { font-weight: 700; color: var(--ink); }
/* ispay.php: the login details note as a big centred blue banner: envelope on top, the message in large bold text
   with "24 hours" picked out in blue */
.ofm-done .ofm-done-notice { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 26px 0 0; padding: 22px 22px; border: 2px solid var(--blue); border-radius: 18px; background: #eef1ff; text-align: center; }
.ofm-done .ofm-done-notice p { max-width: 380px; margin: 0; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ofm-done .ofm-done-notice em { font-style: normal; color: var(--blue); white-space: nowrap; }
body.skills .ofm-done .ofm-done-text a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(20, 26, 46, .3); text-underline-offset: 3px; }
body.skills .ofm-done .ofm-done-text a:hover { text-decoration-color: currentColor; }
.ofm-done .ofm-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
/* the quiet contact link under the card */
.ofm-done .ofm-done-help { margin: 18px 0 0; font-size: 13px; text-align: center; }
body.skills .ofm-done .ofm-done-help a { color: var(--grey); font-weight: 500; text-decoration: none; text-underline-offset: 3px; }
body.skills .ofm-done .ofm-done-help a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 620px) {
  .ofm-done { padding: 88px 0 64px; }
  .ofm-done-card { padding: 32px 20px 26px; border-radius: 22px; }
  .ofm-done .ofm-acts .hl-btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- pay an invoice (payments.php) ---------- */
/* compact, so the heading and the whole form fit on one laptop screen */
/* (these don't rely on body.skills, so they also work on lpayments.php, which keeps the members' old header and footer) */
.ofm .ofm-hero.ofm-payhero { max-width: 640px; margin: 0 auto; padding: 84px 0 26px; text-align: center; }
body.skills .ofm-payhero h1,
.ofm .ofm-payhero h1 { margin: 0; font-family: "Roboto", system-ui, sans-serif; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; color: var(--ink); }
.ofm .ofm-payhero .ofm-lede a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(20, 26, 46, .3); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ofm .ofm-payhero .ofm-lede a:hover { text-decoration-color: currentColor; }
/* lpayments.php: the grey page behind the card (its body isn't body.skills) and room under the members' header */
main.ofm.ofm-legacy { padding-top: 0; background: #f2f4f8; font-family: "Roboto", system-ui, sans-serif; }
.ofm.ofm-legacy .ofm-hero.ofm-payhero { padding-top: 48px; }
.ofm-payhero .ofm-lede { margin: 10px auto 0; font-size: 16px; line-height: 1.55; }
/* the form: one white card */
.ofm .ofm-payc { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 540px; margin: 0 auto; padding: 28px 28px 22px; border: 1px solid #e1e5ee; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(20, 26, 46, .05), 0 30px 60px -36px rgba(20, 26, 46, .38); }
.ofm .ofm-payc .ofm-fields { gap: 14px 14px; }
.ofm .ofm-payc label { margin-bottom: 6px; }
.ofm .ofm-payc input[type="text"], .ofm .ofm-payc select { height: 44px; }
.ofm .ofm-payc .submit button[type="submit"] { height: 50px; }
.ofm .ofm-payerr { margin: 0; padding: 12px 14px; border: 1px solid #f5c2c2; border-radius: 12px; background: #fdf3f3; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--red); }
/* "Secure card payment": a grey badge sitting on the card's top edge, at the right */
.ofm .ofm-secure-chip { position: absolute; top: 0; right: 24px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 0; border-radius: 999px; background: var(--blue); font-size: 12px; font-weight: 700; color: #fff; box-shadow: 0 6px 14px -6px rgba(61, 90, 254, .6); }
.ofm .ofm-secure-chip svg, .ofm .ofm-paynote svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* the amount and the "matches the invoice" tick */
.ofm .ofm-payprice { padding: 12px 16px; border-radius: 14px; background: var(--soft); }
.ofm .ofm-payprice-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #e3e6ee; font-size: 14px; color: var(--mut); }
.ofm .ofm-payprice-row b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-align: right; }
.ofm .ofm-payprice .ofm-check { font-size: 13.5px; }
/* "securely processed by" with the Take Payments logo */
.ofm .ofm-paynote { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 0; font-size: 12.5px; color: var(--grey); }
.ofm .ofm-paynote img { height: 18px; width: auto; }
.ofm .ofm-payhelp { max-width: 540px; margin: 14px auto 0; font-size: 13px; text-align: center; }
.ofm .ofm-payhelp a { color: var(--grey); font-weight: 500; text-decoration: none; text-underline-offset: 3px; }
.ofm .ofm-payhelp a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 620px) { .ofm .ofm-payc { padding: 22px 18px; border-radius: 20px; } }

/* =================== page level (outside .ofm) =================== */

/* missing fields pop-up (js/orderform.js adds #validation-popup to <body>) */
#validation-popup { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 26, 46, .45); animation: ofmFade .2s ease; }
#validation-popup .validation-popup-content { width: min(460px, 100%); max-height: 80vh; overflow-y: auto; border-radius: 22px; background: #fff; color: #141a2e; box-shadow: 0 30px 60px -24px rgba(20, 26, 46, .5); font-family: "Roboto", system-ui, sans-serif; animation: ofmUp .25s ease; }
#validation-popup .validation-popup-header { display: flex; align-items: center; gap: 10px; padding: 20px 20px 0 22px; color: #c02626; }
#validation-popup .validation-popup-header svg { flex: none; }
body.skills #validation-popup h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 800; color: #141a2e; }
#validation-popup .validation-popup-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #e3e6ec; border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; color: #5b6275; cursor: pointer; }
#validation-popup .validation-popup-close:hover { border-color: #141a2e; color: #141a2e; }
#validation-popup .validation-popup-body { padding: 10px 22px 22px; }
#validation-popup .validation-popup-body p { margin: 0 0 10px; font-size: 15px; color: #5b6275; }
#validation-popup .validation-popup-body ul { margin: 0; padding: 0 0 0 20px; font-size: 15px; line-height: 1.7; color: #141a2e; }

/* the list of missing fields shown over a greyed-out Submit (js/orderform.js, position: fixed from the button) */
.submit-button-tooltip { position: fixed; z-index: 10000; max-width: 300px; padding: 14px 16px; border-radius: 14px; background: #141a2e; color: #fff; font: 14px/1.5 "Roboto", system-ui, sans-serif; box-shadow: 0 20px 40px -18px rgba(20, 26, 46, .6); pointer-events: none; }
.submit-button-tooltip strong { display: block; margin-bottom: 4px; font-weight: 800; }
.submit-button-tooltip ul { margin: 0; padding: 0 0 0 18px; }
.submit-button-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #141a2e; transform: translateX(-50%) rotate(45deg); }

/* the pricing guide pop-up */
.pricing-modal-overlay { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 26, 46, .45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.pricing-modal-overlay.is-open { opacity: 1; visibility: visible; }
.pricing-modal-overlay[hidden] { display: none; }
.pricing-modal-overlay.is-open[hidden] { display: flex; }
.pricing-modal { position: relative; width: min(500px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px 22px 22px; border-radius: 24px; background: #fff; color: #141a2e; box-shadow: 0 30px 60px -24px rgba(20, 26, 46, .5); font-family: "Roboto", system-ui, sans-serif; }
.pricing-modal:focus { outline: none; }
.pricing-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
body .pricing-modal .pricing-modal-title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; text-transform: none; color: #141a2e; }
.pricing-modal-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #e3e6ec; border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; color: #5b6275; cursor: pointer; }
.pricing-modal-close:hover { border-color: #141a2e; color: #141a2e; }
/* the three plans, one per row: logo, name and who it's for, price */
.pricing-plans { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pricing-plan { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #e3e6ec; border-radius: 16px; background: #fff; }
.pricing-plan img { flex: none; width: 44px; height: 44px; border-radius: 11px; }
.pricing-plan-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pricing-plan-text b { font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: #141a2e; }
.pricing-plan-text span { font-size: 12.5px; line-height: 1.35; color: #868d9b; }
.pricing-plan-price { display: flex; flex-direction: column; align-items: flex-end; margin: 0 0 0 auto; padding-left: 8px; font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: #141a2e; white-space: nowrap; }
.pricing-plan-price small { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: #868d9b; }
/* the small print under the plans */
.pricing-notes { display: grid; gap: 6px; margin: 16px 0 0; padding: 14px 2px 0; border-top: 1px solid #e8eaf0; list-style: none; }
.pricing-notes li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.45; color: #5b6275; }
.pricing-notes li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: #b9bfcc; }

/* the pricing guide's scroll lock (its script adds these to <html> and <body>) */
html.pricing-modal-open-root { overflow: hidden; padding-right: 0 !important; }
body.pricing-modal-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; padding-right: var(--pricing-scrollbar-width, 0px) !important; box-sizing: border-box; }

@keyframes ofmFade { from { opacity: 0; } }
@keyframes ofmUp { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  #validation-popup, #validation-popup .validation-popup-content { animation: none; }
  .pricing-modal-overlay, .ofm .submit button[type="submit"] { transition: none; }
}
