/* Hyde Park Pharmacy - the nomination form (RX-WINDOW1, 15 Nov 2026). THE look of the one nomination sign-up form, wherever it is
   shown: on /prescriptions/nominate.html (its owner: the form's fields, words and consent live in that page) and in the
   prescriptions window (rx-window.js borrows the page's own form). Moved here, rule for rule, from the page's inline <style>, each
   rule scoped to the form (.hpp-nomform) so it never styles anything else on a page the window opens over; the page reads exactly
   as before. The colours are the page's own variables (--teal, --dark-teal, --border, --text, --muted, --terracotta, --cream); the
   window sets them from the brand tokens on its own box. Behaviour: nominate-form.js; sending: task-form.js. */
.hpp-nomform, .hpp-nomform * { box-sizing: border-box; }
.hpp-nomform a { color: var(--teal); }
.hpp-nomform .field { margin-bottom: 18px; }
.hpp-nomform .field label { display: block; font-size: 14px; color: var(--dark-teal); margin-bottom: 6px; font-weight: 600; }
.hpp-nomform .field .optional { color: var(--muted); font-weight: 400; font-size: 13px; }
.hpp-nomform .field input, .hpp-nomform .field textarea, .hpp-nomform .field select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: inherit;
  font-size: 16px;
  background: white;
}
.hpp-nomform .field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A2E36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.hpp-nomform .field input:focus, .hpp-nomform .field textarea:focus, .hpp-nomform .field select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.hpp-nomform .field input.invalid, .hpp-nomform .field textarea.invalid, .hpp-nomform .field select.invalid { border-color: #c0392b; }
.hpp-nomform .field input.invalid:focus, .hpp-nomform .field textarea.invalid:focus, .hpp-nomform .field select.invalid:focus { outline-color: #c0392b; }
.hpp-nomform .field .help { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hpp-nomform .field .err { display: none; font-size: 13px; color: #c0392b; margin-top: 5px; font-weight: 500; }
.hpp-nomform .field .err.show { display: block; }
.hpp-nomform .field textarea { resize: vertical; min-height: 84px; }
.hpp-nomform .required { color: var(--terracotta); }

.hpp-nomform .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .hpp-nomform .field-grid { grid-template-columns: 1fr; } }

.hpp-nomform .consent-block { background: rgba(15,82,87,0.04); border-radius: 8px; padding: 10px 18px; margin: 0 0 22px; }
.hpp-nomform .consent-block label { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text); cursor: pointer; padding: 10px 0; min-height: 44px; }
.hpp-nomform .consent-block input[type="checkbox"] { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--teal); }
.hpp-nomform .consent-block input[type="checkbox"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hpp-nomform .consent-block input[type="checkbox"].invalid { outline: 2px solid #c0392b; outline-offset: 2px; }
.hpp-nomform .consent-block strong { color: var(--dark-teal); }
.hpp-nomform .consent-block .err { display: none; font-size: 13px; color: #c0392b; margin: -4px 0 6px 32px; font-weight: 500; }
.hpp-nomform .consent-block .err.show { display: block; }
/* NOMINATE-EASY1: the choice is the patient's - said plainly, right above the boxes they tick. */
.hpp-nomform .choice-note { font-size: 14px; color: var(--text); margin: 22px 0 12px; padding: 0 2px; max-width: 68ch; }
.hpp-nomform .choice-note strong { color: var(--dark-teal); }
.hpp-nomform .field .why { color: var(--muted); font-weight: 400; font-size: 13px; }
.hpp-nomform .noscript-note { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; font-size: 15px; color: var(--dark-teal); }
.hpp-nomform .next-steps { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text); }
.hpp-nomform .next-steps .next-h { font-weight: 700; color: var(--dark-teal); font-size: 15px; margin: 0 0 8px; }
.hpp-nomform .next-steps ol { margin: 0 0 12px; padding-left: 20px; }
.hpp-nomform .next-steps li { margin-bottom: 6px; padding-left: 2px; }
.hpp-nomform .next-steps .small { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 540px) { .hpp-nomform .btn { width: 100%; } }

.hpp-nomform .section-head { font-family: 'Proxima Nova', sans-serif; color: var(--dark-teal); font-size: 18px; margin: 24px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
/* NOM-CHOICE-AT-SIGNUP1: van / post / collection, chosen at sign-up. Same card language as the route tabs on the page. */
.hpp-nomform .choice { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.hpp-nomform .choice legend.section-head { display: block; width: 100%; padding: 0 0 8px; }
.hpp-nomform .choice-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .hpp-nomform .choice-opts { grid-template-columns: 1fr; } }
.hpp-nomform .choice-opt { display: flex; align-items: flex-start; gap: 12px; background: white; border: 2px solid var(--border); border-radius: 10px; padding: 14px 16px; min-height: 56px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.hpp-nomform .choice-opt:hover { border-color: var(--teal); }
.hpp-nomform .choice-opt:has(input:checked) { border-color: var(--teal); background: rgba(15,82,87,0.05); }
.hpp-nomform .choice-opt input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--teal); }
.hpp-nomform .choice-opt input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hpp-nomform .choice-opt strong { display: block; color: var(--dark-teal); font-size: 15px; line-height: 1.35; margin-bottom: 2px; }
.hpp-nomform .choice-opt .sub { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.hpp-nomform .choice-opt .off-note { color: #8a4b33; margin-top: 4px; }
.hpp-nomform .choice-opt.is-off { cursor: not-allowed; background: #fafafa; }
.hpp-nomform .choice-opt.is-off:hover { border-color: var(--border); }
.hpp-nomform .choice-opt.is-off strong, .hpp-nomform .choice-opt.is-off .sub:not(.off-note) { opacity: .6; }
.hpp-nomform .choice .help { font-size: 13px; color: var(--muted); margin-top: 8px; }
.hpp-nomform .choice .err { display: none; font-size: 13px; color: #c0392b; margin-top: 6px; font-weight: 500; }
.hpp-nomform .choice .err.show { display: block; }
.hpp-nomform .choice.invalid .choice-opt { border-color: #e7b3ab; }
@media (prefers-reduced-motion: reduce) { .hpp-nomform .choice-opt { transition: none; } }

/* The send button keeps the page's old weight, a plain .btn (0,1,0) - :where() adds nothing - so the cascade is exactly as it
   was: on a phone mobile-ux.css's later .btn{min-height:44px} still wins, as it did over the old inline rule (measured: the
   scoped (0,2,0) form made the phone button 2px taller). In the window this file loads last, so the button keeps its 50px. */
:where(.hpp-nomform) .btn { padding: 15px 28px; min-height: 50px; border-radius: 7px; font-weight: 600; font-size: 16px; border: none; cursor: pointer; font-family: inherit; background: var(--teal); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
@media (hover: hover) and (pointer: fine) { :where(.hpp-nomform) .btn:hover { background: var(--dark-teal); } }
:where(.hpp-nomform) .btn[disabled] { opacity: 0.65; cursor: default; }
:where(.hpp-nomform) .btn .spinner { display: none; width: 17px; height: 17px; border: 2.5px solid rgba(250,247,242,0.4); border-top-color: var(--cream); border-radius: 50%; animation: hpp-spin 0.7s linear infinite; }
:where(.hpp-nomform) .btn.loading .spinner { display: inline-block; }
@keyframes hpp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { :where(.hpp-nomform) .btn .spinner { animation: none; } }

/* GP-LIST1: the GP surgery type-ahead (nominate-form.js). The suggestions float over the form below the field (absolute), so
   nothing on the page moves while they show. One list of up to 8 practices: name, then town and postcode. The field ends at
   its input (align-self: start): where it shares a grid row with the NHS number, the row is as tall as that field's help
   line, and a stretched cell hung the list ~51px below the input, beside the wrong field (design review of release 76, D2). */
.hpp-nomform .gp-ahead { position: relative; align-self: start; }
.hpp-nomform .gp-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(10,46,54,.16), 0 2px 6px rgba(10,46,54,.08); max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.hpp-nomform .gp-opt { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-height: 44px; border-radius: 7px; cursor: pointer;
  color: var(--dark-teal); font-size: 15px; line-height: 1.3; }
.hpp-nomform .gp-opt .gp-where { font-size: 13px; color: var(--muted); }
.hpp-nomform .gp-opt mark { background: none; color: inherit; font-weight: 700; }
.hpp-nomform .gp-opt[aria-selected="true"] { background: rgba(15,82,87,0.08); box-shadow: inset 3px 0 0 var(--teal); }
@media (hover: hover) and (pointer: fine) { .hpp-nomform .gp-opt:hover { background: rgba(15,82,87,0.05); } }
.hpp-nomform .gp-note { padding: 8px 12px 6px; font-size: 13px; color: var(--muted); }
/* RX-STEPS1 (27 Nov 2026): the same form, a few questions at a time (nominate-form.js stepper; without script none of this
   applies and the whole form shows as before). A progress line, then the five steps in ONE grid cell: the box is always the
   tallest step's height, so changing step moves nothing on the page or in the window (design-studio s4.5 rules 6 and 8). A step
   not shown is visibility:hidden (and inert), so it is neither seen, tabbed to nor read out. The page's own section headings
   step aside while the steps show; each step has its own heading, which takes focus. Brand: the form's own colours. */
.hpp-nomform .nf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 44px; margin: 0 0 4px; }
.hpp-nomform .nf-count { margin: 0; font-size: 14px; font-weight: 700; color: var(--dark-teal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hpp-nomform .nf-meter { display: flex; gap: 4px; flex: 1 1 60px; max-width: 180px; }
.hpp-nomform .nf-meter i { flex: 1 1 0; height: 6px; border-radius: 3px; background: var(--border); }
.hpp-nomform .nf-meter i.is-done { background: var(--teal); }
.hpp-nomform:not(.is-stepped) .nf-count, .hpp-nomform:not(.is-stepped) .nf-meter { display: none; }
.hpp-nomform .nf-view { margin-left: auto; min-height: 44px; padding: 0 2px; border: 0; background: none; font: inherit; font-size: 14px;
  font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hpp-nomform.is-stepped > .section-head { display: none; }
.hpp-nomform .nf-steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.hpp-nomform .nf-step { grid-area: 1 / 1; min-width: 0; visibility: hidden; }
.hpp-nomform .nf-step.is-on { visibility: visible; }
.hpp-nomform .nf-step-h { font-family: 'Proxima Nova', sans-serif; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--dark-teal);
  margin: 18px 0 14px; padding: 0 0 8px; border-bottom: 1px solid var(--border); scroll-margin-top: 96px; outline: none;
  letter-spacing: normal; text-transform: none; text-align: left; }   /* the page behind the window may style bare h2/h3 */
.hpp-nomform .nf-step .choice > legend.section-head { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); border: 0; white-space: nowrap; }       /* the step heading says it; the legend still names the choice */
.hpp-nomform .nf-step .choice { margin-bottom: 10px; }
.hpp-nomform .nf-step .choice-note { margin-top: 0; }
.hpp-nomform .nf-step .consent-block { margin-bottom: 18px; }
.hpp-nomform .nf-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.hpp-nomform .nf-nav .btn { margin-left: auto; }
.hpp-nomform .nf-back { min-height: 50px; padding: 0 22px; border: 1.5px solid var(--teal); border-radius: 7px; background: white; color: var(--teal);
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.hpp-nomform .nf-skip { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hpp-nomform .nf-view:focus-visible, .hpp-nomform .nf-skip:focus-visible, .hpp-nomform .nf-back:focus-visible,
.hpp-nomform .nf-nav .btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .hpp-nomform .nf-back:hover { background: rgba(15,82,87,0.05); } }
/* a narrow screen or the window: the forward button first, full width, under the thumb; Back and Skip share the row below */
@media (max-width: 540px) { .hpp-nomform .nf-nav .btn { order: -1; width: 100%; margin-left: 0; } .hpp-nomform .nf-back { flex: 1 1 0; } }
.hpp-rxw .hpp-nomform .nf-nav .btn { order: -1; margin-left: 0; }
.hpp-rxw .hpp-nomform .nf-back { flex: 1 1 0; }
.hpp-nomform .gp-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }

/* NOM-STAGE1 (29 Nov 2026; Director: "let's make the form super cool and cinematic on phone too so it's super easy"). The
   nomination page shows the ONE form on a dark stage that continues the page's photo hero: big step heading, a lime progress
   line, large white fields and a lime pill to move on. Scoped to .nom-stage, the box the nomination page puts round the form,
   so the prescriptions window (rx-window.js borrows the same form) keeps its light sheet unchanged. Colours from tokens.css;
   only colour and shadow change on focus or choice, so nothing moves under the visitor. */
.nom-stage { position: relative; isolation: isolate; overflow: hidden; background: var(--dark-teal); color: #fff; border: 0;
  border-radius: 28px; padding: 30px 30px 28px; box-shadow: 0 40px 80px -40px rgba(10,46,54,.65); }
.nom-stage::before { content: ""; position: absolute; z-index: -1; right: -140px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(167,205,58,.22), rgba(167,205,58,0) 65%); pointer-events: none; }
.nom-stage .hpp-nomform a { color: var(--lime); }
.nom-stage .hpp-nomform .nf-count { color: var(--lime); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.nom-stage .hpp-nomform .nf-meter { max-width: 220px; gap: 6px; }
.nom-stage .hpp-nomform .nf-meter i { height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); }
.nom-stage .hpp-nomform .nf-meter i.is-done { background: var(--lime); }
.nom-stage .hpp-nomform .nf-view { color: #cfdcde; }
.nom-stage .hpp-nomform .nf-step-h { color: #fff; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.nom-stage .hpp-nomform .section-head { color: #fff; border-bottom-color: rgba(255,255,255,.16); }
.nom-stage .hpp-nomform .field label { color: #fff; font-size: 15px; }
.nom-stage .hpp-nomform .field .optional, .nom-stage .hpp-nomform .field .why, .nom-stage .hpp-nomform .field .help,
.nom-stage .hpp-nomform .choice .help { color: #a9bcbf; }
.nom-stage .hpp-nomform .field input, .nom-stage .hpp-nomform .field textarea, .nom-stage .hpp-nomform .field select {
  min-height: 56px; border-radius: 14px; border: 2px solid transparent; font-size: 17px; color: var(--dark-teal); }
.nom-stage .hpp-nomform .field input:focus, .nom-stage .hpp-nomform .field textarea:focus, .nom-stage .hpp-nomform .field select:focus {
  outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(167,205,58,.4); }
.nom-stage .hpp-nomform .field input.invalid, .nom-stage .hpp-nomform .field textarea.invalid { border-color: #ff8a73; }
.nom-stage .hpp-nomform .err, .nom-stage .hpp-nomform .field .err, .nom-stage .hpp-nomform .choice .err,
.nom-stage .hpp-nomform .consent-block .err { color: #ffb4a6; }
.nom-stage .hpp-nomform .required { color: var(--terracotta-lt); }
.nom-stage .hpp-nomform .choice-opt { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); border-radius: 16px; min-height: 64px; }
.nom-stage .hpp-nomform .choice-opt strong { color: #fff; font-size: 17px; }
.nom-stage .hpp-nomform .choice-opt .sub { color: #c3d0d2; }
.nom-stage .hpp-nomform .choice-opt input, .nom-stage .hpp-nomform .consent-block input[type="checkbox"] { accent-color: var(--lime); }
.nom-stage .hpp-nomform .choice-opt:has(input:checked) { border-color: var(--lime); background: rgba(167,205,58,.14); }
@media (hover: hover) and (pointer: fine) { .nom-stage .hpp-nomform .choice-opt:hover { border-color: var(--lime); } }
.nom-stage .hpp-nomform .choice-opt.is-off { background: rgba(255,255,255,.03); }
.nom-stage .hpp-nomform .choice-opt .off-note { color: var(--terracotta-lt); }
.nom-stage .hpp-nomform .choice-note { color: #d6e2e3; }
.nom-stage .hpp-nomform .choice-note strong, .nom-stage .hpp-nomform .consent-block strong { color: #fff; }
.nom-stage .hpp-nomform .consent-block { background: rgba(255,255,255,.06); border-radius: 16px; }
.nom-stage .hpp-nomform .consent-block label { color: #e6eef0; font-size: 15px; }
.nom-stage :where(.hpp-nomform) .btn { background: var(--lime); color: var(--dark-teal); border-radius: 999px; min-height: 56px; font-weight: 800; font-size: 17px; }
@media (hover: hover) and (pointer: fine) { .nom-stage :where(.hpp-nomform) .btn:hover { background: var(--lime); box-shadow: 0 0 0 8px rgba(167,205,58,.2); } }
.nom-stage :where(.hpp-nomform) .btn .spinner { border-color: rgba(10,46,54,.25); border-top-color: var(--dark-teal); }
.nom-stage .hpp-nomform .nf-back { min-height: 56px; border-radius: 999px; background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
@media (hover: hover) and (pointer: fine) { .nom-stage .hpp-nomform .nf-back:hover { background: rgba(255,255,255,.1); } }
.nom-stage .hpp-nomform .nf-skip { color: var(--lime); }
.nom-stage .hpp-nomform .nf-view:focus-visible, .nom-stage .hpp-nomform .nf-skip:focus-visible, .nom-stage .hpp-nomform .nf-back:focus-visible,
.nom-stage .hpp-nomform .nf-nav .btn:focus-visible { outline-color: var(--lime); }
.nom-stage .hpp-nomform .next-steps { color: #d6e2e3; border-top-color: rgba(255,255,255,.14); }
.nom-stage .hpp-nomform .next-steps .next-h { color: #fff; }
.nom-stage .hpp-nomform .next-steps .small { color: #a9bcbf; }
@media (max-width: 540px) { .nom-stage { border-radius: 24px; padding: 24px 18px 22px; } .nom-stage .hpp-nomform .nf-step-h { font-size: 26px; } }
