/* Contact: a lilac chapter after the paper about. Heading and direct lines sit on the ground;
   the form is the one paper card, with the same physical key as the opening, inked. */
body[data-indigo] #contact.contact-scene {
  padding: var(--chapter-pad) max(6vw, calc((100% - var(--chapter-max)) / 2));
  border: 0;
  background: var(--lilac);
  color: var(--deep);
}
/* Override the shared paper plates (flow.css): on this solid ground they only add boxes. */
#contact .contact-top, #contact .contact-direct-block { padding: 0; background: none; }

#contact .contact-top { max-width: 760px; margin: 0 0 var(--chapter-gap); }
#contact .contact-top h2 { max-width: 14ch; margin: 0 0 16px; font: 800 var(--t-h2)/1.1 var(--display); letter-spacing: -.02em; }
#contact .contact-top p { max-width: 42ch; margin: 0; font-size: var(--t-body); line-height: 1.6; text-wrap: pretty; }

#contact .contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--chapter-gap); align-items: start; }

/* Direct lines: one ruled list, WhatsApp first and largest. */
#contact .contact-direct-block {
  position: sticky;
  top: calc(var(--header-h, 80px) + 24px);
  display: grid;
  gap: 0;
  border-top: 2px solid var(--deep);
}
#contact .contact-direct-block > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 12px;
  border-bottom: var(--chapter-rule);
  color: var(--deep);
  font-size: var(--t-body);
  text-underline-offset: 4px;
}
#contact .contact-direct-block > a[dir="ltr"] { justify-content: flex-end; }
#contact .contact-direct-block > .contact-wa { min-height: 72px; font: 800 var(--t-lead)/1.25 var(--display); text-decoration: none; }
#contact .contact-wa span[aria-hidden] { font-size: 1.2em; }

/* The card. */
#contact .lead-panel { min-width: 0; padding: clamp(24px, 3vw, 44px); border: 0; border-radius: 2px; background: var(--paper); }
#contact .form-note { margin: 0 0 24px; font-size: var(--t-small); line-height: 1.6; color: var(--indigo); }
#contact .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
#contact .field { gap: 8px; margin-bottom: 20px; }
#contact .field label, #contact legend { font-weight: 600; font-size: 16px; color: var(--deep); }
#contact .field label > span:last-child { font-size: var(--t-small); font-weight: 400; color: var(--indigo); }
#contact .field input, #contact .field textarea {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--indigo);
  border-radius: 2px;
  background: #fff;
  color: var(--deep);
  font: inherit;
  font-size: 16px;
}
#contact .field textarea { min-height: 112px; }
#contact .field input:focus-visible, #contact .field textarea:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
#contact .field input[aria-invalid="true"], #contact .field textarea[aria-invalid="true"] { border-width: 2px; border-color: var(--deep); }
#contact .field-error { display: block; color: var(--deep); font-size: var(--t-small); font-weight: 600; line-height: 1.6; }
#contact .field-error:empty { display: none; }
#contact .small, #contact .services-hint { font-size: var(--t-small); line-height: 1.6; color: var(--indigo); }

#contact .service-options { min-width: 0; margin: 4px 0 20px; padding: 0; border: 0; }
#contact .service-options legend { padding: 0; margin-bottom: 4px; }
#contact .services-hint { margin: 0 0 8px; }
#contact .service-options > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
#contact .service-options label { display: flex; align-items: center; gap: 10px; min-height: 44px; line-height: 1.35; cursor: pointer; }
#contact input[type="checkbox"] { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--deep); }

/* Fine print, like the consent strip (owner, 24.11.2026): small and quiet, 5.9:1 on paper. */
#contact .consent-row { display: flex; align-items: start; gap: 12px; margin: 4px 0 0; color: var(--fine-print); font-size: var(--t-fine); line-height: 1.6; }
#contact .consent-row input { margin-top: 0; }
#contact .consent-row a { color: inherit; font-size: inherit; text-underline-offset: 3px; }

/* Primary action: a deep, inked key. No glow; the press is the physical offset. */
#contact .contact-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
#contact #leadSubmit {
  gap: 20px;
  min-width: 220px;
  min-height: 56px;
  margin: 0;
  padding: 14px 28px;
  border: 1px solid var(--deep);
  border-radius: 2px;
  background: var(--deep);
  color: var(--paper);
  box-shadow: inset 0 -3px 0 #0f1131, 0 3px 0 #0f1131;
  font: 700 18px/1.2 var(--body);
}
#contact #leadSubmit:disabled { cursor: progress; opacity: .7; }
#contact .contact-trust { margin: 0; font-size: var(--t-small); line-height: 1.5; color: var(--indigo); }

#contact .lead-status:not(:empty) { margin-top: 24px; padding-top: 20px; border-top: var(--chapter-rule); font-size: var(--t-body); line-height: 1.7; }
#contact #leadFallback { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; }

@media (max-width: 720px), (max-height: 540px) {
  /* The card edge already closes the form; a short tail keeps the trust line near the next scene. */
  body[data-indigo] #contact.contact-scene { padding: var(--chapter-pad) 24px 24px; }
  #contact .contact-top { margin-bottom: 20px; }
  #contact .contact-top h2 { margin-bottom: 8px; }
  #contact .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #contact .contact-direct-block { position: static; }
  #contact .contact-direct-block > a { min-height: 48px; padding-block: 8px; }
  #contact .contact-direct-block > .contact-wa { min-height: 60px; }
  #contact .lead-panel { padding: 20px 16px; }
  #contact .form-note { margin-bottom: 16px; }
  #contact .form-grid { gap: 0 12px; }
  #contact .field { margin-bottom: 14px; }
  #contact .field input { min-height: 48px; }
  #contact .field textarea { min-height: 96px; }
  #contact .service-options { margin-bottom: 14px; }
  #contact .service-options > div { gap: 0 12px; }
  /* Five options: the longest name gets the full row, the other four pair up at 16px. */
  #contact .service-options > div > label:first-child { grid-column: 1 / -1; }
  #contact .contact-submit-row { margin-top: 20px; }
  #contact #leadSubmit { width: 100%; }
}
