/* ============================================================
   FKR Prime — Estilos do Popup de Visita Gratuita
   Design System: Dark Luxury + Blue Navy FKR & WhatsApp Glow
   ============================================================ */

/* Bloqueio de scroll ao abrir o modal */
body.popup-visita-aberto {
  overflow: hidden !important;
  touch-action: none;
}

/* Overlay / Backdrop */
.popup-visita-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(9, 14, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.popup-visita-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Card do Modal */
.popup-visita-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(2, 99, 253, 0.25), 0 0 0 1px rgba(2, 99, 253, 0.15);
  transform: scale(0.92) translateY(18px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.popup-visita-overlay.is-active .popup-visita-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Topo Estilizado com Gradiente FKR Navy */
.popup-visita-header {
  position: relative;
  background: linear-gradient(135deg, #0a1b3a 0%, #123572 60%, #0263fd 100%);
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
  overflow: hidden;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

/* Brilho de Fundo Decorativo */
.popup-visita-header::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(2, 99, 253, 0.45) 0%, rgba(2, 99, 253, 0) 70%);
  pointer-events: none;
}

/* Botão Fechar */
.popup-visita-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.popup-visita-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.05);
}

/* Badge de Destaque */
.popup-visita-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #93c5fd;
  font-family: 'Lexend', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.popup-visita-pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: popupPulseDot 1.6s infinite ease-in-out;
}

@keyframes popupPulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }
}

/* Ícone de Destaque */
.popup-visita-icon-box {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0263fd;
  font-size: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(255, 255, 255, 0.15);
  animation: popupIconBounce 3s infinite ease-in-out;
}

@keyframes popupIconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Título e Subtítulo no Header */
.popup-visita-title {
  color: #ffffff;
  font-family: 'Lexend', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.popup-visita-subtitle {
  color: #bfdbfe;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Conteúdo Principal do Card */
.popup-visita-body {
  padding: 1.5rem 1.75rem 1.75rem;
  background-color: #ffffff;
}

/* Caixa de Alívio de Objeção / Destaque Zero Taxa */
.popup-visita-alert-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.popup-visita-alert-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.popup-visita-alert-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  color: #166534;
  line-height: 1.35;
  margin: 0;
}

.popup-visita-alert-text strong {
  font-weight: 700;
  color: #14532d;
}

/* Lista de Vantagens */
.popup-visita-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.popup-visita-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.4;
}

.popup-visita-check {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 9999px;
  background-color: #dbeafe;
  color: #0263fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Botão WhatsApp CTA */
.popup-visita-btn-wpp {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #25d366 0%, #1eb956 100%);
  color: #ffffff;
  font-family: 'Lexend', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.45), 0 2px 6px 0 rgba(0, 0, 0, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Efeito Shimmer no Botão */
.popup-visita-btn-wpp::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: popupBtnShimmer 3s infinite ease-in-out;
}

@keyframes popupBtnShimmer {
  0% {
    left: -100%;
  }
  30%, 100% {
    left: 150%;
  }
}

.popup-visita-btn-wpp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(37, 211, 102, 0.6), 0 4px 10px 0 rgba(0, 0, 0, 0.12);
  color: #ffffff;
}

.popup-visita-btn-wpp:active {
  transform: translateY(0) scale(0.99);
}

.popup-visita-btn-wpp i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Texto de Garantia / Segurança abaixo do CTA */
.popup-visita-footer-text {
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Botão Secundário / Dispensar */
.popup-visita-dismiss {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.4rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.popup-visita-dismiss:hover {
  color: #475569;
}

/* Responsividade Mobile */
@media (max-width: 480px) {
  .popup-visita-header {
    padding: 2rem 1.25rem 1.5rem;
  }
  .popup-visita-title {
    font-size: 1.3rem;
  }
  .popup-visita-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .popup-visita-btn-wpp {
    font-size: 0.875rem;
    padding: 0.9rem 1rem;
  }
}
