/* ========== CHATBOT STYLES ========== */
.chatbot-wrapper {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.chat-toggle {
  background: #0a1628;
  color: white;
  border: none;
  border-radius: 60px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}
.chat-toggle:hover { background: #2563eb; transform: scale(1.03); }
.chat-toggle i { font-size: 1.2rem; }
.chat-window {
  background: white;
  border-radius: 32px;
  width: 380px;
  max-width: 88vw;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.20);
  border: 1px solid #e2ebf6;
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}
.chat-window.open { display: flex; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-header {
  background: #0a1628;
  color: white;
  padding: 16px 20px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header span { display: flex; align-items: center; gap: 8px; }
.chat-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.chat-header button:hover { background: rgba(255, 255, 255, 0.1); }
.chat-body {
  padding: 20px;
  max-height: 320px;
  min-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.chat-body::-webkit-scrollbar-thumb { background: #c1c7d0; border-radius: 10px; }
.chat-body::-webkit-scrollbar-thumb:hover { background: #a0aab8; }
.chat-msg {
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  max-width: 85%;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: messageIn 0.3s ease;
}
@keyframes messageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot { background: #e6f0ff; color: #0a1628; align-self: flex-start; border-radius: 18px 18px 18px 4px; }
.chat-msg.user { background: #0a1628; color: white; align-self: flex-end; border-radius: 18px 18px 4px 18px; }
.chat-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid #eaf1fd;
  display: flex;
  gap: 8px;
  background: #fafcff;
}
.chat-footer input {
  flex: 1;
  border: 1px solid #d0d9e9;
  border-radius: 60px;
  padding: 10px 16px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: inherit;
}
.chat-footer input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.chat-footer button {
  background: #0a1628;
  border: none;
  color: white;
  border-radius: 60px;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}
.chat-footer button:hover { background: #2563eb; }

@media (max-width: 768px) {
  .chat-window { width: 90vw; max-height: 80vh; }
  .chat-body { max-height: 250px; min-height: 150px; }
  .chat-toggle { padding: 12px 20px; font-size: 0.9rem; }
  .chat-toggle i { font-size: 1rem; }
}
@media (max-width: 480px) {
  .chatbot-wrapper { bottom: 16px; right: 16px; }
  .chat-window { width: 92vw; border-radius: 24px; }
  .chat-toggle { padding: 10px 16px; font-size: 0.85rem; }
  .chat-header { padding: 14px 16px; font-size: 0.95rem; }
  .chat-body { padding: 16px; max-height: 200px; }
  .chat-msg { font-size: 0.85rem; padding: 10px 14px; }
  .chat-footer { padding: 10px 12px 12px; }
  .chat-footer input { padding: 8px 14px; font-size: 0.85rem; }
  .chat-footer button { padding: 0 14px; }
}
