/* ==========================================================================
   MICRO-MODAL DE CAPTURA RÁPIDA DE WHATSAPP (ATRIBUIÇÃO E CONVERSÃO CRM)
   Goiás Transportes — Tipografia em Pixels Padrão Web & Alta Legibilidade
   ========================================================================== */

.whatsapp-quick-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  background-color: rgba(11, 46, 76, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

.whatsapp-quick-modal * {
  box-sizing: border-box;
}

.whatsapp-quick-modal.active {
  opacity: 1;
  visibility: visible;
}

.whatsapp-quick-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 480px;
  padding: 36px 32px 28px;
  position: relative;
  text-align: center;
  transform: translateY(18px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-quick-modal.active .whatsapp-quick-card {
  transform: translateY(0) scale(1);
}

/* Botão Fechar (X) no topo direito */
.modal-close-x {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
  z-index: 10;
}

.modal-close-x:hover,
.modal-close-x:focus {
  color: #0b2e4c;
  background-color: #f1f5f9;
  outline: none;
}

/* Ícone Circular no Cabeçalho */
.wa-modal-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  color: #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.wa-modal-icon-badge i {
  font-size: 34px !important;
}

.wa-modal-icon-badge.success {
  background: #dcfce7;
  color: #16a34a;
}

.wa-modal-icon-badge.success i {
  font-size: 30px !important;
}

.wa-modal-title {
  color: #0b2e4c;
  font-size: 24px !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.3px;
  font-family: inherit;
}

.wa-modal-subtitle {
  color: #475569;
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin: 0 0 24px !important;
  font-weight: 400;
  font-family: inherit;
}

/* Grupos de Formulário */
.wa-form-group {
  text-align: left;
  margin-bottom: 18px;
}

.wa-form-label {
  display: block;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  font-size: 15px !important;
  color: #0b2e4c !important;
  font-family: inherit;
}

.wa-form-input {
  width: 100%;
  height: 52px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background-color: #faf8f5;
  color: #1e293b;
  font-size: 16px !important;
  font-family: inherit;
  transition: all 0.2s ease;
  line-height: normal;
}

.wa-form-input::placeholder {
  color: #94a3b8;
  font-size: 15px;
}

.wa-form-input:focus {
  outline: none;
  border-color: #0b2e4c;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 46, 76, 0.12);
}

.wa-form-input.is-invalid {
  border-color: #ef4444;
  background-color: #fff5f5;
}

.wa-form-error {
  display: none;
  color: #dc2626;
  font-size: 13px !important;
  margin-top: 6px;
  font-weight: 500;
  font-family: inherit;
}

/* Botão Principal de Envio */
.btn-wa-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 16px 20px;
  border-radius: 14px;
  border: none;
  background: #0b2e4c;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(11, 46, 76, 0.25);
  margin-top: 20px;
  line-height: 1.2;
}

.btn-wa-submit i {
  font-size: 20px !important;
}

.btn-wa-submit:hover {
  background: #061c30;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 46, 76, 0.32);
}

.btn-wa-submit:active {
  transform: translateY(0);
}

/* Legenda LGPD */
.wa-lgpd-caption {
  font-size: 13px !important;
  color: #64748b;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.4;
  font-family: inherit;
}

/* ESTADO 2: SUCESSO / INFORMAÇÃO DE CONTATO IMINENTE */
.wa-success-box {
  background: #f7f4ed;
  border: 1px solid #ede8de;
  border-radius: 16px;
  padding: 22px 18px;
  margin-bottom: 20px;
  text-align: center;
}

.wa-success-text {
  margin: 0 !important;
  color: #1e293b;
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1.55;
  font-family: inherit;
}

.wa-success-text strong {
  font-weight: 700;
  color: #0b2e4c;
}

.wa-success-phone {
  margin-top: 10px;
  font-weight: 700;
  color: #0284c7;
  font-size: 22px !important;
  letter-spacing: 0.5px;
  font-family: inherit;
}

.wa-success-subtext {
  color: #475569;
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin: 0 0 22px !important;
  font-family: inherit;
}

/* Ações de Sucesso */
.wa-success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-wa-direct-chat {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  border: 1px solid #25D366;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 15px 22px;
  border-radius: 35px;
  text-decoration: none !important;
  font-family: inherit;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  line-height: 1.2;
}

.btn-wa-direct-chat i {
  font-size: 22px !important;
}

.btn-wa-direct-chat:hover {
  background: #1ebc57;
  border-color: #1ebc57;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-wa-close-secondary {
  width: 100%;
  padding: 14px 22px;
  border-radius: 35px;
  border: 2px solid #008db9;
  background: #ffffff;
  color: #0b2e4c;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1.2;
}

.btn-wa-close-secondary:hover {
  background-color: #f0f9ff;
  color: #008db9;
  border-color: #00779e;
}

@media (max-width: 480px) {
  .whatsapp-quick-card {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }
  .wa-modal-title {
    font-size: 22px !important;
  }
  .wa-modal-subtitle {
    font-size: 14px !important;
  }
  .wa-form-label {
    font-size: 14px !important;
  }
  .wa-form-input {
    font-size: 16px !important; /* Mantém 16px para evitar auto-zoom em smartphones iOS */
    height: 48px;
  }
  .btn-wa-submit,
  .btn-wa-direct-chat {
    font-size: 15px !important;
    padding: 14px 18px;
  }
  .btn-wa-close-secondary {
    font-size: 14px !important;
    padding: 12px 18px;
  }
  .wa-success-phone {
    font-size: 20px !important;
  }
}

/* ==========================================================================
   BOTÃO FLUTUANTE CIRCULAR DE WHATSAPP (LATERAL DIREITA INFERIOR)
   Desacoplado da barra lateral fixa de botões
   ========================================================================== */
.btn-whatsapp-circular {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 99990;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background 0.2s ease;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.btn-whatsapp-circular i {
  color: #ffffff !important;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-whatsapp-circular:hover {
  color: #ffffff !important;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #2be26d 0%, #107e71 100%);
}

.btn-whatsapp-circular:hover i {
  transform: scale(1.05);
}

.btn-whatsapp-circular:active {
  transform: scale(0.96);
}

/* Pulso animado suave ao redor do botão circular */
.btn-whatsapp-circular .whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.6;
  animation: waCircularPulse 2.4s infinite cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
  pointer-events: none;
}

@keyframes waCircularPulse {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  70% {
    transform: scale(1.55);
    opacity: 0;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* Ajuste Responsivo em Mobile: posiciona acima da barra inferior de botões fixos */
@media (max-width: 767px) {
  .btn-whatsapp-circular {
    bottom: 76px;
    right: 18px;
    width: 58px;
    height: 58px;
    font-size: 30px;
  }
}
