/* ============================================================
   Agendamento online: painel (estilo app) sobre a foto de serviço
   (cfg agendar_foto) escurecida e desfocada. Usa as variáveis do
   site.css, então funciona igual no tema escuro e no claro.
   ============================================================ */
body.pg-agendar { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--bg); }
.ag-fundo { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.ag-fundo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: blur(5px) saturate(.9); transform: scale(1.06); }
.ag-fundo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 10%, rgb(var(--bg-rgb) / .42), rgb(var(--bg-rgb) / .74) 58%, rgb(var(--bg-rgb) / .92)); }

/* cabeçalho enxuto */
.ag-topo { position: relative; z-index: 5; }
.ag-topo-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 74px; }
.ag-links { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ag-voltar { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 6px; font-size: 14px; font-weight: 600; color: rgb(var(--texto-rgb) / .78); white-space: nowrap; }
.ag-voltar:hover { color: var(--texto); }
.ag-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 6px clamp(10px, 3vw, 24px) calc(40px + env(safe-area-inset-bottom)); }

/* painel */
.ag-painel { display: grid; grid-template-columns: 310px 1fr; min-height: 460px; overflow: hidden; border: 1px solid rgb(var(--texto-rgb) / .1); border-radius: 28px; background: rgb(var(--cartao-rgb) / .84); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .75); }
.ag-painel.inicio { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.resumo { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; border-right: 1px solid var(--linha); background: rgb(var(--texto-rgb) / .025); }
.resumo-loja { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--acento-forte); }
.resumo h2 { font-size: 30px; line-height: 1.05; }
.resumo-desc { font-size: 14.5px; color: var(--suave); }
.resumo ul { display: grid; gap: 12px; margin-top: 6px; }
.resumo li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.resumo li svg { width: 20px; height: 20px; flex: none; color: var(--acento); }
.resumo li.destaque { font-weight: 700; }
.resumo-end { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--linha); font-size: 13px; color: var(--fraco); }
.resumo-end svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.passo-area { min-width: 0; padding: clamp(20px, 4vw, 40px); }

/* etapas */
.progresso { display: flex; gap: 6px; margin-bottom: 26px; }
.progresso li { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; color: var(--fraco); }
.progresso li::before { content: ''; height: 4px; border-radius: 4px; background: var(--linha2); transition: background .3s; }
.progresso li.feito::before, .progresso li.atual::before { background: var(--acento); }
.progresso li.atual { color: var(--texto); }
.progresso li.feito { color: var(--suave); }
.progresso b { display: flex; align-items: center; gap: 4px; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.progresso b svg { width: 13px; height: 13px; flex: none; color: var(--acento); }

/* cabeçalho de cada passo */
.passo-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.passo-cab h1 { font-size: clamp(26px, 3.4vw, 34px); }
.passo-sub { margin: 4px 0 18px; font-size: 15px; color: var(--suave); }
.passo-cab + .lista, .passo-cab + .profs, .passo-cab + .agenda { margin-top: 18px; }
.voltar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--linha2); color: var(--texto); transition: border-color .2s, background .2s; }
.voltar:hover { border-color: var(--acento); background: rgb(var(--texto-rgb) / .05); }

/* categorias e serviços */
.lista { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; border: 1.5px solid var(--linha); border-radius: 16px; background: rgb(var(--texto-rgb) / .02); text-align: left; transition: border-color .15s, background .15s, transform .1s; }
.item:hover { border-color: var(--acento); background: rgb(var(--texto-rgb) / .04); }
.item:active { transform: scale(.99); }
.item .nome { flex: 1; min-width: 0; font-family: var(--titulo); font-size: 18px; font-weight: 600; letter-spacing: .03em; line-height: 1.2; text-transform: uppercase; }
.item .nome small { display: block; margin-top: 4px; font-family: var(--fonte); font-size: 13.5px; font-weight: 400; letter-spacing: 0; line-height: 1.45; text-transform: none; color: var(--suave); }
.item .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; color: var(--fraco); white-space: nowrap; }
.item .meta b { font-family: var(--titulo); font-size: 18px; font-weight: 600; color: var(--acento-forte); }
.item > svg { flex: none; color: var(--fraco); }
.item .etiqueta { margin-left: 4px; }

/* profissionais */
.profs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.prof { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px 18px; border: 1.5px solid var(--linha); border-radius: 18px; background: rgb(var(--texto-rgb) / .02); text-align: center; transition: border-color .15s, transform .1s; }
.prof:hover { border-color: var(--acento); }
.prof:active { transform: scale(.98); }
.prof .av { width: 72px; height: 72px; margin-bottom: 4px; overflow: hidden; border: 2px solid var(--linha2); border-radius: 50%; display: grid; place-items: center; background: var(--cartao2); font-family: var(--titulo); font-size: 24px; font-weight: 600; color: var(--suave); }
.prof .av img { width: 100%; height: 100%; object-fit: cover; }
.prof .av svg { width: 32px; height: 32px; color: var(--acento); }
.prof b { font-family: var(--titulo); font-size: 17px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.prof small { font-size: 12.5px; line-height: 1.4; color: var(--suave); }

/* calendário + horários */
.agenda { display: grid; grid-template-columns: 1fr 250px; gap: 32px; }
.cal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-cab b { font-family: var(--titulo); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 38px; height: 38px; border: 1px solid var(--linha2); border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.cal-nav button:hover:not(:disabled) { border-color: var(--acento); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .ds { padding: 6px 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--fraco); }
.cal button { position: relative; width: 100%; max-width: 48px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--texto); font-variant-numeric: tabular-nums; transition: background .12s, color .12s; }
.cal button::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--acento); }
.cal button:disabled { font-weight: 400; color: var(--fraco); opacity: .45; cursor: default; }
.cal button:disabled::after { display: none; }
.cal button:not(:disabled):hover { background: rgb(var(--texto-rgb) / .08); }
.cal button.hj { box-shadow: inset 0 0 0 1.5px var(--linha2); }
.cal button.sel { background: var(--acento) !important; color: var(--acento-txt); }
.cal button.sel::after { background: var(--acento-txt); }
.cal-leg { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--fraco); }
.cal-leg i { width: 6px; height: 6px; border-radius: 50%; background: var(--acento); }
.trocar-prof { display: grid; gap: 6px; margin-bottom: 18px; font-size: 12.5px; font-weight: 600; color: var(--suave); }
.trocar-prof select { height: 44px; padding: 0 12px; border: 1.5px solid var(--linha2); border-radius: 12px; background: var(--bg); color: var(--texto); font-size: 15px; }
.horas-tit { font-size: 19px; letter-spacing: .03em; }
.horas-sub { margin: 2px 0 14px; font-size: 13px; color: var(--fraco); }
.horas-lista { display: grid; gap: 14px; max-height: 430px; overflow-y: auto; padding-right: 4px; overscroll-behavior: contain; }
.periodo h3 { margin-bottom: 8px; font-family: var(--fonte); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: var(--fraco); }
.horas-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.horas-grade button { height: 46px; border: 1.5px solid var(--linha2); border-radius: 12px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .12s, border-color .12s, color .12s; }
.horas-grade button:hover, .horas-grade button.sel { border-color: var(--acento); background: var(--acento); color: var(--acento-txt); }

/* seus dados */
.form { display: grid; gap: 16px; max-width: 520px; }
.quando { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--linha); border-radius: 14px; background: rgb(var(--texto-rgb) / .05); }
.quando svg { width: 22px; height: 22px; flex: none; color: var(--acento); }
.quando span { font-size: 15px; }
.quando small { display: block; font-size: 13px; color: var(--suave); }
.sou-eu { padding: 12px 14px; border-radius: 12px; background: rgb(var(--acento-rgb) / .09); font-size: 14px; color: var(--suave); }
.sou-eu b { color: var(--texto); }
.campo { display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; }
.campo i { font-style: normal; color: var(--acento-forte); }
.campo small { font-weight: 400; color: var(--fraco); }
.campo > input, .campo > textarea { width: 100%; height: 52px; padding: 0 14px; border: 1.5px solid var(--linha2); border-radius: 12px; outline: none; background: var(--bg); color: var(--texto); font-size: 17px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.campo > textarea { height: auto; min-height: 76px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.campo > input:focus, .campo > textarea:focus { border-color: var(--acento); box-shadow: 0 0 0 4px rgb(var(--acento-rgb) / .16); }
.campo .campo-tel { font-weight: 400; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erro-msg { font-size: 14.5px; font-weight: 600; color: var(--erro); }
.form-nota { text-align: center; font-size: 12.5px; color: var(--fraco); }

/* pronto */
.sucesso { max-width: 480px; margin: 0 auto; padding: 8px 0; text-align: center; }
.ok-ic { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: var(--acento-txt); box-shadow: 0 18px 40px -12px rgb(var(--acento-rgb) / .9); animation: pop .5s cubic-bezier(.2, 1.5, .4, 1); }
.ok-ic svg { width: 40px; height: 40px; }
.sucesso h1 { font-size: clamp(38px, 5vw, 50px); }
.sucesso-txt { max-width: 380px; margin: 10px auto 24px; font-size: 16px; color: var(--suave); }
.cartao { overflow: hidden; margin-bottom: 22px; border: 1px solid var(--linha); border-radius: 18px; background: rgb(var(--texto-rgb) / .02); text-align: left; }
.cartao > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.cartao > div + div { border-top: 1px solid var(--linha); }
.cartao dt { font-size: 14px; color: var(--suave); }
.cartao dd { font-size: 14.5px; font-weight: 600; text-align: right; }
.cartao .cod { font-size: 16px; }
.sucesso .btns { display: grid; gap: 10px; }
.sucesso .link { display: inline-block; margin-top: 8px; }
.ag-ajuda { margin-top: 20px; text-align: center; font-size: 14px; color: var(--suave); }
.ag-ajuda a { font-weight: 600; color: var(--acento-forte); text-decoration: underline; text-underline-offset: 3px; }
.passo { animation: entra .3s ease; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }

/* celular */
@media (max-width: 860px) {
  .ag-painel { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
  .resumo { gap: 6px; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--linha); }
  .resumo h2 { font-size: 22px; }
  .resumo-desc, .resumo-end { display: none; }
  .resumo ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 2px; }
  .resumo li { gap: 7px; font-size: 13.5px; }
  .resumo li svg { width: 16px; height: 16px; }
  .agenda { grid-template-columns: 1fr; gap: 24px; }
  .horas-lista { max-height: none; overflow: visible; padding-right: 0; }
  .horas-grade { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) {
  .ag-topo-in { height: 64px; }
  .ag-voltar .txt { display: none; }
  .ag-voltar { width: 42px; justify-content: center; padding: 0; border: 1px solid rgb(var(--texto-rgb) / .22); border-radius: 50%; font-size: 18px; }
  .passo-area { padding: 18px 16px 22px; }
  .progresso { margin-bottom: 20px; }
  .progresso li { font-size: 11px; }
  .item { gap: 10px; padding: 15px 14px; }
  .item .nome { font-size: 16.5px; }
  .item .meta b { font-size: 16.5px; }
  .profs { grid-template-columns: repeat(2, 1fr); }
  .horas-grade { grid-template-columns: repeat(3, 1fr); }
  .cal button { font-size: 14px; }
}
