* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  background: #fafafc;
  padding: 20px;
}

.page {
  max-width: 700px;
  margin-bottom: 120px; /* so chat doesn't cover text */
}

.page h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.page p {
  color: #444;
}

/* Chatbot widget */

.chatbot-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  height: 420px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.chatbot-header {
  background: #ff7a1a;
  color: white;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
}

.chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #fffdf8;
}

.message {
  margin-bottom: 8px;
  display: flex;
}

.message.bot {
  justify-content: flex-start;
}

.message.user {
  justify-content: flex-end;
}

.bubble {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.bot .bubble {
  background: #ffe4c2;
  border-bottom-left-radius: 2px;
}

.user .bubble {
  background: #e3f2ff;
  border-bottom-right-radius: 2px;
}

.chatbot-input-area {
  display: flex;
  border-top: 1px solid #eee;
  padding: 8px;
  gap: 6px;
}

#chatbot-input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
}

#chatbot-input:focus {
  outline: none;
  border-color: #ff7a1a;
}

#chatbot-send {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: #ff7a1a;
  color: white;
  font-size: 13px;
  cursor: pointer;
}

#chatbot-send:hover {
  opacity: 0.9;
}
