body[data-form-page] { background: rgb(var(--color-milk)); color: rgb(var(--color-ink)); }
body[data-form-page] .shell { width:min(calc(100% - 2rem),1180px); margin-inline:auto; }
body[data-form-page] .display { font-family:var(--font-display); letter-spacing:-.035em; overflow-wrap:anywhere; }
body[data-form-page] main .button { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:14px 28px; border-radius:999px; font-weight:600; line-height:1.4; text-decoration:none; }
body[data-form-page] main .button-primary { background:rgb(var(--color-forest)); color:white; }
body[data-form-page] main .button:disabled { opacity:.55; cursor:wait; }
body[data-form-page] .site-header.is-scrolled { background:rgb(var(--color-night)); }
.form-hero { padding: 148px 0 52px; }
.form-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.7rem); line-height: 1.06; max-width: 1000px; margin: 18px 0 24px; }
.form-kicker,.form-duration { color: rgb(255 255 255 / 76%); }
.form-intro { max-width: 700px; margin-top: 20px; line-height: 1.75; }
.form-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); justify-content: space-between; gap: 60px; padding-top: 48px; padding-bottom: 80px; }
.form-layout aside { align-self: start; position: sticky; top: 100px; }
.form-sections { list-style: none; padding: 0; margin: 0 0 28px; }
.form-sections button { display:flex; align-items: center; gap: 12px; padding: 10px 0; text-align: left; width: 100%; line-height: 1.5; }
.form-sections button:disabled { color: rgb(var(--color-ink) / 55%); cursor: default; }
.form-sections button span { display: grid; place-items:center; border: 1px solid rgb(var(--color-ink) / 20%); border-radius:50%; width:30px; height:30px; flex-shrink:0; font-size:13px; }
.form-sections button[aria-current] { color:rgb(var(--color-forest)); font-weight:700; }
.form-sections button[aria-current] span { background:rgb(var(--color-forest));color:white; }
.form-panel { min-width:0; background:white; border:1px solid rgb(var(--color-ink) / 12%); padding:32px 40px 36px; border-radius:16px; }
.form-progress { display:block; width:100%; height:4px; appearance:none; border:0; background:rgb(var(--color-linen)); margin-bottom:28px; border-radius:4px; overflow:hidden; }
.form-progress::-webkit-progress-bar { background:rgb(var(--color-linen)); }
.form-progress::-webkit-progress-value { background:rgb(var(--color-forest)); }
.form-progress::-moz-progress-bar { background:rgb(var(--color-forest)); }
.form-counter,.form-hint { font-size:14px; line-height:1.65; color:rgb(var(--color-ink) / 70%); }
.form-step h2,#form-review h2,.form-thanks h2 { font-size:clamp(1.7rem,3.5vw,2.4rem); line-height:1.18; margin:12px 0 30px; scroll-margin-top:110px; }
.form-field { margin:0 0 28px; min-width:0; }
.form-field > label,.form-field legend,.form-details label { display:block; font-size:16px; font-weight:600; line-height:1.65; margin-bottom:10px; }
.form-field fieldset { min-width:0; }
.form-field input:not([type=checkbox],[type=radio]),.form-field textarea { width:100%; max-width:100%; display:block; border:1px solid rgb(var(--color-ink) / 28%); border-radius:8px; padding:12px 14px; background:rgb(var(--color-milk) / 70%); font-size:16px; line-height:1.6; color:inherit; }
.form-field textarea { resize:vertical; min-height:100px; }
.form-field input:focus-visible,.form-field textarea:focus-visible,.form-layout button:focus-visible { outline:3px solid rgb(var(--color-forest) / 65%); outline-offset:3px; }
.form-options { display:flex; gap:10px; flex-wrap:wrap; }
.form-options-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.form-choice,.form-field > label.form-choice { display:flex; align-items:flex-start; gap:16px; padding:12px 14px; min-height:48px; border:1px solid rgb(var(--color-ink) / 20%); border-radius:8px; cursor:pointer; font-size:15px; line-height:1.6; overflow-wrap:anywhere; }
.form-choice:has(input:checked) { border-color:rgb(var(--color-forest)); background:rgb(var(--color-linen) / 48%); }
.form-choice input { margin-top:4px; width:18px; height:18px; flex-shrink:0; accent-color:rgb(var(--color-forest)); }
.form-details { margin-top:16px; }
.form-error { color:#a22922; font-size:14px; margin-top:8px; }
.form-field [aria-invalid=true] { border-color:#a22922; }
.form-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-top:24px; border-top:1px solid rgb(var(--color-ink) / 15%); margin-top:28px; }
.form-actions .button { cursor:pointer; }
.form-actions .button-primary { margin-left:auto; }
.form-back { border:1px solid rgb(var(--color-ink) / 30%); }
.form-policy { display:inline-block; text-decoration:underline; text-underline-offset:4px; margin:12px 0; }
.form-notice,.form-preview { background:rgb(var(--color-linen)); padding:18px 22px; line-height:1.7; margin-bottom:24px; border-radius:8px; }
.form-preview { margin-top:24px; }
.form-trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#review-answers section { margin:28px 0; padding-bottom:20px; border-bottom:1px solid rgb(var(--color-ink) / 15%); }
#review-answers h3 { font-size:20px; font-weight:600; margin:12px 0; }
#review-answers dt { margin-top:16px; font-size:14px; color:rgb(var(--color-ink) / 70%); }
#review-answers dd { margin-top:4px; white-space:pre-wrap; overflow-wrap:anywhere; }
#review-answers button { text-decoration:underline; text-underline-offset:4px; }
.form-thanks { max-width:850px; padding-top:64px; padding-bottom:80px; }
.form-thanks p { line-height:1.8; margin-bottom:28px; }
.form-thanks a { margin-right:22px; }
[hidden] { display:none !important; }
@media(max-width:1000px) { .form-layout { grid-template-columns:200px minmax(0,1fr); gap:24px; } .form-panel { padding:28px 24px; } .form-options-grid { grid-template-columns:1fr; } }
@media(max-width:680px) { .form-hero { padding:120px 0 32px; } .form-layout { display:block; padding-top:24px; } .form-layout aside { display:none; } .form-panel { padding:24px 18px; } .form-actions .button { padding-left:20px; padding-right:20px; font-size:14px; } .form-options { gap:8px; } }

/* Confirmation page: readable text beside an optimized portrait photo. */
body[data-form-page="thank-you"] .site-header { background: rgb(var(--color-night)); }
body[data-form-page="thank-you"] main { padding-top: 80px; }
.form-thanks { display:grid; grid-template-columns:1fr 1fr; max-width:none; min-height:calc(100svh - 80px); padding:0; }
.form-thanks-copy { align-self:center; padding:clamp(32px,5vw,88px); }
.form-thanks h1 { font-size:clamp(2.2rem,4vw,4.3rem); line-height:1.06; margin:0 0 28px; }
.form-thanks #thanks-message { white-space:pre-line; font-size:18px; line-height:1.7; margin-bottom:32px; }
.form-thanks-actions { display:flex; flex-wrap:wrap; gap:12px; }
.form-thanks-actions a { margin:0; }
.form-thanks-photo { display:block; min-height:600px; position:relative; }
.form-thanks-photo img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; object-position:center; }
@media(max-width:899px){ .form-thanks { grid-template-columns:1fr; } .form-thanks-photo { min-height:0; height:52svh; } .form-thanks-photo img { object-position:center 40%; } .form-thanks-copy { padding:32px 24px 48px; } }

@media(max-width:899px) {
  .form-thanks { min-height:0; }
  .form-thanks-copy { padding:36px 20px 32px; }
  .form-thanks h1 { margin-bottom:20px; }
  .form-thanks #thanks-message { font-size:16px; line-height:1.65; margin-bottom:24px; }
  .form-thanks-actions { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:10px; }
  body[data-form-page] main .form-thanks-actions .button { min-width:0; padding:12px 8px; font-size:14px; white-space:nowrap; }
}
.form-recovery { display:flex; flex-wrap:wrap; gap:12px 20px; margin-bottom:24px; }
.form-recovery-button { min-height:44px; text-align:left; text-decoration:underline; text-underline-offset:4px; color:rgb(var(--color-forest)); font-weight:600; }
.form-recovery .form-hint { flex-basis:100%; }
.form-recovery .form-hint:empty { display:none; }
