/*
 * Agendamento publico em modo WIZARD (versao de teste: /agendamento/{url}?wizard=1).
 * Camada de apresentacao por cima da pagina classica: mesmas regras, mesmas rotas, mesmos
 * botoes. Tudo escopado em .wz-on (classe no <html>), entao sem ?wizard=1 nada muda
 * (unica excecao: o texto de exemplo do telefone/nome, que estava quase invisivel).
 */

/* contraste do texto de exemplo (todas as versoes) */
#phone-name .form-control::placeholder,
#lookupAppointmentModal .form-control::placeholder,
#assinante-phone::placeholder,
#attendee-name::placeholder { color: var(--mb-text-subtle); opacity: 1}

/* ---------- um passo por vez ---------- */
.wz-on .wz-panel { display: none !important}
.wz-on .wz-panel.wz-current { display: block !important}
.wz-on .wz-panel.wz-current.wz-in-fwd { animation: wzInFwd .38s cubic-bezier(.2,.8,.2,1) both}
.wz-on .wz-panel.wz-current.wz-in-back { animation: wzInBack .38s cubic-bezier(.2,.8,.2,1) both}
.wz-on .wz-panel.wz-current.wz-out { animation: wzOut .18s ease-in both}
@keyframes wzInFwd  { from { opacity: 0; transform: translateX(22px)}  to { opacity: 1; transform: none} }
@keyframes wzInBack { from { opacity: 0; transform: translateX(-22px)} to { opacity: 1; transform: none} }
@keyframes wzOut    { from { opacity: 1} to { opacity: 0; transform: translateY(-6px)} }

/* o miolo de cada passo ocupa o espaco do passo, sem o "empilhar" de cartoes */
.wz-on .wz-panel { margin-bottom: 14px}
.wz-on .calendar-section, .wz-on .time-selection { margin-bottom: 0}

/* ---------- topo mais limpo nos passos 2-4 ---------- */
.wz-on[data-wz-step="2"] .lookup-appointment-btn, .wz-on[data-wz-step="3"] .lookup-appointment-btn, .wz-on[data-wz-step="4"] .lookup-appointment-btn,
.wz-on[data-wz-step="2"] .subscription-banner, .wz-on[data-wz-step="3"] .subscription-banner, .wz-on[data-wz-step="4"] .subscription-banner,
.wz-on[data-wz-step="2"] .content-header p, .wz-on[data-wz-step="3"] .content-header p, .wz-on[data-wz-step="4"] .content-header p { display: none !important}
.wz-on[data-wz-step="2"] .content-header, .wz-on[data-wz-step="3"] .content-header, .wz-on[data-wz-step="4"] .content-header { margin-bottom: 6px}

/* ---------- barra de progresso clicavel ---------- */
.wz-on .progress-step.completed { cursor: pointer}
.wz-on .progress-step.completed:hover .progress-step-label { color: var(--mb-on-accent)}

/* ---------- resumo do pedido (chips que tambem voltam ao passo) ---------- */
.wz-chips { display: none}
.wz-on .wz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px}
.wz-on[data-wz-step="1"] .wz-chips { display: none}
.wz-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  background: var(--mb-surface); border: 1px solid var(--mb-border); color: var(--mb-on-accent);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; line-height: 1.2; cursor: pointer;
  transition: border-color .2s, transform .2s}
.wz-chip:hover { border-color: var(--mb-accent); transform: translateY(-1px)}
.wz-chip i { color: var(--mb-accent); font-size: 12px}
.wz-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.wz-chip .wz-edit { color: var(--mb-text-subtle); font-size: 11px}

/* ---------- barra de voltar ---------- */
.wz-back { display: none}
.wz-on .wz-back.show {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--mb-text-muted);
  border: 1px solid var(--mb-border); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600;
  margin: 0 0 14px; cursor: pointer; transition: border-color .2s, color .2s}
.wz-on .wz-back.show:hover { border-color: var(--mb-accent); color: var(--mb-accent)}

/* ---------- passo 1: lista de servicos (no lugar do select nativo) ---------- */
.wz-svc { display: none}
.wz-on .wz-svc { display: block}
.wz-on #seu-servico-body select.form-select, .wz-on #acompanhante-servico-body select.form-select { display: none}
.wz-svc-search {
  width: 100%; background: var(--mb-surface); border: 1px solid var(--mb-border); color: var(--mb-text);
  border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 10px}
.wz-svc-search:focus { outline: none; border-color: var(--mb-accent)}
.wz-svc-list { display: grid; gap: 8px}
.wz-svc-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  background: var(--mb-surface); border: 1px solid var(--mb-border); color: var(--mb-text);
  border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s}
.wz-svc-item:hover { border-color: var(--mb-accent); background: var(--mb-surface)}
.wz-svc-item:active { transform: scale(.99)}
.wz-svc-item.selected { border-color: var(--mb-accent); background: rgba(0,122,255,0.08)}
.wz-svc-name { font-weight: 600; font-size: 15px; line-height: 1.25}
.wz-svc-meta { display: block; font-size: 12px; color: var(--mb-text-subtle); margin-top: 3px}
.wz-svc-price { font-weight: 700; color: var(--mb-accent); white-space: nowrap}
.wz-svc-empty { color: var(--mb-text-subtle); padding: 12px 4px; font-size: 14px}

/* atalhos (assinante / mais de uma pessoa) como botoes discretos */
.wz-on #assinante-toggle, .wz-on #multi-pessoa-toggle {
  display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--mb-border); border-radius: 999px;
  padding: 8px 14px; color: var(--mb-text-muted) !important; font-size: 13px !important; transition: border-color .2s, color .2s}
.wz-on #assinante-toggle:hover, .wz-on #multi-pessoa-toggle:hover { border-color: var(--mb-accent); color: var(--mb-accent) !important}
.wz-on #assinante-shortcut, .wz-on #multi-pessoa-shortcut { margin-bottom: 10px !important}

/* ---------- janela final: resumo primeiro, depois os dados ---------- */
.wz-on #phone-name .modal-body { display: flex; flex-direction: column}
.wz-on #phone-name .appointment-summary { order: -1; margin-bottom: 18px}

@media (prefers-reduced-motion: reduce) {
  .wz-on .wz-panel.wz-current.wz-in-fwd, .wz-on .wz-panel.wz-current.wz-in-back, .wz-on .wz-panel.wz-current.wz-out { animation-duration: .01s}
}

/* ---------- calendario: dia sem expediente ---------- */
.wz-on .cal-day.closed { opacity: .28; text-decoration: line-through; cursor: not-allowed; background: transparent; box-shadow: none}
.wz-on .cal-day.closed:hover { transform: none}

/* ---------- passo 4: horarios por periodo, sem rolagem interna ---------- */
.wz-on .buttons-container { max-height: none !important; overflow: visible !important}
.wz-on .time-slots-legend { display: none !important}
.wz-on .time-slots-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important}
.wz-on .time-slot-btn { padding: 13px 6px !important; min-width: 0 !important; border-left-width: 1px !important; border-left-color: var(--mb-border) !important; background: var(--mb-surface) !important; border-radius: 12px !important}
.wz-on .time-slot-btn:hover, .wz-on .time-slot-btn.selected { background: var(--mb-action) !important; color: var(--mb-on-accent) !important; border-color: var(--mb-accent) !important}
.wz-on .time-slot-btn.has-provider { flex-direction: column; gap: 2px}
.wz-on .time-slot-provider { font-size: 10px; font-weight: 500; opacity: .8}
.wz-period { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mb-text-subtle)}
.wz-period:first-child { margin-top: 0}
.wz-period i { color: var(--mb-accent)}
.wz-period::after { content: ""; flex: 1; height: 1px; background: var(--mb-border)}
@media (max-width: 380px) { .wz-on .time-slots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important} }

/* ---------- passo 1: topo compacto para a lista de servicos aparecer logo ---------- */
.wz-on .content-header { margin-bottom: 10px}
.wz-on .content-header h1 { font-size: 24px; margin-bottom: 4px}
.wz-on .content-header p { font-size: 13px; margin-bottom: 10px}
.wz-on .lookup-appointment-btn { padding: 10px 16px !important; font-size: 13px !important; min-height: 0 !important}
.wz-on .subscription-banner { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between; gap: 10px; padding: 10px 14px !important; margin-bottom: 12px !important}
.wz-on .subscription-banner .banner-content { display: flex; align-items: center; gap: 10px; flex-direction: row !important; text-align: left}
.wz-on .subscription-banner .banner-icon { width: 34px !important; height: 34px !important; font-size: 15px !important; flex: none; margin: 0 !important}
.wz-on .subscription-banner .banner-text h4 { font-size: 14px !important; margin: 0 !important}
.wz-on .subscription-banner .banner-text p { display: none}
.wz-on .subscription-banner .banner-cta { width: auto !important; padding: 8px 14px !important; font-size: 13px !important; white-space: nowrap; margin: 0 !important}
.wz-on .progress-bar-container { margin-bottom: 12px !important}

/* =====================================================================
   PREMIUM: transicoes, entradas escalonadas e microinteracoes
   ===================================================================== */
:root { --wz-ease: cubic-bezier(.22, 1, .36, 1)}

/* ---- troca de etapa: fade + deslize + leve desfoque/escala ---- */
.wz-on .wz-panel.wz-current.wz-in-fwd  { animation: wzInFwd .3s var(--wz-ease) both}
.wz-on .wz-panel.wz-current.wz-in-back { animation: wzInBack .3s var(--wz-ease) both}
.wz-on .wz-panel.wz-current.wz-out     { animation: wzOut .08s ease-in both}
@keyframes wzInFwd  { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px)} to { opacity: 1; transform: none; filter: blur(0)} }
@keyframes wzInBack { from { opacity: 0; transform: translateY(-14px) scale(.985); filter: blur(6px)} to { opacity: 1; transform: none; filter: blur(0)} }
@keyframes wzOut    { from { opacity: 1; transform: none; filter: blur(0)} to { opacity: 0; transform: translateY(-10px) scale(.985); filter: blur(5px)} }

/* ---- itens entram em cascata (so quando o passo entra) ---- */
.wz-on .wz-in-fwd .wz-rise, .wz-on .wz-in-back .wz-rise { animation: wzRise .3s var(--wz-ease) both; animation-delay: calc(var(--i, 0) * 25ms + 40ms)}
@keyframes wzRise { from { opacity: 0; transform: translateY(14px)} to { opacity: 1; transform: none} }

/* dias do calendario e horarios aparecem quando chegam do servidor */
.wz-on .cal-day[data-day] { animation: wzPop .45s var(--wz-ease) both; animation-delay: calc(var(--i, 0) * 14ms)}
.wz-on .time-slot-btn { animation: wzPop .45s var(--wz-ease) both; animation-delay: calc(var(--i, 0) * 18ms)}
.wz-on .wz-period { animation: wzRise .5s var(--wz-ease) both; animation-delay: calc(var(--i, 0) * 18ms)}
@keyframes wzPop { from { opacity: 0; transform: translateY(8px) scale(.92)} to { opacity: 1; transform: none} }

/* chips do resumo deslizam para dentro */
.wz-chip { animation: wzChip .5s var(--wz-ease) both; animation-delay: calc(var(--i, 0) * 70ms)}
@keyframes wzChip { from { opacity: 0; transform: translateY(-8px) scale(.96)} to { opacity: 1; transform: none} }
.wz-back.show { animation: wzChip .45s var(--wz-ease) both}

/* ---- barra de progresso: preenchimento suave, brilho e "pulo" ao concluir ---- */
.wz-on .progress-line { transition: width .7s var(--wz-ease) !important; background: var(--mb-action) !important; background-size: 200% 100%; animation: wzFlow 3.2s linear infinite; box-shadow: 0 0 12px rgba(0,98,204,0.55)}
@keyframes wzFlow { to { background-position: -200% 0} }
.wz-on .progress-step .progress-step-circle { transition: transform .4s var(--wz-ease), background .4s, box-shadow .4s, border-color .4s}
.wz-on .progress-step.active .progress-step-circle { animation: wzBeat 2.4s ease-in-out infinite}
.wz-on .progress-step.completed .progress-step-circle { animation: wzDone .6s var(--wz-ease)}
@keyframes wzBeat { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,98,204,0.45)} 50% { box-shadow: 0 0 0 9px rgba(0,98,204,0)} }
@keyframes wzDone { 0% { transform: scale(.7)} 60% { transform: scale(1.22)} 100% { transform: scale(1)} }

/* ---- selecao com feedback tatil ---- */
.wz-on .wz-svc-item, .wz-on .provider-card, .wz-on .cal-day, .wz-on .time-slot-btn { -webkit-tap-highlight-color: transparent}
.wz-on .wz-svc-item.selected, .wz-on .provider-card.selected { animation: wzPick .5s var(--wz-ease); box-shadow: 0 0 0 1px var(--mb-action), 0 10px 30px -12px rgba(0,98,204,0.45)}
.wz-on .cal-day.selected, .wz-on .time-slot-btn.selected { transform: scale(1.05) !important}
@keyframes wzPick { 0% { transform: scale(1)} 40% { transform: scale(.965)} 100% { transform: scale(1)} }
.wz-on .wz-svc-item, .wz-on .provider-card { position: relative; overflow: hidden}
.wz-on .wz-svc-item::after, .wz-on .provider-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, var(--mb-overlay-2) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s var(--wz-ease); pointer-events: none}
.wz-on .wz-svc-item:hover::after, .wz-on .provider-card:hover::after { transform: translateX(120%)}
.wz-on .provider-card { transition: transform .3s var(--wz-ease), border-color .3s, box-shadow .3s}
.wz-on .provider-card:hover { transform: translateY(-3px)}

/* ---- brilho ambiente que acompanha a etapa ---- */
.wz-glow { display: none}
.wz-on .wz-glow { display: none }
.wz-on[data-wz-step="1"] .wz-glow { --gx: 85%; --gy: 6%}
.wz-on[data-wz-step="2"] .wz-glow { --gx: 12%; --gy: 22%}
.wz-on[data-wz-step="3"] .wz-glow { --gx: 88%; --gy: 50%}
.wz-on[data-wz-step="4"] .wz-glow { --gx: 15%; --gy: 80%}
@property --gx { syntax: '<percentage>'; inherits: true; initial-value: 80%}
@property --gy { syntax: '<percentage>'; inherits: true; initial-value: 8%}
.wz-on .wz-glow { transition: --gx .9s var(--wz-ease), --gy .9s var(--wz-ease)}

/* ---- janela final e confirmar com acabamento ---- */
.wz-on .modal-backdrop.show { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px)}
.wz-on #phone-name .modal-content { animation: wzRise .55s var(--wz-ease) both}
.wz-on #btn-save-event { position: relative; overflow: hidden}
.wz-on #btn-save-event::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, var(--mb-overlay-3) 50%, transparent 70%); transform: translateX(-130%); animation: wzShine 3.4s ease-in-out infinite}
@keyframes wzShine { 0%, 55% { transform: translateX(-130%)} 100% { transform: translateX(130%)} }

@media (prefers-reduced-motion: reduce) {
  .wz-on .wz-panel.wz-current, .wz-on .wz-rise, .wz-on .cal-day, .wz-on .time-slot-btn, .wz-chip, .wz-on .progress-line,
  .wz-on .progress-step .progress-step-circle, .wz-on #btn-save-event::after, .wz-on .wz-period { animation: none !important; transition: none !important}
}

/* =====================================================================
   AJUSTE: animacao mais sutil e rapida (sem desfoque/escala, sem loops)
   ===================================================================== */
.wz-on .wz-panel.wz-current.wz-in-fwd  { animation: wzInFwd2 .32s cubic-bezier(.25, .8, .25, 1) both}
.wz-on .wz-panel.wz-current.wz-in-back { animation: wzInBack2 .32s cubic-bezier(.25, .8, .25, 1) both}
.wz-on .wz-panel.wz-current.wz-out     { animation: wzOut2 .16s ease-out both}
@keyframes wzInFwd2  { from { opacity: 0; transform: translateY(10px)} to { opacity: 1; transform: none} }
@keyframes wzInBack2 { from { opacity: 0; transform: translateY(-8px)} to { opacity: 1; transform: none} }
@keyframes wzOut2    { from { opacity: 1} to { opacity: 0} }

/* cascata curta: so os primeiros itens, quase instantanea */
.wz-on .wz-in-fwd .wz-rise, .wz-on .wz-in-back .wz-rise { animation: wzRise2 .34s cubic-bezier(.25, .8, .25, 1) both; animation-delay: calc(var(--i, 0) * 28ms + 40ms)}
@keyframes wzRise2 { from { opacity: 0; transform: translateY(8px)} to { opacity: 1; transform: none} }
.wz-on .cal-day[data-day] { animation: wzFade2 .3s ease-out both; animation-delay: calc(var(--i, 0) * 8ms)}
.wz-on .time-slot-btn { animation: wzFade2 .3s ease-out both; animation-delay: calc(var(--i, 0) * 10ms)}
.wz-on .wz-period { animation: wzFade2 .3s ease-out both; animation-delay: calc(var(--i, 0) * 10ms)}
@keyframes wzFade2 { from { opacity: 0} to { opacity: 1} }
.wz-chip { animation: wzFade2 .25s ease-out both; animation-delay: 0s}
.wz-back.show { animation: wzFade2 .25s ease-out both}

/* sem animacao infinita: progresso so preenche; o passo atual fica estatico */
.wz-on .progress-line { animation: none !important; background: var(--mb-action) !important; transition: width .45s cubic-bezier(.25, .8, .25, 1) !important; box-shadow: 0 0 10px rgba(0,98,204,0.35)}
.wz-on .progress-step.active .progress-step-circle { animation: none}
.wz-on .progress-step.completed .progress-step-circle { animation: none}
.wz-on #btn-save-event::after { display: none}
.wz-on #phone-name .modal-content { animation: none}
.wz-on .wz-glow { opacity: .6}
.wz-on .wz-svc-item.selected, .wz-on .provider-card.selected { animation: none}
.wz-on .provider-card:hover { transform: none}

/* "Reduzir movimento": mantem so o fade de opacidade (sem deslize/pulso), em vez de cortar tudo seco */
@media (prefers-reduced-motion: reduce) {
  .wz-on .wz-panel.wz-current.wz-in-fwd, .wz-on .wz-panel.wz-current.wz-in-back { animation: wzFade2 .35s ease-out both !important}
  .wz-on .wz-panel.wz-current.wz-out { animation: wzOut2 .15s ease-out both !important}
  .wz-on .wz-in-fwd .wz-rise, .wz-on .wz-in-back .wz-rise { animation: wzFade2 .3s ease-out both !important; animation-delay: calc(var(--i, 0) * 20ms) !important}
  .wz-on .cal-day[data-day], .wz-on .time-slot-btn, .wz-on .wz-period, .wz-chip, .wz-back.show { animation: wzFade2 .3s ease-out both !important}
  .wz-on .progress-line { transition: width .45s ease !important}
}

/* resposta imediata ao toque: o passo atual esmaece enquanto os dados do proximo carregam */
.wz-on .wz-panel.wz-wait { opacity: .45; transition: opacity .2s ease; pointer-events: none}
@keyframes wzOut2 { to { opacity: 0} }

/* =====================================================================
   LATERAL UTIL (desktop): resumo ao vivo + atalhos. No celular a lateral nao existe (menu/drawer).
   ===================================================================== */
.wz-side { display: none}
@media (min-width: 993px) {
  .wz-on .company-sidebar { display: flex; flex-direction: column; padding: 26px 22px}
  .wz-on .company-logo-container { margin-bottom: 18px; padding-bottom: 18px}
  .wz-on .company-logo, .wz-on .company-logo-placeholder { width: 84px; height: 84px}
  .wz-on .company-logo-placeholder { font-size: 34px}
  .wz-on .company-name { font-size: 20px; margin-top: 12px}
  .wz-on .wz-side { display: block}
  .wz-on .company-info { margin-top: auto; padding-top: 14px}
  .wz-on .company-info .info-item { margin-bottom: 10px; padding: 12px}

  /* o que a lateral ja mostra sai do miolo */
  .wz-on .wz-chips, .wz-on .lookup-appointment-btn, .wz-on .subscription-banner { display: none !important}
  .wz-on .content-header h1 { font-size: 26px}
}

.wz-side-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mb-text-subtle); margin-bottom: 12px; display: flex; align-items: center; gap: 8px}
.wz-side-title i { color: var(--mb-accent)}

.wz-sum { list-style: none; margin: 0; padding: 0; position: relative}
.wz-sum::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--mb-border)}
.wz-sum li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 8px 9px 0; border-radius: 12px; cursor: default}
.wz-sum li.can-go { cursor: pointer}
.wz-sum li.can-go:hover { background: var(--mb-overlay-1)}
.wz-dot { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mb-surface); border: 2px solid var(--mb-border); display: grid; place-items: center; color: transparent; font-size: 12px; transition: background .3s, border-color .3s, color .3s}
.wz-sum li.current .wz-dot { border-color: var(--mb-accent); box-shadow: 0 0 0 4px rgba(0,98,204,0.14)}
.wz-sum li.done .wz-dot { background: var(--mb-action); border-color: var(--mb-accent); color: var(--mb-on-accent)}
.wz-sum-txt { min-width: 0; flex: 1; line-height: 1.25}
.wz-sum-txt small { display: block; font-size: 11px; color: var(--mb-text-subtle); text-transform: uppercase; letter-spacing: .08em}
.wz-sum-txt b { display: block; font-size: 14px; font-weight: 600; color: var(--mb-text-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.wz-sum li.done .wz-sum-txt b, .wz-sum li.current .wz-sum-txt b { color: var(--mb-text)}
.wz-sum-edit { display: none; font-size: 12px; color: var(--mb-accent)}
.wz-sum li.done.can-go:hover .wz-sum-edit { display: inline}

.wz-total { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--mb-surface); border: 1px solid var(--mb-border)}
.wz-total span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--mb-text-subtle)}
.wz-total b { font-size: 22px; color: var(--mb-accent)}

.wz-side-actions { display: grid; gap: 8px}
.wz-act { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; text-decoration: none; background: transparent; color: var(--mb-text-muted); border: 1px solid var(--mb-border); border-radius: 12px; padding: 11px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background .2s}
.wz-act i { width: 18px; text-align: center; color: var(--mb-accent)}
.wz-act:hover { border-color: var(--mb-accent); color: var(--mb-text); background: rgba(0,122,255,0.05)}
@media (min-width: 993px) {
  .wz-on .company-info .info-item:has(.fa-crown) { display: none}
  .wz-on .wz-total { margin: 12px 0 12px; padding: 12px 14px}
  .wz-on .wz-sum li { padding: 7px 8px 7px 0}
}

/* =====================================================================
   HORARIOS organizados + TIPOGRAFIA ajustada para celular
   ===================================================================== */
/* o container dos horarios nao pode virar coluna estreita (regra responsiva herdada) */
.wz-on #buttons-hours { display: block !important; width: 100% !important}
.wz-on .time-slots-grid {
  display: grid !important; width: 100% !important;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)) !important; gap: 8px !important}
.wz-on .time-slot-btn { font-size: 15px !important; font-variant-numeric: tabular-nums; line-height: 1.1; min-height: 46px; display: flex !important; align-items: center; justify-content: center}
.wz-period { margin-top: 16px}
.wz-on .time-header { margin-bottom: 8px}
.wz-on .selected-date { margin-bottom: 4px}

@media (max-width: 600px) {
  .wz-on .content-header h1 { font-size: 21px}
  .wz-on .content-header p { font-size: 12.5px}
  .wz-on .step-title, .wz-on .calendar-header h3, .wz-on .time-header h4 { font-size: 17px !important}
  .wz-on .step-number { width: 34px; height: 34px; font-size: 15px}
  .wz-on .form-label { font-size: 14px}
  .wz-on .wz-svc-name { font-size: 14px}
  .wz-on .wz-svc-meta { font-size: 11.5px}
  .wz-on .wz-svc-price { font-size: 14px}
  .wz-on .wz-svc-item { padding: 12px 14px}
  .wz-on .provider-card-name { font-size: 13px}
  .wz-on .wz-chip { font-size: 12px; padding: 7px 11px}
  .wz-on .wz-back.show { font-size: 13px; padding: 8px 14px}
  .wz-on #assinante-toggle, .wz-on #multi-pessoa-toggle { font-size: 12.5px !important; padding: 7px 12px}
  .wz-on .lookup-appointment-btn { font-size: 12.5px !important}
  .wz-on .subscription-banner .banner-text h4 { font-size: 13px !important}
  .wz-on .progress-step-label { font-size: 11px}
  .wz-on .cal-month-title { font-size: 16px}
  .wz-on .cal-day { font-size: 14px}
  .wz-on .selected-date, .wz-on #day-selected { font-size: 13px}
  .wz-on .time-slot-btn { font-size: 14px !important; min-height: 44px}
  .wz-period { font-size: 11px; margin-top: 14px}
  .wz-on .time-slots-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 7px !important}
  .wz-on .step-container { padding: 20px 16px}
  .wz-on .calendar-section, .wz-on .time-selection { padding: 18px 14px}
  .wz-on #phone-name .modal-title { font-size: 17px}
  .wz-on #phone-name .card-text { font-size: 13.5px}
}
@media (max-width: 340px) { .wz-on .time-slots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important} }

/* =====================================================================
   TESOURA que corta o caminho entre as etapas
   ===================================================================== */
.wz-on .progress-steps::before { background: repeating-linear-gradient(90deg, var(--mb-border) 0 7px, transparent 7px 13px) !important; height: 2px}
.wz-on .progress-line { transition: width .75s cubic-bezier(.45, .05, .25, 1) !important; z-index: 1}
.wz-scissors { display: none}
.wz-on .wz-scissors {
  display: block; position: absolute; top: 50%; left: 0; z-index: 3; pointer-events: none; width: 34px; height: 22px;
  transform: translate(-6px, -50%);   /* ponta das laminas rente ao fim do corte */
  transition: left .75s cubic-bezier(.45, .05, .25, 1);
  filter: drop-shadow(0 0 6px rgba(0,98,204,0.55))}
.wz-on .wz-scissors svg { display: block; transform-origin: 50% 50%; transition: transform .25s}
.wz-on .wz-scissors.wz-back svg { transform: scaleX(-1)}
.wz-on .wz-scissors.wz-noanim { transition: none}
.wz-on .wz-scissors.wz-noanim ~ .progress-line, .wz-on .progress-steps:has(.wz-noanim) .progress-line { transition: none !important}
.wz-blade { transform-box: view-box; transform-origin: 12px 11px}
.wz-on .wz-scissors.cutting .wz-blade-top { animation: wzSnipTop .17s ease-in-out 5}
.wz-on .wz-scissors.cutting .wz-blade-bot { animation: wzSnipBot .17s ease-in-out 5}
.wz-on .wz-scissors.wz-final.cutting .wz-blade-top { animation: wzSnipTop .2s ease-in-out 6}
.wz-on .wz-scissors.wz-final.cutting .wz-blade-bot { animation: wzSnipBot .2s ease-in-out 6}
@keyframes wzSnipTop { 0%, 100% { transform: rotate(0)} 50% { transform: rotate(-16deg)} }
@keyframes wzSnipBot { 0%, 100% { transform: rotate(0)} 50% { transform: rotate(16deg)} }
.wz-on .progress-step-circle.wz-arrive { animation: wzArrive .5s cubic-bezier(.3, 1.6, .5, 1)}
@keyframes wzArrive { 0% { transform: scale(1)} 45% { transform: scale(1.22)} 100% { transform: scale(1)} }

/* a tesoura so aparece enquanto corta; depois some para nao cobrir o numero da etapa */
.wz-on .wz-scissors { opacity: 0; transition: left .75s cubic-bezier(.45, .05, .25, 1), opacity .3s ease, top .3s ease}
.wz-on .wz-scissors.cutting { opacity: 1}
.wz-on .wz-scissors.wz-final { top: -2px}

/* =====================================================================
   CONCLUSAO PREMIUM
   ===================================================================== */
/* 1) botao Confirmar: tesoura passa cortando enquanto salva */
.wz-on #btn-save-event.wz-saving { position: relative; overflow: hidden}
.wz-on #btn-save-event.wz-saving::before {
  content: ""; position: absolute; left: -46px; top: 50%; width: 46px; height: 30px; transform: translateY(-50%); z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'><path d='M12 11 L33 8.6 L33 10.2 Z' fill='%23111'/><path d='M12 11 L33 13.4 L33 11.8 Z' fill='%23333'/><circle cx='5' cy='5' r='3.4' fill='none' stroke='%23111' stroke-width='2'/><circle cx='5' cy='17' r='3.4' fill='none' stroke='%23111' stroke-width='2'/><path d='M7.4 7.4 L12 11 L7.4 14.6' stroke='%23111' stroke-width='2' fill='none'/></svg>") center / contain no-repeat;
  animation: wzBtnCut 1.1s cubic-bezier(.45, .05, .25, 1) infinite}
.wz-on #btn-save-event.wz-saving::after { display: block !important; content: ""; position: absolute; left: 0; top: 50%; height: 2px; width: 100%; background: repeating-linear-gradient(90deg, rgba(11,31,77,0.55) 0 6px, transparent 6px 11px); transform-origin: left; animation: wzBtnLine 1.1s cubic-bezier(.45, .05, .25, 1) infinite !important}
@keyframes wzBtnCut { from { left: -46px} to { left: calc(100% + 6px)} }
@keyframes wzBtnLine { from { transform: scaleX(0); opacity: 1} 85% { opacity: 1} to { transform: scaleX(1); opacity: 0} }

/* overlay de conclusao */
.wzc { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; overflow-x: hidden; overflow-y: auto; padding: 24px 0;
  background: radial-gradient(700px 500px at 50% 22%, rgba(0,122,255,0.12), transparent 70%), rgba(11,31,77,0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s ease}
.wzc.show { opacity: 1}
.wzc-inner { position: relative; width: min(440px, 92vw); text-align: center; margin: auto}

/* 2) corte atravessando a tela e abrindo o selo */
.wzc-cut { position: absolute; left: 50%; width: 100vw; margin-left: -50vw; top: 56px; height: 30px; transform: translateY(-50%); pointer-events: none}
.wzc-cut-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--mb-action) 0 8px, transparent 8px 14px); transform-origin: left; transform: scaleX(0); opacity: 0}
.wzc-cut-sc { position: absolute; top: 50%; left: -60px; transform: translateY(-50%); filter: drop-shadow(0 0 8px rgba(0,98,204,0.7)); opacity: 0}
.wzc.play .wzc-cut-line { animation: wzcLine 1s cubic-bezier(.45, .05, .25, 1) .15s both}
.wzc.play .wzc-cut-sc { animation: wzcRun 1s cubic-bezier(.45, .05, .25, 1) .15s both}
.wzc.play .wzc-cut-sc .wz-blade-top { animation: wzSnipTop .14s ease-in-out 7}
.wzc.play .wzc-cut-sc .wz-blade-bot { animation: wzSnipBot .14s ease-in-out 7}
@keyframes wzcLine { 0% { transform: scaleX(0); opacity: 1} 80% { transform: scaleX(1); opacity: 1} 100% { transform: scaleX(1); opacity: 0} }
@keyframes wzcRun { 0% { left: -60px; opacity: 1} 95% { opacity: 1} 100% { left: calc(100% + 20px); opacity: 0} }

.wzc-seal { position: relative; width: 112px; height: 112px; margin: 0 auto; opacity: 0; transform: scale(.6)}
.wzc.play .wzc-seal { animation: wzcSeal .55s cubic-bezier(.3, 1.5, .5, 1) 1s both}
@keyframes wzcSeal { from { opacity: 0; transform: scale(.6)} to { opacity: 1; transform: none} }
.wzc-seal svg { display: block; filter: drop-shadow(0 0 18px rgba(0,98,204,0.45))}
.wzc-ring { stroke-dasharray: 327; stroke-dashoffset: 327; transform-origin: 60px 60px; transform: rotate(-90deg)}
.wzc-check { stroke-dasharray: 80; stroke-dashoffset: 80}
.wzc.play .wzc-ring { animation: wzcDraw .7s ease-out 1s both}
.wzc.play .wzc-check { animation: wzcDraw .4s ease-out 1.5s both}
@keyframes wzcDraw { to { stroke-dashoffset: 0} }

/* 3) confete amarelo e preto */
.wzc-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none}
.wzc-p { position: absolute; left: 0; top: 0; width: 8px; height: 12px; border-radius: 2px; opacity: 0}
.wzc-p.blade { width: 5px; height: 16px; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0}
.wzc.play .wzc-p { animation: wzcFly 1.7s cubic-bezier(.15, .7, .3, 1) calc(1.45s + var(--d)) both}
@keyframes wzcFly {
  0% { opacity: 1; transform: translate(0, 0) rotate(0)}
  60% { opacity: 1}
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 140px)) rotate(var(--r))}
}

/* 4) frase com o nome */
.wzc-title { margin: 20px 0 4px; font-family: var(--font-display, 'Sora', sans-serif); font-size: 32px; font-weight: 700; letter-spacing: -.02em; color: var(--mb-text); opacity: 0}
.wzc-sub { margin: 0 0 6px; color: var(--mb-text-muted); font-size: 15px; opacity: 0}
.wzc.play .wzc-title { animation: wzcRise .6s cubic-bezier(.22, 1, .36, 1) 1.55s both}
.wzc.play .wzc-sub { animation: wzcRise .6s cubic-bezier(.22, 1, .36, 1) 1.7s both}
@keyframes wzcRise { from { opacity: 0; transform: translateY(16px)} to { opacity: 1; transform: none} }

/* 5) ingresso com borda picotada */
.wzc-ticket { --y: 86px; position: relative; margin: 20px auto 0; text-align: left; color: var(--mb-text); background: var(--mb-surface); border-radius: 18px; opacity: 0;
  -webkit-mask: var(--y) left / 51% 100% no-repeat, var(--y) right / 51% 100% no-repeat;
  mask: var(--y) left / 51% 100% no-repeat, var(--y) right / 51% 100% no-repeat;
  box-shadow: 0 30px 60px -20px rgba(11,31,77,0.3)}
.wzc.play .wzc-ticket { animation: wzcTicket .75s cubic-bezier(.22, 1, .36, 1) 1.85s both}
@keyframes wzcTicket { from { opacity: 0; transform: translateY(40px) rotate(-1.5deg)} to { opacity: 1; transform: none} }
.wzc-t-top { height: var(--y); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; background: var(--mb-action); border-radius: 18px 18px 0 0}
.wzc-t-top small, .wzc-row small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; font-weight: 600}
.wzc-time { display: block; font-family: var(--font-display, 'Sora', sans-serif); font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums}
.wzc-date { font-weight: 700; font-size: 15px; text-align: right; text-transform: capitalize; max-width: 48%; line-height: 1.25}
.wzc-perf { height: 0; border-top: 2px dashed var(--mb-border); margin: 0 14px}
.wzc-t-bot { padding: 14px 22px 16px; display: grid; gap: 10px}
.wzc-row b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25}
.wzc-price b { font-size: 20px}

.wzc-btn { margin-top: 18px; width: 100%; border: 0; border-radius: 999px; padding: 16px 20px; font-size: 16px; font-weight: 700; color: var(--mb-on-accent); background: var(--mb-action); cursor: pointer; opacity: 0; box-shadow: 0 16px 40px -14px rgba(0,98,204,0.8); position: relative; overflow: hidden}
.wzc-btn i { margin-left: 6px}
.wzc-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, var(--mb-overlay-3) 50%, transparent 70%); transform: translateX(-130%)}
.wzc.play .wzc-btn { animation: wzcRise .55s cubic-bezier(.22, 1, .36, 1) 2.5s both}
.wzc.play .wzc-btn::after { animation: wzShine 1.4s ease-in-out 3.1s 2}

/* convite para instalar o app da barbearia, entre o ticket e o botao (spec app-cliente, 14) */
.wzc-app { margin: 14px auto 0; display: grid; grid-template-columns: 48px 1fr; gap: 6px 12px; align-items: center; text-align: left;
           padding: 14px 16px; border-radius: 18px; background: var(--mb-surface); border: 1px solid rgba(0,98,204,0.55); color: var(--mb-text-muted); opacity: 0}
.wzc-app img { border-radius: 12px; grid-row: span 2}
.wzc-app-txt b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; color: var(--mb-text)}
.wzc-app-txt span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mb-text-subtle); line-height: 1.3}
.wzc-app-btn { grid-column: 2; justify-self: start; margin-top: 4px; padding: 9px 16px; border-radius: 999px; background: var(--mb-action); color: var(--mb-on-accent) !important;
               font-weight: 700; font-size: 14px; text-decoration: none}
.wzc-app-btn i { margin-right: 6px}
.wzc.play .wzc-app { animation: wzcRise .55s cubic-bezier(.22, 1, .36, 1) 2.3s both}

@media (max-width: 420px) {
  .wzc-title { font-size: 27px}
  .wzc-time { font-size: 34px}
}
/* reduzir movimento: so fades, confete bem menor */
@media (prefers-reduced-motion: reduce) {
  .wzc.play .wzc-p { animation-duration: 1.1s}
  .wzc.play .wzc-cut-sc .wz-blade { animation: none}
}

/* =====================================================================
   AUDITORIA: lateral compacta em telas baixas e alvos de toque maiores
   ===================================================================== */
@media (min-width: 993px) and (max-height: 860px) {
  .wz-on .company-sidebar { padding: 16px 18px}
  .wz-on .company-logo-container { margin-bottom: 10px; padding-bottom: 10px; border-bottom-width: 1px}
  .wz-on .company-logo, .wz-on .company-logo-placeholder { width: 56px; height: 56px}
  .wz-on .company-logo-placeholder { font-size: 24px}
  .wz-on .company-name { font-size: 17px; margin-top: 8px}
  .wz-side-title { margin-bottom: 8px}
  .wz-on .wz-sum li { padding: 4px 8px 4px 0}
  .wz-dot { width: 24px; height: 24px}
  .wz-sum::before { left: 11px}
  .wz-on .wz-total { margin: 8px 0; padding: 8px 12px}
  .wz-total b { font-size: 18px}
  .wz-side-actions { gap: 6px}
  .wz-act { padding: 8px 12px; font-size: 12.5px}
  .wz-on .company-info { padding-top: 8px}
  .wz-on .company-info .info-item { margin-bottom: 6px; padding: 8px 10px}
  .wz-on .company-info .info-icon { width: 30px; height: 30px; font-size: 13px}
}
@media (max-width: 600px) {
  .wz-on .cal-day[data-day] { min-height: 40px}
  .wz-on .wz-chip { min-height: 36px}
}

/* conclusao em celulares baixos (ex.: 320x568): tudo cabe sem rolar */
@media (max-height: 720px) {
  .wzc { padding: 12px 0}
  .wzc-seal, .wzc-seal svg { width: 84px; height: 84px}
  .wzc-cut { top: 42px}
  .wzc-title { font-size: 24px; margin-top: 12px}
  .wzc-sub { font-size: 13.5px}
  .wzc-ticket { --y: 70px; margin-top: 12px}
  .wzc-time { font-size: 30px}
  .wzc-t-bot { padding: 10px 18px 12px; gap: 7px}
  .wzc-row b { font-size: 13.5px}
  .wzc-price b { font-size: 17px}
  .wzc-btn { margin-top: 12px; padding: 13px 18px; font-size: 15px}
}

/* velocidade: sem mix-blend-mode no brilho de fundo (forcava recomposicao da pagina inteira a cada quadro) */
.wz-on .wz-glow { mix-blend-mode: normal; opacity: .7; contain: strict}

/* =====================================================================
   BLACK PIANO (teste: ?wizard=1&piano=1): preto profundo e brilhante, com reflexo e bordas de luz
   ===================================================================== */
html.wz-piano {}
html.wz-piano, html.wz-piano body {
  background:
    radial-gradient(1100px 520px at 12% -8%, var(--mb-overlay-2), transparent 62%),
    radial-gradient(900px 480px at 96% 108%, var(--mb-overlay-1), transparent 60%),
    var(--mb-bg) fixed !important}
/* reflexo diagonal, como luz sobre laca preta */
html.wz-piano .wz-glow { mix-blend-mode: normal; opacity: 1; contain: strict;
  background: linear-gradient(112deg, transparent 28%, var(--mb-overlay-1) 38%, var(--mb-overlay-1) 44%, transparent 56%), radial-gradient(520px 360px at 92% 4%, rgba(0,122,255,0.06), transparent 70%) !important}

/* superficies laqueadas */
html.wz-piano .step-container, html.wz-piano .calendar-section, html.wz-piano .time-selection,
html.wz-piano .progress-bar-container, html.wz-piano .company-sidebar, html.wz-piano .mobile-header, html.wz-piano .drawer {
  background: var(--mb-overlay-1), var(--mb-bg) !important;
  border-color: var(--mb-border) !important;
  box-shadow: inset 0 1px 0 rgba(11,31,77,0.05), inset 0 -1px 0 rgba(11,31,77,0.27), 0 30px 60px -30px rgba(11,31,77,0.3) !important}
html.wz-piano .wz-svc-item, html.wz-piano .provider-card, html.wz-piano .wz-chip, html.wz-piano .wz-act, html.wz-piano .wz-total,
html.wz-piano .time-slot-btn, html.wz-piano .cal-day.available, html.wz-piano .info-item, html.wz-piano .calendar-compact, html.wz-piano .wz-svc-search {
  background: var(--mb-overlay-1), var(--mb-bg) !important;
  border-color: var(--mb-border) !important;
  box-shadow: inset 0 1px 0 rgba(11,31,77,0.04)}
html.wz-piano .wz-svc-item:hover, html.wz-piano .provider-card:hover, html.wz-piano .wz-act:hover { border-color: rgba(0,98,204,0.6) !important}
html.wz-piano .wz-svc-item.selected, html.wz-piano .provider-card.selected { background: rgba(0,122,255,0.14), var(--mb-bg) !important; border-color: var(--mb-accent) !important}
html.wz-piano .time-slot-btn:hover, html.wz-piano .time-slot-btn.selected { background: var(--mb-action) !important; box-shadow: inset 0 1px 0 rgba(11,31,77,0.3), 0 8px 24px -10px rgba(0,98,204,0.6) !important}
html.wz-piano .cal-day.selected { background: var(--mb-action) !important; color: var(--mb-on-accent) !important}
html.wz-piano .progress-bar-container { box-shadow: inset 0 1px 0 rgba(11,31,77,0.05), 0 20px 40px -26px rgba(11,31,77,0.14) !important}
html.wz-piano .modal-content { background: var(--mb-overlay-1), var(--mb-bg) !important; border: 1px solid var(--mb-border) !important}
html.wz-piano .form-control { background: var(--mb-bg) !important; border-color: var(--mb-border) !important}
html.wz-piano .wzc { background: radial-gradient(800px 520px at 50% 18%, var(--mb-overlay-1), transparent 70%), rgba(11,31,77,0.55)}

/* Sem "piscada": os passos tem tambem a entrada da pagina classica (.fade-in, de opacidade 0).
   Quando o wizard tira a classe da entrada dele (show, 500 ms depois), o navegador reiniciava a
   classica do zero e o passo sumia e voltava. No wizard quem anima e o wizard. */
.wz-on .wz-panel.fade-in, .wz-on .wz-panel .fade-in { animation: none}
