/* =============================================
   QUALIFICAÇÃO — VA Studio
   Tema flat claro no padrao de form (estilo chronosdock):
   fundo branco puro, fonte Lato, inputs em linha (underline),
   accent azul #1800AD, emojis nos bullets.
   Mantem TODOS os IDs/classes/data-attrs que o script.js usa.
============================================= */

/* ===== TOKENS LOCAIS (sobrescrevem ../style.css so nesta pagina) ===== */
.qualificacao-body {
  --accent: #1800AD;
  --accent-hover: #12007f;
  --accent-soft: rgba(24, 0, 173, 0.06);
  --accent-softer: rgba(24, 0, 173, 0.12);
  --ink: #0b0b0c;
  --muted: #6B7280;
  --line: #d8dade;

  --font-head: 'Lato', system-ui, -apple-system, sans-serif;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;

  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
}

/* Some o video de fundo — referencia e branco puro */
.qualificacao-bg { display: none !important; }

.qualificacao-main {
  flex: 1;
  display: flex;
  padding: 64px 20px 48px;
  position: relative;
  z-index: 1;
}

/* Sem card: conteudo direto no branco, coluna central estreita.
   Ocupa a altura toda: logo no topo, conteudo centralizado, botao embaixo. */
.qualificacao-card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ===== VOLTAR (chevron simples, topo-esquerda da pagina) ===== */
.qualificacao-back {
  position: fixed;
  top: 14px;
  left: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  z-index: 20;
  transition: color 0.2s var(--ease-out);
}
.qualificacao-back:hover { color: var(--accent); background: transparent; transform: none; }
.qualificacao-back[hidden] { display: none; }

/* ===== LOGO (fixo no topo) ===== */
.qualificacao-logo { display: flex; justify-content: center; margin-bottom: 56px; flex-shrink: 0; }
.qualificacao-logo img { height: 30px; width: auto; }

/* ===== BARRA DE PROGRESSO (fina, fixa no topo) ===== */
.qualificacao-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #eceef1;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  z-index: 30;
  transition: opacity 0.4s var(--ease-out);
}
.qualificacao-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: none;
  border-radius: 0;
  transition: width 0.5s var(--ease-out);
}

/* ===== STEPS (ocupam o espaco entre logo e base, conteudo centralizado) ===== */
.qualificacao-steps {
  position: relative;
  min-height: 200px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step { display: none; animation: stepIn 0.25s var(--ease-out); }
.step.active { display: block; width: 100%; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TITULOS / SUBLINHAS ===== */
.step-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #000;
  text-align: left;
  margin-bottom: 10px;
}
.step-sub {
  font-size: 1.05rem;
  color: var(--muted);
  text-align: left;
  margin-bottom: 28px;
}
.cyan-dot { color: var(--accent); }

/* ===== INTRO / OFERTA ===== */
.intro-block { text-align: left; }
.intro-title { text-align: left; margin-bottom: 22px; line-height: 1.2; }
.intro-title strong { color: #000; font-weight: 700; }

.intro-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.intro-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 400;
  color: #1f2937;
}
.intro-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.intro-note {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
  padding: 0;
  border-left: none;
  background: transparent;
  border-radius: 0;
  margin-bottom: 26px;
}
.intro-note strong { color: #374151; font-weight: 700; }

/* ===== OPCOES COM LETRA (faturamento / investimento) ===== */
.step-disclaimer {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
  text-align: left;
  margin-bottom: 22px;
}

.step-options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.step-options.grid-2 { grid-template-columns: 1fr 1fr; }

.opt-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 400;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
  text-align: left;
}
.opt-btn strong { font-weight: 700; }
.opt-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.opt-btn:active,
.opt-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.opt-btn:focus { outline: none; }
.opt-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.step-options--lettered .opt-btn.opt-lettered {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.opt-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #f3f4f6;
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7280;
  transition: all 0.18s var(--ease-out);
}
.opt-lettered:hover .opt-letter { border-color: var(--accent); color: var(--accent); }
.opt-lettered.selected .opt-letter { background: var(--accent); border-color: var(--accent); color: #fff; }

.step-continue { margin-top: 18px; }
.step-sub--lead { font-size: 1.05rem; font-weight: 600; color: #000; margin-bottom: 6px; }

/* ===== INPUTS (estilo linha / underline) ===== */
.step-form { display: flex; flex-direction: column; gap: 0; }

.step-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.2s var(--ease-out);
  margin-bottom: 24px;
}
.step-input-wrap:focus-within {
  background: transparent;
  border-color: var(--accent);
  box-shadow: none;
}

/* Sem icone de prefixo (estilo da referencia)... */
.step-input-icon { display: none; }
/* ...exceto o "+55" do telefone (tela 3 e form de agendamento) */
.step[data-step="3"] .step-input-icon,
.step-input-wrap:has(#agd-telefone) .step-input-icon {
  display: flex;
  align-items: center;
  padding: 0 10px 0 0;
  color: #374151;
  border: none;
  font-size: 0.98rem;
  font-weight: 400;
}

.step-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #111;
  width: 100%;
  min-width: 0;
}
.step-input::placeholder { color: #9ca3af; }

/* ===== BOTAO PRINCIPAL (azul solido, auto-width, alinhado a esquerda) ===== */
.hero-cta--block {
  display: inline-flex;
  width: auto;
  align-self: flex-start;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 26px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.18s var(--ease-out);
}
/* Mata os brilhos/gloss herdados de .hero-cta da landing raiz */
.qualificacao-body .hero-cta::before,
.qualificacao-body .hero-cta::after { display: none !important; }

.hero-cta--block:hover { background: var(--accent-hover); border: none; box-shadow: none; }
.hero-cta--block:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== CARD REUNIAO (agendamento) ===== */
.meeting-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-softer);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.meeting-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
}
.meeting-info { display: flex; flex-direction: column; gap: 2px; }
.meeting-title {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000;
}
.meeting-dur { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--muted); }

.agendamento-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid #eceef1; }
.agendamento-data-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 14px;
}

/* ===== CALENDARIO ===== */
.calendar-wrapper { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav {
  background: #fff;
  border: 1px solid var(--line);
  color: #374151;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s var(--ease-out);
}
.cal-nav:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.cal-nav:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.cal-month {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: capitalize;
  color: #000;
}
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #9ca3af;
  text-transform: uppercase;
  padding: 6px 0;
}
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-body);
}
.cal-day.empty { cursor: default; pointer-events: none; }
.cal-day.disabled { color: #cbd0d6; cursor: not-allowed; pointer-events: none; }
.cal-day.available { background: var(--accent-soft); border-color: var(--accent-softer); }
.cal-day.available:hover { background: var(--accent-softer); border-color: var(--accent); transform: translateY(-1px); }
.cal-day.selected { background: var(--accent); color: #fff; font-weight: 700; border-color: var(--accent); }
.cal-day.today::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  margin-top: 22px;
}

.cal-slots { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eceef1; }
.cal-slots-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: center;
}
.cal-slots-title span { color: var(--accent); }
.cal-slots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; }
.cal-slot {
  background: #fff;
  border: 1px solid var(--line);
  color: #374151;
  padding: 12px 8px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
}
.cal-slot:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.cal-slot.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== RESULT BLOCKS (success / rejected) ===== */
.result-block { text-align: center; padding: 8px 0; }
.result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid var(--line);
  color: #9ca3af;
  margin-bottom: 18px;
}
.result-icon.success { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.35); color: #16a34a; }
.result-text { margin-bottom: 22px; max-width: 460px; margin-left: auto; margin-right: auto; color: #374151; }
.result-cta {
  margin-bottom: 18px;
  padding-left: 18px;
  padding-right: 18px;
  white-space: nowrap;
  background: #25D366 !important;
  border: none !important;
  color: #fff !important;
  box-shadow: none !important;
}
.result-cta:hover { background: #20bd5a !important; box-shadow: none !important; }
.result-confirm {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-softer);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 auto 22px;
  max-width: 380px;
  display: inline-block;
}
.step-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.18s var(--ease-out);
}
.step-back-link:hover { color: var(--accent); background: var(--accent-soft); }

/* Tela de sucesso: alinhada a esquerda; link do Instagram centralizado */
.step[data-step="success"] .result-block { text-align: left; }
.step[data-step="success"] .result-text { max-width: none; margin-left: 0; margin-right: 0; }
.step[data-step="success"] .step-back-link { display: flex; justify-content: center; }

/* ===== LOADING ===== */
.loading-block { text-align: center; padding: 24px 0; }
.loading-bar { width: 100%; height: 5px; background: #eceef1; border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.loading-bar-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; }
.loading-title { margin-bottom: 4px !important; }
.loading-dots::after { content: ""; animation: dots 1.4s steps(3, end) infinite; }
@keyframes dots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .qualificacao-main { padding: 52px 18px 72px; }
  .qualificacao-logo { margin-bottom: 40px; }
  .step-options.grid-2 { grid-template-columns: 1fr; }
  .step-input { font-size: 16px; } /* >=16px evita auto-zoom do iOS */
  .step[data-step="agendamento"] .step-title { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .step,
  .opt-btn,
  .cal-day,
  .cal-slot,
  .qualificacao-progress-fill,
  .loading-bar-fill {
    animation: none !important;
    transition: none !important;
  }
}
