/* ═══════════════════════════════════════════════════════
   MAKAI – LEAD CAPTURE POPUP
═══════════════════════════════════════════════════════ */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,30,50,.7);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.popup-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.popup-box {
  background: white;
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
  transform: scale(.9) translateY(30px);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.popup-overlay.open .popup-box {
  transform: scale(1) translateY(0);
}

/* ── CLOSE ── */
.popup-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,.25);
  border: none;
  color: white;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background .2s;
}
.popup-close:hover { background: rgba(255,255,255,.4); }

/* ── LEFT (oferta) ── */
.popup-left {
  background: linear-gradient(145deg, #0a4f6e 0%, #1a7a9c 60%, #0e6b80 100%);
  padding: 48px 36px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.popup-left::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.popup-left::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent, #d4a84b);
  color: #0a4f6e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  width: fit-content;
}

.popup-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
.popup-left h2 span {
  color: #d4a84b;
}

.popup-left p {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin-bottom: 24px;
}

.popup-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.popup-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.9);
}
.popup-benefits li i {
  color: #d4a84b;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ── RIGHT (formulário) ── */
.popup-right {
  padding: 40px 36px;
  background: #fff;
  display: flex;
  align-items: center;
}
.popup-right form { width: 100%; }
.popup-right h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #1a1a2e;
  margin-bottom: 24px;
}

.btn-popup-submit {
  width: 100%;
  background: linear-gradient(135deg, #d4a84b, #e8c47a);
  color: #0a4f6e;
  border: none;
  padding: 14px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  transition: .3s;
  box-shadow: 0 4px 20px rgba(212,168,75,.35);
}
.btn-popup-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,168,75,.5);
}

.popup-privacy {
  font-size: .75rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.popup-success {
  background: #d1fae5;
  border: 1px solid #34d399;
  color: #065f46;
  padding: 14px 18px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* ── FOOTER LOGO ── */
.footer-logo-wrap {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .popup-box { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .popup-left { padding: 32px 24px; }
  .popup-left h2 { font-size: 1.5rem; }
  .popup-right { padding: 28px 24px; }
}
