/* Premium Chat Widget Styles */
.chat-widget-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Pill-shaped Toggle Button */
.chat-toggle-btn {
  display: flex;
  align-items: center;
  background-color: #0A1128;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.chat-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Popup Card */
.chat-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Header */
.chat-header {
  background: #0A1128;
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  position: relative;
}
.chat-avatar {
  font-size: 24px;
  background: rgba(255,255,255,0.1);
  padding: 8px;
  border-radius: 50%;
  margin-right: 12px;
}
.chat-title strong { display: block; font-size: 15px; font-weight: 600; }
.chat-title span { font-size: 12px; color: rgba(255,255,255,0.7); }
.chat-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.6;
}
.chat-close:hover { opacity: 1; }

/* Body */
.chat-body {
  padding: 20px;
  background: #f8f9fa;
}
.chat-bubble {
  background: white;
  color: #333;
  padding: 16px;
  border-radius: 0 12px 12px 12px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Footer & WhatsApp Button */
.chat-footer {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #eee;
}
.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #25d366;
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}
.wa-btn:hover { background: #128C7E; color: white; }

/* Mobile specific */
@media (max-width: 768px) {
  .chat-widget-container { bottom: 20px; right: 20px; }
  .chat-toggle-btn { padding: 12px 16px; font-size: 14px; }
  .chat-popup { right: -10px; width: 300px; }
}
