/* ============================================================
   LEAD POPUP — Calore (Grupo Gran Vitória)
   Intercepta os links wa.me da página, capta nome + WhatsApp,
   grava no CRM (webhook calore-lead) e abre o WhatsApp da Calore.
   Espelha o modelo da Brasil Show Turismo, com identidade Calore.
   ============================================================ */

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

.cal-lp-card {
  width: 100%;
  max-width: 460px;
  background: #F5EDE3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 120, 0, 0.06) 0, transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(139, 4, 4, 0.05) 0, transparent 55%);
}
.cal-lp-backdrop.is-open .cal-lp-card {
  transform: translateY(0) scale(1);
}

/* ---------- HEADER (identidade Calore) ---------- */
.cal-lp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 56px 18px 20px;
  background: linear-gradient(135deg, #8b0404 0%, #b52020 60%, #ff7800 140%);
  color: #fff;
  position: relative;
}
.cal-lp-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.cal-lp-avatar svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
.cal-lp-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}
.cal-lp-subtitle {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.9;
  margin: 3px 0 0;
}
.cal-lp-subtitle::before {
  content: "•";
  color: #6cf59a;
  margin-right: 5px;
  font-size: 16px;
  vertical-align: middle;
}
.cal-lp-close {
  position: absolute;
  top: 15px;
  right: 15px;
  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;
}
.cal-lp-close:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- BALÃO DE BOAS-VINDAS ---------- */
.cal-lp-bubble {
  margin: 16px 16px 18px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 14.5px;
  color: #1D1D1F;
  line-height: 1.5;
}
.cal-lp-bubble b { color: #8b0404; font-weight: 700; }

/* ---------- CAMPOS ---------- */
.cal-lp-form { padding: 0 16px 18px; }
.cal-lp-field {
  margin-bottom: 10px;
  position: relative;
}
.cal-lp-input {
  width: 100%;
  background: #FAF6EF;
  border: 1.5px solid #e6d9c6;
  border-radius: 9px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1D1D1F;
  outline: none;
  transition: border-color 150ms, background 150ms;
  box-sizing: border-box;
}
.cal-lp-input::placeholder { color: #9a8a74; }
.cal-lp-input:focus {
  border-color: #8b0404;
  background: #fff;
}
.cal-lp-input.has-error {
  border-color: #d32f2f;
  background: #fdecea;
}
.cal-lp-error {
  display: block;
  margin-top: 4px;
  padding-left: 4px;
  font-size: 12px;
  color: #d32f2f;
  line-height: 1.3;
}

/* ---------- BOTÃO (abrir WhatsApp) ---------- */
.cal-lp-actions {
  margin-top: 12px;
}
.cal-lp-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms, transform 100ms;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}
.cal-lp-submit svg { width: 20px; height: 20px; fill: #fff; }
.cal-lp-submit:hover { background: #20b858; }
.cal-lp-submit:active { transform: translateY(1px); }
.cal-lp-submit:disabled { opacity: 0.65; cursor: wait; }

.cal-lp-privacidade {
  margin: 12px 4px 0;
  font-size: 11.5px;
  color: #8a7c68;
  text-align: center;
  line-height: 1.4;
}

/* ---------- TELA DE SUCESSO ---------- */
.cal-lp-success {
  padding: 38px 24px 34px;
  text-align: center;
}
.cal-lp-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
}
.cal-lp-success-title {
  font-size: 20px;
  font-weight: 800;
  color: #8b0404;
  margin: 0 0 8px;
}
.cal-lp-success-text {
  font-size: 14.5px;
  color: #1D1D1F;
  margin: 0;
  line-height: 1.5;
}

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

/* ============================================================
   ÍCONE DO WHATSAPP DENTRO DOS BOTÕES DE CTA
   Aplica a logo do WhatsApp em todo .btn-whatsapp do site.
   Usa mask + currentColor: o glifo herda a cor do texto do botão.
   ============================================================ */
.btn-whatsapp::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z'/%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12c0 2.625.846 5.059 2.284 7.034L.789 23.49a.75.75 0 00.918.918l4.456-1.495A11.952 11.952 0 0012 24c6.627 0 12-5.373 12-12S18.627 0 12 0zm0 22c-2.24 0-4.326-.732-6.012-1.97l-.42-.314-2.645.888.888-2.645-.314-.42A9.956 9.956 0 012 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z'/%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12c0 2.625.846 5.059 2.284 7.034L.789 23.49a.75.75 0 00.918.918l4.456-1.495A11.952 11.952 0 0012 24c6.627 0 12-5.373 12-12S18.627 0 12 0zm0 22c-2.24 0-4.326-.732-6.012-1.97l-.42-.314-2.645.888.888-2.645-.314-.42A9.956 9.956 0 012 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10z'/%3E%3C/svg%3E") center / contain no-repeat;
}
