/* formpages.css (2026-11-22): /sponsors and /feedback only, on top of pages.css (its tokens, buttons, header and footer).
   Linked from those two pages, so no other page's bytes change. The workshop page's visual language (workshop.css): a Dark
   Blue head, paper sections, white cards, the dark aside beside the form. Base styles are the finished frame: nothing
   animates; the only change a script makes is the review options and the sent state. */

.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- the head */
.pf-hero { background: var(--ink); color: var(--on-dark); padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.pf-hero-compact { padding-block: clamp(28px, 5vw, 56px) clamp(32px, 5vw, 56px); }
.pf-hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) { .pf-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.pf-hero .crumbs { color: var(--on-dark-2); }
.pf-hero .crumbs a { color: var(--on-dark); }
.pf-hero .crumbs li + li::before { color: var(--sky); }
.pf-hero .kicker { color: var(--sky); }
.pf-hero h1 { margin-top: 12px; color: var(--white); font-size: clamp(2.125rem, 1.35rem + 3.1vw, 3.5rem); font-weight: 800; line-height: 1.06;
  letter-spacing: -0.022em; max-width: 18ch; }
.pf-lede { margin-top: 18px; max-width: 58ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--on-dark-2); }
.pf-facts { display: grid; gap: 1px; margin: 28px 0 0; overflow: hidden; border: 1px solid var(--rule-dark); border-radius: var(--radius-card);
  background: var(--rule-dark); }
.pf-facts > div { padding: 14px 16px; background: var(--ink); }
.pf-facts dt { font: 600 0.6875rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.pf-facts dd { margin: 6px 0 0; font-weight: 600; font-size: 0.9875rem; line-height: 1.45; color: var(--white); }
@media (min-width: 640px) { .pf-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.pf-hero .btn-primary { background: var(--white); border-color: var(--white); color: var(--ink); }
@media (hover: hover) { .pf-hero .btn-primary:hover { background: var(--paper-2); border-color: var(--paper-2); } }
.pf-cta-note { font-size: 0.9375rem; color: var(--on-dark-2); }
.pf-hero-fig { margin: 0; }
.pf-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--ink-2); }

/* ---- sections */
.pf-sec { padding-block: clamp(56px, 7vw, 96px); }
.pf-alt { background: var(--white); border-block: 1px solid var(--line); }
.pf-sec h2 { margin-top: 10px; font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.5rem); font-weight: 800; line-height: 1.12; max-width: 26ch; }
.pf-body { margin-top: 16px; max-width: 64ch; font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.15rem); }

.pf-cards { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .pf-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.pf-cards li { padding: 22px 22px 24px; border: 1px solid var(--line); border-top: 4px solid var(--accent-deep); border-radius: var(--radius-card);
  background: var(--white); box-shadow: var(--shadow-1); }
.pf-cards h3 { font-size: 1.1875rem; }
.pf-cards p { margin-top: 8px; color: var(--muted); line-height: 1.55; }

/* ---- the sponsor list: logo cards, or the honest empty state */
.pf-sponsors { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.pf-sponsor { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); }
.pf-sponsor img { width: auto; max-width: 100%; height: auto; max-height: 64px; } /* height auto: Safari keeps the ratio */
.pf-sponsor h3 { font-size: 1.0625rem; }
.pf-sponsor p { color: var(--muted); font-size: 0.975rem; line-height: 1.5; }
.pf-sponsor a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
.pf-empty { margin-top: 28px; padding: clamp(22px, 3vw, 32px); border: 2px dashed var(--line); border-radius: var(--radius-card); background: var(--paper); }
.pf-empty h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.pf-empty p { margin-top: 8px; max-width: 56ch; color: var(--muted); }
.pf-empty .btn { margin-top: 18px; }

/* ---- the form section: the aside beside the card (above it on phones) */
.pf-form-sec { background: var(--paper-2); }
.pf-split { display: grid; gap: clamp(20px, 3vw, 32px); margin-top: 32px; align-items: start; }
@media (min-width: 960px) { .pf-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .pf-aside { position: sticky; top: calc(var(--hdr-h) + 20px); } }
.pf-aside { padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-card); background: var(--ink); color: var(--on-dark); }
.pf-aside h3 { font-size: 1.1875rem; color: var(--white); }
.pf-aside a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pf-aside-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule-dark); color: var(--on-dark-2); line-height: 1.6; }
.pf-steps { display: grid; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: pf-step; }
.pf-steps li { position: relative; padding-left: 44px; color: var(--on-dark); line-height: 1.55; counter-increment: pf-step; min-height: 30px; }
.pf-steps li::before { content: counter(pf-step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--white); color: var(--ink); font: 700 0.875rem/1 var(--font-mono); }
.pf-what { display: grid; gap: 14px; margin: 14px 0 0; }
.pf-what dt { font: 600 0.6875rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.pf-what dd { margin: 4px 0 0; color: var(--white); line-height: 1.55; }

.pf-card { padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-1); }
.pf-form { display: grid; gap: 18px; }
.pf-field { display: grid; gap: 6px; }
.pf-field > label { font-weight: 600; font-size: 1rem; }
.pf-opt { font-weight: 500; font-size: 0.875rem; color: var(--muted); }
.pf-field input[type="text"], .pf-field input[type="email"], .pf-field input[type="tel"], .pf-field select, .pf-field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #8796A0; border-radius: 10px; background: var(--white); color: var(--ink);
  font: 500 1.0625rem/1.4 var(--font-body); }
.pf-field textarea { min-height: 120px; resize: vertical; }
.pf-field select { cursor: pointer; }
.pf-field input:focus-visible, .pf-field select:focus-visible, .pf-field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px;
  border-color: var(--accent-deep); border-radius: 10px; }
.pf-field input:user-invalid, .pf-field select:user-invalid, .pf-field textarea:user-invalid { border-color: #B42318; }
.pf-hint { font-size: 0.875rem; color: var(--muted); }

/* radio groups and the review options */
.pf-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.pf-group > legend, .pf-sub > legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 1rem; }
.pf-choices { display: grid; gap: 8px; }
@media (min-width: 560px) { .pf-group > .pf-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-choice { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 52px;
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.pf-choice input { position: relative; z-index: 1; width: 20px; height: 20px; margin: 0; accent-color: var(--accent-deep); } /* above the row's tap area */
.pf-choice label { font-weight: 500; line-height: 1.35; cursor: pointer; }
.pf-choice label::after { content: ""; position: absolute; inset: 0; } /* the whole row takes the tap */
.pf-choice:has(input:checked) { border-color: var(--accent-deep); background: var(--paper); box-shadow: inset 0 0 0 1px var(--accent-deep); }
.pf-choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.pf-review { padding: 16px; border-radius: 10px; background: var(--paper); }
.pf-review > legend { float: left; width: 100%; } /* keeps the legend inside the tinted box */
.pf-check { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; clear: both; }
.pf-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent-deep); }
.pf-check label { font-weight: 500; font-size: 0.975rem; line-height: 1.55; }
.pf-sub { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.pf-sub > legend { font-size: 0.9375rem; }

.pf-form .btn-primary { justify-self: start; }
@media (max-width: 559.98px) { .pf-form .btn-primary { width: 100%; justify-self: stretch; } }
.pf-consent { font-size: 0.875rem; color: var(--muted); }
.pf-status:empty { display: none; }
.pf-status { font-weight: 600; color: #8A1C12; }
.pf-error { padding: 14px 16px; border-left: 4px solid #B42318; border-radius: 8px; background: #FEF3F2; color: var(--ink); }
.pf-error p + p { margin-top: 6px; }
.pf-detail { font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.pf-error a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.pf-done h3 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); }
.pf-done h3:focus { outline: none; }
.pf-done p { margin-top: 10px; max-width: 56ch; }
