/* ============================================================
   POPUP QUALIFICADOR DE WHATSAPP, Dra. Dani Goe (site inteiro)
   Popup estilo WhatsApp: header verde, balao branco, captura
   nome + WhatsApp antes de redirecionar pro WhatsApp.
   Prefixo de classe: dgp- (dani goe popup)
   ============================================================ */

.dgp-lp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.55);
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.dgp-lp-backdrop.is-open { display: flex; opacity: 1; }

.dgp-lp-card {
  width: 100%;
  max-width: 460px;
  background: #efe9df;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: -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);
}
.dgp-lp-backdrop.is-open .dgp-lp-card { transform: translateY(0) scale(1); }

/* ---------- HEADER (estilo WhatsApp) ---------- */
.dgp-lp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 56px 16px 20px;
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
  color: #fff;
  position: relative;
}
.dgp-lp-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.dgp-lp-avatar img { width: 46px; height: 46px; object-fit: contain; }
.dgp-lp-title { font-size: 18px; font-weight: 700; line-height: 1.2; margin: 0; }
.dgp-lp-subtitle { font-size: 13px; font-weight: 400; opacity: 0.9; margin: 2px 0 0; }
.dgp-lp-subtitle::before {
  content: "•"; color: #25D366; margin-right: 5px; font-size: 16px; vertical-align: middle;
}
.dgp-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;
}
.dgp-lp-close:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- BALAO ---------- */
.dgp-lp-bubble {
  margin: 14px 16px 18px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-size: 14.5px;
  color: #2c2c2c;
  line-height: 1.5;
}
.dgp-lp-bubble b { color: #075E54; font-weight: 700; }

/* ---------- CAMPOS ---------- */
.dgp-lp-form { padding: 0 16px 16px; }
.dgp-lp-field { margin-bottom: 10px; position: relative; }
.dgp-lp-input {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e0dcd2;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #2c2c2c;
  outline: none;
  transition: border-color 150ms, background 150ms;
  box-sizing: border-box;
}
.dgp-lp-input::placeholder { color: #9a9384; }
.dgp-lp-input:focus { border-color: #128C7E; background: #f7fdfb; }
.dgp-lp-input.has-error { border-color: #c0392b; background: #fdecea; }
.dgp-lp-error { display: block; margin-top: 4px; padding-left: 4px; font-size: 12px; color: #c0392b; line-height: 1.3; }

.dgp-lp-consent { font-size: 11.5px; color: #6b6b6b; margin: 2px 4px 12px; line-height: 1.4; }

/* ---------- BOTAO ---------- */
.dgp-lp-actions { display: flex; }
.dgp-lp-submit {
  width: 100%;
  background: #25D366;
  color: #08321f;
  border: none;
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms, transform 100ms;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}
.dgp-lp-submit:hover { background: #1fb955; }
.dgp-lp-submit:active { transform: translateY(1px); }
.dgp-lp-submit:disabled { opacity: 0.65; cursor: wait; }

@media (max-width: 480px) {
  .dgp-lp-card { border-radius: 12px; }
  .dgp-lp-header { padding: 14px 50px 14px 16px; }
  .dgp-lp-avatar { width: 44px; height: 44px; }
  .dgp-lp-title { font-size: 16px; }
  .dgp-lp-bubble { margin: 12px; font-size: 14px; }
}

/* ---------- REDIRECIONANDO ---------- */
.dgp-lp-redirect { padding: 34px 24px 30px; text-align: center; }
.dgp-lp-redirect-icon {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px;
}
.dgp-lp-redirect-title { font-size: 19px; font-weight: 700; color: #075E54; margin: 0 0 8px; }
.dgp-lp-redirect-text { font-size: 14px; color: #2c2c2c; margin: 0; line-height: 1.5; }
