/* ===============================
   SIMPLE CHAT BASE
   =============================== */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #111;
}

/* ===============================
   SIMPLE CHAT LAYOUT
   =============================== */

main.simple-chat {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 16px 32px;
}

.simple-chat h1 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.simple-chat .sub {
  margin: 0 0 12px;
  color: #444;
}

/* ===============================
   PRIMARY CTA
   =============================== */

#start-demo-btn,
#start-demo-btn.primary {
  display: inline-block;
  margin: 8px 0 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

#start-demo-btn:hover {
  opacity: 0.9;
}

/* ===============================
   CHAT CARD
   =============================== */

#ai-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

/* ===============================
   INPUT ROW
   =============================== */

.ask-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

#user-input {
  flex: 1;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #111;
}

#user-input::placeholder {
  color: #777;
}

#ask-btn {
  padding: 12px 18px;
  font-size: 16px;
  border-radius: 6px;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
}

#ask-btn:hover {
  opacity: 0.9;
}

/* Explicitly hide unused controls */
#mic-btn,
#reset-btn {
  display: none;
}

/* ===============================
   AI RESPONSE
   =============================== */

#ai-response {
  margin-top: 12px;
  line-height: 1.6;
  color: #222;
}

#ai-response p {
  margin: 6px 0;
}

#ai-response h3 {
  margin: 10px 0 4px;
}

.ai-example {
  color: #555;
  font-size: 0.95em;
  margin-top: 4px;
}

/* ===============================
   LINKS
   =============================== */

#ai-section a {
  color: #0d6ea5;
  text-decoration: underline;
}

/* ===============================
   MOBILE SAFETY
   =============================== */

@media (max-width: 768px) {
  main.simple-chat {
    margin: 16px;
    padding: 0;
    max-width: 100%;
  }
}


/* === Final alignment fix === */

/* Make everything share the same left edge */
.simple-chat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Keep the CTA button aligned */
#start-demo-btn {
  margin-bottom: 12px;
}

/* Align the input row under the CTA */
.simple-chat #ai-section {
  width: 100%;
  padding: 0;              /* remove inner offset */
  margin-top: 0;
}

/* Control the input row layout */
.simple-chat .ask-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  max-width: 640px;        /* matches visual width nicely */
}

/* Input fills the row cleanly */
.simple-chat #user-input {
  flex: 1;
  min-height: 48px;
}