/* ===== Página de agendamento — assistente em etapas (visual moderno) ===== */
:root {
  --ring: 0 0 0 4px rgba(var(--primary-rgb), .16);
  --shadow-lg: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 48px -12px rgba(30, 41, 99, .18);
  --radius-lg: 20px;
}

/* ---------- topo integrado ao hero ---------- */
.has-hero { background: #f3f5fb; }
.has-hero .topbar { display: none; }
.has-hero .brand__mark { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.has-hero .page { max-width: none; padding: 0 0 3rem; }

.hero {
  background: var(--grad);
  color: #fff;
  padding: 2.5rem 1rem 7.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
}
.hero::before { width: 520px; height: 520px; right: -140px; top: -220px; }
.hero::after { width: 380px; height: 380px; left: -160px; bottom: -220px; }
.hero__inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); letter-spacing: -.02em; max-width: 720px; margin-bottom: .75rem; }
.hero p { max-width: 640px; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.hero__features { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .925rem; }
.hero__features li { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .92); }
.hero__features .ico { background-color: #fff; width: 18px; height: 18px; }
.hero--compact { padding-bottom: 5.5rem; }
.hero--compact h1, .hero--compact p, .hero--compact .hero__features { display: none; }
.hero--compact .hero__eyebrow { margin: 0; }

/* ---------- ícones (máscaras SVG, sem dependências externas) ---------- */
.ico { display: inline-block; width: 20px; height: 20px; flex: none; background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico--clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ico--cal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ico--check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 10'/%3E%3C/svg%3E"); }
.ico--user { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.ico--key { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }

/* ---------- layout do assistente ---------- */
.wz-wrap { max-width: 1080px; margin: -5.5rem auto 0; padding: 0 1rem; position: relative; z-index: 2; }
.wz { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .wz { grid-template-columns: minmax(0, 1fr) 320px; } }
.wz__main {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 1.75rem; min-width: 0; border: 1px solid rgba(226, 232, 240, .8);
}
@media (max-width: 520px) { .wz__main { padding: 1.15rem; border-radius: 16px; } }

/* ---------- stepper ---------- */
.stepper { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; }
.stepper__item button {
  width: 100%; background: none; border: 0; padding: .25rem; font: inherit; color: var(--muted);
  display: flex; align-items: center; gap: .55rem; cursor: pointer; text-align: left; border-radius: 10px;
}
.stepper__item button:disabled { cursor: default; }
.stepper__dot {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; background: #eef2f7; color: #64748b; transition: background .25s, color .25s, box-shadow .25s;
}
.stepper__label { font-size: .85rem; font-weight: 600; line-height: 1.2; }
.stepper__item.is-active .stepper__dot { background: var(--primary); color: #fff; box-shadow: var(--ring); }
.stepper__item.is-active .stepper__label { color: var(--text); }
.stepper__item.is-done .stepper__dot { background: var(--primary-soft); color: transparent; position: relative; }
.stepper__item.is-done .stepper__dot::after {
  content: ""; position: absolute; width: 7px; height: 12px; border: solid var(--primary); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.stepper__item.is-done .stepper__label { color: var(--primary); }
@media (max-width: 640px) {
  .stepper__label { display: none; }
  .stepper__item button { justify-content: center; }
  .stepper__item.is-active .stepper__label { display: none; }
}
.progress { height: 4px; border-radius: 4px; background: #eef2f7; overflow: hidden; margin-bottom: 1.75rem; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 4px; transition: width .4s ease; }

/* ---------- etapas ---------- */
.wz-step.is-active { animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wz-step__head { margin-bottom: 1.5rem; }
.wz-step__head h2 { font-size: 1.45rem; letter-spacing: -.01em; margin-bottom: .35rem; display: block; }
.wz-step__head h2:focus { outline: none; }
.wz-step__head p { color: var(--muted); margin: 0; }
.grid-fields { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-fields { grid-template-columns: 1fr 1fr; } }
.has-hero input[type=text], .has-hero input[type=email], .has-hero input[type=tel], .has-hero textarea {
  border-color: #d5dce8; border-radius: 12px; padding: .8rem .95rem; background: #fbfcfe;
}
.has-hero input:focus, .has-hero textarea:focus { background: #fff; box-shadow: var(--ring); border-color: var(--primary); }
.field__error.center { text-align: center; }

/* ---------- quantidade ---------- */
.qty { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: .5rem 0 1rem; }
.qty__btn {
  width: 52px; height: 52px; border-radius: 14px; border: 1px solid #d5dce8; background: #fff;
  font-size: 1.6rem; line-height: 1; color: var(--primary); cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.qty__btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.qty__btn:active { transform: scale(.95); }
.has-hero #licenses {
  width: 160px; max-width: 45vw; text-align: center; font-size: 2.4rem; font-weight: 750; letter-spacing: -.02em;
  padding: .4rem .5rem; border-radius: 16px;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.chip {
  border: 1px solid #d5dce8; background: #fff; border-radius: 999px; padding: .4rem 1rem; font: inherit; font-weight: 600;
  font-size: .9rem; color: #334155; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.estimate-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-soft-2)); border: 1px solid var(--primary-border); max-width: 460px; margin: 1rem auto 0;
}
.estimate-card.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.97); opacity: .6; } 100% { transform: none; opacity: 1; } }
.estimate-card__icon {
  width: 48px; height: 48px; border-radius: 14px; flex: none; background: var(--grad); position: relative;
}
.estimate-card__icon::after {
  content: ""; position: absolute; inset: 12px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.estimate-card__label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); }
.estimate-card__value { display: block; font-size: 1.55rem; letter-spacing: -.01em; line-height: 1.25; }
.estimate-card__sub { display: block; font-size: .85rem; color: var(--muted); }
.estimate-card.is-warn { background: var(--warn-soft); border-color: #f3dc9b; }
.estimate-card.is-warn .estimate-card__icon { background: #d29b0a; }
.estimate-card.is-warn .estimate-card__label { color: var(--warn); }
#too-long { max-width: 460px; margin: .75rem auto 0; }

/* ---------- calendário (ajustes visuais) ---------- */
.has-hero .cal__day { border-radius: 12px; font-weight: 500; }
.has-hero .cal__day.is-available { background: var(--primary-soft); color: var(--primary-strong); }
.has-hero .cal__day.is-available:hover { border-color: var(--primary); transform: translateY(-1px); }
.has-hero .cal__day.is-selected { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(var(--primary-rgb), .6); }
.has-hero .cal__nav { border-radius: 12px; }
.has-hero .slot { border-radius: 12px; border-color: #d5dce8; transition: all .15s; }
.has-hero .slot:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 12px -6px rgba(var(--primary-rgb), .35); }
.has-hero .slot.is-selected { background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(var(--primary-rgb), .6); }
.has-hero .picker__placeholder, .has-hero .picker__status { border-radius: 14px; background: #f8fafd; }
.has-hero .cal__day, .has-hero .slot { transition: transform .12s, background .15s, border-color .15s; }

/* ---------- revisão ---------- */
.review { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .review { grid-template-columns: 1fr 1fr; } }
.review__block { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; background: #fbfcfe; }
.review__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.review__head h3 { margin: 0; font-size: .95rem; }
.review dl { margin: 0; display: grid; gap: .45rem; }
.review dl div { display: grid; grid-template-columns: 90px 1fr; gap: .5rem; font-size: .925rem; }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; font-weight: 600; color: var(--primary); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- navegação ---------- */
.wz-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.wz-nav #btn-next { margin-left: auto; min-width: 200px; }
.btn--lg { padding: .9rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.has-hero .btn--primary { background: var(--grad); box-shadow: 0 8px 20px -8px rgba(var(--primary-rgb), .7); }
.has-hero .btn--primary:hover { filter: brightness(1.07); }
.has-hero .btn--success { background: linear-gradient(135deg, #15803d, #22a35a); box-shadow: 0 8px 20px -8px rgba(21, 128, 61, .6); }
.btn.is-loading { opacity: .8; cursor: progress; }
.has-hero .btn--ghost { border-radius: 12px; }
@media (max-width: 520px) {
  .wz-nav { position: sticky; bottom: 0; background: #fff; margin: 1.25rem -1.15rem -1.15rem; padding: .9rem 1.15rem; border-radius: 0 0 16px 16px; box-shadow: 0 -8px 20px -12px rgba(15, 23, 42, .2); }
  .wz-nav #btn-next { min-width: 0; flex: 1; }
}

/* ---------- resumo lateral ---------- */
.wz__aside { position: relative; }
@media (min-width: 940px) { .wz__aside { position: sticky; top: 1rem; } }
.summary-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.4rem;
  border: 1px solid rgba(226, 232, 240, .8);
}
.summary-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.summary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.summary-list li { display: flex; gap: .8rem; align-items: flex-start; }
.summary-list .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); -webkit-mask: none; mask: none; position: relative; }
.summary-list .ico::after {
  content: ""; position: absolute; inset: 9px; background: var(--primary);
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.summary-list small { display: block; color: var(--muted); font-size: .78rem; }
.summary-list strong { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.summary-card__note { font-size: .8rem; color: var(--muted); margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--border); }
@media (max-width: 939px) { .wz__aside { order: -1; } .summary-card { padding: 1rem 1.1rem; } .summary-list { grid-template-columns: 1fr 1fr; gap: .75rem; } .summary-card__note { display: none; } .summary-card h3 { margin-bottom: .75rem; } }
@media (max-width: 420px) { .summary-list .ico { width: 30px; height: 30px; } .summary-list .ico::after { inset: 7px; } }

/* ---------- confirmação ---------- */
.confirm { max-width: 640px; margin: -4rem auto 0; padding: 0 1rem; position: relative; z-index: 2; }
.confirm:focus { outline: none; }
.confirm__card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2rem 1.75rem; text-align: center; }
.confirm__badge svg { width: 76px; height: 76px; margin: 0 auto 1rem; display: block; }
.confirm__badge circle { fill: #e7f6ec; stroke: #22a35a; stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s ease forwards; }
.confirm__badge path { fill: none; stroke: #15803d; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm__when { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.5rem 0 1rem; }
.confirm__when div { background: linear-gradient(135deg, var(--primary-soft), var(--primary-soft-2)); border: 1px solid var(--primary-border); border-radius: 14px; padding: .9rem; }
.confirm__when small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.confirm__when strong { font-size: 1.1rem; }
@media (max-width: 420px) { .confirm__when { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .wz-step.is-active, .estimate-card.pop, .confirm__badge circle, .confirm__badge path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- ajustes finos ---------- */
.chip.is-active, .chip.is-active:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.has-hero .cal__day { aspect-ratio: auto; height: 44px; min-height: 0; }
@media (max-width: 640px) {
  .hero { padding: 1.5rem 1rem 5.5rem; }
  .hero h1 { font-size: 1.55rem; }
  .hero p { font-size: .95rem; margin-bottom: 0; }
  .hero__features { display: none; }
  .wz-wrap { margin-top: -4.25rem; }
  .has-hero .cal__day { height: 40px; }
}
@media (max-width: 520px) {
  .wz-nav { position: static; margin: 1.25rem 0 0; padding: 1rem 0 0; box-shadow: none; border-radius: 0; }
}

/* ---------- cabeçalho somente com a logo ---------- */
.hero { padding: 2rem 1rem 6.25rem; }
.hero__inner { display: flex; justify-content: center; align-items: center; }
.hero__brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.hero__brand .brand__mark { width: 36px; height: 36px; border-radius: 10px; }
.hero__brand .brand__mark::after { left: 13px; top: 8px; width: 9px; height: 15px; }
.hero__brand--card {
  background: #fff; padding: .7rem 1.4rem; border-radius: 18px;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .45);
}
.hero__brand--plain img { filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .25)); }
.hero__brand--logo img { display: block; max-height: 64px; max-width: min(300px, 72vw); width: auto; height: auto; }
.hero__brand--plain img { max-height: 76px; }
.wz-wrap { margin-top: -4.25rem; }
.hero--compact { padding-bottom: 6.25rem; }
.confirm { margin-top: -4.25rem; }
@media (max-width: 640px) {
  .hero { padding: 1.25rem 1rem 5rem; }
  .hero__brand--logo img { max-height: 48px; }
  .hero__brand { font-size: 1.15rem; }
  .wz-wrap, .confirm { margin-top: -3.75rem; }
}

/* ---------- tamanhos mais compactos no assistente ---------- */
.wz__main { font-size: .94rem; padding: 1.5rem; }
.wz-step__head { margin-bottom: 1.15rem; }
.wz-step__head h2 { font-size: 1.2rem; }
.wz-step__head p { font-size: .9rem; }
.has-hero label { font-size: .85rem; margin-bottom: .3rem; }
.has-hero input[type=text], .has-hero input[type=email], .has-hero input[type=tel], .has-hero textarea { padding: .6rem .8rem; font-size: .92rem; border-radius: 10px; }
.has-hero .field { margin-bottom: .85rem; }
.stepper__dot { width: 26px; height: 26px; font-size: .78rem; }
.stepper__label { font-size: .8rem; }
.progress { margin-bottom: 1.35rem; }
.qty__btn { width: 42px; height: 42px; font-size: 1.3rem; border-radius: 11px; }
.has-hero #licenses { width: 130px; font-size: 1.9rem; padding: .3rem .5rem; border-radius: 12px; }
.chip { padding: .3rem .85rem; font-size: .82rem; }
.estimate-card { padding: .9rem 1.05rem; gap: .85rem; }
.estimate-card__icon { width: 40px; height: 40px; border-radius: 12px; }
.estimate-card__icon::after { inset: 10px; }
.estimate-card__value { font-size: 1.3rem; }
.estimate-card__sub { font-size: .8rem; }
.has-hero .cal__title { font-size: .95rem; }
.has-hero .cal__nav { width: 34px; height: 34px; font-size: 1.2rem; }
.has-hero .cal__day { height: 38px; font-size: .88rem; border-radius: 10px; }
.has-hero .slots__title { font-size: .85rem; }
.has-hero .slots__list { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: .4rem; }
.has-hero .slot { padding: .4rem .3rem; border-radius: 10px; }
.has-hero .slot__start { font-size: .9rem; }
.has-hero .slot__end { font-size: .7rem; }
.review__block { padding: .85rem 1rem; }
.review dl div { font-size: .88rem; }
.wz-nav { margin-top: 1.35rem; padding-top: 1rem; }
.btn--lg { padding: .62rem 1.15rem; font-size: .92rem; border-radius: 10px; }
.wz-nav #btn-next { min-width: 160px; }
.has-hero .btn { font-size: .92rem; padding: .6rem 1.05rem; border-radius: 10px; }
.summary-card { padding: 1.15rem; }
.summary-list .ico { width: 32px; height: 32px; }
.summary-list .ico::after { inset: 8px; }
.summary-list strong { font-size: .88rem; }
.summary-list small { font-size: .74rem; }
.confirm__card { padding: 1.6rem 1.4rem; }
.confirm__card h1 { font-size: 1.45rem; }
.confirm__badge svg { width: 64px; height: 64px; }
.confirm__when strong { font-size: 1rem; }
@media (min-width: 940px) { .wz { grid-template-columns: minmax(0, 1fr) 290px; } }
@media (max-width: 520px) { .wz__main { padding: 1.05rem; } .has-hero .cal__day { height: 36px; } }
