/* ============================================================
   Vakio — Public Lead-Capture Form (ARL-5, PRD-051)
   File: frontend/assets/css/request-demo.css

   Scoped to frontend/request-demo.html only. Reuses design tokens
   from design-system.css (--color-*, --space-*, --text-*, --radius-*)
   and .card/.btn/.form-*/.alert primitives from components.css —
   no new tokens introduced, no hardcoded colors/spacing.
   ============================================================ */

.rdf-layout {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: var(--space-6);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--color-teal-glow) 0%, transparent 70%);
}

.rdf-card {
  width: 100%;
  max-width: 640px;
  margin-block: var(--space-8);
  padding: var(--space-8) var(--space-6);
}

@media (min-width: 640px) {
  .rdf-card { padding: var(--space-10) var(--space-8); }
}

.rdf-logo { text-align: center; margin-bottom: var(--space-6); }
.rdf-logo h1 { font-size: var(--text-2xl); margin-block-end: var(--space-2); }
.rdf-logo p { color: var(--text-secondary); font-size: var(--text-base); max-width: 46ch; margin-inline: auto; }

.rdf-form { display: flex; flex-direction: column; gap: var(--space-5); }

.rdf-section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-block-end: calc(var(--space-2) * -1);
}

.rdf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .rdf-grid--2col { grid-template-columns: 1fr 1fr; }
}

.rdf-required::after {
  content: " *";
  color: var(--color-red);
}

/* ── Honeypot (server-side spam trap, architecture §4.3) ──────────────────
   Visually hidden but NOT display:none (some simple bots skip display:none
   fields); off-screen positioning + aria-hidden + tabindex=-1 keeps it out
   of the visual flow, tab order, and screen-reader output for real users. */
.rdf-hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rdf-consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--surface-border-mid);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
}

.rdf-consent-row input[type="checkbox"] {
  margin-block-start: 0.2em;
  inline-size: 1.15rem;
  block-size: 1.15rem;
  min-inline-size: 44px;
  min-block-size: 24px;
  accent-color: var(--color-teal);
  flex-shrink: 0;
}

.rdf-consent-row label { font-size: var(--text-sm); color: var(--text-secondary); cursor: pointer; }

.rdf-turnstile {
  min-height: 65px;
  display: flex;
  justify-content: center;
}

.rdf-notice {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.rdf-notice button.legal-inline-link,
.rdf-notice button[data-legal] {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-teal);
  font-size: inherit;
  text-decoration: underline;
  font-family: inherit;
}

.rdf-result {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.rdf-result svg { margin-block-end: var(--space-4); }

.rdf-footer {
  text-align: center;
  margin-block-start: var(--space-8);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--surface-border-mid);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.rdf-footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-block-end: var(--space-2);
  flex-wrap: wrap;
}

.rdf-footer-links button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-muted);
  font-size: inherit;
  text-decoration: underline;
  font-family: inherit;
}

.rdf-footer-links button:hover,
.rdf-footer-links button:focus-visible { color: var(--color-teal); }

/* ── Reduced motion (WCAG 2.3.3 / platform invariant) ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rdf-card, .rdf-form * { animation: none !important; transition: none !important; }
}

/* ── Light theme overrides — tokens only, no new hardcoded colors ────────
   [data-theme="light"] already re-points --color-teal/--text-* tokens at
   :root level (design-system.css); nothing page-specific to override here.
   Section kept as an explicit marker for future light-theme QA passes. */
