/* Floating Button */
#chatbot-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

#chatbot-button svg {
  pointer-events: none;
}

#chatbot-button:hover {
  transform: scale(1.1);
}

/* Popup */
#chat-popup {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 330px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  display: none;              /* hidden by default */
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

#chat-popup.show {
  display: flex;              /* visible when .show is added */
}

/* Header */
.chat-header {
  background: #111;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  font-size: 16px;
  font-weight: 600;
}

#close-chat {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}

/* Body */
.chat-body {
  height: 260px;
  overflow-y: auto;
  padding: 15px;
  background: #f7f7f7;
  scroll-behavior: auto;
}

.bot-message,
.user-message {
  padding: 10px 12px;
  margin-bottom: 10px;
  max-width: 85%;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.bot-message {
  background: #eaeaea;
}

.user-message {
  background: #111;
  color: #fff;
  margin-left: auto;
}

/* Options container */
.bot-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
}

/* Option buttons */
.option-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  text-align: left;
}

.option-btn:hover {
  background: #333;
}

/* Restart button special style */
.restart-chat {
  background: #222;
}

/* Forms inside chat */
.chat-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.chat-input-field {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  background: #fff;
}

.chat-input-field:focus {
  border-color: #111;
}

.form-submit-btn {
  align-self: flex-end;
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 4px;
}

.form-submit-btn:hover {
  background: #333;
}

/* Footer input row */
.chat-footer {
  display: flex;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #ddd;
}

#chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 12px;
  outline: none;
  font-size: 14px;
}

#send-btn {
  background: #111;
  color: #fff;
  border: none;
  width: 40px;
  margin-left: 8px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
