body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Chat Widget */
#chat-widget {
  width: 1000px;
  height: 520px;
  border: 1px solid #ccc;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat Header */
.chat-header {
  background-color: #b58138;
  color: white;
  padding: 5px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  height: 35px;
  box-sizing: border-box;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-title {
  margin: 0;
}

/* Messages Area */
#messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background-color: #ffffff;
}

/* Thailife logo + main image */
.welcome-logo {
  display: block;
  margin: 0 auto 10px auto;
  width: 125px;
  height: 80px;
}

.welcome-logo1 {
  display: block;
  margin: 0 auto 10px auto;
  width: 220px;
  height: 100px;
}

.welcome-text {
  text-align: center;
  font-size: 14px;
  color: #b58138;
  margin-bottom: 10px;
  font-weight: bold;
}

/* NEW – logo + LINE + phone row */
.logo-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 4px;
}

/* override the auto margins when logo is inside the contact row */
.logo-contact-row .welcome-logo {
  margin: 0;
}

.logo-contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 11px;
  color: #333;
}

.logo-contact-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  margin-bottom: 2px;
}

.logo-contact-btn span {
  font-size: 11px;
}

/* Recognized question display (optional small banner) */
.recognized-question-display {
  margin-top: 4px;
  font-size: 12px;
  text-align: right;
  color: #555;
}

/* Assistant Response Styling */
.message.assistant {
  background-color: #f2f2f2;
  color: #333;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  line-height: 1.5;
  font-size: 16px;
  font-weight: bold;
  white-space: pre-wrap;
}

/* User Message Styling */
.message.user {
  text-align: right;
  color: #333;
  padding: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* Error Message Styling */
.message.error {
  color: red;
  font-size: 12px;
  padding: 5px;
}

/* System Message Styling */
.message.system {
  font-size: 12px;
  padding: 5px;
}

/* Input Area */
.input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ccc;
}

#messageInput {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 13px;
  margin-right: 6px;
}

/* Main Button Style – reused across all */
.send-button,
.mic-button,
.action-btn2 {
  background-color: #e22f2f;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 5px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover styles */
.send-button:hover {
  background-color: #cc2727;
}

.action-btn2 {
  background-color: #b58138;
}

.action-btn2:hover {
  background-color: #ad7622;
}

.mic-button {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #555;
}

.mic-button:hover {
  background-color: #f8f8f8;
}

/* Chat Footer */
.chat-footer {
  display: flex;
  justify-content: space-around;
  padding: 5px;
  background-color: #ffffff;
  border-top: 1px solid #ccc;
}

/* Image inside mic button */
.mic-button img {
  width: 20px;
  height: auto;
  pointer-events: none;
}

/* Assistant images scaling */
.message.assistant img {
  max-width: 50%;
  display: block;
  margin: 10px auto;
}

/* Language Panel */
#languagePanel > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-btn {
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn img {
  width: 19px;
  height: auto;
}

.lang-btn:hover {
  background-color: #eee;
}

/* Progress bar */
#progressBarContainer {
  display: none;
  height: 4px;
  width: 100%;
  background: #eee;
  position: relative;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: #b58138;
  transition: width .25s linear;
}

/* NEW – quick question buttons */
.quick-questions-container {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.quick-question-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px; /* bumped from 12px */
  cursor: pointer;
  background: #f3f3f3;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
}

.quick-question-btn:hover {
  background: #e6e6e6;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.quick-question-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
