/* =====================================================================
   Página de agendamento (wizard) — mesmo visual premium da landing.
   Carregado depois de public.css: sobrescreve os componentes do wizard.
   Cores da marca: --p / --s (vêm das configurações).
   ===================================================================== */
:root {
    --paper: #f6f5f1; --paper-2: #efede7; --ink: #0c0c10; --muted: #6b6b76; --line: rgba(12, 12, 16, .10);
    --grad: linear-gradient(120deg, var(--p), var(--s));
    --p-soft: color-mix(in srgb, var(--p) 12%, white);
    --p-glow: color-mix(in srgb, var(--p) 45%, transparent);
    --serif: 'Instrument Serif', Georgia, serif;
    --head: 'Inter Tight', 'Inter', system-ui, sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --nav-top: 20px;
}
body.ag { font-family: 'Inter', system-ui, sans-serif; background: var(--paper); color: var(--ink); min-height: 100vh; -webkit-font-smoothing: antialiased; position: relative; overflow-x: clip; }
body.ag.demo-mode { --nav-top: 56px; }
body.ag::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .045; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.ag em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.ag a { text-decoration: none; }
.ag-bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.ag-bg span { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; }
.ag-bg .b1 { width: 560px; height: 560px; right: -160px; top: -100px; background: color-mix(in srgb, var(--p) 40%, white); }
.ag-bg .b2 { width: 460px; height: 460px; left: -160px; bottom: -120px; background: color-mix(in srgb, var(--s) 30%, #bfe3ff); opacity: .4; }
.demo-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--grad); color: #fff; font-size: .82rem; font-weight: 600; }

/* navegação */
.ag-nav { position: fixed; top: var(--nav-top); left: 50%; transform: translateX(-50%); z-index: 80; width: min(1280px, calc(100% - 32px)); height: 64px; border-radius: 999px; padding: 0 12px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255, 255, 255, .7); backdrop-filter: blur(22px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 1px 0 #fff inset, 0 10px 40px -12px rgba(12, 12, 16, .14); }
.ag-brand { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink); min-width: 0; }
.ag-brand img { height: 30px; width: auto; }
.ag-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.ag-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.ag-nav-r { display: flex; align-items: center; gap: 6px; }
.ag-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: #3b3b45; transition: background .25s, color .25s; white-space: nowrap; }
.ag-link:hover { background: rgba(12, 12, 16, .06); color: var(--ink); }
.ag-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); color: #4a4a55; transition: background .25s, color .25s, transform .3s var(--ease); }
.ag-ic:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.ag-ic.wa:hover { background: #25d366; }

/* conteúdo */
.ag-main { max-width: 1280px; margin: 0 auto; padding: calc(var(--nav-top) + 64px + 48px) clamp(16px, 5vw, 48px) 40px; }
.ag-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.ag-eyebrow { font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ag-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ink); }
.ag-title { font-family: var(--head); font-weight: 600; font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1; letter-spacing: -.05em; }
.ag-title em { font-size: 1.08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.ag-sub { color: var(--muted); margin: 12px 0 0; max-width: 460px; }

/* stepper */
.wizard-stepper { display: flex; align-items: center; gap: 0; max-width: none; margin: 0; padding: 0; position: relative; flex: 0 1 560px; }
.wizard-stepper::before { display: none; }
.wizard-stepper .progress-line { display: none; }
.wizard-step-item { flex-direction: row; gap: 10px; flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.wizard-step-item:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--line); margin: 0 10px; min-width: 10px; }
.wizard-step-item.done:not(:last-child)::after { background: var(--ink); }
.wizard-step-item .step-circle { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-family: var(--head); font-weight: 600; font-size: .8rem; flex-shrink: 0; box-shadow: none; transform: none; animation: none; }
.wizard-step-item .step-label { font-family: var(--head); font-size: .82rem; font-weight: 500; color: var(--muted); white-space: nowrap; order: 0; }
.wizard-step-item.active .step-circle { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 0 6px color-mix(in srgb, var(--s) 16%, transparent); transform: none; animation: none; }
.wizard-step-item.active .step-label { color: var(--ink); font-weight: 600; }
.wizard-step-item.done .step-circle { background: var(--ink); border-color: var(--ink); color: #fff; }
.wizard-step-item.done .step-label { color: var(--ink); }
.wizard-step-item:not(.active) .step-label { display: none; }
.wizard-step-item.done .step-label { display: none; }

/* grid conteúdo + resumo */
.ag-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.ag-grid.has-summary { grid-template-columns: 400px minmax(0, 1fr); }
.ag-grid.has-summary .ag-summary { order: -1; }
.wizard-content-area { min-height: 320px; }
.wizard-step-animate { animation: agIn .6s var(--ease); }
@keyframes agIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* resumo (lateral escura) */
.ag-summary { background: var(--ink); color: #fff; border-radius: 32px; padding: 30px; position: sticky; top: calc(var(--nav-top) + 64px + 24px); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(12, 12, 16, .7); }
.ag-summary[hidden] { display: none; }
.ag-summary::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--p); filter: blur(100px); opacity: .45; right: -120px; top: -120px; pointer-events: none; }
.ag-summary h3 { font-family: var(--head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8c8c98; font-weight: 500; margin: 0 0 18px; position: relative; }
.ag-sum-it { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); position: relative; }
.ag-sum-it i.ic { width: 40px; height: 40px; border-radius: 13px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; flex-shrink: 0; font-size: .95rem; }
.ag-sum-it small { display: block; font-size: .72rem; color: #8c8c98; margin-bottom: 2px; }
.ag-sum-it b { font-family: var(--head); font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em; display: block; line-height: 1.25; }
.ag-sum-it span { font-size: .8rem; color: #a9a9b6; }
.ag-sum-it .ed { margin-left: auto; background: none; border: none; color: #a9a9b6; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; padding: 0; cursor: pointer; }
.ag-sum-it .ed:hover { color: #fff; }
.ag-sum-tot { margin-top: 22px; position: relative; }
.ag-sum-tot .row1 { display: flex; justify-content: space-between; align-items: flex-end; }
.ag-sum-tot small { color: #8c8c98; font-size: .8rem; }
.ag-sum-tot b { font-family: var(--head); font-size: 2.6rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.ag-sum-tot p { margin: 14px 0 0; font-size: .75rem; color: #a9a9b6; display: flex; gap: 8px; align-items: center; }
.ag-sum-tot p i { color: #22c55e; }

/* painel */
.ag .wizard-panel { background: rgba(255, 255, 255, .72); backdrop-filter: blur(18px); border: 1px solid #fff; border-radius: 32px; padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--p) 40%, transparent); }
.ag .wizard-panel-title { font-family: var(--head); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.045em; line-height: 1.05; margin-bottom: 24px; color: var(--ink); }
.ag .btn-wizard-back { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-family: var(--head); font-weight: 600; font-size: .85rem; padding: 9px 18px; transition: background .25s; }
.ag .btn-wizard-back:hover { background: var(--ink); color: #fff; }

/* cards de serviço / profissional */
.ag .select-card-glow { padding: 0; border-radius: 24px; transition: transform .45s var(--ease); }
/* borda em degradê (cores do sistema) ao passar o mouse / selecionar */
.ag .select-card-glow::before { display: block; border-radius: 24px; padding: 2px; z-index: 2; pointer-events: none; }
.ag .select-card-glow > .card-inner { background: #fff; border: 1px solid var(--line) !important; border-radius: 24px; transition: background .3s, color .3s, box-shadow .4s, border-color .3s; }
.ag .select-card-glow:hover { transform: translateY(-4px); }
.ag .select-card-glow:hover > .card-inner { box-shadow: 0 24px 50px -28px rgba(12, 12, 16, .35) !important; border-color: transparent !important; }
.ag .select-card-glow.is-selected > .card-inner { background: var(--ink); color: #fff; border-color: var(--ink) !important; }
.ag .select-card-glow.is-selected .text-muted { color: #a9a9b6 !important; }
.ag .select-card-glow.is-selected .price { color: #fff; }
.ag .service-card h5, .ag .prof-card h5 { font-family: var(--head); font-size: 1.3rem; font-weight: 500; letter-spacing: -.03em; }
.ag .service-card .price { font-family: var(--head); font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.ag .prof-card img, .ag .prof-avatar { width: 84px; height: 84px; border-radius: 28px; }
.ag .prof-avatar { background: var(--grad); font-family: var(--head); }

/* calendário (flatpickr) */
.ag .calendar-step-wrap { max-width: 440px; }
.ag .calendar-inline-wrap .flatpickr-calendar { border-radius: 26px; border: 1px solid var(--line) !important; box-shadow: none !important; background: #fff; padding: 16px 12px; }
.ag .calendar-inline-wrap .flatpickr-day { border-radius: 14px; }
.ag .calendar-inline-wrap .flatpickr-day:hover:not(.flatpickr-disabled):not(.selected) { background: var(--p-soft); }
.ag .calendar-inline-wrap .flatpickr-day.today:not(.selected) { border-color: var(--p); }
.ag .calendar-inline-wrap .flatpickr-day.selected, .ag .calendar-inline-wrap .flatpickr-day.selected:hover { background: var(--ink) !important; border-color: var(--ink) !important; box-shadow: 0 12px 20px -8px rgba(12, 12, 16, .6); }
.ag .calendar-hint-box { border: 1px dashed var(--line); background: rgba(255, 255, 255, .5); border-radius: 22px; }

/* horários */
.ag .time-step-header { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 22px; }
.ag .time-step-date { font-family: var(--head); font-size: 1.15rem; font-weight: 600; margin: 0; letter-spacing: -.02em; }
.ag .time-step-title { font-size: .9rem; color: var(--muted); font-weight: 500; }
.ag .time-slots-grid { display: block; }
.time-group { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: start; gap: 12px; margin-bottom: 18px; }
.time-group-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 16px; }
.time-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.ag .time-pill { height: 50px; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-family: var(--head); font-size: .95rem; font-weight: 500; color: var(--ink); transition: transform .3s var(--ease), background .25s, color .25s, box-shadow .3s; }
.ag .time-pill:hover { background: var(--p-soft); color: var(--ink); border-color: var(--p); transform: translateY(-2px); }
.ag .time-pill.is-selected { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 14px 26px -10px var(--p-glow); transform: none; }
.ag .wizard-step-footer { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 10px; }
.ag .wizard-step-footer .btn-wizard-nav { height: 52px; border-radius: 999px; padding: 0 24px; font-family: var(--head); font-weight: 600; font-size: .92rem; }
.ag .wizard-step-footer .btn-wizard-back-footer { background: #fff; border: 1px solid var(--line); }
.ag .wizard-step-footer .btn-wizard-continue { background: var(--ink); color: #fff; box-shadow: 0 12px 26px -10px rgba(12, 12, 16, .55); }
.ag .wizard-step-footer .btn-wizard-continue:not(:disabled):hover { opacity: 1; transform: translateY(-2px); }
.ag .wizard-step-footer .btn-wizard-continue:disabled { background: #cfcfd6; box-shadow: none; opacity: 1; }

/* formulário */
.ag .summary-chip { background: var(--p-soft); border: 1px solid color-mix(in srgb, var(--p) 22%, white); border-radius: 18px; font-size: .88rem; }
.ag .form-label { font-family: var(--head); font-weight: 600; font-size: .85rem; }
.ag .field-glow { padding: 0; background: transparent; border-radius: 18px; }
.ag .field-glow .form-control { border: 1px solid var(--line) !important; border-radius: 18px !important; background: #fff !important; padding: 15px 18px; font-size: 1rem; }
.ag .field-glow:focus-within .form-control { border-color: var(--p) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 16%, transparent) !important; }
.ag .btn-primary-custom { background: var(--ink); border: none; border-radius: 999px; height: 58px; font-family: var(--head); font-weight: 600; font-size: 1rem; box-shadow: 0 14px 30px -12px rgba(12, 12, 16, .6); transition: transform .3s var(--ease), box-shadow .3s; }
.ag .btn-primary-custom:hover { background: var(--ink); opacity: 1; transform: translateY(-2px); }
.ag .btn-primary-custom:disabled { background: #cfcfd6; box-shadow: none; }
.ag .btn-outline-primary-custom { border: 1px solid var(--ink); color: var(--ink); border-radius: 999px; }
.ag .btn-outline-primary-custom:hover { background: var(--ink); color: #fff; }
.ag .text-primary-custom { color: var(--p) !important; }
.ag .confirm-box { background: rgba(255, 255, 255, .8); border: 1px solid #fff; border-radius: 32px; padding: clamp(28px, 4vw, 52px); }
.ag .confirm-box h3 { font-family: var(--head); letter-spacing: -.04em; font-weight: 600; }
.ag .confirm-box .protocol { font-family: var(--head); color: var(--p); background: var(--p-soft); display: inline-block; padding: 8px 20px; border-radius: 999px; letter-spacing: .06em; }

/* rodapé */
.ag-foot { text-align: center; color: var(--muted); padding: 24px 16px 40px; }
.ag .whatsapp-float { z-index: 74 !important; }

/* responsivo */
@media (max-width: 1100px) {
    .ag-grid.has-summary { grid-template-columns: 340px minmax(0, 1fr); }
    .ag-link span { display: none; } .ag-link { padding: 0 12px; }
}
@media (max-width: 991px) {
    .ag-grid.has-summary { grid-template-columns: 1fr; }
    .ag-grid.has-summary .ag-summary { order: 2; position: static; border-radius: 26px; }
    .ag-head { align-items: flex-start; }
    .wizard-stepper { flex: 1 1 100%; }
    .ag-sum-it { padding: 12px 0; }
}
@media (max-width: 640px) {
    body.ag.demo-mode { --nav-top: 50px; }
    .ag-nav { height: 56px; padding: 0 10px 0 16px; }
    .ag-main { padding-top: calc(var(--nav-top) + 56px + 36px); }
    .time-group { grid-template-columns: 1fr; gap: 6px; }
    .time-group-label { padding-top: 0; }
    .time-group-grid { grid-template-columns: repeat(3, 1fr); }
    .ag .wizard-panel { border-radius: 26px; }
    .ag .wizard-step-footer .btn-wizard-nav { height: 48px; padding: 0 18px; }
    .ag .whatsapp-float { bottom: 18px !important; right: 16px !important; }
}
@media (prefers-reduced-motion: reduce) { .wizard-step-animate { animation: none; } }

/* calendário em duas colunas no desktop */
.ag .calendar-step-wrap { max-width: none; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.ag .calendar-inline-wrap { max-width: none; margin: 0; }
.ag .calendar-hint-box { margin-top: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100%; }
@media (max-width: 760px) { .ag .calendar-step-wrap { grid-template-columns: 1fr; } .ag .calendar-hint-box { display: none; } }
@media (max-width: 640px) {
    .wizard-step-item .step-label { display: none !important; }
    .wizard-step-item .step-circle { width: 30px; height: 30px; font-size: .75rem; }
    .wizard-step-item:not(:last-child)::after { margin: 0 6px; }
}
.ag .select-card-glow.service-card-wrap, .ag .select-card-glow.prof-card-wrap { border: none; background: transparent; }

/* ===== bordas em degradê (cores primária/secundária) no hover: calendário, dias e horários ===== */
.ag .time-pill { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(var(--line), var(--line)) border-box; }
.ag .time-pill:hover { border-color: transparent; background: linear-gradient(var(--p-soft), var(--p-soft)) padding-box, var(--grad) border-box; }
.ag .time-pill.is-selected { border-color: transparent; background: var(--grad) border-box; }
.ag .calendar-inline-wrap .flatpickr-calendar { border: 2px solid transparent !important; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(var(--line), var(--line)) border-box; transition: background .3s; }
.ag .calendar-inline-wrap .flatpickr-calendar:hover { background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.ag .calendar-inline-wrap .flatpickr-day { border: 2px solid transparent; }
.ag .calendar-inline-wrap .flatpickr-day:hover:not(.flatpickr-disabled):not(.selected) { border-color: transparent; background: linear-gradient(var(--p-soft), var(--p-soft)) padding-box, var(--grad) border-box; }
.ag .calendar-inline-wrap .flatpickr-day.today:not(.selected) { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
