/* Early access — dark surface, layered on index.css tokens (early-access-dark-v1 · 2026-07-09).
   Loads AFTER index.css; consumes its :root tokens (--bg,--ink,--ink2,--muted,--cyan,--line,
   --line2,--line3,--panel,--panel2,--warn,--focus-ring). Chrome (nav/footer/body) comes from
   index.css; this sheet styles the guided form surface only. Every fg/bg pair meets WCAG 2.2 AA
   (reuses the same token pairs verified in contact.css / verify-contact-guided.mjs). */

/* centered content column on the dark chrome */
#main { max-width: 760px; margin: 0 auto; padding: 56px 32px 96px; }

h1 { font-family: 'Inter', 'Segoe UI', sans-serif; font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); margin-bottom: 14px; }
.intro { font-size: 17px; line-height: 1.65; color: var(--ink2); margin-bottom: 30px; max-width: 62ch; }
a.inline { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(0, 212, 255, 0.35); transition: border-color 0.15s; }
a.inline:hover { border-bottom-color: var(--cyan); }

/* step navigation (jump chips — plain quick-jump anchors, enhanced by JS to reveal + focus.
   Deliberately STATELESS: no aria-current / active / done styling, so no section ever reads
   as locked or completed — every chip stays uniformly live.) */
.step-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.step-chip {
    display: inline-block; padding: 8px 14px; font-size: 13px; font-weight: 600;
    color: var(--ink2); background: var(--panel); border: 1px solid var(--line);
    border-radius: 999px; text-decoration: none; transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.step-chip:hover { color: var(--ink); border-color: var(--cyan); }
.step-chip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* form scaffolding */
form { margin-top: 8px; }
fieldset.step { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
fieldset.step + fieldset.step { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
fieldset.step > legend { padding: 0; font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 6px; }
fieldset.step > legend:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 2px; }
.step-hint { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; line-height: 1.55; }
.field { margin-bottom: 22px; }
.field > label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--ink); line-height: 1.4; }
.field .required { color: #ff8d7a; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.86em; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 6px; margin-bottom: 0; }

input[type="text"], input[type="email"], select, textarea {
    width: 100%; padding: 12px 14px; font-family: inherit; font-size: 15px; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line2); border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none; appearance: none;
}
::placeholder { color: #8B8E96; opacity: 1; }   /* --muted ~5.3:1 on --bg — AA */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B8E96' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* checkbox groups (ASC areas / current tools) — each question is a nested <fieldset> whose
   <legend> carries the question text (WCAG 1.3.1 group context); the legend is styled to
   match a .field label so the visual hierarchy is unchanged. Options are sub-clustered
   under small muted .cluster-label headings (--muted 6.0:1 on --bg — AA). */
.checkbox-fieldset { border: 0; padding: 0; min-width: 0; }
.checkbox-fieldset > legend { padding: 0; font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--ink); line-height: 1.4; }
.cluster-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.checkbox-fieldset > .cluster-label:first-of-type { margin-top: 2px; }
.checkbox-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-top: 6px; }
.checkbox-group label.checkbox { display: flex; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--ink2); cursor: pointer; line-height: 1.4; margin-bottom: 0; }
.checkbox-group input[type="checkbox"] { margin-right: 8px; margin-top: 3px; flex-shrink: 0; accent-color: var(--cyan); width: 16px; height: 16px; }
.other-tools-input { margin-top: 14px; }

/* jump links (continue / skip-to-submit) */
.jump-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; }
.btn-continue {
    display: inline-block; font-size: 14px; font-weight: 600; color: #06222b;
    background: var(--cyan); padding: 10px 18px; border-radius: 6px; text-decoration: none;
    transition: background 0.15s;
}
.btn-continue:hover { background: var(--cyan2); }
.btn-continue:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.jump-link { font-size: 13.5px; color: var(--ink2); text-decoration: none; border-bottom: 1px dashed var(--line3); padding-bottom: 1px; }
.jump-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* submit + feedback */
.form-actions { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.btn-submit { background: var(--cyan); color: #06222b; border: none; font-family: inherit; font-size: 16px; font-weight: 700; padding: 15px 32px; border-radius: 8px; cursor: pointer; transition: background 0.15s, transform 0.1s; letter-spacing: -0.01em; }
.btn-submit:hover:not(:disabled) { background: var(--cyan2); }
.btn-submit:active:not(:disabled) { transform: translateY(1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-submit:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.form-error, .form-success { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.form-error { background: rgba(255, 141, 122, 0.08); border: 1px solid rgba(255, 141, 122, 0.35); color: #ff8d7a; }
.form-success { background: rgba(67, 210, 111, 0.08); border: 1px solid rgba(67, 210, 111, 0.35); color: #6ee79b; }
.form-success:focus, .form-error:focus { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.footnote { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.7; }

@media (max-width: 700px) {
    #main { padding: 40px 20px 72px; }
    h1 { font-size: 30px; }
    .step-chip { font-size: 12.5px; padding: 7px 12px; }
}
@media (max-width: 560px) {
    .checkbox-group { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .step-chip, .btn-continue, .jump-link { transition: none; }
}
@media (forced-colors: active) {
    input:focus, select:focus, textarea:focus { outline: 2px solid Highlight; outline-offset: 1px; }
}
