/* Chat Widget Variables */
:root {
  --chat-primary: #FF6B35;
  --chat-bg: rgba(255, 255, 255, 0.98);
  --chat-text: #0B0C0C;
  --chat-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --chat-radius: 16px;
  --chat-font: 'Inter', sans-serif;
}

/* Floating Action Button (FAB) */
.chat-widget-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--chat-primary);
  border-radius: 50%;
  box-shadow: var(--chat-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.chat-widget-fab:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 25px 30px -5px rgba(255, 107, 53, 0.4);
}

.chat-widget-fab svg {
  width: 32px;
  height: 32px;
  color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-widget-fab .close-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
}

.chat-widget-fab.active .chat-icon {
  opacity: 0;
  transform: rotate(90deg);
}

.chat-widget-fab.active .close-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Main Popup Container */
.chat-widget-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 48px);
  background: var(--chat-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--chat-radius);
  box-shadow: var(--chat-shadow);
  font-family: var(--chat-font);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
  overflow: hidden;
}

.chat-widget-container.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.chat-header {
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-header-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--chat-text);
}

.chat-header-info p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

/* Contact List */
.contact-links-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: var(--chat-text);
  transition: all 0.2s ease;
}

.contact-link-item:hover {
  background: #f8fafc;
  transform: translateX(4px);
  border-color: rgba(0, 0, 0, 0.1);
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.icon-circle.phone {
  background: #DCFCE7;
  /* Light Green */
}

.icon-circle.email {
  background: #FEF9C3;
  /* Light Yellow */
}

.icon-circle.facebook {
  background: #DBEAFE;
  /* Light Blue */
  font-size: 14px;
  font-weight: bold;
  color: #1e3a8a;
  text-transform: uppercase;
}

.link-details {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

.link-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .chat-widget-fab {
    bottom: 20px;
    right: 20px;
  }

  .chat-widget-container {
    bottom: 90px;
    right: 20px;
    left: 20px;
    width: auto;
  }
}