/* ==========================================================================
   Forms — base field styles + states, per v3 §14-15 / v6 §4.
   Reused by every form on the site (checkup, contact, newsletter, download).
   ========================================================================== */

.field { margin-bottom: var(--space-4); }
.field label {
  display: block;
  font-size: var(--fs-ui);
  font-weight: 500;
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-blue-600);
  box-shadow: 0 0 0 3px rgba(27,79,140,0.14);
}

.field.is-error input { border-color: var(--color-error); }
.field .err-msg { color: var(--color-error); font-size: var(--fs-caption); margin-top: 5px; }
.field.is-success input { border-color: var(--color-success); }
.field .ok-msg { color: var(--color-success); font-size: var(--fs-caption); margin-top: 5px; }

.field-consent { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-caption); color: var(--color-text-secondary); margin-bottom: var(--space-4); }
.field-consent input { width: auto; margin-top: 3px; }

/* --- Honeypot: hidden from real users, still in DOM/tab order for bots to fill (v3 §15) --- */
/* --- Honeypot: hidden from real users, still in DOM/tab order for bots (v3 §15).
   Uses the same clip-based hiding as .visually-hidden rather than an off-screen
   left offset — an absolutely-positioned -9999px element can otherwise expand
   the page's scrollable width and cause a horizontal scrollbar bug. --- */
.field--honeypot {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.form-status[role="status"],
.form-status[role="alert"] { font-size: var(--fs-ui); margin-top: var(--space-3); }
.form-status--success { color: var(--color-success); }
.form-status--error { color: var(--color-error); }

/* --- On the dark checkup CTA, invert field chrome for contrast --- */
.cta-block--checkup .field label { color: rgba(255,255,255,0.85); }
.cta-block--checkup .hero__lead { color: rgba(255,255,255,0.75); }

/* --- Form card shell: white card wrapper for a standalone form (e.g. LP hero) --- */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}
