/* Talk to us form (landing WP #335). Site tokens from styles.css :root; mobile-first.
   Every text field is 16px or larger - iOS Safari zooms the page on focus below that
   (scripts/check-ios-zoom.mjs guards this page too). */

.tk { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 9vw, 110px); background: var(--slate-50); }
.tk__card {
  max-width: 640px; margin: -40px auto 0; position: relative; z-index: 2;
  padding: clamp(20px, 5vw, 36px); background: var(--white);
  border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: var(--shadow-md);
}

.tk__form { display: grid; gap: 18px; }
.tk__field { display: grid; gap: 6px; }
.tk__field label,
.tk__choices legend { font-weight: 600; font-size: 15px; color: var(--slate-900); }
.tk__opt { font-weight: 400; color: var(--slate-600); }

.tk__input, .tk__radio, .tk__tick { font: 400 16px/1.4 var(--font-body); }
.tk__input {
  width: 100%; padding: 12px 14px; color: var(--slate-900); background: var(--white);
  border: 1px solid var(--slate-300); border-radius: var(--radius-sm);
}
textarea.tk__input { resize: vertical; min-height: 120px; }
.tk__input:focus-visible, .tk__radio:focus-visible, .tk__tick:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}
.tk__input[aria-invalid="true"] { border-color: #b91c1c; }
.tk__err { color: #b91c1c; font-size: 14px; font-weight: 500; }
.tk__err[hidden], .tk__error[hidden], .tk__thanks[hidden], .tk__form[hidden] { display: none; }

/* What would you like? - large tappable rows. */
.tk__choices { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.tk__choices legend { padding: 0; margin-bottom: 8px; }
.tk__choice {
  display: flex; gap: 12px; align-items: flex-start; min-height: 52px; padding: 14px 16px; cursor: pointer;
  border: 1px solid var(--slate-300); border-radius: var(--radius-sm); color: var(--slate-900); background: var(--white);
}
.tk__choice:hover { background: var(--slate-100); }
.tk__choice:has(input:checked) { border-color: var(--blue-deep); background: rgba(37, 99, 235, 0.06); }
.tk__choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.tk__radio, .tk__tick { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--blue-deep); }
.tk__choice small { display: block; margin-top: 4px; font-size: 14px; color: var(--slate-600); }

.tk__check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--slate-700); cursor: pointer; }
.tk__note { margin: -8px 0 0; font-size: 14px; color: var(--slate-600); }
.tk__privacy { margin: 0; font-size: 14px; line-height: 1.55; color: var(--slate-600); }
.tk__privacy a, .tk__alt a, .tk__error a { color: var(--blue-deep); text-decoration: underline; }

/* Honeypot: off-screen, not display:none (simple bots skip display:none fields). */
.tk__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.tk__submit { width: 100%; justify-content: center; min-height: 52px; font-size: 16px; }
.tk__submit[disabled] { opacity: 0.7; cursor: progress; }

.tk__error {
  margin: 0; padding: 12px 14px; font-size: 15px; line-height: 1.5; color: #7f1d1d;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm);
}

.tk__thanks { text-align: center; padding: 8px 0; }
.tk__thanks:focus { outline: none; }
.tk__thanks h2 { font-size: clamp(24px, 4vw, 30px); margin-bottom: 12px; }
.tk__thanks p { color: var(--slate-700); margin-bottom: 18px; overflow-wrap: anywhere; }

.tk__alt { max-width: 640px; margin: 20px auto 0; text-align: center; color: var(--slate-700); }

@media (min-width: 640px) {
  .tk__card { margin-top: -56px; }
}

/* The DRAFT privacy notice (privacy.html, epic #334) — reuses the .tk card. */
.pv h2 { font-size: 20px; margin: 28px 0 10px; }
.pv p, .pv li { color: var(--slate-700); line-height: 1.65; }
.pv ul { padding-left: 20px; display: grid; gap: 10px; }
.pv__draft { background: #fef3c7; border: 1px solid #f59e0b; color: #78350f !important; border-radius: 10px; padding: 12px 14px; }
.pv__tbc { background: #fef3c7; color: #78350f; padding: 0 4px; border-radius: 4px; }
.pv__updated { margin-top: 28px; font-size: 14px; }
