/* Hallmark · page: contact (/contact, /contact/sent), the full stamp is site.css · the fields, choices, alert and button states come from site.css */
/* Hallmark · dismissed 58 · the 93 words in the /contact window are the intake form's field labels and its eight two- to six-word help choices beside the two-line aside, filled in one field at a time rather than read as prose */
/* Contact: the intake form in three short groups, what happens next and the plain email alternative beside it. Tokens only; the fields, choices, alert and button come from site.css. */

/* A full section step under the head, as on /about. */
.page-head + .intake { padding-top: var(--section-gap-s); }

/* The form takes seven columns, what happens next the last four; under 60rem that column sits above the form. */
.intake__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.intake__main { grid-column: 1 / 8; grid-row: 1; min-width: 0; }
.intake__aside { position: sticky; top: calc(var(--head-h) + var(--space-lg)); grid-column: 9 / -1; grid-row: 1; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.intake__aside-title { margin-bottom: var(--space-md); font-size: var(--text-title); line-height: 1.2; }
.intake__next { color: var(--color-ink-2); }
.intake__alt { margin-top: var(--space-lg); color: var(--color-ink-2); overflow-wrap: anywhere; }

/* Each group opens on a hairline with its name, the way the offers list parts its rows. */
.intake__form { gap: var(--space-xl); }
.intake__group { display: grid; gap: var(--space-lg); min-width: 0; margin: 0; padding: var(--space-lg) 0 0; border: 0; border-top: var(--rule-hair) solid var(--color-rule); }
/* Floated, the legend leaves the border and becomes a grid item like the fields under it. */
.intake__legend { float: left; width: 100%; margin: 0; padding: 0; color: var(--color-ink); font-family: var(--font-display); font-size: var(--text-title); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.2; }
.intake__quiz { color: var(--color-ink-2); }

/* Wide enough for "Sending..." and the spinner, so the button never changes width mid-send. */
.intake__submit { min-width: calc(var(--space-4xl) + var(--space-md)); }

/* What replaces the form once the message is in. */
.intake__done { display: grid; gap: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }

/* /contact/sent: the head stands alone, so it keeps its own space above the footer. */
.sent { padding-bottom: var(--section-gap); }
.sent__actions { margin-top: var(--space-xl); }

@media (max-width: 60rem) {
  .intake__grid { grid-template-columns: minmax(0, 1fr); }
  .intake__main, .intake__aside { grid-column: 1 / -1; grid-row: auto; }
  .intake__aside { position: static; }
}
@media (max-width: 40rem) {
  .intake__send > *, .sent__actions > * { flex: 1 1 auto; }
}

/* With JavaScript off, the API's 303 lands on /contact?error=<code>#error-<code>; :target shows the matching message. intake.js hides these and uses the live alert instead. */
.form-error-static { display: none; }
.form-error-static:target { display: block; }
