/* Chatbot Widget Styles */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'DM Sans', sans-serif;
}

/* Floating button */
.chatbot-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #264D77;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(38,77,119,0.3);
  transition: all .3s;
  position: relative;
}
.chatbot-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(38,77,119,0.4);
}
.chatbot-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Chat popup */
.chatbot-popup {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  max-height: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chatbot-popup.open {
  display: flex;
}

/* Header */
.chatbot-header {
  background: #142D47;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-header .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #264D77;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.chatbot-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}
.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 4px;
}
.chatbot-close:hover { opacity: 1; }

/* Messages */
.chatbot-messages {
  padding: 16px;
  overflow-y: auto;
  max-height: 320px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chatbot-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  animation: msg-in .3s ease;
}
.chatbot-msg.bot {
  background: #f0f4f8;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chatbot-msg.user {
  background: #264D77;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Quick reply buttons */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}
.quick-btn {
  padding: 8px 14px;
  background: #f0f4f8;
  border: 1px solid #dde;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  color: #142D47;
}
.quick-btn:hover {
  background: #264D77;
  color: #fff;
  border-color: #264D77;
}

/* Input area */
.chatbot-input {
  display: flex;
  border-top: 1px solid #eee;
  padding: 10px 12px;
  gap: 8px;
}
.chatbot-input input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
}
.chatbot-input input:focus {
  border-color: #264D77;
}
.chatbot-input button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #264D77;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatbot-input button:hover { background: #142D47; }
.chatbot-input button svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Contact prompt */
.contact-prompt {
  background: #f8f9fa;
  border: 1px solid #e0e4e8;
  border-radius: 10px;
  padding: 12px;
  margin-top: 6px;
  text-align: center;
}
.contact-prompt p {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}
.contact-prompt a {
  display: inline-block;
  padding: 8px 20px;
  background: #264D77;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.contact-prompt a:hover { background: #142D47; }
.contact-prompt input:focus { outline: none; border-color: #264D77 !important; }

/* Invite bubble animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .chatbot-popup { width: calc(100vw - 48px); right: 0; }
}
