/* Floating Contact Icons - Shared across all pages */
.floating-contacts {
  position: fixed;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  font-size: 24px;
}

.floating-contacts:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: white;
}

/* WhatsApp Icon - Left Side */
.whatsapp-float {
  left: 20px;
  background: #25D366;
}

.whatsapp-float:hover {
  background: #128C7E;
  color: white;
}

/* Phone Icon - Right Side */
.phone-float {
  right: 20px;
  background: #4A90E2;
}

.phone-float:hover {
  background: #2C5282;
  color: white;
}

/* Pulse Animation */
.floating-contacts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .floating-contacts {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 15px;
  }
  
  .whatsapp-float {
    left: 15px;
  }
  
  .phone-float {
    right: 15px;
  }
}

@media (max-width: 480px) {
  .floating-contacts {
    width: 45px;
    height: 45px;
    font-size: 18px;
    bottom: 10px;
  }
  
  .whatsapp-float {
    left: 10px;
  }
  
  .phone-float {
    right: 10px;
  }
}

/* Accessibility */
.floating-contacts:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Tooltip */
.floating-contacts::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-contacts:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: 75px;
}

/* Arrow for tooltip */
.floating-contacts::before {
  content: '';
  position: absolute;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-contacts:hover::before {
  opacity: 1;
  visibility: visible;
  bottom: 70px;
}