/* =========================================================
   CHATBOT FLOATING BUTTON
========================================================= */
#chatbotBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulse 2.5s infinite;
}

#chatbotBtn:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

#chatbotBtn img {
  width: 61%;
  height: 61%;
  border-radius: 50%;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* =========================================================
   CHATBOT PANEL
========================================================= */
#chatbotPanel {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 360px;
  max-height: 520px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  animation: fadeInUp 0.3s ease;
}

/* =========================================================
   HEADER
========================================================= */
.chat-header {
  background: var(--bs-primary, #007bff);
  color: #fff;
  padding: 12px 15px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  cursor: pointer;
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

/* =========================================================
   BODY
========================================================= */
.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fafafa;
  scroll-behavior: smooth;
}

.chat-body .bot-msg {
  background: var(--bs-secondary, #e9ecef);
  color: #000;
  padding: 8px 12px;
  border-radius: 10px;
  align-self: flex-start;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-body .user-msg {
  background: var(--bs-primary, #007bff);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  align-self: flex-end;
  max-width: 80%;
  word-wrap: break-word;
}

/* Smooth fade-in effect for messages */
.bot-msg, .user-msg {
  animation: fadeIn 0.25s ease;
}

/* =========================================================
   FOOTER
========================================================= */
.chat-footer {
  border-top: 1px solid #ddd;
  padding: 10px;
  background: #f9f9f9;
}

.faq-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.faq-buttons button {
  flex: 1 1 auto;
  background: var(--bs-secondary, #6c757d);
  color: #856c6c;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-buttons button:hover {
  background: var(--bs-primary-hover, #0056b3);
}

/* =========================================================
   INPUT AREA
========================================================= */
.chat-input {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  transition: border 0.2s ease;
}

.chat-input input:focus {
  border-color: var(--bs-primary, #007bff);
}

.chat-input button {
  background: var(--bs-primary, #007bff);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.chat-input button:hover {
  background: var(--bs-primary-hover, #0056b3);
  transform: translateY(-1px);
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 480px) {
  #chatbotBtn {
    width: 58px;
    height: 58px;
    bottom: 20px;
    right: 20px;
  }

  #chatbotPanel {
    right: 10px;
    width: 96%;
    bottom: 85px;
    max-height: 81vh;
  }

  .chat-header {
    font-size: 0.95rem;
    padding: 10px;
  }

  .chat-body {
    font-size: 0.85rem;
  }

  .chat-input input {
    font-size: 0.8rem;
  }
}


/* error for conatct form */
.error {
  border: 2px solid red !important;
  background-color: #fff0f0;
}