/* =====================================================================
   Cadastro de passageiro e de motorista (#/cadastro). Mesmo visual da página de corrida (pedir.css):
   herói com a foto e o nome do WhatsApp, grupos que se empilham, botão fixo no rodapé.
   ===================================================================== */
/* ---------- herói: quem está se cadastrando ---------- */
.cad-who { position: absolute; z-index: 2; left: 0; right: 0; top: 74px; bottom: 34px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 0 20px; pointer-events: none; }
.cad-avw { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.cad-avw::before, .cad-avw::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--pv-acc); opacity: 0; animation: cad-ring 3.2s ease-out infinite; }
@keyframes cad-ring { 0% { transform: scale(.92); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.cad-avw::after { animation-delay: 1.6s; }
.cad-av { position: relative; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--pv-acc-soft); color: var(--pv-acc); font-size: 34px; font-weight: 300; letter-spacing: .02em;
  box-shadow: 0 0 0 3px var(--pv-bg), 0 0 0 5px var(--pv-acc-line), 0 18px 34px -14px rgba(0,0,0,.6); }
.cad-av img { width: 100%; height: 100%; object-fit: cover; display: block; animation: cad-pop .5s var(--pv-ease) both; }
@keyframes cad-pop { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
.cad-wa { position: absolute; right: 4px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--pv-bg); }
.cad-hello { font-size: 21px; font-weight: 300; letter-spacing: -.01em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cad-hello b { font-weight: 500; }
.cad-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 13px; font-size: 13px; background: var(--pv-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--pv-line); color: var(--pv-soft); font-variant-numeric: tabular-nums; }
.cad-chip svg { color: var(--pv-acc); }

/* ---------- campos ---------- */
.cad-f { display: grid; gap: 6px; min-width: 0; }
.cad-f > span { font-size: 13px; color: var(--pv-mut); }
.cad-f > small { font-size: 12px; color: var(--pv-mut); line-height: 1.4; }
.cad-f select.ped-inp { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background: var(--pv-sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238f9a95' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.cad-f .ped-inp.bad { border-color: var(--pv-bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pv-bad) 14%, transparent); }
.cad-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cad-lock { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 14px; background: var(--pv-sheet); border: 1px dashed var(--pv-line2); }
.cad-lock > svg { flex: none; color: var(--pv-acc); }
.cad-lock b { display: block; font-weight: 500; font-size: 15.5px; font-variant-numeric: tabular-nums; } .cad-lock small { display: block; font-size: 12px; color: var(--pv-mut); }
.ped-pc .cad-lock, .ped-pc .cad-f .ped-inp { background-color: var(--pv-sheet); }
.cad-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.cad-seg .ped-pill { min-height: 42px; padding: 8px 18px; font-size: 14px; }
.cad-lnk { display: grid; place-items: center; text-decoration: none; }
.cad-f .ped-inp, .cad-f select { scroll-margin: 150px 0 130px; }
.cad-sec { font-size: 12.5px; color: var(--pv-mut); margin: 2px 0 -2px; }
.cad-tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.cad-tg .ped-t { display: grid; gap: 2px; min-width: 0; font-size: 15px; } .cad-tg small { font-size: 12.5px; color: var(--pv-mut); line-height: 1.4; }
.cad-terms a { color: var(--pv-acc); }
.cad-linkbtn { background: none; border: 0; color: var(--pv-mut); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 6px; justify-self: center; }
.cad-plate { display: grid; place-items: center; padding: 14px 0 6px; border-radius: 20px; background: radial-gradient(120% 140% at 50% 0%, var(--pv-sheet), color-mix(in srgb, var(--pv-sheet) 70%, #000)); border: 1px solid var(--pv-line); }
.cad-plate small { margin-top: 8px; font-size: 12px; color: var(--pv-mut); }

/* ---------- foto (passageiro) ---------- */
.cad-pick { display: grid; gap: 10px; }
.cad-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 20px; border: 1.5px solid transparent; background: var(--pv-sheet); cursor: pointer; transition: border-color .25s, background .25s, transform .15s; font: inherit; color: inherit; }
.cad-opt:active { transform: scale(.985); }
.cad-opt.on { border-color: var(--pv-acc); background: var(--pv-acc-soft); }
.cad-opt .o-av { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--pv-s3); color: var(--pv-soft); } .cad-opt .o-av img { width: 100%; height: 100%; object-fit: cover; }
.cad-opt .o-t { display: grid; gap: 1px; min-width: 0; flex: 1; } .cad-opt .o-t b { font-weight: 500; font-size: 15px; } .cad-opt .o-t small { font-size: 12.5px; color: var(--pv-mut); line-height: 1.35; }
.cad-opt .o-r { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--pv-line2); display: grid; place-items: center; color: transparent; transition: .2s; }
.cad-opt.on .o-r { background: var(--pv-acc); border-color: var(--pv-acc); color: var(--pv-ink); }

/* ---------- documentos / selfie ---------- */
.cad-prog { display: grid; gap: 8px; } .cad-prog .t { font-size: 13.5px; color: var(--pv-soft); }
.cad-prog .b { height: 6px; border-radius: 3px; background: var(--pv-s3); overflow: hidden; } .cad-prog .b i { display: block; height: 100%; width: 0; background: var(--pv-acc); border-radius: 3px; transition: width .6s var(--pv-ease); }
.cad-docs { display: grid; gap: 12px; }
.cad-doc { display: grid; gap: 10px; padding: 16px; border-radius: 24px; background: var(--pv-s2); border: 1px solid var(--pv-line); transition: border-color .3s; }
.cad-doc.done { border-color: var(--pv-acc-line); }
.cad-doc .d-h { display: flex; align-items: center; gap: 12px; }
.cad-doc .d-i { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--pv-sheet); color: var(--pv-soft); transition: .3s; }
.cad-doc.done .d-i { background: var(--pv-acc); color: var(--pv-ink); }
.cad-doc .d-t { flex: 1; min-width: 0; display: grid; gap: 1px; } .cad-doc .d-t b { font-weight: 500; font-size: 15.5px; } .cad-doc .d-t small { font-size: 12.5px; color: var(--pv-mut); }
.cad-doc.done .d-t small { color: var(--pv-acc); }
.cad-doc .d-hint { font-size: 13px; line-height: 1.45; color: var(--pv-mut); }
.cad-doc .ped-cta, .cad-doc .ped-ghost { height: 48px; min-height: 48px; font-size: 15px; }
.cad-doc.selfie { justify-items: center; text-align: center; padding: 22px 16px; }
.cad-doc.selfie .d-av { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: var(--pv-sheet); color: var(--pv-mut); border: 2px dashed var(--pv-line2); overflow: hidden; }
.cad-doc.selfie .d-av img { width: 100%; height: 100%; object-fit: cover; }
.cad-doc.selfie > * { width: 100%; } .cad-doc.selfie .d-av { width: 128px; }

/* ---------- conclusão ---------- */
.cad-done { margin: auto 0; display: grid; gap: 14px; justify-items: center; text-align: center; padding: 20px 4px; }
.cad-done p { color: var(--pv-soft); font-size: 15px; line-height: 1.5; max-width: 34ch; }
.cad-done .ok { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--pv-acc); color: var(--pv-ink); animation: cad-pop .55s var(--pv-ease) both, cad-halo 1.6s ease-out .3s 1; }
@keyframes cad-halo { from { box-shadow: 0 0 0 0 var(--pv-acc-line); } to { box-shadow: 0 0 0 34px transparent; } }
.cad-done .ok path { stroke-dasharray: 30; animation: cad-tick .5s ease .35s both; } @keyframes cad-tick { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }

/* ---------- aviso de cookies ---------- */
.ck { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; display: grid; gap: 14px; padding: 16px; border-radius: 26px;
  background: var(--pv-glass); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); border: 1px solid var(--pv-line2); box-shadow: 0 24px 60px -18px rgba(0,0,0,.7); color: var(--pv-text);
  font-family: 'Poppins', system-ui, sans-serif; animation: ck-in .5s var(--pv-ease) .6s backwards; }
html[data-theme="light"] .ck { background: rgba(255,255,255,.9); box-shadow: 0 24px 60px -20px rgba(13,26,21,.35); }
.ck.out { animation: ck-out .26s ease forwards; }
@keyframes ck-in { from { opacity: 0; transform: translateY(28px) scale(.97); } } @keyframes ck-out { to { opacity: 0; transform: translateY(20px) scale(.97); } }
.ck-top { display: flex; gap: 12px; align-items: flex-start; } .ck-top b { font-weight: 500; font-size: 15.5px; } .ck-top p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--pv-soft); }
.ck-ic { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--pv-acc-soft); color: var(--pv-acc); }
.ck-more { display: grid; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--pv-s2); }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; } .ck-row b { font-weight: 500; font-size: 14px; display: block; } .ck-row small { display: block; font-size: 12.5px; color: var(--pv-mut); line-height: 1.4; margin-top: 2px; }
.ck-fixed { flex: none; font-size: 12px; color: var(--pv-acc); }
.ck-note { margin: 0; font-size: 12px; color: var(--pv-mut); line-height: 1.5; } .ck-note a { color: var(--pv-acc); }
.ck-btns { display: grid; gap: 8px; } .ck .ped-cta { height: 50px; font-size: 15px; } .ck .ped-ghost { min-height: 46px; }
.ck-link { background: none; border: 0; color: var(--pv-mut); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px; }
@media (min-width: 900px) { .ck { left: auto; right: 24px; margin: 0; } }
@media (prefers-reduced-motion: reduce) { .cad-avw::before, .cad-avw::after { animation: none; opacity: 0; } .ck, .ck.out { animation: none; } .cad-done .ok, .cad-done .ok path, .cad-av img { animation: none; } }

/* categoria estimada do carro + agenda do motorista */
.cad-cat { display: grid; gap: 4px; padding: 14px; border-radius: 18px; border: 1px solid var(--pv-acc-line); background: linear-gradient(150deg, var(--pv-acc-soft), transparent 70%), var(--pv-s2); }
.cad-cat small { color: var(--pv-soft); font-size: 13px; line-height: 1.4; } .cad-cat-n { font-size: 22px; font-weight: 600; color: var(--pv-acc); }
.cad-cat .cad-cat-no { color: var(--pv-mut); }
.cad-days { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.cad-days .ped-pill.on { background: var(--pv-bad); border-color: var(--pv-bad); color: #fff; }
.cad-blks { display: grid; gap: 10px; margin: 6px 0; }
.cad-blk { display: grid; grid-template-columns: 1fr auto 92px auto 92px; gap: 8px; align-items: center; font-size: 13px; color: var(--pv-soft); }
.cad-blk .ped-ghost { grid-column: 1 / -1; min-height: 40px; }
