/* Endless — v9 theme for the inquiry form, application form and admin.
   Loaded AFTER styles.css. Colours, type and glow values are taken from the
   approved v9 homepage (index.html); nothing here changes markup hooks used
   by script.js or admin.js. */

:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #0A0A0A;
  --panel-2: #111113;
  --text: #F5F5F7;
  --muted: #A1A1A6;
  --dim: #86868B;
  --hair: #1D1D1F;
  --line: #2A2A2C;
  --gold: #F2A65A;
  --gold-2: #FFD3A8;
  --dark-gold: #9F2C10;
  --paper: #F2EDE6;
  --ok: #7EE2A0;
  --bad: #FF9A8A;
  --shadow: none;
  --radius: 20px;
  --max: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', 'Helvetica Neue', sans-serif;
  background: #000000;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: #F5F5F7; text-decoration: none; transition: color .3s ease, background-color .3s ease, border-color .3s ease; }
a:hover { color: #FFFFFF; }
p { color: var(--muted); }
ul { color: #D2D2D7; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* Fire-lit ground: black, one ember glow rising from the floor, film grain. */
.site-bg { background: #000000; }
.site-bg::before {
  background-image: none;
  -webkit-mask-image: none;
  mask-image: none;
  inset: auto;
  left: 50%;
  bottom: -46vh;
  width: 150vw;
  height: 92vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,110,30,.30), rgba(255,80,20,.10) 55%, rgba(0,0,0,0));
}
.site-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: .07;
  pointer-events: none;
}

/* Type */
h1, h2 {
  font-family: 'Anton', 'Impact', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  color: var(--paper);
}
h1 { font-size: clamp(56px, 9vw, 132px); line-height: .9; max-width: none; }
h2 { font-size: clamp(40px, 5.4vw, 84px); line-height: .94; }
h3 { font-family: 'Geist', 'Helvetica Neue', sans-serif; font-weight: 600; letter-spacing: -.01em; font-size: 21px; line-height: 1.2; color: var(--text); }
h1 span, h2 span { color: inherit; }
.disp { font-family: 'Anton', 'Impact', sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }
.eyebrow {
  font-family: 'Nothing You Could Do', cursive;
  color: var(--gold);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 10px;
}
.lead, .hero-text { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 640px; margin: 24px 0 32px; }
.section-heading p, .about-grid p, .sticky-copy p { font-size: 19px; line-height: 1.55; }

/* Layout */
.container { width: min(calc(100% - 48px), var(--max)); }
.page-hero { padding: 120px 0 72px; border-bottom: 1px solid var(--hair); }
.section { padding: 112px 0; }
.dark-panel, .about, .band { background: transparent; border-color: var(--hair); }

/* Public header + footer (markup copied from the homepage) */
.hide-sm { display: inline; }
.pill-solid:hover { background-color: #D9D9DE !important; color: #000000 !important; }
.pill-line:hover { background-color: #F5F5F7 !important; color: #000000 !important; }
.tlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.e-footer p { display: block; }

/* Buttons */
.btn {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover { transform: none; }
.btn-primary { background: #F5F5F7; color: #000000; border-color: #F5F5F7; }
.btn-primary:hover { background: #D9D9DE; border-color: #D9D9DE; color: #000000; }
.btn-secondary { background: transparent; border: 1px solid #F5F5F7; color: #F5F5F7; }
.btn-secondary:hover { background: #F5F5F7; color: #000000; }

/* Chips */
.proof-row span, .tag-cloud span, .founder-strip span {
  border: 1px solid var(--line);
  background: transparent;
  color: #D2D2D7;
  font-weight: 500;
  padding: 9px 14px;
}

/* Forms */
.glass-card, .feature-card, .audience-card, .contact-form, .platform-window, .service-card, .stat-card, .case-card {
  background: var(--panel);
  border: 1px solid var(--hair);
  box-shadow: none;
  border-radius: 28px;
}
.contact-form { padding: 32px; gap: 18px; }
label { color: #D2D2D7; font-size: 13px; font-weight: 500; letter-spacing: .01em; }
input, select, textarea {
  background: #000000;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px;
  min-height: 50px;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input::placeholder, textarea::placeholder { color: #6E6E73; }
input:hover, select:hover, textarea:hover { border-color: #55504A; }
input:focus, select:focus, textarea:focus { border-color: #F5F5F7; box-shadow: 0 0 0 3px rgba(245,245,247,.16); outline: none; }
input[type="checkbox"] { min-height: 0; width: 18px; height: 18px; padding: 0; accent-color: var(--gold); box-shadow: none; }
input[type="file"] { padding: 12px 14px; }
textarea { min-height: 132px; line-height: 1.5; }
.application-form h3 { color: var(--text); border-top: 1px solid var(--hair); padding-top: 24px; margin-top: 16px; }
.form-fieldset { border: 1px solid var(--hair); background: transparent; border-radius: 16px; padding: 18px 20px; gap: 4px 16px; }
.form-fieldset legend { color: var(--text); font-weight: 600; font-size: 14px; }
.form-fieldset label, .consent-label { color: #D2D2D7; font-size: 15px; font-weight: 400; min-height: 40px; cursor: pointer; }
.label-note { color: var(--dim); font-weight: 400; }
.form-note, .form-status { font-size: 14px; margin: 0; color: var(--muted); }
.form-note.success, .form-status.success { color: var(--ok); font-weight: 500; }
.form-note.error, .form-status.error { color: var(--bad); font-weight: 500; }
.contact-callout { border: 1px solid var(--hair); border-left: 1px solid var(--hair); background: transparent; border-radius: 20px; }
.contact-callout strong { color: var(--text); font-weight: 600; }
.contact-callout a, .form-note a { color: var(--gold-2); font-weight: 500; }
.contact-callout a:hover, .form-note a:hover { text-decoration: underline; text-underline-offset: 4px; }
.brand-credibility .eyebrow { margin-bottom: 18px; }
.secondary-brand-logo { width: min(100%, 240px); max-height: none; margin: 0 auto 28px; }

/* ------------------------------------------------------------------ Admin */
.nav-wrap { background: rgba(0,0,0,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); }
.nav { width: min(calc(100% - 48px), var(--max)); }
.admin-nav-wrap .nav { min-height: 64px; }
.admin-brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.admin-brand-lockup img { height: 28px; width: auto; display: block; }
.admin-brand-lockup span { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); border-left: 1px solid var(--line); padding-left: 12px; }
.nav-links { color: #D2D2D7; font-size: 13px; font-weight: 400; }
.admin-links { gap: 28px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { color: #FFFFFF; }
.nav-links a.active { color: #FFFFFF; font-weight: 500; box-shadow: inset 0 -2px 0 var(--gold); }

.admin-logout, .admin-row-actions button, .admin-small-btn {
  border: 1px solid rgba(245,245,247,.42);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.admin-logout:hover, .admin-row-actions button:hover, .admin-small-btn:hover { background: #F5F5F7; border-color: #F5F5F7; color: #000000; }
.btn.admin-small-btn { min-height: 44px; }

.admin-main .eyebrow, .admin-login-card .eyebrow {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}
.admin-page-hero { padding: 64px 0 32px; border-bottom: 0; }
.admin-page-hero h1 { font-size: clamp(48px, 7vw, 96px); }
.admin-page-hero .lead { font-size: 17px; margin: 16px 0 0; }

.admin-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.admin-stat-card, .admin-panel { background: var(--panel); border: 1px solid var(--hair); box-shadow: none; border-radius: 20px; }
.admin-stat-card { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 132px; }
.admin-stat-card small { color: var(--dim); font-size: 11px; font-weight: 500; letter-spacing: .14em; line-height: 1.4; margin: 0; }
.admin-stat-card strong { font-family: 'Anton', 'Impact', sans-serif; font-weight: 400; font-size: 56px; line-height: .9; color: var(--paper); }
.admin-panel { padding: 24px; }
.admin-panel-header h2 { font-size: clamp(28px, 3vw, 40px); }

.admin-filter-row input, .admin-filter-row select, .admin-status-select, .admin-login-form input {
  min-height: 44px;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  padding: 0 14px;
}
.admin-status-select { min-height: 36px; font-size: 13px; text-transform: capitalize; }
.admin-login-form input { min-height: 50px; font-size: 16px; }

.admin-table th { color: var(--dim); font-size: 11px; font-weight: 500; letter-spacing: .14em; border-bottom: 1px solid var(--hair); padding: 14px 12px; }
.admin-table td { border-bottom: 1px solid var(--hair); font-size: 14px; line-height: 1.45; color: #D2D2D7; }
.admin-table td strong { color: var(--text); font-weight: 600; }
.admin-table td small { color: var(--dim); }
.admin-table tbody tr:last-child td { border-bottom: 0; }

.admin-badge { border: 1px solid var(--line); background: transparent; color: #D2D2D7; padding: 5px 10px; font-size: 12px; font-weight: 500; }
.admin-badge-verified, .admin-badge-sent, .admin-badge-qualified { border-color: rgba(126,226,160,.42); color: var(--ok); background: rgba(126,226,160,.06); }
.admin-badge-hired { border-color: rgba(255,211,168,.55); color: var(--gold-2); background: rgba(242,166,90,.10); }
.admin-badge-failed { border-color: rgba(255,154,138,.5); color: var(--bad); background: rgba(255,154,138,.07); }
.admin-badge-archived, .admin-badge-skipped { border-color: var(--line); color: var(--dim); background: transparent; }
.admin-badge-pending_email_verification, .admin-badge-new { border-color: rgba(242,166,90,.5); color: var(--gold); background: rgba(242,166,90,.07); }
.admin-badge-contacted, .admin-badge-reviewed { border-color: rgba(245,245,247,.42); color: var(--text); }

.admin-type { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; margin: 0 6px 6px 0; font-size: 12px; line-height: 1.3; color: #D2D2D7; white-space: nowrap; }
.admin-type-count { color: var(--dim); margin-left: 6px; }

.admin-status-section { border: 1px solid var(--hair); background: var(--panel); border-radius: 20px; }
.admin-status-header { background: transparent; border-bottom: 1px solid var(--hair); }
.admin-status-header h3 { font-size: 20px; }
.admin-status-header > strong { font-family: 'Anton', 'Impact', sans-serif; font-weight: 400; font-size: 40px; line-height: 1; color: var(--paper); }
.admin-details summary { color: var(--gold-2); font-weight: 500; min-height: 32px; }
.admin-detail-grid { background: #000000; border: 1px solid var(--hair); border-radius: 16px; }
.admin-detail-grid strong { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.admin-detail-grid p { color: #D2D2D7; }
.admin-archive-note a { color: var(--gold-2); font-weight: 500; }
.admin-empty-state { color: var(--dim); }

/* Dashboard: submissions by type */
.admin-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.admin-breakdown h3 { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.admin-breakdown a.admin-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--hair); color: #D2D2D7; font-size: 14px; }
.admin-breakdown a.admin-bar-row:hover { color: #FFFFFF; }
.admin-bar-row b { font-family: 'Anton', 'Impact', sans-serif; font-weight: 400; font-size: 22px; color: var(--paper); }
.admin-bar-row i { grid-column: 1 / -1; display: block; height: 3px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.admin-bar-row i u { display: block; height: 100%; background: var(--gold); border-radius: 3px; }

.admin-login-card { background: var(--panel); border: 1px solid var(--hair); box-shadow: none; border-radius: 28px; padding: 40px; }
.admin-login-card h1 { font-size: clamp(48px, 7vw, 72px); }
.admin-brand { margin-bottom: 32px; }

@media (max-width: 1100px) {
  .admin-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stat-card { min-height: 112px; padding: 16px; }
  .admin-stat-card strong { font-size: 44px; }
  .admin-breakdown { grid-template-columns: 1fr; gap: 24px; }
  .admin-nav-wrap .nav { flex-direction: row; align-items: center; padding: 0; min-height: 64px; }
  .admin-nav-wrap .admin-links a.active { box-shadow: inset 2px 0 0 var(--gold); }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .nav { width: min(calc(100% - 32px), var(--max)); }
  .page-hero { padding: 72px 0 48px; }
  .section { padding: 72px 0; }
  .lead, .hero-text { font-size: 18px; }
  .contact-form { padding: 20px; border-radius: 20px; }
  .admin-panel { padding: 16px; }
  .admin-login-card { padding: 28px 22px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Inquiry form: full-width type picker and details so nothing stretches */
.contact-form label { align-content: start; }
.contact-form label:has(select[name="interest"]), .contact-form label:has(textarea) { grid-column: 1 / -1; }

/* Admin tables: readable controls, tidy action column, long messages clipped until tapped */
.admin-status-select { min-width: 148px; width: auto; }
.admin-table td.admin-row-actions { display: table-cell; }
.admin-row-actions button { display: block; margin: 0 0 8px; }
.admin-clip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; max-width: 460px; cursor: pointer; }
.admin-clip.open { display: block; }
@media (min-width: 901px) {
  .admin-filter-row { justify-content: flex-end; flex-wrap: nowrap; }
  .admin-filter-row input { width: auto; flex: 1 1 260px; min-width: 200px; }
  .admin-filter-row select { width: auto; flex: 0 1 220px; }
  .admin-panel-header { align-items: center; }
  .admin-panel-header h2 { white-space: nowrap; }
}

/* ------------------------------------------------------- Step form (one question at a time)
   .sf-stage without .sf-on is the plain full form (no JavaScript). stepform.js adds .sf-on. */
.sf-stage { position: relative; padding: 96px 0 112px; }
.sf-wrap { width: min(calc(100% - 48px), 760px); margin: 0 auto; }
.sf-intro h1 { font-size: clamp(56px, 9vw, 120px); }
.sf-meta { font-size: 13px; letter-spacing: .02em; color: var(--dim); margin: 0; }
.sf-progress, .sf-nav, .sf-done { display: none; }
.sf-stage:not(.sf-on) .sf-form { margin-top: 48px; }
.sf-stage:not(.sf-on) .q { display: contents; }
.sf-stage:not(.sf-on) .sf-form label:has(textarea), .sf-stage:not(.sf-on) .sf-form label:has(select), .sf-stage:not(.sf-on) .sf-form label:has(input[type="file"]) { grid-column: 1 / -1; }
.lbl { display: block; }

.sf-on { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 72px 0 112px; box-sizing: border-box; }
.sf-on .sf-wrap { width: min(calc(100% - 48px), 760px); }
.sf-on .sf-progress { display: block; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hair); }
.sf-on .sf-progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.sf-on .sf-intro, .sf-on .q { display: none; }
.sf-on.sf-at-intro .sf-intro { display: block; animation: sfUp .6s cubic-bezier(.2,.7,.2,1) both; }
.sf-on.sf-at-done .sf-done { display: block; animation: sfUp .6s cubic-bezier(.2,.7,.2,1) both; outline: none; }
.sf-on .q.is-active { display: block; }
.sf-on .q.sf-up { animation: sfUp .5s cubic-bezier(.2,.7,.2,1) both; }
.sf-on .q.sf-down { animation: sfDown .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sfUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes sfDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }

.sf-on .sf-form { display: block; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.sf-on .sf-form > h3 { display: none; }
.sf-head { margin-bottom: 28px; }
.sf-num { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 15px; font-weight: 500; }
.sf-q { margin: 10px 0 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.015em; font-weight: 500; color: var(--text); }
.sf-req { color: var(--gold); }
.sf-help { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--muted); }

.sf-on .q label:not(fieldset label):not(.consent-label) { display: block; margin: 0 0 28px; }
.sf-on .q .lbl { font-size: 13px; font-weight: 500; color: var(--dim); margin-bottom: 4px; }
.sf-on .q.sf-single .lbl, .sf-on .q.sf-single legend {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sf-on .q input:not([type="checkbox"]):not([type="file"]), .sf-on .q textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #55504A;
  border-radius: 0;
  padding: 8px 0 12px;
  min-height: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  color: var(--text);
  box-shadow: none;
}
.sf-on .q textarea { min-height: 132px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; }
.sf-on .q input:not([type="checkbox"]):not([type="file"]):hover, .sf-on .q textarea:hover { border-bottom-color: #86868B; }
.sf-on .q input:not([type="checkbox"]):not([type="file"]):focus, .sf-on .q textarea:focus { border-bottom-color: #F5F5F7; box-shadow: 0 1px 0 0 #F5F5F7; outline: none; }
.sf-on .q [aria-invalid="true"] { border-bottom-color: var(--bad) !important; box-shadow: 0 1px 0 0 var(--bad) !important; }
.sf-on .q input::placeholder, .sf-on .q textarea::placeholder { color: #55504A; }
.sf-on .q input[type="file"] { border: 1px dashed #55504A; border-radius: 12px; padding: 18px 16px; background: transparent; font-size: 15px; }
.sf-on .q[data-cols="2"] .sf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.sf-on .q[data-cols="3"] .sf-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 32px; }

.sf-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: -1px; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; opacity: 0; pointer-events: none; }
.sf-choices, .sf-on .q fieldset { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 440px; margin: 0 0 28px; }
.sf-choices.sf-many, .sf-on .q fieldset.sf-many { grid-template-columns: 1fr 1fr; max-width: none; }
.sf-on .q fieldset { border: 0; padding: 0; background: none; border-radius: 0; min-width: 0; }
.sf-on .q fieldset legend { grid-column: 1 / -1; padding: 0; margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--dim); }
.sf-choice, .sf-on .q fieldset label {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 8px 40px 8px 12px; box-sizing: border-box;
  border: 1px solid rgba(245,245,247,.42); border-radius: 10px;
  background: rgba(245,245,247,.04);
  color: var(--text); font-family: inherit; font-size: 17px; font-weight: 500; line-height: 1.25; text-align: left;
  cursor: pointer; transition: background-color .2s ease, border-color .2s ease;
}
.sf-choice:hover, .sf-on .q fieldset label:hover { background: rgba(245,245,247,.10); }
.sf-choice kbd, .sf-on .q fieldset label kbd {
  flex: 0 0 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245,245,247,.42); border-radius: 5px; background: #000000;
  font: 600 12px/1 'Geist', 'Helvetica Neue', sans-serif; color: var(--text);
}
.sf-on .q fieldset label input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sf-choice[aria-checked="true"], .sf-on .q fieldset label:has(input:checked) { border-color: var(--gold); background: rgba(242,166,90,.14); }
.sf-choice[aria-checked="true"] kbd, .sf-on .q fieldset label:has(input:checked) kbd { background: var(--gold); border-color: var(--gold); color: #000000; }
.sf-choice[aria-checked="true"]::after, .sf-on .q fieldset label:has(input:checked)::after {
  content: ''; position: absolute; right: 16px; top: 50%; width: 6px; height: 12px; margin-top: -9px;
  border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sf-on .q fieldset label:has(input:focus-visible) { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.sf-on .consent-label { align-items: flex-start; font-size: 17px; line-height: 1.5; color: #D2D2D7; margin: 0 0 18px; min-height: 0; }
.sf-on .consent-label input[type="checkbox"] { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 22px; }

.sf-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.sf-intro .sf-foot { margin-top: 32px; }
.sf-foot .btn { width: auto; min-height: 48px; padding: 0 26px; }
.sf-hint { font-size: 13px; color: var(--dim); }
.sf-hint b { font-weight: 500; color: #D2D2D7; }
.sf-err { flex-basis: 100%; margin: 6px 0 0; min-height: 22px; font-size: 15px; color: var(--bad); }
.sf-on .q .form-note { margin-top: 4px; font-size: 15px; }
.sf-on .sf-nav { display: flex; position: absolute; right: 24px; bottom: 24px; gap: 2px; }
.sf-nav button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(245,245,247,.42); background: #000000; color: var(--text); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.sf-nav button:first-child { border-radius: 10px 0 0 10px; }
.sf-nav button:last-child { border-radius: 0 10px 10px 0; }
.sf-nav button:hover:not(:disabled) { background: #F5F5F7; color: #000000; }
.sf-nav button:disabled { opacity: .35; cursor: default; }
.sf-done h2 { font-size: clamp(48px, 8vw, 104px); }
.sf-done-msg { font-size: 21px; line-height: 1.5; color: #D2D2D7; max-width: 560px; margin: 20px 0 0; }
.sf-done ol { margin: 28px 0 0; padding: 0 0 0 22px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.sf-done .btn { margin-top: 36px; width: auto; }
.sf-direct { margin: 40px 0 0; font-size: 15px; color: var(--dim); }
.sf-direct a { color: var(--gold-2); }
.sf-on .sf-direct { display: none; }
.sf-on.sf-at-intro .sf-direct { display: block; }

@media (pointer: coarse) { .sf-hint, .sf-choice kbd, .sf-on .q fieldset label kbd { display: none; } }
@media (max-width: 760px) {
  .sf-on { align-items: flex-start; padding: 56px 0 104px; }
  .sf-wrap, .sf-on .sf-wrap { width: min(calc(100% - 32px), 760px); }
  .sf-choices.sf-many, .sf-on .q fieldset.sf-many { grid-template-columns: 1fr; }
  .sf-on .q[data-cols="2"] .sf-fields, .sf-on .q[data-cols="3"] .sf-fields { grid-template-columns: 1fr; }
  .sf-on .sf-nav { right: 16px; bottom: 16px; }
  .sf-head { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-on .q.sf-up, .sf-on .q.sf-down, .sf-on.sf-at-intro .sf-intro, .sf-on.sf-at-done .sf-done { animation: none; }
  .sf-on .sf-progress i { transition: none; }
}
.sf-stage:not(.sf-on) .sf-fields { display: contents; }
.sf-choices:focus, .sf-on .q fieldset:focus { outline: none; }
.sf-choice, .sf-on .q fieldset label, .sf-nav button, .sf-foot .btn { -webkit-tap-highlight-color: transparent; }
.sf-on.sf-at-done .sf-nav { display: none; }
