.form-page { margin: 0; min-height: 100dvh; background: var(--paper); }
.form-head { max-width: 1120px; margin: auto; padding: 16px clamp(18px,4vw,42px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.form-head .brand img { display: block; height: 46px; width: auto; }
.form-page a { color: var(--teal-ink); text-underline-offset: .2em; }
.calendar-link, .contact-note a, .receipt a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.form-layout { max-width: 1080px; padding: clamp(28px,5vw,68px) clamp(18px,4vw,42px) 60px; margin: 0 auto; display: grid; align-items: start; grid-template-columns: minmax(210px, .64fr) minmax(0, 1.36fr); gap: clamp(28px,5vw,72px); }
.intro { position: sticky; top: 30px; }
.intro .eyebrow { font-weight: 750; color: var(--teal-ink); margin: 0; letter-spacing: .06em; }
.intro h1 { font: 850 clamp(30px,4vw,46px)/1.25 var(--display); margin: 12px 0 16px; color: var(--teal-deep); }
.intro p, .form-note, .field-hint { line-height: 1.65; color: var(--muted); }
.steps { padding-inline-start: 1.55rem; margin: 22px 0; color: var(--muted); }
.steps li { padding-block: 3px; }
.steps [aria-current] { color: var(--teal-deep); font-weight: 700; }
.form-panel { min-width: 0; padding: clamp(18px,3.2vw,36px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 28px #1c463e08; }
.form-panel [hidden] { display: none !important; }
.form-note { margin: 0 0 25px; }
.form-group + .form-group { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-group h2, .receipt h2 { color: var(--teal-ink); font: 800 24px/1.4 var(--display); margin: 0 0 16px; }
.form-field { margin: 0 0 18px; padding: 0; border: 0; min-inline-size: 0; }
.field-label { display: block; margin: 0 0 6px; padding: 0; font-weight: 700; }
.required-mark { color: var(--rose-ink); margin-left: .2em; }
.field-hint { font-size: .9rem; margin: 4px 0 9px; }
.form-field :is(input:not([type=checkbox],[type=radio]), textarea, select) { box-sizing: border-box; color: var(--ink); font: inherit; width: 100%; min-width: 0; min-height: 46px; padding: 9px 12px; border: 1px solid #93a99c; border-radius: 8px; background: white; }
.form-field textarea { resize: vertical; min-height: 90px; }
.option { display: flex; min-height: 44px; gap: 10px; align-items: center; cursor: pointer; line-height: 1.5; }
.option input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--teal-ink); margin: 0; }
.option input:disabled + span { opacity: .65; }
.form-actions { margin-top: 20px; }
.form-page button { cursor: pointer; font: inherit; min-height: 46px; border-radius: 10px; }
.submit-button { padding: 10px 24px; background: var(--teal-deep); color: #fff; font-weight: 700 !important; border: 1px solid var(--teal-deep); }
.form-page button:disabled { opacity: .65; cursor: progress; }
.quiet { padding: 8px 18px; color: var(--teal-ink); background: var(--mint-paper); border: 1px solid var(--line); }
.notice, .receipt p { overflow-wrap: anywhere; margin: 0 0 12px; }
.notice.problem { color: var(--rose-ink); }
.form-page :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media(max-width: 740px) {
  .form-head { padding-block: 10px; }
  .form-head .brand img { height: 38px; }
  .form-layout { grid-template-columns: minmax(0,1fr); gap: 16px; padding-block: 25px calc(104px + env(safe-area-inset-bottom)); }
  .intro { position: static; }
  .intro h1 { margin-block: 5px 9px; }
  .intro p { margin-block: 6px; }
  .steps { margin-block: 10px; }
  .contact-note br { display: none; }
  .form-actions { position: fixed; bottom: 0; left: 0; right: 0; z-index: 4; padding: 10px max(18px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .submit-button { width: 100%; }
  .form-page.keyboard-open .form-actions { visibility: hidden; pointer-events: none; }
  .form-field { scroll-margin-block: 24px 100px; }
}
@media(prefers-reduced-motion: no-preference) {
  .form-panel { animation: form-in .22s ease-out; }
  @keyframes form-in { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
