/* Floating icon */
#chat-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2A5238;
  color: #fff;
  font-size: 26px;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  z-index: 9999;
}

/* Chat window */
#chat-form-wrapper {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  max-width: 90%;
  display: none;
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 9998;
  flex-direction: column;
}

/* Chat layout */
.chat-form-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 15px;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;

}

.chat-form-container .bot {
  background: #e0e0e0;
  padding: 10px;
  border-radius: 12px;
  margin: 10px 0;
  display: block;
  clear: both;
  font-size: 14px;
  margin-right: 30px;
}

.chat-form-container .user {
  background: #2A5238;
  color: #fff;
  padding: 10px;
  border-radius: 12px;
  margin: 10px 0;
  display: inline-block;
  clear: both;
  font-size: 14px;
  align-self: flex-end;
  margin-left: 30px;
}

.chat-form-container .options {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.chat-form-container .options button {
  padding: 12px 20px;
  border: none;
  background: #2A5238;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}

.user-input::placeholder {
  color: #999;
}

/* Show/Hide animation */
#chat-form-wrapper.open {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Header bar */
.chat-header {
  background: #2A5238;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px;
  font-weight: bold;
  font-size: 18px;
}

#chat-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

/* Textarea input */
.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.user-input {
  flex: 1;
  height: 50px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: sans-serif;
  resize: none;
  box-sizing: border-box;
}

.send-btn {
  background: #2A5238;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 17px 15px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.send-btn:hover {
  background: #24472f;
}

.restart-row {
  text-align: center;
  margin-top: 20px;
}

.restart-btn {
  background: #2A5238;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.restart-btn:hover {
  background: #24472f;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}