/* Página de agendamento do cliente */

body.agendar {
  padding: 0 20px 64px;
}

.page-header {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 0 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--forest);
}

.page-header .tagline {
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-align: right;
}

main.wrap {
  max-width: 640px;
  margin: 0 auto;
}

.intro {
  padding: 36px 0 8px;
}

.intro h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 10px;
}

.intro p {
  color: var(--ink-soft);
  max-width: 52ch;
}

/* Stepper -------------------------------------------------------------- */

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 36px;
  list-style: none;
  padding: 0;
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.stepper .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}
.stepper li.done .dot { background: var(--forest); }
.stepper li.active .dot { background: var(--gold); }
.stepper li.active,
.stepper li.done { color: var(--ink); font-weight: 600; }
.stepper .rule {
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

/* Steps ------------------------------------------------------------------ */

.step { display: none; }
.step.active { display: block; animation: rise 0.25s ease; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .step.active { animation: none; }
}

.back-link {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-link:hover { color: var(--forest); }

.step h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.step > p.step-sub {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* Cards de tipo de consulta ---------------------------------------------- */

.type-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.type-card {
  text-align: left;
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  background: var(--surface);
  border-radius: 4px;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.type-card:hover { background: var(--forest-tint); }

.type-card .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.type-card .name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.type-card .price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
}
:root[data-theme="dark"] .type-card .price { color: var(--gold); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .type-card .price { color: var(--gold); }
}

.type-card .desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.type-card .meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* Seleção de horário ------------------------------------------------------ */

.selected-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 12px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.selected-type-chip .swatch {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--forest);
}

.date-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
}
.date-chip {
  flex: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  cursor: pointer;
  min-width: 64px;
}
.date-chip .dow { display: block; font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.date-chip .num { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.date-chip .mon { display: block; font-size: 0.7rem; color: var(--ink-faint); }
.date-chip:hover { border-color: var(--forest); }
.date-chip.selected { border-color: var(--forest); background: var(--forest); }
.date-chip.selected .dow,
.date-chip.selected .num,
.date-chip.selected .mon { color: #fff; }

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.time-pill {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.time-pill:hover { border-color: var(--forest); }
.time-pill.selected { border-color: var(--forest); background: var(--forest); color: #fff; }

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  color: var(--ink-soft);
}
.empty-state a { color: var(--forest); }

/* Resumo + pagamento -------------------------------------------------- */

.summary-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.summary-box .line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.92rem;
}
.summary-box .line + .line { border-top: 1px solid var(--line); }
.summary-box .line .k { color: var(--ink-soft); }
.summary-box .line .v { font-weight: 600; text-align: right; }
.summary-box .line.total .v { color: var(--forest); font-size: 1.05rem; }
:root[data-theme="dark"] .summary-box .line.total .v { color: var(--gold); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .summary-box .line.total .v { color: var(--gold); }
}

.payment-area { margin-top: 22px; }
.payment-area .label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
#paypal-button-container { min-height: 45px; }
.demo-notice {
  font-size: 0.78rem;
  color: var(--gold);
  background: var(--gold-tint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

/* Confirmação --------------------------------------------------------- */

.confirm-box {
  text-align: left;
  padding: 8px 0 0;
}
.confirm-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.confirm-box h2 { margin-bottom: 8px; }
.confirm-box > p.step-sub { margin-bottom: 24px; }

.meet-cta {
  margin: 22px 0 8px;
}

.site-footer {
  max-width: 640px;
  margin: 56px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

@media (max-width: 480px) {
  .page-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .page-header .tagline { text-align: left; }
}
