/* Esconde o WhatsApp padrão (tema e widget GTM) nas páginas do formulário */
body.whatsapp-com-form .live-chat-wrapper---brix {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.jquery-modal.blocker {
  z-index: 100000;
  background: rgba(1, 14, 27, 0.85);
}

.whatsapp-form-fab {
  position: fixed;
  right: 32px;
  bottom: 48px;
  z-index: 9998;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 22px rgba(18, 140, 96, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-form-fab:hover {
  transform: scale(0.94);
  box-shadow: 0 10px 26px rgba(18, 140, 96, 0.5);
}

.whatsapp-form-fab img {
  width: 48px;
  height: 48px;
  display: block;
  position: relative;
  z-index: 1;
}

.whatsapp-form-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: whatsapp-pulse 2s ease-out infinite;
  z-index: 0;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

#whatsapp-form-modal {
  display: none;
}

.jquery-modal.blocker .modal,
.jquery-modal.blocker .whatsapp-lead-modal.modal {
  z-index: 100001;
}

.whatsapp-lead-modal.modal {
  max-width: 440px;
  width: calc(100% - 32px);
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(8, 39, 69, 0.28);
  font-family: inherit;
  border: 0;
}

.whatsapp-lead-modal a.whatsapp-modal-close,
.whatsapp-lead-modal a.close-modal {
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: #fff !important;
  background-image: none !important;
  border-radius: 50%;
  text-indent: 0 !important;
  color: #082745;
  font-size: 22px;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.whatsapp-lead-modal__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 52px 20px 22px;
  background: linear-gradient(135deg, #082745 0%, #0b335b 100%);
  color: #fff;
}

.whatsapp-lead-modal__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-lead-modal__icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.whatsapp-lead-modal__heading h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.whatsapp-lead-modal__heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.4;
}

.whatsapp-lead-modal__body {
  padding: 22px 22px 24px;
  background: #fff;
}

.whatsapp-lead-modal .wpcf7,
.whatsapp-lead-modal .wpcf7-form {
  margin: 0;
}

.whatsapp-lead-modal .wpcf7-form .item {
  margin: 0 0 12px;
}

.whatsapp-lead-modal .wpcf7-form .item p {
  margin: 0;
}

.whatsapp-lead-modal .wpcf7-form-control-wrap {
  display: block;
}

.whatsapp-lead-modal .wpcf7-form input[type="text"],
.whatsapp-lead-modal .wpcf7-form input[type="email"],
.whatsapp-lead-modal .wpcf7-form input[type="tel"],
.whatsapp-lead-modal .wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe3ea;
  background: #f6f8fb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: #082745;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: none;
  font-family: inherit;
}

.whatsapp-lead-modal .wpcf7-form textarea {
  min-height: 110px;
  height: 110px;
  resize: vertical;
}

.whatsapp-lead-modal .wpcf7-form input[type="text"]:focus,
.whatsapp-lead-modal .wpcf7-form input[type="email"]:focus,
.whatsapp-lead-modal .wpcf7-form input[type="tel"]:focus,
.whatsapp-lead-modal .wpcf7-form textarea:focus {
  border-color: #25d366;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

.whatsapp-lead-modal .wpcf7-form input::placeholder,
.whatsapp-lead-modal .wpcf7-form textarea::placeholder {
  color: #8a9aab;
}

.whatsapp-lead-modal .wpcf7-form input.wpcf7-submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #ffe500;
  color: #0b335b;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 229, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-lead-modal .wpcf7-form input.wpcf7-submit:hover {
  background: #fff200;
  transform: translateY(-1px);
}

.whatsapp-lead-modal .wpcf7-spinner {
  margin-left: 8px;
}

.whatsapp-lead-modal .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #c0392b;
  font-size: 12px;
}

.whatsapp-lead-modal .wpcf7-not-valid {
  border-color: #e74c3c !important;
}

/* Mensagens de envio (Contact Form 7) */
.whatsapp-lead-modal .wpcf7-response-output {
  margin: 14px 0 0 !important;
  padding: 12px 14px 12px 40px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  border: 1px solid transparent !important;
  position: relative !important;
}

.whatsapp-lead-modal .wpcf7 form.init .wpcf7-response-output,
.whatsapp-lead-modal .wpcf7 form.resetting .wpcf7-response-output,
.whatsapp-lead-modal .wpcf7 form.submitting .wpcf7-response-output {
  display: none;
}

.whatsapp-lead-modal .wpcf7 form.sent .wpcf7-response-output {
  display: block;
  color: #0d5c3a;
  background: #e8f8ef;
  border-color: #25d366;
}

.whatsapp-lead-modal .wpcf7 form.sent .wpcf7-response-output::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.whatsapp-lead-modal .wpcf7 form.failed .wpcf7-response-output,
.whatsapp-lead-modal .wpcf7 form.aborted .wpcf7-response-output {
  display: block;
  color: #8b1e1e;
  background: #fdecea;
  border-color: #e74c3c;
}

.whatsapp-lead-modal .wpcf7 form.failed .wpcf7-response-output::before,
.whatsapp-lead-modal .wpcf7 form.aborted .wpcf7-response-output::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.whatsapp-lead-modal .wpcf7 form.spam .wpcf7-response-output {
  display: block;
  color: #8a4b12;
  background: #fff4e5;
  border-color: #f39c12;
}

.whatsapp-lead-modal .wpcf7 form.spam .wpcf7-response-output::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f39c12;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.whatsapp-lead-modal .wpcf7 form.invalid .wpcf7-response-output,
.whatsapp-lead-modal .wpcf7 form.unaccepted .wpcf7-response-output,
.whatsapp-lead-modal .wpcf7 form.payment-required .wpcf7-response-output {
  display: block;
  color: #0b335b;
  background: #fff9d6;
  border-color: #ffe500;
}

.whatsapp-lead-modal .wpcf7 form.invalid .wpcf7-response-output::before,
.whatsapp-lead-modal .wpcf7 form.unaccepted .wpcf7-response-output::before,
.whatsapp-lead-modal .wpcf7 form.payment-required .wpcf7-response-output::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffe500;
  color: #0b335b;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

@media (max-width: 767px) {
  .whatsapp-form-fab {
    right: 24px;
    bottom: 32px;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 479px) {
  .whatsapp-lead-modal.modal {
    width: calc(100% - 24px);
    max-width: none;
  }

  .whatsapp-lead-modal__header {
    padding: 18px 46px 16px 16px;
  }

  .whatsapp-lead-modal__body {
    padding: 16px 16px 18px;
  }
}