/* 6.1 Get in touch (1F3-0). Page styles only; tokens from datum.css and site.css, no new colours, sizes or shadows.
   Head as drawn on the short pages: label, 24, H1, 24, lead, then 64 to the form (the shared hero sets 16, 48 and 128).
   The form (680) on the left, What happens next (400) on the right; below 1024 the form first, then the aside.
   Fields as drawn: label (16 Medium) and "Required" (14, grey) on one line, or label and hint (14, grey) 4 apart; 8 to a
   52-tall control with an Onyx border (WCAG 1.4.11 needs 3:1; drawn as a hairline; as page 4) and radius 4; 24 between fields. Errors use the Sent back red (--back) with an
   icon: the system's only red, and the colour Brooke's doc asks for ("Error Red"). */
.hero { padding-bottom: 64px; }
.hero__head { gap: 24px; }
.hero__cols { padding-top: 24px; }

.contact { padding-bottom: var(--section-y-fluid); }
.contact__in { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 400px); justify-content: space-between; column-gap: 48px; row-gap: 64px; align-items: start; }
.contact--demo { padding-top: var(--section-y-fluid); border-top: 1px solid var(--hairline); }
.contact__in--demo { grid-template-columns: minmax(0, 400px) minmax(0, 680px); }
.demo-intro { display: flex; flex-direction: column; gap: 24px; }
.demo-list { display: flex; flex-direction: column; gap: 12px; }
.demo-list li { display: flex; gap: 12px; }
.demo-list li::before { content: "✓"; color: var(--field); font-weight: 700; }
.demo-form > h2 { margin-bottom: 24px; }

/* ---------- The form ---------- */
.cf { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cf__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 16px; }
.cf__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cf__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cf__top--hint { flex-direction: column; align-items: flex-start; gap: 4px; }
.cf__label { font-size: 16px; line-height: 24px; font-weight: 500; }
.cf__req { font-size: 14px; line-height: 20px; color: var(--grey); }
.cf__input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--onyx); border-radius: 4px; background: var(--white); color: var(--onyx); font: inherit; font-size: 16px; line-height: 24px; }
textarea.cf__input { height: 160px; padding: 14px 16px; resize: vertical; }
.cf__input:focus-visible { outline: 2px solid var(--field); outline-offset: 0; border-color: var(--field); }
.cf__input[aria-invalid="true"] { border-color: var(--back); }
.cf__select { position: relative; }
.cf__select select { appearance: none; padding-right: 48px; cursor: pointer; }
.cf__chev { position: absolute; right: 16px; top: 18px; color: var(--onyx); pointer-events: none; }

.cf__msg, .cf__error { display: flex; align-items: flex-start; gap: 8px; }
.cf__msg[hidden], .cf__error[hidden] { display: none; }
.cf__msg { color: var(--back); font-size: 14px; line-height: 20px; font-weight: 500; }
.cf__icon { flex: none; margin-top: 2px; color: var(--back); }
.cf__error { align-self: stretch; padding: 16px; border: 1px solid var(--back); border-radius: 8px; font-size: 16px; line-height: 24px; }
.cf__error .cf__icon { margin-top: 4px; }
.cf__success { padding: 16px; border: 1px solid var(--field); border-radius: 8px; color: var(--field); font-size: 16px; line-height: 24px; }
.cf__success[hidden] { display: none; }

.cf__end { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 8px; }
.cf__a { color: var(--field); font-weight: 500; text-decoration: underline; overflow-wrap: anywhere; }
.cf__a:hover { text-decoration-thickness: 2px; }
.cf__check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.cf__check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--field); cursor: pointer; }
.cf__send:disabled { cursor: progress; }

/* ---------- What happens next ---------- */
.next { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.next__list { border-top: 1px solid var(--hairline); }
.next__list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.next__n { flex: none; width: 16px; color: var(--field); font-weight: 700; }
.next__other { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 32px; }
.next__h { font-size: 20px; line-height: 30px; font-weight: 500; }

@media (max-width: 1023px) {
  .contact__in { grid-template-columns: minmax(0, 680px); }
  .contact__in--demo { grid-template-columns: minmax(0, 680px); }
}
@media (max-width: 767px) {
  .hero__head { gap: 16px; }
  .cf__send { width: 100%; }
}
