/* ==========================================================================
   Alpha Drive AI brand design tokens
   All brand values live here. Update them in one place if the brand changes.
   Source: https://brand.alphadriveai.com/
   ========================================================================== */
:root {
  /* Brand */
  --brand-primary: #E30613; /* primary red: buttons, accents, focus */
  --brand-shadow:  #AA0310; /* darker red: hover/active/pressed, shadows */

  /* Surfaces / background */
  --bg:            #0E0E0E; /* page background */
  --surface:       #161616; /* card background */
  --surface-2:     #1F1F1F; /* inputs, raised elements */
  --border:        #2A2A2A;

  /* Text */
  --text-paper:    #FFFFFF; /* high-emphasis text / headings (Paper) */
  --text-smoke:    #F2F2F0; /* default body text (Smoke) */
  --text-muted:    #A8A8A6; /* secondary / help text */

  /* Feedback */
  --error:         #FF6B6B;
  --success:       #4ADE80;

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --radius: 10px;
  --maxw: 560px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-smoke);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary); }
a:hover { color: var(--brand-shadow); }

/* Header / logo */
.site-header {
  display: flex;
  justify-content: center;
  padding: 32px 20px 8px;
}
.logo {
  height: 28px;
  width: auto;
  max-width: 80vw;
}

/* Page / card */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 64px;
}
.card {
  width: 100%;
  max-width: var(--maxw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
}

h1 {
  color: var(--text-paper);
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.lede {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Fields */
.field { margin-bottom: 22px; }
.field > label,
.field legend {
  display: block;
  color: var(--text-paper);
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.optional { color: var(--text-muted); font-weight: 400; }

input[type="tel"],
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-paper);
  font-size: 1rem;
}
input[type="tel"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.35);
}
input[aria-invalid="true"] { border-color: var(--error); }

.help { color: var(--text-muted); font-size: 0.85rem; margin: 6px 0 0; }
.error-text { color: var(--error); font-size: 0.85rem; margin: 6px 0 0; }

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0;
}

.check, .radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: var(--text-smoke);
  margin: 8px 0;
  cursor: pointer;
}
.check input, .radio input {
  margin-top: 3px;
  accent-color: var(--brand-primary);
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.consent {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.consent #consent-text { font-size: 0.9rem; color: var(--text-smoke); }

/* Button */
.btn-primary {
  width: 100%;
  padding: 14px 18px;
  background: var(--brand-primary);
  color: var(--text-paper);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary:hover:not(:disabled) { background: var(--brand-shadow); }
.btn-primary:active:not(:disabled) { background: var(--brand-shadow); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.5);
}

/* Result */
.result {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.result.is-success { background: rgba(74, 222, 128, 0.12); color: var(--success); }
.result.is-error   { background: rgba(255, 107, 107, 0.12); color: var(--error); }

/* Footer */
.page-footer {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.page-footer a { color: var(--text-muted); }
.page-footer a:hover { color: var(--text-smoke); }
