/* AI Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: 'Open Sans', sans-serif;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  border: none;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(26,60,110,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.05);
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: 'Merriweather', serif;
}

.chatbot-title h4 {
  color: white;
  margin: 0;
  font-size: 1.1rem;
}

.chatbot-title span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: var(--bg-cream);
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

.chat-bubble.bot {
  background: var(--bg-white);
  color: var(--text-charcoal);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
}

.chat-bubble.user {
  background: var(--primary-blue);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chatbot-input {
  display: flex;
  padding: 15px;
  background: var(--bg-white);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.chatbot-input input {
  flex-grow: 1;
  border: 1px solid #e0e0e0;
  padding: 10px 15px;
  border-radius: 20px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.chatbot-input input:focus {
  border-color: var(--primary-blue);
}

.chatbot-input button {
  background: var(--accent-gold);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.chatbot-input button:hover {
  transform: scale(1.05);
  background: var(--accent-gold-hover);
}

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

@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 40px);
    right: -10px;
  }
}
