/* ═══════════════════════════════════════════════════════════
   Nexo — Agendamento de call (calendário + horários)
   Dark premium, acento gold #FEC80C, General Sans / Satoshi
   ═══════════════════════════════════════════════════════════ */

:root {
  --ag-bg:        #0A0A0A;
  --ag-surface:   #101010;
  --ag-surface-2: #161616;
  --ag-line:      rgba(255,255,255,.09);
  --ag-line-2:    rgba(255,255,255,.16);
  --ag-txt:       #FFFFFF;
  --ag-txt-2:     rgba(255,255,255,.62);
  --ag-txt-3:     rgba(255,255,255,.40);
  --ag-gold:      #FEC80C;
  --ag-blue:      #3A86F4;
  --ag-green:     #6EC632;
  --ag-red:       #FF5C5C;
  --ag-r:         14px;
  --ag-r-lg:      20px;
}

* { box-sizing: border-box; }

/* O atributo hidden perde pra qualquer display explícito (ex.: .ag-prog-row
   é flex) — sem isto, esconder a barra de progresso não surtia efeito. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body.ag-body {
  margin: 0;
  background: var(--ag-bg);
  color: var(--ag-txt);
  font-family: 'General Sans', 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.ag-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 15% -5%, rgba(254,200,12,.14) 0%, transparent 68%),
    radial-gradient(ellipse 50% 40% at 90% 8%, rgba(58,134,244,.10) 0%, transparent 70%);
}

/* ── Header ──────────────────────────────────────────────── */
.ag-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 32px;
}
.ag-logo img { height: 24px; width: auto; display: block; }
.ag-exit {
  font-size: 14px;
  color: var(--ag-txt-3);
  text-decoration: none;
  transition: color .2s ease;
}
.ag-exit:hover { color: var(--ag-txt); }

/* ── Layout ──────────────────────────────────────────────── */
.ag-main {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 8px 24px 56px;
}

.ag-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  grid-template-areas:
    "side  panel"
    "extra panel";
  gap: 24px 28px;
  align-items: start;
}
.ag-side  { grid-area: side; }
.ag-panel { grid-area: panel; }
.ag-extra { grid-area: extra; padding: 0 4px; }

/* ── Coluna da oferta ────────────────────────────────────── */
.ag-side { padding: 12px 4px 0; }

.ag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(254,200,12,.28);
  background: rgba(254,200,12,.08);
  color: var(--ag-gold);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ag-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ag-gold);
  box-shadow: 0 0 0 0 rgba(254,200,12,.6);
  animation: agPulse 2.4s ease-out infinite;
}
@keyframes agPulse {
  0%   { box-shadow: 0 0 0 0 rgba(254,200,12,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(254,200,12,0); }
  100% { box-shadow: 0 0 0 0 rgba(254,200,12,0); }
}

.ag-title {
  margin: 20px 0 12px;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.025em;
}
.ag-sub {
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ag-txt-2);
  max-width: 46ch;
}

.ag-meta { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.ag-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: var(--ag-txt-2);
}
.ag-meta-item svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--ag-gold); margin-top: 1px; }

.ag-value {
  padding: 18px 20px;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-r);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.ag-value-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ag-txt-3);
}
.ag-value-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ag-value-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.86);
}
.ag-value-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ag-green);
  box-shadow: 0 0 12px rgba(110,198,50,.5);
}

.ag-note {
  margin: 20px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ag-txt-3);
  max-width: 46ch;
}

/* ── Painel do agendamento ───────────────────────────────── */
.ag-panel {
  position: relative;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-r-lg);
  background: var(--ag-surface);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  padding: 22px;
  overflow: hidden;
}
.ag-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(254,200,12,.5), transparent);
}

/* ── Escassez (números reais do backend) ─────────────────── */
.ag-scarcity {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(254,200,12,.22);
  border-radius: var(--ag-r);
  background: linear-gradient(180deg, rgba(254,200,12,.07), rgba(254,200,12,.02));
}
.ag-scarcity-row { display: flex; align-items: center; gap: 12px; }
.ag-scarcity-num {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--ag-gold);
  font-variant-numeric: tabular-nums;
}
.ag-scarcity-lbl { font-size: 13px; line-height: 1.35; color: var(--ag-txt-2); }
.ag-scarcity-bar {
  height: 5px;
  margin: 14px 0 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.ag-scarcity-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ag-gold), #FFE082);
  transition: width .5s ease;
}
.ag-scarcity-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ag-txt-3); }
.ag-scarcity.critico { border-color: rgba(255,92,92,.35); background: linear-gradient(180deg, rgba(255,92,92,.08), rgba(255,92,92,.02)); }
.ag-scarcity.critico .ag-scarcity-num { color: #FF8A8A; }
.ag-scarcity.critico .ag-scarcity-bar span { background: linear-gradient(90deg, #FF5C5C, #FF9B9B); }

/* ── Barra de progresso ──────────────────────────────────── */
.ag-prog-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ag-prog-label { font-size: 12.5px; font-weight: 600; color: var(--ag-txt-2); }
.ag-prog-pct { font-size: 12.5px; font-weight: 600; color: var(--ag-gold); font-variant-numeric: tabular-nums; }
.ag-prog-track { height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); margin-bottom: 20px; overflow: hidden; }
.ag-prog-fill {
  height: 100%; width: 14%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ag-gold), #FFE082);
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

/* ── Quiz ────────────────────────────────────────────────── */
.ag-q-titulo {
  margin: 0 0 6px;
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
}
.ag-q-sub { margin: 0 0 18px; font-size: 14px; color: var(--ag-txt-3); line-height: 1.5; }
.ag-q-ops { display: grid; gap: 9px; }
.ag-q-op {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid var(--ag-line-2);
  background: var(--ag-surface-2);
  color: var(--ag-txt);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ag-q-op:hover { border-color: rgba(254,200,12,.5); background: #1A1A1A; }
.ag-q-op:focus-visible { outline: 2px solid var(--ag-blue); outline-offset: 2px; }
.ag-q-op.sel { border-color: var(--ag-gold); background: rgba(254,200,12,.1); }
.ag-q-marca {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--ag-line-2);
  position: relative;
  transition: border-color .18s ease;
}
.ag-q-op:hover .ag-q-marca { border-color: rgba(254,200,12,.6); }
.ag-q-op.sel .ag-q-marca { border-color: var(--ag-gold); }
.ag-q-op.sel .ag-q-marca::after {
  content: '';
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--ag-gold);
}

/* Campo livre do quiz (abre ao escolher "Outro") */
.ag-q-livre { margin-top: 12px; animation: agFade .22s ease both; }
.ag-q-livre label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ag-txt-2);
}
.ag-q-livre-row { display: flex; gap: 8px; }
.ag-q-livre input {
  flex: 1;
  min-width: 0;
  padding: 14px 15px;
  border-radius: 11px;
  border: 1px solid var(--ag-gold);
  background: #1A1A1A;
  color: var(--ag-txt);
  font-family: inherit;
  font-size: 16px;   /* 16px evita zoom automático no iOS */
  font-weight: 500;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ag-q-livre input::placeholder { color: rgba(255,255,255,.28); }
.ag-q-livre input:focus { box-shadow: 0 0 0 3px rgba(254,200,12,.13); }
.ag-q-livre input.is-invalid { border-color: var(--ag-red); box-shadow: 0 0 0 3px rgba(255,92,92,.12); }
.ag-q-livre-ok {
  flex-shrink: 0;
  padding: 0 20px;
  border: none;
  border-radius: 11px;
  background: var(--ag-gold);
  color: #0A0A0A;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s ease;
}
.ag-q-livre-ok:hover { filter: brightness(1.08); }
.ag-q-livre-ok:focus-visible { outline: 2px solid var(--ag-blue); outline-offset: 2px; }
@media (max-width: 560px) {
  .ag-q-livre-row { flex-direction: column; }
  .ag-q-livre-ok { padding: 14px 20px; }
}

/* ── Disponibilidade ao vivo ─────────────────────────────── */
.ag-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(110,198,50,.28);
  background: rgba(110,198,50,.08);
  font-size: 12px;
  font-weight: 600;
  color: var(--ag-green);
}
.ag-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ag-green);
  animation: agBlink 1.8s ease-in-out infinite;
}
@keyframes agBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.ag-live.alerta { border-color: rgba(255,92,92,.3); background: rgba(255,92,92,.08); color: #FF9B9B; }
.ag-live.alerta .ag-live-dot { background: #FF5C5C; }

.ag-slots-restam {
  margin: 12px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ag-gold);
  text-align: center;
}

/* ── Reserva temporária ──────────────────────────────────── */
.ag-hold {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -8px 0 18px;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid rgba(110,198,50,.28);
  background: rgba(110,198,50,.07);
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
}
.ag-hold svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ag-green); }
.ag-hold b { font-variant-numeric: tabular-nums; color: var(--ag-green); font-weight: 700; }
.ag-hold.expirando { border-color: rgba(255,92,92,.35); background: rgba(255,92,92,.08); }
.ag-hold.expirando svg, .ag-hold.expirando b { color: #FF8A8A; }

/* ── Toast ───────────────────────────────────────────────── */
.ag-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  max-width: min(440px, calc(100vw - 32px));
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid var(--ag-line-2);
  background: #141414;
  box-shadow: 0 18px 44px rgba(0,0,0,.6);
  font-size: 14px;
  line-height: 1.45;
  animation: agToastIn .25s ease both;
}
.ag-toast.alerta { border-color: rgba(255,92,92,.4); }
.ag-toast.bom { border-color: rgba(110,198,50,.4); }
@keyframes agToastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Passos */
.ag-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--ag-line);
  flex-wrap: wrap;
}
.ag-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ag-txt-3);
  transition: color .25s ease;
}
.ag-step + .ag-step::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--ag-line-2);
  margin-right: 8px;
}
.ag-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ag-line-2);
  font-size: 12px;
  font-weight: 600;
  transition: all .25s ease;
}
.ag-step.is-active { color: var(--ag-txt); }
.ag-step.is-active .ag-step-n {
  background: var(--ag-gold);
  border-color: var(--ag-gold);
  color: #0A0A0A;
}
.ag-step.is-done { color: var(--ag-txt-2); }
.ag-step.is-done .ag-step-n {
  background: rgba(110,198,50,.16);
  border-color: rgba(110,198,50,.5);
  color: var(--ag-green);
}

/* Estágios */
.ag-stage { display: none; }
.ag-stage.is-active { display: block; animation: agFade .28s ease both; }
@keyframes agFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.ag-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: 24px;
}

/* ── Calendário ──────────────────────────────────────────── */
.ag-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.ag-cal-month {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: capitalize;
}
.ag-cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--ag-line);
  background: transparent;
  color: var(--ag-txt-2);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ag-cal-nav svg { width: 17px; height: 17px; }
.ag-cal-nav:hover:not(:disabled) { background: rgba(255,255,255,.06); color: var(--ag-txt); border-color: var(--ag-line-2); }
.ag-cal-nav:disabled { opacity: .3; cursor: not-allowed; }

.ag-cal-dows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.ag-cal-dows span {
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ag-txt-3);
  padding: 4px 0;
}

.ag-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.ag-day {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.028);
  color: var(--ag-txt-2);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.ag-day.is-empty { background: transparent; cursor: default; pointer-events: none; }
.ag-day:disabled {
  color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.015);
  cursor: not-allowed;
}
.ag-day.has-slots {
  color: var(--ag-txt);
  background: rgba(254,200,12,.07);
  border-color: rgba(254,200,12,.22);
}
.ag-day.has-slots::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ag-gold);
}
.ag-day.has-slots:hover { background: rgba(254,200,12,.16); border-color: rgba(254,200,12,.45); }
.ag-day.is-today { border-color: var(--ag-line-2); }
.ag-day.is-selected {
  background: var(--ag-gold);
  border-color: var(--ag-gold);
  color: #0A0A0A;
  font-weight: 600;
}
.ag-day.is-selected::after { background: rgba(0,0,0,.55); }
.ag-day:focus-visible { outline: 2px solid var(--ag-blue); outline-offset: 2px; }

.ag-cal-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ag-txt-3);
}
.ag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ag-gold); display: inline-block; }

/* ── Horários ────────────────────────────────────────────── */
.ag-slots { display: flex; flex-direction: column; min-height: 100%; }
.ag-slots-title {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ag-txt-2);
}
.ag-slots-list {
  display: grid;
  gap: 8px;
  max-height: 336px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.ag-slots-list::-webkit-scrollbar { width: 6px; }
.ag-slots-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 99px; }

.ag-slot {
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--ag-line-2);
  background: transparent;
  color: var(--ag-txt);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.ag-slot:hover { background: var(--ag-gold); border-color: var(--ag-gold); color: #0A0A0A; font-weight: 600; }
.ag-slot:focus-visible { outline: 2px solid var(--ag-blue); outline-offset: 2px; }

.ag-empty {
  margin: 0;
  padding: 18px 14px;
  border-radius: 11px;
  border: 1px dashed var(--ag-line-2);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ag-txt-3);
  text-align: center;
}

.ag-skeleton {
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(255,255,255,.045) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.045) 75%);
  background-size: 200% 100%;
  animation: agShimmer 1.3s linear infinite;
}
@keyframes agShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Etapa 2 — formulário ────────────────────────────────── */
.ag-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 8px 12px 8px 8px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ag-txt-3);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.ag-back svg { width: 16px; height: 16px; }
.ag-back:hover { color: var(--ag-txt); background: rgba(255,255,255,.05); }

.ag-picked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: var(--ag-r);
  border: 1px solid rgba(254,200,12,.3);
  background: rgba(254,200,12,.07);
  font-size: 15px;
  line-height: 1.4;
}
.ag-picked strong { font-weight: 600; }
.ag-picked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(254,200,12,.14);
  color: var(--ag-gold);
}
.ag-picked-icon svg { width: 19px; height: 19px; }
.ag-picked-sub { display: block; font-size: 13px; color: var(--ag-txt-3); margin-top: 2px; }

.ag-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ag-field { display: flex; flex-direction: column; gap: 7px; }
.ag-field-full, .ag-form > .ag-error, .ag-form > .ag-submit, .ag-form > .ag-privacy { grid-column: 1 / -1; }
.ag-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ag-txt-2);
}
.ag-req { color: var(--ag-gold); }
.ag-opt { color: var(--ag-txt-3); font-size: 12px; }

.ag-field input,
.ag-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--ag-line-2);
  background: var(--ag-surface-2);
  color: var(--ag-txt);
  font-family: inherit;
  font-size: 16px; /* 16px evita o zoom automático no iOS */
  font-weight: 500;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ag-field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.ag-field input::placeholder,
.ag-field textarea::placeholder { color: rgba(255,255,255,.28); }
.ag-field input:focus,
.ag-field textarea:focus {
  outline: none;
  border-color: var(--ag-gold);
  background: #1A1A1A;
  box-shadow: 0 0 0 3px rgba(254,200,12,.13);
}
.ag-field input.is-invalid { border-color: var(--ag-red); }

.ag-error {
  margin: 2px 0 0;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,92,92,.35);
  background: rgba(255,92,92,.1);
  color: #FF9B9B;
  font-size: 14px;
}

.ag-submit {
  position: relative;
  margin-top: 4px;
  padding: 15px 22px;
  border: none;
  border-radius: 12px;
  background: var(--ag-gold);
  color: #0A0A0A;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s ease, opacity .2s ease;
}
.ag-submit:hover:not(:disabled) { filter: brightness(1.08); }
.ag-submit:disabled { opacity: .65; cursor: wait; }
.ag-submit:focus-visible { outline: 2px solid var(--ag-blue); outline-offset: 3px; }
.ag-spinner { display: none; }
.ag-submit.is-loading .ag-submit-label { visibility: hidden; }
.ag-submit.is-loading .ag-spinner {
  display: block;
  position: absolute;
  top: 50%; left: 50%;
  width: 19px; height: 19px;
  margin: -9.5px 0 0 -9.5px;
  border: 2.5px solid rgba(0,0,0,.25);
  border-top-color: #0A0A0A;
  border-radius: 50%;
  animation: agSpin .7s linear infinite;
}
@keyframes agSpin { to { transform: rotate(360deg); } }

.ag-privacy {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ag-txt-3);
  text-align: center;
}

/* ── Etapa 3 — confirmação ───────────────────────────────── */
.ag-done { text-align: center; padding: 14px 4px 8px; }
.ag-done-check {
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(110,198,50,.14);
  border: 1px solid rgba(110,198,50,.4);
  color: var(--ag-green);
  animation: agPop .4s cubic-bezier(.2,.9,.3,1.3) both;
}
.ag-done-check svg { width: 28px; height: 28px; }
@keyframes agPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.ag-done-title { margin: 0 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.ag-done-sub { margin: 0 auto 22px; max-width: 42ch; font-size: 15px; color: var(--ag-txt-2); }

.ag-ticket {
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--ag-r);
  border: 1px solid var(--ag-line);
  background: var(--ag-surface-2);
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.ag-ticket-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.ag-ticket-row span:first-child { color: var(--ag-txt-3); }
.ag-ticket-row span:last-child { font-weight: 600; text-align: right; }

.ag-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ag-btn-primary, .ag-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter .2s ease, background .2s ease, border-color .2s ease;
}
.ag-btn-primary svg, .ag-btn-ghost svg { width: 18px; height: 18px; }
.ag-btn-primary { background: var(--ag-gold); color: #0A0A0A; border: 1px solid var(--ag-gold); }
.ag-btn-primary:hover { filter: brightness(1.08); }
.ag-btn-ghost { background: transparent; color: var(--ag-txt); border: 1px solid var(--ag-line-2); }
.ag-btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }

/* ── Agenda fechada ──────────────────────────────────────── */
.ag-closed { text-align: center; padding: 26px 10px; }
.ag-closed h2 { margin: 0 0 10px; font-size: 22px; font-weight: 600; }
.ag-closed p { margin: 0 auto 20px; max-width: 44ch; color: var(--ag-txt-2); font-size: 15px; }

/* ── Footer ──────────────────────────────────────────────── */
.ag-footer {
  position: relative;
  z-index: 1;
  padding: 22px 32px 30px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ag-txt-3);
}

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .ag-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "side" "panel" "extra";
    gap: 22px;
    max-width: 620px;
  }
  .ag-side { padding-top: 0; }
  .ag-meta { margin-bottom: 4px; }
  .ag-title { font-size: clamp(28px, 7vw, 34px); }
  .ag-cols { grid-template-columns: 1fr; gap: 22px; }
  .ag-slots-list {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .ag-header { padding: 18px 20px; }
  .ag-main { padding: 4px 16px 40px; }
  .ag-panel { padding: 18px 15px; border-radius: 16px; }
  .ag-form { grid-template-columns: 1fr; }
  .ag-steps { gap: 6px; font-size: 12.5px; }
  .ag-step + .ag-step::before { width: 10px; margin-right: 6px; }
  .ag-step { font-size: 12.5px; }
  .ag-day { min-height: 42px; font-size: 14px; border-radius: 10px; }
  .ag-done-actions { flex-direction: column; }
  .ag-btn-primary, .ag-btn-ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── v9: quiz com campos de texto/contato e resumo da confirmação ── */
.ag-q-campos { display: grid; gap: 4px; }
.ag-q-ok-full { width: 100%; margin-top: 18px; padding: 14px 20px; }
.ag-resumo-bloco { margin: 18px 0 20px; }
.ag-resumo-titulo {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ag-txt-3);
}
.ag-resumo-bloco .ag-ticket { margin-bottom: 10px; }
.ag-resumo-editar {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--ag-txt-3);
  text-decoration: underline;
  cursor: pointer;
}
.ag-resumo-editar:hover { color: var(--ag-txt); }

/* ── v11: linha do motivo real da escassez ── */
.ag-scarcity-why {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ag-txt-3);
}
