.chatbot-faq {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.chatbot-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  background: linear-gradient(135deg, #5f1e1e 0%, #7a2828 100%) !important;
  color: #fff !important;
  border: 3px solid #e8a210 !important;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(95, 30, 30, 0.4), 0 0 20px rgba(232, 162, 16, 0.3);
  transition: all 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(95, 30, 30, 0.5), 0 0 30px rgba(232, 162, 16, 0.5);
  background: linear-gradient(135deg, #7a2828 0%, #5f1e1e 100%) !important;
}

.chatbot-toggle i {
  width: 28px;
  height: 28px;
}

.chatbot-content {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 380px;
  height: 500px;
  background: #fff !important;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  flex-direction: column;
}

.chatbot-faq.open .chatbot-content {
  display: flex;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-faq.open .chatbot-toggle {
  display: none;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #5f1e1e 0%, #7a2828 100%) !important;
  color: #fff !important;
  flex-shrink: 0;
}

.chatbot-header * {
  color: #fff !important;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 2px;
}

.chatbot-header-info i {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50%;
  padding: 8px;
}

.chatbot-header-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: #fff !important;
}

.chatbot-header-info span {
  font-size: 0.75rem;
  color: #4ade80 !important;
}

.chatbot-close {
  background: none !important;
  border: none;
  color: #fff !important;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.chatbot-close i {
  width: 20px;
  height: 20px;
  color: #fff !important;
}

.chatbot-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa !important;
}

.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message p {
  margin: 0;
  color: inherit !important;
}

.user-message {
  align-self: flex-end;
  background: linear-gradient(135deg, #5f1e1e 0%, #7a2828 100%) !important;
  color: #fff !important;
  border-bottom-right-radius: 4px;
}

.bot-message {
  align-self: flex-start;
  background: #fff !important;
  color: #333 !important;
  border: 1px solid #eee;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.typing-message {
  padding: 16px 20px !important;
  min-width: 60px !important;
}

.typing-indicator {
  display: inline-flex;
  gap: 4px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #5f1e1e !important;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.chatbot-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #fff !important;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.chatbot-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input input:focus {
  border-color: #5f1e1e;
}

.chatbot-input button {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #5f1e1e 0%, #7a2828 100%) !important;
  color: #fff !important;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chatbot-input button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(95, 30, 30, 0.3);
}

.chatbot-input button i {
  width: 18px;
  height: 18px;
  color: #fff !important;
}

@media (max-width: 480px) {
  .chatbot-faq {
    bottom: 20px;
    right: 20px;
  }

  .chatbot-toggle {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .chatbot-content {
    width: calc(100vw - 40px);
    right: -10px;
    height: 450px;
  }
}