/* ============================================================
   AI VOICE DEMO — styles
   Sits in the "What it is" section. Self-contained: it does not
   depend on dbr-demo.css, because it lives in a different part
   of the page and should not inherit the phone demo's shell.
   ============================================================ */
.vd {
  --vd-noir: #172B36;
  --vd-noir-deep: #0E1D26;
  --vd-gold: #FFC801;
  --vd-saffron: #FF9932;
  --vd-powder: #F1F6F4;
  --vd-mint-75: rgba(217, 232, 226, 0.75);
  --vd-mint-60: rgba(217, 232, 226, 0.6);
  --vd-mint-35: rgba(217, 232, 226, 0.35);
  --vd-mint-12: rgba(217, 232, 226, 0.12);

  margin-top: 40px;
  padding: 30px;
  border: 1px solid var(--vd-mint-12);
  border-radius: 24px;
  background:
    radial-gradient(420px 220px at 88% -20%, rgba(255, 200, 1, 0.07), transparent 70%),
    rgba(255, 255, 255, 0.025);
  font-family: 'Inter Tight', system-ui, sans-serif;
  color: var(--vd-powder);
}
.vd *, .vd *::before, .vd *::after { box-sizing: border-box; }
.vd [hidden] { display: none !important; }

.vd-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--vd-gold);
  margin: 0 0 14px;
}
.vd-eyebrow::before {
  content: ""; width: 24px; height: 1.5px;
  background: linear-gradient(120deg, var(--vd-gold), var(--vd-saffron));
}
.vd-title {
  font-family: 'Noto Serif Display', Georgia, serif;
  font-weight: 300; font-stretch: 68%;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1; margin: 0 0 12px;
}
.vd-title .vd-accent {
  font-style: italic;
  background: linear-gradient(120deg, var(--vd-gold), var(--vd-saffron));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vd-lede {
  margin: 0 0 24px; font-size: 0.98rem; line-height: 1.65;
  color: var(--vd-mint-75); max-width: 52ch;
}

/* ---------- form ---------- */
.vd-form { display: grid; gap: 14px; }
.vd-row {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.vd-field { display: grid; gap: 7px; }
.vd-field label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--vd-mint-60);
}
.vd-field input {
  font-family: inherit; font-size: 1rem; color: var(--vd-powder);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--vd-mint-12);
  border-radius: 12px; padding: 13px 15px; width: 100%;
  transition: border-color .2s, background .2s;
}
.vd-field input:focus {
  outline: none; border-color: var(--vd-gold);
  background: rgba(255, 255, 255, 0.06);
}
.vd-field input::placeholder { color: rgba(217, 232, 226, 0.3); }

/* TCPA consent. Legal text — do not restyle into something easy to miss. */
.vd-consent {
  display: grid; grid-template-columns: auto 1fr; gap: 11px;
  align-items: start; margin-top: 2px;
}
.vd-consent input[type="checkbox"] {
  width: 18px; height: 18px; margin: 2px 0 0;
  accent-color: var(--vd-gold); cursor: pointer;
}
.vd-consent label {
  font-size: 0.78rem; line-height: 1.55; color: var(--vd-mint-60); cursor: pointer;
}

.vd-error {
  margin: 0; padding: 11px 14px;
  border: 1px solid rgba(255, 153, 50, 0.35);
  background: rgba(255, 153, 50, 0.08);
  border-radius: 12px; font-size: 0.9rem; color: #FFB765;
}

.vd-submit {
  font-family: inherit; font-size: 1rem; font-weight: 600;
  background: var(--vd-gold); color: var(--vd-noir);
  border: none; border-radius: 999px; padding: 14px 28px;
  cursor: pointer; justify-self: start; margin-top: 4px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .2s, background .2s;
  box-shadow: 0 12px 30px rgba(255, 200, 1, 0.16);
}
.vd-submit:hover:not(:disabled) { background: var(--vd-saffron); transform: translateY(-2px); }
.vd-submit:disabled { opacity: .65; cursor: wait; transform: none; }

.vd-note {
  margin: 0; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--vd-mint-35);
}

/* ---------- success ---------- */
.vd-done {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  animation: vd-in .4s ease-out;
}
@keyframes vd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vd-ring {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(140deg, var(--vd-gold), var(--vd-saffron));
  color: var(--vd-noir); display: grid; place-items: center;
  animation: vd-shake 1.6s ease-in-out infinite;
}
.vd-ring svg { width: 22px; height: 22px; }
@keyframes vd-shake {
  0%, 70%, 100% { transform: rotate(0); }
  75%, 85% { transform: rotate(-11deg); }
  80%, 90% { transform: rotate(11deg); }
}
.vd-done h4 {
  font-family: 'Noto Serif Display', Georgia, serif;
  font-weight: 300; font-stretch: 68%; font-size: 1.5rem;
  margin: 0;
}
.vd-done p { margin: 0; font-size: 0.96rem; line-height: 1.6; color: var(--vd-mint-75); }
/* Waiting clock. The call is queued by GHL, so there is a real gap between
   pressing the button and the phone ringing. Show it ticking. */
.vd-wait {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem !important; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--vd-mint-60) !important;
}
.vd-wait-dots { display: inline-flex; gap: 4px; }
.vd-wait-dots i {
  width: 5px; height: 5px; border-radius: 50%; display: block;
  background: var(--vd-gold); animation: vd-bounce 1.3s infinite;
}
.vd-wait-dots i:nth-child(2) { animation-delay: .18s; }
.vd-wait-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes vd-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
/* Past the point where it should have rung, the clock stops nagging and the
   copy turns into advice. */
.vd-wait.is-late { color: #FFB765 !important; }
.vd-wait.is-late .vd-wait-dots { display: none; }

.vd-thin {
  padding: 11px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 153, 50, 0.3);
  background: rgba(255, 153, 50, 0.07);
  font-size: 0.84rem; color: #FFB765 !important;
}
.vd-again {
  margin-top: 4px;
  font-family: inherit; font-size: 0.9rem; color: var(--vd-powder);
  background: transparent; border: 1px solid var(--vd-mint-12);
  border-radius: 999px; padding: 10px 20px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.vd-again:hover { border-color: var(--vd-gold); color: var(--vd-gold); }

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