/* =============================================
   Ant — Qualificação
   Mesmo layout do funil da VA Studio: fundo branco, coluna central
   estreita, texto à esquerda, campos em linha, opções com letra,
   botão retangular. Só muda a cor (vermelho Ant) e as fontes (Space
   Grotesk no texto, Goldman no nome ANT).
============================================= */

:root {
  --accent: #F32735;
  --accent-hover: #d91c2a;
  --accent-soft: rgba(243, 39, 53, 0.06);
  --accent-softer: rgba(243, 39, 53, 0.14);
  --ink: #0b0b0c;
  --muted: #6B7280;
  --line: #d8dade;
  --font-marca: 'Goldman', 'Space Grotesk', ui-sans-serif, sans-serif;
}

/* Fundo branco: tira a vinheta escura do ant.css */
body { background: #fff; background-image: none; color: var(--ink); }
body::before { display: none; }

.main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 64px 20px 48px;
  display: flex;
  flex-direction: column;
}

/* ---------- Logo ---------- */
.logo { align-self: center; margin-bottom: 48px; flex-shrink: 0; display: block; }
.logo img { display: block; height: 64px; width: auto; }

/* Logo menor só na agenda e no agradecimento */
.main:has(.step[data-step="agendamento"].active) .logo,
.main:has(.step[data-step="success"].active) .logo { margin-bottom: 28px; }
.main:has(.step[data-step="agendamento"].active) .logo img,
.main:has(.step[data-step="success"].active) .logo img { height: 38px; }

/* ---------- Progresso ---------- */
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: #eceef1; z-index: 30; opacity: 0; transition: opacity 0.4s; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.5s var(--ds-ease-folha); }

/* ---------- Voltar ---------- */
.back { position: fixed; top: 14px; left: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: #9ca3af; z-index: 20; transition: color 0.2s; }
.back:hover { color: var(--accent); background: none; }
.back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Telas ---------- */
.steps { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 200px; }
.steps:has(.step[data-step="agendamento"].active),
.steps:has(.step[data-step="success"].active) { justify-content: flex-start; }
.step { display: none; }
.step.active { display: block; width: 100%; animation: entra 0.25s var(--ds-ease-folha); }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.step-count { display: none; }
.step-title { font-size: clamp(1.5rem, 3.5vw, 1.95rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; color: #000; margin-bottom: 10px; }
.step-sub { font-size: 1.05rem; color: var(--muted); margin-bottom: 28px; }
.step-sub strong { color: var(--ink); }
.red-dot { color: var(--accent); }

/* ---------- Abertura ---------- */
.eyebrow { display: none; }
.intro-title { font-size: clamp(1.5rem, 3.5vw, 1.95rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: #000; margin-bottom: 22px; }
.intro-title em { font-style: normal; color: inherit; }
.intro-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.intro-list li { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; line-height: 1.25; color: #1f2937; }
.intro-note { font-size: 1.05rem; font-style: italic; line-height: 1.5; color: var(--muted); margin-bottom: 26px; }
.intro-micro { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* ---------- Botões ---------- */
.btn-red, .btn-red.btn-block {
  display: inline-flex;
  width: auto;
  align-self: flex-start;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin-top: 6px;
  padding: 14px 26px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  transition: background 0.18s;
}
.btn-red:hover { background: var(--accent-hover); transform: none; }
.btn-red:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-red:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-ghost, .btn-ghost.btn-block { width: auto; align-self: flex-start; min-height: 0; padding: 12px 18px; border-radius: 4px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Campos: linha ---------- */
.step-form { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }
.field { display: flex; align-items: center; gap: 0; min-height: 0; padding: 0; margin-bottom: 24px; background: transparent; border: none; border-bottom: 1px solid var(--line); border-radius: 0; transition: border-color 0.2s; }
.field:focus-within { border-color: var(--accent); box-shadow: none; }
.field.invalid { border-color: var(--accent); }
.field-icon:not(.field-icon--text) { display: none; }
.field-icon--text { display: flex; align-items: center; padding: 0 10px 0 0; font-size: 1.05rem; font-weight: 400; color: #374151; }
.field-input { flex: 1; width: 100%; min-width: 0; height: auto; padding: 10px 2px; background: transparent; border: none; outline: none; font-family: inherit; font-size: 1.1rem; color: #111; }
.field-input::placeholder { color: #9ca3af; }
.field-error { margin: -14px 0 18px; font-size: 0.9rem; color: var(--accent); }
.field-error:empty { display: none; }

/* ---------- Opções com letra ---------- */
.options { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; border: none; }
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 0;
  padding: 16px 18px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.35;
  color: #1f2937;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.18s var(--ds-ease-folha);
}
.opt:hover { border-color: var(--accent); background: var(--accent-soft); padding-left: 18px; }
.opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt-ico { display: inline-block; vertical-align: -3px; margin-left: 2px; color: #16a34a; }
.opt-letter { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 4px; background: #f3f4f6; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 700; color: #6b7280; transition: all 0.18s; }
.opt:hover .opt-letter { border-color: var(--accent); color: var(--accent); }
.opt.selected { color: #1f2937; background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); padding-left: 18px; }
.opt.selected .opt-letter { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Agendamento ---------- */
.glass { background: transparent; border: none; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }

.meeting { display: flex; align-items: center; gap: 14px; margin: 18px 0 20px; padding: 14px 16px; background: var(--accent-soft); border: 1px solid var(--accent-softer); border-radius: 6px; }
.meeting-ico { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 6px; background: var(--accent); color: #fff; }
.meeting-title { display: block; font-size: 0.95rem; font-weight: 700; color: #000; }
.meeting-meta { font-size: 0.85rem; color: var(--muted); }

.calendar { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-month { font-size: 1.02rem; font-weight: 700; color: #000; }
.cal-nav { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 1.1rem; line-height: 1; color: #374151; transition: all 0.18s; }
.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-weekdays, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekdays { margin-bottom: 8px; }
.cal-weekdays span { text-align: center; font-size: 0.72rem; font-weight: 700; color: #9ca3af; padding: 6px 0; }
.cal-day { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 500; color: #111; background: transparent; border: 1px solid transparent; border-radius: 6px; transition: all 0.15s; }
.cal-day.empty { pointer-events: none; }
.cal-day.disabled { color: #cbd0d6; opacity: 1; cursor: not-allowed; pointer-events: none; }
.cal-day.available { font-weight: 500; background: var(--accent-soft); border-color: var(--accent-softer); }
.cal-day.available:hover { background: var(--accent-softer); border-color: var(--accent); }
.cal-day.today { text-decoration: none; }
.cal-day.today::after { content: ""; position: absolute; margin-top: 22px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cal-day.selected { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.cal-slots { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eceef1; }
.cal-slots-title { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-align: center; margin-bottom: 12px; }
.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 { min-height: 0; padding: 12px 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 0.9rem; font-weight: 600; color: #374151; transition: all 0.18s; }
.cal-slot:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.cal-slot.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.cal-empty { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted); }

.agd-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid #eceef1; }
.agd-title { font-size: 1rem; font-weight: 700; color: #000; margin-bottom: 14px; }
.agd-form .field-input { height: auto; font-size: 1.1rem; }
.agd-hint { margin-top: 10px; font-size: 0.82rem; color: #9ca3af; }

/* ---------- Resultado ---------- */
.result { display: block; text-align: left; padding: 8px 0; }
.result-icon { display: none; }
.result-text { max-width: none; margin-bottom: 22px; color: #374151; font-size: 1.05rem; }
.result-confirm { display: inline-block; max-width: 380px; margin: 0 0 22px; padding: 12px 16px; font-family: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.3; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-softer); border-radius: 6px; }
#rejected-cta { background: #25D366; border-color: #25D366; color: #fff; }
#rejected-cta:hover { background: #20bd5a; color: #fff; }

.solucoes { width: 100%; margin-top: 8px; padding-top: 22px; border-top: 1px solid #eceef1; }
.solucoes p { margin-bottom: 12px; font-size: 1.05rem; color: #374151; }
.solucoes .btn-red { margin-top: 10px; }

/* ---------- Carregando ---------- */
.spinner { width: 100%; height: 5px; margin-bottom: 18px; background: #eceef1; border-radius: 999px; position: relative; overflow: hidden; }
.spinner::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); border-radius: 999px; animation: varre 1s var(--ds-ease-folha) infinite; }
@keyframes varre { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

@media (max-width: 600px) {
  .main { padding: 52px 18px 72px; }
  .logo { margin-bottom: 40px; }
  .btn-red, .btn-red.btn-block { display: flex; width: 100%; align-self: stretch; }
  .field-input { font-size: 16px; } /* >= 16px evita zoom no iOS */
}

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