/* Cadastro novo (inscricao.html): antes do pagamento, sem conta.
   Campos, passos e foto reaproveitam css/perfil-passos.css (.cp). */

:root { --lilas: #8b5cf6; --lilas-escuro: #7c3aed; --fundo-site: #f8f9fc; --preto-fonte: #1f1f1f; --cinza-fonte: #666666; --cinza-azulado: #94a3b8; --branco: #ffffff; --verde: #10b981; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); color: var(--preto-fonte); min-height: 100vh; }
/* O base.css do Astro (usado pelas páginas migradas) põe line-height 1.6 e corta o scroll lateral; este cadastro foi desenhado sem isso. */
html body { line-height: normal; overflow-x: visible; }
[hidden] { display: none !important; }

.insc-topo { display: flex; justify-content: center; padding: 22px 16px 10px; }
.insc-logo { display: inline-flex; align-items: center; gap: 0.16em; font-weight: 900; font-size: 30px; color: var(--lilas); text-decoration: none; line-height: 1; }
.insc-logo svg { width: 1.11em; height: 0.69em; overflow: visible; }
.insc-logo svg path { fill: none; stroke: currentColor; stroke-width: 13; stroke-linecap: round; }

/* Resumo do plano (lateral no computador, gaveta no celular, aberto no pagamento) */
.insc-resumo { background: white; border: 1px solid #ede9fe; border-radius: 20px; padding: 18px 18px 14px; box-shadow: 0 12px 30px rgba(139,92,246,0.10); }
.insc-resumo-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.insc-resumo-cab strong { font-size: 15px; font-weight: 900; color: var(--preto-fonte); }
.insc-resumo-fechar { display: none; border: none; background: #f4f1fb; color: var(--cinza-fonte); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.insc-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; font-size: 14.5px; font-weight: 700; color: var(--cinza-fonte); }
.insc-linha strong { color: var(--preto-fonte); font-weight: 900; white-space: nowrap; }
.insc-linha-plano { color: var(--preto-fonte); font-weight: 800; }
.insc-trocar { margin-left: 6px; font-size: 12px; font-weight: 800; color: var(--lilas-escuro); background: #f5f3ff; border-radius: 99px; padding: 3px 10px; text-decoration: none; white-space: nowrap; }
.insc-trocar:hover { background: #ede9fe; }
.insc-total { border-top: 1px dashed #e2e8f0; margin-top: 6px; padding-top: 14px; font-size: 16px; color: var(--preto-fonte); font-weight: 900; }
.insc-total strong { font-size: 22px; color: var(--lilas-escuro); letter-spacing: -0.5px; }
.insc-total s { font-size: 13px; font-weight: 700; color: var(--cinza-azulado); margin-right: 6px; letter-spacing: 0; }
.insc-resumo-nota { font-size: 12.5px; font-weight: 700; color: var(--cinza-fonte); text-align: right; margin-top: -4px; line-height: 1.45; }
.insc-resumo-nota:empty { display: none; }

/* Cupom: linha discreta que abre o campo; aplicado, vira uma linha verde */
.insc-cupom-abrir { width: 100%; display: flex; align-items: center; gap: 10px; margin: 4px 0; padding: 12px 14px; border: 1.5px dashed #c4b5fd; border-radius: 14px; background: #faf8ff; color: var(--lilas-escuro); font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; text-align: left; transition: background .2s, border-color .2s; }
.insc-cupom-abrir:hover { background: #f5f3ff; border-color: var(--lilas); }
.insc-cupom-abrir .fa-ticket { font-size: 15px; transform: rotate(-12deg); }
.insc-cupom-abrir span { flex: 1; }
.insc-seta { font-size: 12px; color: var(--cinza-azulado); transition: transform .2s; }
.insc-cupom-abrir[aria-expanded="true"] { border-style: solid; border-radius: 14px 14px 0 0; border-bottom-color: transparent; }
.insc-cupom-abrir[aria-expanded="true"] .insc-seta { transform: rotate(180deg); }
.insc-cupom-caixa { margin: -4px 0 6px; padding: 4px 12px 12px; border: 1.5px solid #c4b5fd; border-top: none; border-radius: 0 0 14px 14px; background: #faf8ff; }
.insc-cupom-linha { display: flex; gap: 8px; }
.insc-cupom-linha input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: white; font-family: inherit; font-size: 15px; font-weight: 800; color: var(--preto-fonte); text-transform: uppercase; letter-spacing: 1px; }
.insc-cupom-linha input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--cinza-azulado); }
.insc-cupom-linha input:focus { outline: none; border-color: var(--lilas); box-shadow: 0 0 0 3px rgba(139,92,246,0.12); }
.insc-cupom-linha button { flex-shrink: 0; border: none; border-radius: 12px; padding: 0 18px; background: linear-gradient(135deg, var(--lilas), var(--lilas-escuro)); color: white; font-family: inherit; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 6px 16px rgba(139,92,246,0.25); }
.insc-cupom-linha button:disabled { opacity: .6; cursor: wait; }
.insc-cupom-msg { font-size: 12.5px; font-weight: 800; margin-top: 8px; line-height: 1.4; }
.insc-cupom-msg:empty { display: none; }
.insc-cupom-msg.erro { color: #dc2626; }
.insc-cupom-aplicado { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0; padding: 10px 12px; border-radius: 14px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 13.5px; font-weight: 800; }
.insc-cupom-nome { min-width: 0; overflow-wrap: anywhere; }
.insc-cupom-nome .fa-ticket { transform: rotate(-12deg); margin-right: 2px; }
.insc-cupom-lado { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.insc-cupom-lado strong { font-weight: 900; white-space: nowrap; }
.insc-cupom-lado button { border: none; background: none; padding: 0; font-family: inherit; font-size: 12px; font-weight: 800; color: #64748b; text-decoration: underline; cursor: pointer; }

/* Barra de baixo: total sempre à vista (celular) + botões */
.insc-barra-total { display: flex; align-items: baseline; gap: 6px; width: 100%; margin: 0 0 10px; padding: 0 4px; border: none; background: none; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--cinza-fonte); cursor: pointer; text-align: left; }
.insc-barra-total strong { font-size: 18px; font-weight: 900; color: var(--preto-fonte); letter-spacing: -0.3px; }
.insc-barra-total s { color: var(--cinza-azulado); font-size: 12.5px; }
.insc-barra-total .bt-acao { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 900; color: var(--lilas-escuro); background: #f5f3ff; border-radius: 99px; padding: 6px 12px; }
.insc-barra-total .bt-acao .fa-ticket { transform: rotate(-12deg); }
#insc-form .wz-nav { flex-wrap: wrap; background: #fff; border-top: 1px solid #f1f0fb; box-shadow: 0 -10px 24px rgba(139,92,246,0.08); padding-top: 12px; border-radius: 18px 18px 0 0; }
@media (min-width: 980px) {
  #insc-form .wz-nav { border-top: none; box-shadow: none; }
}
.insc-nav-botoes { display: flex; align-items: center; gap: 12px; width: 100%; }
.insc-nav-botoes .btn-enviar { margin-top: 0; flex: 1; padding: 18px; }
@media (min-width: 980px) {
  .insc-barra-total { display: none; }
}

/* Gaveta do resumo (celular) */
.insc-gaveta { position: fixed; inset: 0; z-index: 60; background: rgba(15, 12, 30, 0.45); display: flex; align-items: flex-end; justify-content: center; animation: insc-fundo .2s ease; }
.insc-gaveta-caixa { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); animation: insc-sobe .28s cubic-bezier(.22, 1, .36, 1); }
.insc-gaveta-caixa .insc-resumo { border-radius: 24px; box-shadow: 0 -10px 40px rgba(0,0,0,0.18); }
.insc-gaveta-caixa .insc-resumo-fechar { display: inline-flex; align-items: center; justify-content: center; }
@keyframes insc-sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes insc-fundo { from { opacity: 0; } to { opacity: 1; } }
#resumo-casa .insc-resumo { margin-bottom: 20px; }
#resumo-no-pagamento .insc-resumo, #resumo-na-janela .insc-resumo { box-shadow: none; border-color: #e9d5ff; background: #fdfcff; margin-bottom: 16px; }

.insc-presente { max-width: 1080px; margin: 0 auto 14px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(135deg, #fef3c7, #fde68a); color: #78350f; font-size: 14px; font-weight: 800; line-height: 1.5; text-align: center; }

/* Grade: formulário + cartão ao vivo */
.insc-grid { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.insc-col-form.cp { max-width: none; }
@media (min-width: 980px) {
  .insc-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .insc-col-previa { position: sticky; top: 90px; }
}
.insc-carregando { text-align: center; padding: 40px 0; font-weight: 800; color: var(--cinza-fonte); }

/* Bairros de Curitiba */
.insc-bairros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.insc-bairros:empty { display: none; }
.insc-chip { display: inline-flex; align-items: center; gap: 6px; background: #f5f3ff; border: 1.5px solid #ddd6fe; color: var(--lilas-escuro); border-radius: 99px; padding: 6px 8px 6px 12px; font-size: 13px; font-weight: 800; }
.insc-chip.destaque { background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #fbbf24; color: #78350f; }
.insc-chip button { border: none; background: none; cursor: pointer; color: inherit; font-size: 13px; padding: 2px 4px; }
.insc-bairro-add { display: flex; gap: 8px; }
.insc-bairro-add input { flex: 1; min-width: 0; }
.insc-bairro-add button { flex-shrink: 0; border: 2px solid var(--lilas); background: white; color: var(--lilas-escuro); border-radius: 14px; padding: 0 16px; font-family: inherit; font-size: 14px; font-weight: 900; cursor: pointer; }
.insc-nota-cidade { font-size: 13px; font-weight: 700; color: var(--lilas-escuro); background: #f5f3ff; border-radius: 12px; padding: 10px 14px; margin: -8px 0 22px; }

/* Prévia do passo 6: o card oficial da vitrine (css/vitrine.css). No computador vai dentro de um
   celular; no celular aparece direto, sem moldura. */
.previa { margin-bottom: 8px; }
.previa-troca { display: flex; gap: 6px; padding: 4px; margin: 0 auto 16px; max-width: 360px; background: #f5f3ff; border-radius: 99px; }
.previa-troca button { flex: 1; border: none; background: transparent; color: var(--lilas-escuro); font-family: inherit; font-size: 13px; font-weight: 800; padding: 9px 8px; border-radius: 99px; cursor: pointer; }
.previa-troca button[aria-pressed="true"] { background: white; box-shadow: 0 2px 8px rgba(139,92,246,0.2); }
.previa-celular { max-width: 340px; margin: 0 auto; }
.previa-tela { pointer-events: none; user-select: none; -webkit-user-select: none; }
.previa-tela .cuidador-card { max-width: 320px; margin: 0 auto; box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.previa-nota { font-size: 12.5px; font-weight: 700; color: var(--cinza-fonte); line-height: 1.5; text-align: center; max-width: 360px; margin: 14px auto 0; }
@media (min-width: 980px) {
  .previa-celular { position: relative; width: 336px; padding: 12px; background: #1f1b2e; border-radius: 44px; box-shadow: 0 18px 40px rgba(31,27,46,0.28); }
  .previa-celular::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 7px; margin-left: -42px; border-radius: 99px; background: #3b3552; z-index: 1; }
  .previa-tela { background: var(--fundo-site); border-radius: 34px; padding: 40px 0 22px; }
}

/* Pagamento */
.insc-quando { font-size: 13.5px; font-weight: 700; color: var(--cinza-fonte); line-height: 1.55; margin: 0 0 14px; text-align: center; }
.insc-quando strong { color: var(--preto-fonte); }
.mp-brick-erro { display: none; background: #fef2f2; color: #b91c1c; font-size: 13px; font-weight: 800; padding: 12px 14px; border-radius: 12px; margin: 0 0 12px; line-height: 1.45; }
.mp-brick-erro.visivel { display: block; }
.btn-simular-pix-mp { display: none; width: 100%; margin-top: 14px; padding: 14px 16px; border: none; border-radius: 50px; background: #0f172a; color: white; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.btn-simular-pix-mp.visivel { display: block; }
#pg-cartao-box, #pg-pix-box { margin-top: 6px; }
#pg-selo { margin-top: 18px; }
.cp .wz-ativo .passo[data-passo="7"] .btn-enviar { margin-top: 4px; }
/* No passo do pagamento, o botão de pagar é o principal: some o "Avançar". */
.insc-no-pagamento .wz-avancar { display: none !important; }
/* Sem o "Avançar", a barra fixa só cobriria o pagamento: o "Voltar" fica no fim da página. */
#insc-form.insc-no-pagamento .wz-nav { position: static; background: none; border-top: none; box-shadow: none; }

/* Depois do pagamento */
.insc-pos-cab { text-align: center; margin-bottom: 22px; }
.insc-pos-icone { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: white; background: linear-gradient(135deg, var(--lilas), var(--lilas-escuro)); box-shadow: 0 14px 34px rgba(139,92,246,0.3); }
.insc-pos-icone.ok { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 14px 34px rgba(16,185,129,0.3); }
.insc-pos-cab h2 { font-size: 24px; font-weight: 900; line-height: 1.25; margin-bottom: 8px; }
.insc-pos-cab p { font-size: 14.5px; font-weight: 700; color: var(--cinza-fonte); line-height: 1.6; }
.insc-pos .cp-codigo { margin-bottom: 20px; }
/* O olho fica dentro do campo da senha (o rótulo e a ajuda ficam acima). */
.insc-pos .campo-senha .olho { top: auto; bottom: 9px; transform: none; }
.insc-trocar-email { display: flex; gap: 8px; margin-top: 12px; }
.insc-trocar-email input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 2px solid #c4b5fd; font-family: inherit; font-size: 15px; font-weight: 700; }
.insc-trocar-email button { flex-shrink: 0; border: none; border-radius: 12px; padding: 0 14px; background: var(--lilas-escuro); color: white; font-family: inherit; font-size: 13.5px; font-weight: 900; cursor: pointer; }
.insc-pos .wz-erro.visivel { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 16px; padding: 14px 16px; font-size: 13.5px; font-weight: 800; line-height: 1.5; margin-top: 8px; }
#pos-mensagem:empty { display: none; }
#pos-mensagem a.btn-enviar { text-decoration: none; }
.insc-email-ok { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 13.5px; font-weight: 800; }
.insc-ja-tenho { text-align: center; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--cinza-fonte); }
.insc-ja-tenho a { color: var(--lilas-escuro); font-weight: 900; }
.insc-aviso { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 16px; padding: 16px 18px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.insc-aviso a { color: var(--lilas-escuro); font-weight: 900; }

.insc-rodape { text-align: center; padding: 10px 16px 40px; font-size: 12.5px; font-weight: 700; color: var(--cinza-azulado); }
.insc-rodape a { color: var(--lilas-escuro); text-decoration: none; font-weight: 800; }

.ts-wrap { display: none; margin-top: 8px; }
.ts-wrap.ts-aberto { display: block; }

@media (max-width: 600px) {
  .insc-resumo { padding: 16px 14px 12px; }
  .insc-grid { padding: 0 12px 32px; }
  .insc-pos-cab h2 { font-size: 21px; }
}

/* Passo do pagamento: CPF e e-mail (pedidos só aqui, antes de cobrar). */
.cp .insc-identidade { margin-top: 22px; padding: 20px 20px 6px; background: #f5f3ff; border-radius: 16px; border-left: 4px solid var(--lilas); }
.insc-email-confirma { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: white; border: 1.5px solid #ddd6fe; color: var(--lilas-escuro); font-size: 13px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }

/* Janela do pagamento (Pix ou cartão), como era antes: fundo escuro e cartão branco. */
.checkout-janela { position: fixed; inset: 0; z-index: 9998; display: flex; background: rgba(0,0,0,0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 20px; overflow-y: auto; }
.checkout-janela[hidden] { display: none; }
.checkout-card { background: white; border-radius: 28px; max-width: 520px; width: 100%; padding: 32px 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); position: relative; margin: auto; animation: checkoutEntra 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes checkoutEntra { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.checkout-voltar { position: absolute; top: 18px; left: 18px; background: transparent; border: none; color: var(--cinza-fonte); font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 50px; transition: 0.2s; }
.checkout-voltar:hover { background: #f1f5f9; color: var(--preto-fonte); }
.checkout-cab { text-align: center; margin: 30px 0 16px; }
.checkout-cab h2 { font-size: 19px; font-weight: 900; color: var(--preto-fonte); margin-bottom: 4px; }
.checkout-cab p { font-size: 13px; font-weight: 700; color: var(--cinza-fonte); }
@media (max-width: 520px) {
  .checkout-janela { padding: 10px; }
  .checkout-card { padding: 28px 16px 22px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .checkout-card { animation: none; } }

.previa-aviso-cupom { max-width: 360px; margin: -4px auto 14px; padding: 10px 14px; border-radius: 14px; background: #fffbeb; border: 1.5px solid #fde68a; color: #92400e; font-size: 12.5px; font-weight: 800; line-height: 1.5; text-align: center; }
.previa-aviso-cupom[hidden] { display: none; }
