/* Assessment: the request form, the page's conversion goal. Loaded without blocking first paint (index.html, data-defer). */
.assessment { min-height: calc(100svh - 104px); } /* tall enough that a "Book an assessment" link can bring its top up under the nav */
.assessment__inner { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(72px, 12vh, 128px) 0; display: grid; gap: 32px; } /* the same top padding as the sections before it */
.assessment__card { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge), 0 24px 60px -30px rgb(var(--shadow) / .4); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--wide, .form > .btn, .form__error, .form__fine, .form__hint { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field__optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-input); border: 1px solid var(--muted); background: var(--surface-solid); color: var(--ink); font: inherit; } /* the --muted border keeps 3:1 against the field */
.field textarea { min-height: 96px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error, .form__error { margin: 0; color: var(--error); font-size: .88rem; font-weight: 600; }
.form__error a { text-decoration: underline; text-underline-offset: 3px; }
.form__answers { padding: 14px 16px; border-radius: var(--r-input); background: color-mix(in srgb, var(--accent) 6%, var(--surface-solid)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); font-size: .9rem; }
.form__answers p { margin: 0; font-weight: 600; }
.form__answers ul { margin: 8px 0 4px; padding-left: 18px; color: var(--ink-2); }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 .9rem/1 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form > .btn { justify-self: start; }
.form__fine { margin: 0; font-size: .82rem; color: var(--muted); }
.form__hint { margin: 0; font-size: .88rem; color: var(--muted); }
.form .btn[aria-disabled="true"] { opacity: .7; cursor: progress; } /* sending: still focusable, so keyboard focus stays put */
.has-cursor .form .btn[aria-disabled="true"] { cursor: none; } /* the custom cursor shows instead (beats the progress rule above on specificity) */
.assessment .ticks { margin-top: -8px; } /* the grid gap (32px) plus this: 24px under the lead */
.form__done h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 600 1.4rem/1.15 var(--font-display); letter-spacing: -.02em; }
.form__done h3 .icon { width: 1.5em; height: 1.5em; color: var(--accent); }
.form__done p { margin: 0; color: var(--muted); }
/* The final scene's slot (base size in sections.css): the globe returns here, docked, fully lit, "Your business" on its
   office. Desktop: under the ticks, beside the form (short wide screens: beside the ticks); phones: after the form, so a "Book an assessment" link lands on
   the form first. */
html:not(.story) .assessment__slot { display: none; }
/* (1000px is shared with main.js and ui.js, which read it with matchMedia; see hero.css.) */
@media (min-width: 1001px) {
  .assessment__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); grid-template-areas: "head card" "ticks card" "slot card"; grid-template-rows: auto auto 1fr; align-items: start; column-gap: 64px; row-gap: 0; }
  .assessment__inner > .section-head { grid-area: head; }
  .assessment .ticks { grid-area: ticks; margin-top: 24px; }
  .assessment__card { grid-area: card; }
  .assessment__slot { grid-area: slot; margin-top: 44px; width: min(100%, clamp(120px, 101svh - 540px, 440px)); } /* the whole sphere ends on the screen a "Book an assessment" link lands on */
}
/* Short wide screens (a 1366x657 laptop): the globe moves beside the ticks, where it can be about twice as wide. */
@media (min-width: 1280px) and (max-height: 740px), (min-width: 1340px) and (max-height: 830px) { /* beside wins where the left column is wide (1340px+) or the screen is short */
  .assessment__inner { grid-template-columns: max-content minmax(0, 1fr) minmax(0, 664px); grid-template-areas: "head head card" "ticks slot card"; grid-template-rows: auto 1fr; column-gap: 0; }
  .assessment__card { margin-left: 64px; }
  .assessment__slot { margin: 40px auto 0 24px; width: min(100% - 24px, clamp(120px, 100svh - 400px, 340px)); }
}
@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .form > .btn { justify-self: stretch; justify-content: center; }
}
.assessment .section-head__lead { text-wrap: pretty; } /* no single word on the last line */
