/* Floating Widget Container */
.contact-widget {
  position: fixed;
  bottom: 100px; /* move it 100px from the bottom */
  right: 15px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

/* Toggle Button (smaller + cleaner) */
.widget-toggle {
  width: 48px;
  height: 48px;
  background: #0d6efd;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: pulse 2s infinite;
  transition: 0.3s;
}

.widget-toggle:hover {
  transform: scale(1.08);
}

/* IoT Pulse Animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13,110,253, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(13,110,253, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13,110,253, 0); }
}

/* Widget Content (compact card) */
.widget-content {
  width: 190px;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: none;
  animation: slideUp 0.3s ease;
}

/* Open State */
.contact-widget.open .widget-content {
  display: block;
}

/* Slide Animation */
@keyframes slideUp {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Title */
.widget-content h4 {
  margin-bottom: 8px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

/* Buttons (uniform styling) */
.widget-btn {
  display: block;
  text-decoration: none;
  margin: 6px 0;
  padding: 8px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: all 0.25s ease;
}

/* Button Colors */
.widget-btn.call {
  background: #0d6efd;
}

.widget-btn.whatsapp {
  background: #25D366;
}

.widget-btn.email {
  background: #6f42c1; /* FIXED (purple for email) */
}

.widget-btn.consult {
  background: #fd7e14;
}

/* Hover Effects */
.widget-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Mobile Optimization */
@media (max-width: 576px) {
  .widget-content {
    width: 170px;
    padding: 10px;
  }

  .widget-btn {
    font-size: 12px;
    padding: 7px;
  }

  .widget-toggle {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}