/* ============================================================
   LEAD POPUP — Muniz Fazendas
   Estilo chat WhatsApp com identidade Muniz (verde escuro + dourado).
   Intercepta os links wa.me, captura nome + telefone, manda pro N8N
   e redireciona pro WhatsApp do corretor.
   ============================================================ */

.mz-lp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 17, 0.6);
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.mz-lp-backdrop.is-open { display: flex; opacity: 1; }

.mz-lp-card {
  width: 100%;
  max-width: 440px;
  background: #F8F6F2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mz-lp-backdrop.is-open .mz-lp-card { transform: translateY(0) scale(1); }

/* ---------- HEADER VERDE ESCURO MUNIZ ---------- */
.mz-lp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 56px 18px 20px;
  background: linear-gradient(135deg, #1A2B1E 0%, #2D3E32 100%);
  color: #fff;
  position: relative;
}
.mz-lp-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1A2B1E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  border: 2px solid #C5A55A;
  overflow: hidden;
}
.mz-lp-avatar img { width: 42px; height: 42px; object-fit: contain; }
.mz-lp-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.2px;
}
.mz-lp-subtitle {
  font-size: 12.5px;
  font-weight: 400;
  opacity: 0.9;
  margin: 3px 0 0;
}
.mz-lp-subtitle::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  margin-right: 6px;
  vertical-align: middle;
}
.mz-lp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 150ms;
}
.mz-lp-close:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- BALÃO BRANCO ---------- */
.mz-lp-bubble {
  margin: 16px 16px 18px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-size: 14.5px;
  color: #2C2C2C;
  line-height: 1.5;
}
.mz-lp-bubble b { color: #1A2B1E; font-weight: 700; }

/* ---------- CAMPOS ---------- */
.mz-lp-form { padding: 0 16px 18px; }
.mz-lp-field { margin-bottom: 10px; position: relative; }
.mz-lp-input {
  width: 100%;
  background: #fff;
  border: 1.5px solid #E5E2DC;
  border-radius: 9px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #2C2C2C;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
  box-sizing: border-box;
}
.mz-lp-input::placeholder { color: #9a958c; }
.mz-lp-input:focus {
  border-color: #C5A55A;
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}
.mz-lp-input.has-error { border-color: #d32f2f; background: #fdecea; }
.mz-lp-error {
  display: block;
  margin-top: 4px;
  padding-left: 4px;
  font-size: 12px;
  color: #d32f2f;
  line-height: 1.3;
}

/* ---------- BOTÃO CTA (verde WhatsApp) ---------- */
.mz-lp-actions { margin-top: 12px; }
.mz-lp-submit {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 150ms, transform 100ms;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.mz-lp-submit svg { width: 19px; height: 19px; fill: #fff; }
.mz-lp-submit:hover { background: #1FAD54; }
.mz-lp-submit:active { transform: translateY(1px); }
.mz-lp-submit:disabled { opacity: 0.7; cursor: wait; }

.mz-lp-privacy {
  margin: 11px 4px 0;
  font-size: 11.5px;
  color: #8a857c;
  text-align: center;
  line-height: 1.4;
}

/* ---------- TELA DE SUCESSO ---------- */
.mz-lp-success { padding: 38px 24px 34px; text-align: center; }
.mz-lp-success-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
}
.mz-lp-success-title {
  font-size: 20px;
  font-weight: 700;
  color: #1A2B1E;
  margin: 0 0 8px;
}
.mz-lp-success-text {
  font-size: 14.5px;
  color: #2C2C2C;
  margin: 0;
  line-height: 1.55;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 480px) {
  .mz-lp-card { border-radius: 14px; }
  .mz-lp-header { padding: 15px 50px 15px 16px; }
  .mz-lp-avatar { width: 46px; height: 46px; }
  .mz-lp-avatar img { width: 34px; height: 34px; }
  .mz-lp-title { font-size: 17px; }
  .mz-lp-bubble { margin: 13px; font-size: 14px; }
  .mz-lp-submit { padding: 13px 18px; font-size: 14px; }
}
