/* ============================================================
   AMPARAR CRM — styles_apresentacao.css
   Modo Apresentação (ApresentacaoModule). Palco 16:9 que ocupa a
   tela toda; posições dos elementos sobre os slides em % do slide
   (medidas tiradas do PowerPoint 2.2, 960×540 pt).
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100;200;700;800&display=swap');
.apres-root {
  position: fixed; inset: 0; z-index: 3000; background: #000;
  display: flex; flex-direction: column; font-family: 'Outfit', sans-serif;
}
.apres-palco { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.apres-slide {
  position: relative; aspect-ratio: 16 / 9;
  width: min(100vw, calc((100vh - 48px) * 16 / 9));
  background: #111; overflow: hidden; container-type: inline-size;
}
.apres-img, .apres-video-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apres-slide[data-tipo="imagem"] { cursor: pointer; }

/* Barra inferior */
.apres-barra {
  height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: #0b1030; color: #cbd5e1; font-size: 14px;
}
.apres-flex { flex: 1; }
.apres-lead { font-weight: 600; color: #fff; }
.apres-btn {
  background: transparent; border: 1px solid #334155; color: #fff; border-radius: 8px;
  width: 36px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
}
.apres-btn:disabled { opacity: .3; }
.apres-btn:hover:not(:disabled) { background: #1e293b; }

/* Troca de slide: entrada suave (sem "piscar" entre as imagens). */
.apres-slide.entrando > * { animation: apres-entra .35s ease-out both; }
@keyframes apres-entra { from { opacity: 0; } to { opacity: 1; } }
.apres-progresso { height: 3px; background: #1a1f45; }
.apres-progresso-barra { height: 100%; width: 0; background: linear-gradient(90deg, #e3243b, #ff6a3d); transition: width .3s; }
.apres-btn-txt { width: auto; padding: 0 12px; gap: 6px; font-size: 13px; font-weight: 600; }

/* Visão geral (tecla G) */
.apres-grade {
  position: absolute; inset: 0 0 51px 0; z-index: 5; background: rgba(5,8,28,.94);
  overflow-y: auto; padding: 24px; animation: apres-entra .2s ease-out;
}
.apres-grade-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; max-width: 1400px; margin: 0 auto; }
.apres-grade-item {
  position: relative; border: 2px solid transparent; border-radius: 8px; padding: 0; overflow: hidden;
  background: #111; aspect-ratio: 16 / 9; cursor: pointer;
}
.apres-grade-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apres-grade-item span {
  position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.7); color: #fff;
  font-size: 12px; padding: 1px 7px; border-radius: 10px;
}
.apres-grade-item:hover { border-color: #64748b; }
.apres-grade-item.atual { border-color: #e3243b; }
.apres-grade-cot {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(135deg, #2a2560, #3c2a8a); color: #fff; font-weight: 700; font-size: 15px;
}
.apres-grade-cot i { font-size: 26px; color: #ffc000; }

/* Slide 7 — vídeo com título e logo por cima (posições do PowerPoint) */
.apres-slide[data-tipo="video"] { cursor: pointer; }
.apres-titulo-video {
  position: absolute; left: 14.6%; top: 31.1%; color: #fff; line-height: 1.05; font-family: 'Sora', 'Outfit', sans-serif;
  text-shadow: 0 2px 14px rgba(0,0,0,.55); pointer-events: none; display: flex; flex-direction: column;
}
.apres-titulo-video span { font-size: 3.75cqw; font-weight: 100; }
.apres-titulo-video strong { font-size: 6.75cqw; font-weight: 800; }
.apres-logo-video {
  position: absolute; left: 66.1%; top: 19.5%; width: 23.9%; height: 42.8%; object-fit: contain;
  pointer-events: none; filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}

/* Painéis flutuantes (perfil, indicações) */
.apres-painel {
  position: absolute; right: 2%; bottom: 3%; width: 30%; max-height: 90%;
  background: rgba(255,255,255,.97); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display: flex; flex-direction: column; font-size: 13px; overflow: hidden;
}
.apres-painel-toggle {
  border: 0; background: #2a2560; color: #fff; padding: 9px 12px; text-align: left; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.apres-painel-seta { margin-left: auto; transition: transform .2s; }
.apres-painel.aberto .apres-painel-seta { transform: rotate(180deg); }
.apres-painel-corpo { display: none; padding: 10px 12px; overflow-y: auto; gap: 6px; flex-direction: column; }
.apres-painel.aberto .apres-painel-corpo { display: flex; }
.apres-painel label { font-size: 12px; font-weight: 600; margin: 4px 0 0; color: #334155; }
.apres-ind { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #e2e8f0; }
.apres-ind button { border: 0; background: none; color: #dc2626; font-size: 16px; line-height: 1; }

/* Slide "Sua cotação" — montado no CRM, no visual do PowerPoint */
.apres-planos {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 2.2cqw 3.4cqw 1.8cqw; gap: 1.4cqw;
  color: #fff; font-family: 'Outfit', sans-serif;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(227,36,59,.28), transparent 45%),
    radial-gradient(ellipse at 0% 100%, rgba(120,90,255,.25), transparent 50%),
    linear-gradient(135deg, #221f52 0%, #2f2470 55%, #3c2a8a 100%);
}
.apres-planos-cab { display: flex; align-items: flex-end; gap: 1.6cqw; }
.apres-planos-sobre { font-size: 1.25cqw; letter-spacing: .25cqw; text-transform: uppercase; color: #c7c2ff; }
.apres-planos-cab > div:first-child { flex: 1; min-width: 0; }
.apres-planos-titulo { white-space: nowrap; font-family: 'Sora', 'Outfit', sans-serif; font-size: 3.6cqw; font-weight: 200; line-height: 1.05; }
.apres-planos-titulo strong { font-weight: 800; }
.apres-planos-carro { font-size: 1.2cqw; color: #e2e0ff; margin-top: .3cqw; line-height: 1.3; }
.apres-planos-carro { min-height: 2cqw; }
.apres-carro-aviso { color: #ffc000; }
.apres-planos-campos { display: flex; gap: 1.2cqw; margin-left: auto; position: relative; }
/* Placa no estilo Mercosul (faixa azul em cima), editável */
.apres-planos-campos input.apres-placa-input {
  width: 11cqw; background: #fff; color: #1e1b4b; font-weight: 800; letter-spacing: .25cqw; text-align: center;
  text-transform: uppercase; border: 0; border-top: .45cqw solid #2563eb; border-radius: .5cqw;
}
.apres-planos-campos input.apres-placa-input::placeholder { color: #c3c1d9; }
.apres-planos-campos input.apres-chassi-input { width: 15cqw; font-size: 1.05cqw; letter-spacing: .08cqw; text-transform: uppercase; }
.apres-regra { display: block; color: #ffc000; font-size: 1.05cqw; }
.apres-placa-opcoes {
  display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: .6cqw; z-index: 3;
  background: #fff; color: #1e1b4b; border-radius: .8cqw; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.45);
  max-height: 22cqw; overflow-y: auto; font-size: 1.15cqw;
}
.apres-placa-opcoes-tit { padding: .7cqw 1cqw; font-weight: 700; color: #6b6894; text-transform: uppercase; font-size: .95cqw; letter-spacing: .08cqw; }
.apres-placa-opcoes button {
  display: flex; justify-content: space-between; gap: 1cqw; width: 100%; border: 0; border-top: 1px solid #ecebf5;
  background: #fff; padding: .7cqw 1cqw; text-align: left; color: inherit;
}
.apres-placa-opcoes button:hover { background: #f1f0fb; }
.apres-placa-opcoes button span { font-weight: 800; white-space: nowrap; }
.apres-planos-campos label { display: flex; flex-direction: column; font-size: 1cqw; color: #c7c2ff; gap: .3cqw; text-transform: uppercase; letter-spacing: .1cqw; }
.apres-planos-campos select, .apres-planos-campos input {
  font-size: 1.4cqw; padding: .5cqw .8cqw; border-radius: .6cqw; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); color: #fff; outline: none; width: 13cqw; font-family: inherit;
}
.apres-planos-campos select option { color: #0f172a; }
.apres-planos-campos select { width: 16cqw; font-size: 1.3cqw; }
.apres-planos-campos #ap-fipe { width: 12cqw; }
.apres-planos-campos input::placeholder { color: rgba(255,255,255,.5); }
.apres-planos-logo { height: 4.6cqw; opacity: .9; }
.apres-planos-cards { flex: 1; display: flex; gap: 1.8cqw; justify-content: center; align-items: stretch; min-height: 0; }
.apres-aviso { align-self: center; font-size: 1.8cqw; color: #e2e0ff; display: flex; flex-direction: column; align-items: center; gap: 1cqw; text-align: center; }
.apres-aviso i { font-size: 4cqw; color: #ffc000; }
.apres-card {
  position: relative; flex: 1; max-width: 29cqw; border-radius: 1.4cqw; padding: 1.2cqw 1.5cqw 1.1cqw;
  background: #fff; color: #1e1b4b; display: flex; flex-direction: column; gap: .3cqw; font-size: 1.2cqw; scrollbar-width: none;
  box-shadow: 0 1cqw 3cqw rgba(0,0,0,.35); border: .25cqw solid transparent;
  transition: transform .2s, box-shadow .2s, opacity .2s; overflow-y: auto;
}
.apres-card.sugerido, .apres-card.escolhido { transform: translateY(-.8cqw); }
.apres-planos-cards:has(.escolhido) .apres-card:not(.escolhido) { opacity: .55; }
.apres-planos-cards:has(.escolhido) .apres-card:not(.escolhido):hover { opacity: 1; }
.apres-card-selo {
  position: absolute; top: 0; right: 1.4cqw; background: #e3243b; color: #fff; font-size: .95cqw; font-weight: 700;
  padding: .3cqw .8cqw; border-radius: 0 0 .6cqw .6cqw; text-transform: uppercase; letter-spacing: .08cqw;
}
.apres-card-topo { display: flex; align-items: center; gap: .7cqw; }
.apres-card-medalha { font-size: 2.8cqw; line-height: 1; }
.apres-card-nome { font-family: 'Sora', 'Outfit', sans-serif; font-size: 2cqw; font-weight: 700; }
.apres-card-valor { font-size: 3.2cqw; font-weight: 800; color: #1e1b4b; line-height: 1.1; margin: 0; }
.apres-card-valor small { font-size: 1.3cqw; font-weight: 600; color: #6b6894; margin: 0 .2cqw; }
.apres-card-inclui { list-style: none; padding: .6cqw 0 0; margin: 0; border-top: 1px solid #ecebf5; }
.apres-card-inclui li { margin: .1cqw 0; font-size: 1.1cqw; }
.apres-card-inclui i { color: #16a34a; }
.apres-card-adic-tit { font-weight: 700; margin-top: .3cqw; color: #6b6894; font-size: 1cqw; text-transform: uppercase; letter-spacing: .1cqw; }
.apres-adic { display: flex; gap: .5cqw; align-items: center; cursor: pointer; padding: 0; font-size: 1.02cqw; line-height: 1.35; margin: 0; }
.apres-adic span { margin-left: auto; color: #475569; white-space: nowrap; font-weight: 600; }
.apres-card-escolher {
  margin-top: auto; border: 0; border-radius: .8cqw; padding: .6cqw; font-weight: 700; font-size: 1.35cqw; color: #fff;
}
.pac-bronze .apres-card-medalha { color: #cd7f32; } .pac-bronze .apres-card-escolher { background: #cd7f32; } .pac-bronze.escolhido { border-color: #cd7f32; }
.pac-prata  .apres-card-medalha { color: #8a8a99; } .pac-prata  .apres-card-escolher { background: #8a8a99; } .pac-prata.escolhido  { border-color: #8a8a99; }
.pac-ouro   .apres-card-medalha { color: #e6a800; } .pac-ouro   .apres-card-escolher { background: #e6a800; } .pac-ouro.escolhido   { border-color: #e6a800; }
.apres-card.escolhido .apres-card-escolher { background: #16a34a; }
.apres-planos-rodape {
  display: flex; align-items: center; justify-content: center; gap: 3cqw; min-height: 4.6cqw;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 1cqw; padding: .6cqw 2cqw;
}
.apres-rodape-dica { font-size: 1.5cqw; color: #c7c2ff; }
.apres-rodape-item { display: flex; flex-direction: column; line-height: 1.15; }
.apres-rodape-item span { font-size: 1cqw; text-transform: uppercase; letter-spacing: .12cqw; color: #c7c2ff; }
.apres-rodape-item strong { font-size: 1.9cqw; font-weight: 700; }
.apres-rodape-adesao input {
  width: 9cqw; background: transparent; border: 0; border-bottom: 2px dashed rgba(255,192,0,.6); color: #ffc000;
  font: inherit; outline: none;
}
.apres-rodape-mensal strong { font-size: 2.8cqw; font-weight: 800; color: #ffc000; }

/* Slide 30 — oferta: selo com a adesão combinada no espaço livre
   ao lado do "R$ 500" riscado do PowerPoint */
.apres-oferta {
  position: absolute; left: 24%; top: 6%; width: 28%; padding: 1.2cqw 1.6cqw;
  background: #ffc000; color: #111; border-radius: 1cqw; transform: rotate(-4deg);
  box-shadow: 0 1cqw 2.5cqw rgba(0,0,0,.5); display: flex; flex-direction: column;
}
.apres-oferta-hoje { font-size: 1.5cqw; font-weight: 800; text-transform: uppercase; letter-spacing: .1cqw; }
.apres-oferta-por { display: flex; align-items: baseline; gap: .6cqw; }
.apres-oferta-por span { font-size: 2.6cqw; font-weight: 800; }
.apres-oferta-por input {
  width: 100%; min-width: 0; font-size: 5.2cqw; font-weight: 900; color: #111; background: transparent; line-height: 1;
  border: 0; border-bottom: 2px dashed rgba(0,0,0,.35); outline: none; font-family: inherit;
}
.apres-oferta-por input::placeholder { color: rgba(0,0,0,.35); }

/* Slide 2 — vídeo do WhatsApp na tela do celular */
.apres-video-celular {
  position: absolute; left: 23.9%; top: 13.2%; width: 18.2%; height: 68.5%;
  object-fit: cover; border-radius: 1.2cqw;
}

/* Slide 33 — "Seja bem-vindo": fechamento */
.apres-final { position: absolute; right: 3%; bottom: 5%; display: flex; flex-direction: column; align-items: flex-end; gap: 1cqw; }
.apres-final-resumo {
  background: rgba(30,27,75,.88); color: #e2e0ff; font-size: 1.15cqw; border-radius: .8cqw; padding: .7cqw 1.2cqw;
  max-width: 40cqw; text-align: right; display: flex; flex-direction: column;
}
.apres-final-resumo strong { color: #ffc000; font-size: 2cqw; }
.apres-final-botoes { display: flex; gap: 1.2cqw; }
.apres-final button {
  border: 0; border-radius: 1cqw; padding: 1.2cqw 2.4cqw; font-size: 1.8cqw; font-weight: 800;
  box-shadow: 0 .6cqw 1.6cqw rgba(0,0,0,.3);
}
.apres-final-venda { background: #16a34a; color: #fff; }
.apres-final-nao { background: rgba(255,255,255,.92); color: #334155; }

/* Botão de entrada no detalhe do lead + quadro na aba Venda */
.btn-apres-tel { margin-left: 4px; color: #1e2a78; border-color: #1e2a78; display: inline-flex; align-items: center; gap: 4px; }
.btn-apres-tel:hover { background: #1e2a78; color: #fff; border-color: #1e2a78; }
.apres-dados { border-left: 4px solid #1e2a78; }

/* Cadastro de lead — sugestões da busca no Siprov (SiprovService) */
.sip-sugestoes { display: none; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; margin-top: 4px; max-height: 220px; overflow-y: auto; background: #fff; }
.sip-titulo { font-size: 12px; font-weight: 600; color: #475569; padding: 6px 10px; }
.sip-item { display: flex; justify-content: space-between; gap: 10px; width: 100%; border: 0; border-top: 1px solid #f1f5f9; background: #fff; padding: 6px 10px; text-align: left; font-size: 13px; }
.sip-item:hover { background: #f1f5f9; }
.sip-item span { color: #64748b; white-space: nowrap; }

/* Aba Visita — botão grande pra iniciar a apresentação */
.btn-apres-visita {
  align-self: center; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, #2a2560, #3c2a8a); color: #fff; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(42,37,96,.3); white-space: nowrap;
}
.btn-apres-visita:hover { filter: brightness(1.15); }
