/*
 * The public forms (phase-2-plan WP6, WP8; decisions 0050, 0051): the contact form and the survey pages.
 * The design system's tokens from site.css; logical properties only. Loaded by those pages only.
 */
.public-form{display:grid;gap:var(--space-5);max-inline-size:44rem;margin-block-start:var(--space-6)}
.field{display:grid;gap:var(--space-2)}
.field>label,.question legend,.question>label{font-weight:600;font-size:var(--fs-body-lg);line-height:var(--lh-heading)}
.field input[type=text],.field input[type=email],.field input[type=url],.field input[type=number],.field textarea,.field select,
.question input[type=text],.question input[type=email],.question input[type=url],.question input[type=number],.question textarea,.question select{
  font:inherit;color:var(--everglade);background:var(--white);border:1px solid var(--everglade);border-radius:var(--radius-sm);padding:10px 12px;min-block-size:44px;inline-size:100%;max-inline-size:100%}
.field textarea,.question textarea{min-block-size:9em;resize:vertical}
.has-error input,.has-error textarea,.has-error select{border-color:var(--danger);border-width:2px}
.field-error{margin:0;color:var(--danger);font-weight:600}
.form-notice.error{border-inline-start-color:var(--danger)}
.form-notice.success{border-inline-start-color:var(--greyish-green)}
.form-actions{display:flex;flex-wrap:wrap;gap:var(--space-3)}
/* WEB-RULE-017: the trap field is out of sight and out of the tab order, but still announced with its label. */

/* Survey pages (WEB-RULE-060, WEB-RULE-074: a standalone page that scrolls normally at any length) */
.survey-page{padding-block:var(--space-7) var(--space-8)}
.survey-page .intro{max-inline-size:60ch}
.survey-form{display:grid;gap:var(--space-6);max-inline-size:48rem;margin-block-start:var(--space-6)}
.question{display:grid;gap:var(--space-3);margin:0;padding:var(--space-5);border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--white);min-inline-size:0}
.question legend{padding:0;float:inline-start;inline-size:100%;margin-block-end:var(--space-3)}
.question legend+*{clear:both}
.question .required-mark{color:var(--danger)}
.choices{display:grid;gap:var(--space-2);margin:0;padding:0;list-style:none}
.choice{display:flex;align-items:flex-start;gap:var(--space-3);min-block-size:32px}
.choice input{inline-size:20px;block-size:20px;margin:0;margin-block-start:3px;flex:none;accent-color:var(--everglade)}
.sub-fields{display:grid;gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr))}
.sub-fields .field>label{font-size:var(--fs-body-md)}
.required-note{color:var(--text-muted);font-size:var(--fs-body-sm)}
.js .question[data-hidden]{display:none}
/* The form builder's forms (decision 0889): hints, the "Other" text, rating and NPS scales in one row. */
.survey-form .hint{margin:0;margin-block-end:var(--space-2);color:var(--text-muted,inherit);font-size:var(--fs-body-sm,0.9rem)}
.choice .other-text{flex:1 1 12rem;min-inline-size:0}
.scale-choices{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.scale-choice{flex-direction:column;align-items:center;gap:var(--space-1,4px);min-inline-size:2.5rem}
.scale-ends{display:flex;justify-content:space-between;margin:0;margin-block-start:var(--space-2);font-size:var(--fs-body-sm,0.9rem)}
.survey-form .consent legend{font-weight:400}
/* The organization sign-up page (IAM-EXT-004; decision 0896): the waiting-list forms' cards beside "What happens next". */
.sign-up-page{padding-block:var(--space-9) var(--space-9)}
.sign-up-page .eyebrow{text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted)}
.sign-up-page h1{font-family:var(--font-display);font-weight:600;font-size:clamp(40px,6vw,68px);line-height:1.05;letter-spacing:-.01em;margin:0;max-inline-size:20ch}
.sign-up-page .intro{margin-block-start:var(--space-6);max-inline-size:680px}
.sign-up-layout{display:flex;flex-wrap:wrap;gap:var(--space-7);margin-block-start:var(--space-8);align-items:flex-start}
.sign-up-form{flex:1 1 560px;max-inline-size:720px;min-inline-size:0;display:grid;gap:var(--space-5)}
.sign-up-form .required-note{margin:0}
.sign-up-form .required-mark{color:var(--danger)}
.sign-up-card{display:grid;gap:var(--space-5);margin:0;padding:28px var(--space-5);background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:12px;min-inline-size:0}
.sign-up-card .card-heading{margin:0;font-family:var(--font-body);font-size:20px;font-weight:600;line-height:var(--lh-heading);color:var(--everglade)}
.sign-up-card legend.card-heading{padding:0;float:inline-start;inline-size:100%}
.sign-up-card legend+*{clear:both}
.sign-up-card .field>label:not(.card-heading){font-size:var(--fs-body-md)}
.sign-up-card .hint{margin:0;color:var(--text-muted);font-size:15px}
.sign-up-card .field .hint{margin-block-start:calc(-1 * var(--space-1))}
.sign-up-card input[type=text],.sign-up-card input[type=email],.sign-up-card input[type=url]{min-block-size:48px;font-size:17px}
.sign-up-card input:focus-visible{outline:2px solid var(--olive-green);outline-offset:1px}
.tool-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));gap:var(--space-3)}
.tool-choice{display:flex;align-items:center;gap:var(--space-3);min-block-size:56px;padding:var(--space-3) var(--space-4);border:1px solid var(--border-subtle);border-radius:8px;cursor:pointer;font-size:17px;background:var(--white)}
.tool-choice input{inline-size:20px;block-size:20px;margin:0;flex:none;accent-color:var(--everglade)}
.tool-choice:has(input:checked){border-color:var(--everglade);background:#EEF3E4}
.tool-choice:focus-within{outline:2px solid var(--olive-green);outline-offset:1px}
.sign-up-form .form-actions{align-items:center;gap:var(--space-4) var(--space-5)}
.consent-note{margin:0;font-size:var(--fs-body-sm);color:var(--text-muted)}
.sign-up-next{flex:1 1 280px;max-inline-size:336px;padding:var(--space-6) 28px;border-radius:12px;background:var(--surface-dark);color:var(--white)}
.sign-up-next h2{margin:0 0 var(--space-5);font-family:var(--font-display);font-weight:500;font-size:26px;line-height:1.2;color:var(--white)}
.sign-up-next ol{display:grid;gap:22px;margin:0;padding:0;list-style:none}
.sign-up-next li{display:flex;gap:14px;align-items:flex-start;font-size:var(--fs-body-md);line-height:1.5}
.sign-up-next strong{display:block;font-weight:600}
.step-number{flex:none;display:flex;align-items:center;justify-content:center;inline-size:30px;block-size:30px;border-radius:var(--radius-pill);background:var(--olive-green);color:var(--everglade);font-weight:600;font-size:15px}
.step-body,.sign-up-free{color:var(--on-wall-soft)}
.sign-up-free{margin:28px 0 0;padding-block-start:20px;border-block-start:1px solid rgb(255 255 255 / .18);font-size:15px;line-height:1.5}
.sign-up-next a{color:var(--white)}
.sign-up-thanks{padding-block:120px 140px}
.thanks-card{max-inline-size:720px;padding:var(--space-7) 40px;gap:0}
.thanks-mark{display:flex;align-items:center;justify-content:center;inline-size:56px;block-size:56px;border-radius:var(--radius-pill);background:var(--olive-green);color:var(--everglade)}
.thanks-card h1{margin-block-start:28px;font-size:clamp(36px,5vw,56px);line-height:1.08}
.thanks-card .lead{margin-block-start:20px}
.thanks-card .hint{margin-block-start:var(--space-3);font-size:var(--fs-body-md)}
.thanks-card .form-actions{margin-block-start:36px;gap:var(--space-4)}
@media (max-width:480px){.sign-up-card{padding:var(--space-5) var(--space-4)}.thanks-card{padding:var(--space-6) var(--space-5)}.sign-up-next{max-inline-size:none}}
