.chatbot-shell {
  min-height: 100vh;
}

.chatbot-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 34px;
  align-items: stretch;
  padding: 116px 6vw 7vh;
}

.chatbot-intro {
  align-self: center;
  max-width: 640px;
}

.chatbot-intro h1 {
  white-space: normal;
}

.chat-panel {
  min-height: 74vh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 18px;
  padding: 24px;
  background: rgba(15, 11, 7, 0.82);
  border: 1px solid rgba(215, 169, 83, 0.55);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.chat-messages {
  min-height: 320px;
  max-height: 58vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px;
}

.chat-message {
  width: fit-content;
  max-width: min(680px, 92%);
  padding: 14px 16px;
  border: 1px solid rgba(215, 169, 83, 0.35);
  line-height: 1.6;
}

.chat-message p {
  margin: 0;
}

.user-message {
  align-self: flex-end;
  color: #221508;
  background: rgba(244, 223, 159, 0.94);
}

.bot-message {
  align-self: flex-start;
  color: #ead6a8;
  background: rgba(0, 0, 0, 0.34);
}

.error-message {
  color: #ffe1d7;
  border-color: rgba(190, 70, 45, 0.7);
}

.suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.suggested-questions button {
  padding: 10px 12px;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(215, 169, 83, 0.45);
  font: inherit;
  cursor: pointer;
}

.suggested-questions button:hover {
  border-color: var(--gold-light);
}

.chat-form {
  display: grid;
  gap: 12px;
}

.chat-form label {
  color: var(--gold-light);
}

.chat-form textarea {
  color: var(--ink);
}

.chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chat-status {
  margin: 0;
  color: #d7c49a;
  line-height: 1.5;
}

.chat-actions .vintage-button {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .chatbot-layout {
    grid-template-columns: 1fr;
    padding: 86px 5vw 48px;
  }

  .chat-panel {
    min-height: 70vh;
  }
}

@media (max-width: 640px) {
  .chat-panel {
    padding: 18px;
  }

  .chat-message {
    max-width: 100%;
  }

  .chat-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-actions .vintage-button {
    width: 100%;
  }
}
