/* ===========================
   BOTÃO WHATSAPP FLUTUANTE
   =========================== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  cursor: pointer;
  animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.whatsapp-button {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  padding: 18px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4),
              0 8px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.whatsapp-button:hover::before {
  width: 300px;
  height: 300px;
}

.whatsapp-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6),
              0 12px 50px rgba(0, 0, 0, 0.3);
}

.whatsapp-button:active {
  transform: scale(0.98);
}

.whatsapp-icon {
  position: relative;
  z-index: 1;
}

.whatsapp-icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.whatsapp-status {
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes blink {
  0% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  }
  50% {
    opacity: 0.2;
    transform: scale(0.8);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  }
}

.whatsapp-number {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-family: 'Inter', sans-serif;
}

/* Modal do Formulário */
.whatsapp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.whatsapp-modal.active {
  display: flex;
}

.whatsapp-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 100px rgba(37, 211, 102, 0.2);
  animation: slideUp 0.4s ease;
  border: 2px solid rgba(37, 211, 102, 0.2);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.whatsapp-modal-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.whatsapp-modal-header::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #25D366, #128C7E);
  border-radius: 2px;
}

.whatsapp-modal-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  animation: iconPulseGreen 2s ease-in-out infinite;
}

@keyframes iconPulseGreen {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
  }
}

.whatsapp-modal-icon svg {
  width: 36px;
  height: 36px;
}

.whatsapp-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #252525;
  margin-bottom: 8px;
}

.whatsapp-modal-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.whatsapp-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.whatsapp-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #252525;
  transform: rotate(90deg);
}

.whatsapp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.whatsapp-form-group {
  position: relative;
}

.whatsapp-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #252525;
  margin-bottom: 8px;
}

.whatsapp-form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  background: white;
}

.whatsapp-form-input:focus {
  outline: none;
  border-color: #25D366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1),
              0 4px 12px rgba(37, 211, 102, 0.2);
  transform: translateY(-2px);
}

.whatsapp-form-input::placeholder {
  color: #adb5bd;
}

.whatsapp-form-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.whatsapp-form-group.error .whatsapp-form-input {
  border-color: #dc3545;
}

.whatsapp-form-group.error .whatsapp-form-error {
  display: block;
}

.whatsapp-submit {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.whatsapp-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.whatsapp-submit:hover::before {
  width: 400px;
  height: 400px;
}

.whatsapp-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-submit:active {
  transform: translateY(-1px);
}

.whatsapp-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.whatsapp-submit span {
  position: relative;
  z-index: 1;
}

/* Mensagem de Sucesso */
.whatsapp-success {
  display: none;
  text-align: center;
  padding: 20px;
}

.whatsapp-success.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.whatsapp-success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: successPop 0.6s ease;
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.whatsapp-success-icon svg {
  width: 40px;
  height: 40px;
}

.whatsapp-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #252525;
  margin-bottom: 10px;
}

.whatsapp-success-text {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Responsivo */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-button {
    padding: 15px 20px;
  }

  .whatsapp-icon svg {
    width: 30px;
    height: 30px;
  }

  .whatsapp-status {
    font-size: 12px;
  }

  .whatsapp-number {
    font-size: 14px;
  }

  .whatsapp-modal-content {
    padding: 30px 20px;
    margin: 20px;
  }

  .whatsapp-modal-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .whatsapp-button {
    padding: 12px 16px;
    gap: 10px;
  }

  .whatsapp-content {
    gap: 0;
  }

  .whatsapp-status {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .whatsapp-number {
    font-size: 13px;
  }
}

