#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  font-family: 'Epilogue', sans-serif;
}

/* Toggle button */
#chat-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #fff; font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}
#chat-toggle:hover { transform: scale(1.1); }

/* Popup window */
#chat-popup {
  font-family: 'Poppins', sans-serif;
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 90px; right: 20px;
  width: 360px; height: 480px;
  background: #fff; color: #0c0d13;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-header {
  background: #fff;
  color: #0d1935;
  font-weight: 600;
  text-align: center;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}
.chat-header button {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #0d1935;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message {
  padding: 10px 14px;
  border-radius: 7px;
  max-width: 80%;
  white-space: pre-wrap;
  line-height: 1.4;
  font-size: 15px;
}
.user { background: #0D1935; color: #fff; align-self: flex-end; }
.bot { background: #F6F6F6; border: 1px solid #F6F6F6; color:#0d1935; align-self: flex-start; }

.chat-input-area {
  display: flex;
  margin: 10px 20px 15px;
  background: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 24px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 4px;
  overflow: hidden;
  position: relative;
  outline: rgb(0, 0, 0) solid 0px;
  transition: outline-width 150ms;
}
#chat-input {
  flex: 1;
  resize: none;
  border: none;
  border-radius: 12px;
  padding: 8px;
  font-size: 14px;
  background: #ffffff;
  color: #0d1935;
  font-family: 'Poppins', sans-serif;
}
#chat-input:focus { outline: none; }
#chat-send {
  margin-left: 8px;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: #eee !important;
  color: #0d1935;
  font-size: 16px;
  cursor: pointer;
  line-height: 16px;
}
#chat-clear {
  font-size: 18px;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#chat-clear.visible {
  opacity: 1;
  pointer-events: auto;
}
#chat-clear:hover { opacity: 1; }

.message.bot a {
  color: #d87f0c;
  text-decoration: underline;
}
.message.bot a:hover {
  text-decoration: none;
  color: #eda343;
}

#askaquestion, #backtotop, #backtotopmobile {
  display:none !important;
}

/* --- Pulse animation for chat button --- */
@keyframes chatPulse {
  0%   { transform: scale(1);    }
  70%  { transform: scale(1.1);  }
  100% { transform: scale(1);    }
}

/* default pulsing state */
#chat-toggle {
  animation: chatPulse 2s infinite;
}
#chat-popup.showing ~ #chat-toggle {
  animation: none;
}
