/* 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: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-icon svg {
  width: 36px;
  height: 36px;
}

.whatsapp-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.whatsapp-status {
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  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;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.whatsapp-number {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Inter', sans-serif;
}

.whatsapp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.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);
  border: 2px solid rgba(37, 211, 102, 0.2);
}

.whatsapp-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #252525;
  margin-bottom: 8px;
  text-align: center;
}

.whatsapp-modal-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 24px;
}

.whatsapp-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
}

.whatsapp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whatsapp-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #252525;
  margin-bottom: 6px;
}

.whatsapp-form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

.whatsapp-form-input:focus {
  outline: none;
  border-color: #25D366;
}

.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;
  margin-top: 8px;
}

.whatsapp-success {
  display: none;
  text-align: center;
}

.whatsapp-success.active {
  display: block;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }

  .whatsapp-button {
    padding: 14px 16px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
  }

  .whatsapp-content {
    display: none;
  }

  .whatsapp-icon svg {
    width: 30px;
    height: 30px;
  }

  .whatsapp-modal-content {
    padding: 30px 20px;
    margin: 16px;
    width: calc(100% - 32px);
  }
}

@media (min-width: 1024px) {
  .whatsapp-float {
    right: max(30px, env(safe-area-inset-right));
    left: auto;
  }
}
