/* ===== CHATBOT SAFE BOX MODEL ===== */
#chatbot, #chatbot * {
  box-sizing: border-box;
}

/* ===== CHATBOT CONTAINER ===== */
#chatbot {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 9999;
}

/* Toggle Button */
.chat-toggle {
  width: 50px;
  height: 50px;
  background: #384bff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

/* Chat Box */
.chat-box {
  width: 320px;
  background: #fff;
  border-radius: 10px;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
}

/* Header */
.chat-header {
  background: #384bff;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

/* Body */
.chat-body {
  padding: 10px;
  max-height: 350px;
  overflow-y: auto;
  overflow-x: hidden; /* 🔥 prevents scrollbar */
}

/* Bot Message */
.bot-msg {
  background: #f1f1f1;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}

/* Options Buttons */
.options button {
  width: 100%;
  margin-bottom: 6px;
  padding: 8px;
  border-radius: 6px;
  border: none;
  background: #eee;
  cursor: pointer;
  transition: 0.3s;
}

.options button:hover {
  background: #384bff;
  color: #fff;
}

/* ===== UNIQUE INPUT FIELD (FIXED) ===== */
#chatbot .cb-input {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
  transition: 0.3s;

  /* 🔥 MAIN FIX */
  background: #fff !important;
  color: #000 !important;
}

/* Placeholder fix */
#chatbot .cb-input::placeholder {
  color: #888;
}

/* Focus */
#chatbot .cb-input:focus {
  border-color: #384bff;
  box-shadow: 0 0 0 2px rgba(56, 75, 255, 0.15);
}

/* ===== UNIQUE BUTTON ===== */
.cb-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #384bff;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.cb-btn:hover {
  background: #2f3edc;
  transform: translateY(-1px);
}

/* Success Message */
.success-msg {
  background: #e6f9ed;
  color: #0f5132;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 14px;
}