/* ============================================================
   AVERIONYX — Smart Form styles
   Tokens mirror call.html / the live site. Brand-native.
   ============================================================ */
:root {
  --bg: #111620;
  --panel: #161c28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #2ab8e8;
  --accent-dim: rgba(42, 184, 232, 0.10);
  --accent-glow: rgba(42, 184, 232, 0.35);
  --white: #fff;
  --off-white: #e4e8f0;
  --muted: #7a8399;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

#averionyx-form {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  font-family: var(--font-body);
  color: var(--off-white);
}

/* ---- Progress ---- */
.af-progress-wrap { margin-bottom: 26px; }
.af-progress-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.af-mark { display: inline-flex; }
.af-step-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.af-progress {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}
.af-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #4dcbf0);
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ---- Card ---- */
.af-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 32px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.af-card.af-in { opacity: 1; transform: translateY(0); }

.af-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.af-prompt {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--white);
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  line-height: 1.18;
  margin-bottom: 8px;
}
.af-help {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.af-prompt + .af-options,
.af-prompt + .af-field { margin-top: 22px; }

/* ---- Options ---- */
.af-options { display: flex; flex-direction: column; gap: 10px; }
.af-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--off-white);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 17px 18px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.1s ease;
}
.af-option:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.af-option:active { transform: scale(0.995); }
.af-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.af-option.af-selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.af-opt-tick {
  color: var(--accent);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.af-option:hover .af-opt-tick,
.af-option.af-selected .af-opt-tick { opacity: 1; transform: translateX(0); }

/* ---- Contact fields ---- */
.af-contact { display: flex; flex-direction: column; }
.af-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.af-field-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.af-input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 15px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.af-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ---- Honeypot (hidden bot trap — never visible, never focusable) ---- */
.af-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---- Buttons ---- */
.af-submit {
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: #0b0f16;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  padding: 16px 28px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 8px 30px var(--accent-glow);
}
.af-submit:hover { background: #4dcbf0; transform: translateY(-1px); }
.af-submit:disabled { opacity: 0.7; cursor: default; transform: none; }
.af-back {
  align-self: flex-start;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.18s ease;
}
.af-back:hover { color: var(--off-white); }

@media (max-width: 560px) {
  .af-card { padding: 26px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .af-card, .af-progress-fill, .af-option, .af-opt-tick, .af-submit {
    transition: none !important;
  }
  .af-card { opacity: 1; transform: none; }
}
