/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 4px 4px 8px #666;
  color: #fff;
  text-decoration: none;
}

.whatsapp-float:visited {
  color: #fff;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 120px;
  right: 20px;
  z-index: 999;
  font-family: Arial, sans-serif;
}

.whatsapp-chat {
  width: 300px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0);
  transform-origin: bottom right;
  transition: all 0.3s ease;
  display: none;
}

.whatsapp-chat.active {
  transform: scale(1);
  display: block;
}

.chat-header {
  background: #25d366;
  padding: 15px;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.chat-info h4 {
  margin: 0;
  font-size: 16px;
}

.chat-info p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
}

.chat-body {
  padding: 20px;
  background: #f0f0f0;
}

.chat-message {
  background: white;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quick-replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-reply {
  background: #25d366;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.quick-reply:hover {
  background: #128c7e;
  transform: translateX(5px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .whatsapp-widget {
    right: 10px;
    bottom: 110px;
  }

  .whatsapp-chat {
    width: 280px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 26px;
  }
}

/* WhatsApp inline buttons in contact section */
.whatsapp-inline {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  margin: 10px 5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 220px;
  height: 60px;
  font-size: 18px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
  animation: pulse-green 3s infinite;
}

.whatsapp-inline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.whatsapp-inline:hover::before {
  left: 100%;
}

.whatsapp-inline:hover {
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-inline:visited {
  color: white;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  }

  50% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  }

  100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  }
}

/* Mobile responsive WhatsApp buttons */
@media (max-width: 768px) {
  .whatsapp-inline {
    width: 100%;
    min-width: unset;
    height: 50px;
    padding: 16px 32px;
    font-size: 16px;
    margin: 8px 0;
    justify-content: center;
  }
}