* {
  box-sizing: border-box;
}

:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #12233f;
  background: #f4f7fb;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef3f8 0%, #ffffff 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.chat-card {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.chat-header {
  padding: 20px 18px;
  background: #10264a;
  color: #ffffff;
  border-bottom: 4px solid #d92535;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.chat-header h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.quick-questions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e1e7ef;
}

.quick-btn {
  flex: 0 0 auto;
  max-width: 250px;
  padding: 10px 14px;
  border: 1px solid #c7d2e1;
  border-radius: 999px;
  background: #ffffff;
  color: #17345f;
  font-size: 13px;
  text-align: left;
  transition: 0.2s ease;
}

.quick-btn:hover,
.quick-btn:focus-visible {
  border-color: #d92535;
  background: #fff5f6;
}

.quick-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f7f9fc;
}

.message {
  max-width: 85%;
  padding: 11px 14px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(18, 35, 63, 0.06);
}

.message p {
  margin: 0;
}

.assistant-message {
  align-self: flex-start;
  background: #ffffff;
  color: #12233f;
  border-bottom-left-radius: 4px;
}

.user-message {
  align-self: flex-end;
  background: #17345f;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.typing-message {
  font-style: italic;
  opacity: 0.75;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #e1e7ef;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #c7d2e1;
  border-radius: 12px;
  outline: none;
}

.chat-form input:focus {
  border-color: #17345f;
  box-shadow: 0 0 0 3px rgba(23, 52, 95, 0.1);
}

.chat-form button {
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #d92535;
  color: #ffffff;
  font-weight: 700;
}

.chat-form button:hover,
.chat-form button:focus-visible {
  background: #b91f2d;
}

.chat-form button:disabled,
.chat-form input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.chat-footer {
  padding: 12px 16px 16px;
  background: #ffffff;
  color: #637083;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.chat-footer a {
  color: #17345f;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .app-shell {
    align-items: center;
    padding: 30px;
  }

  .chat-card {
    width: min(900px, 100%);
    height: min(820px, calc(100vh - 60px));
    min-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(18, 35, 63, 0.14);
  }

  .chat-header {
    padding: 24px 28px;
  }

  .chat-header h1 {
    font-size: 24px;
  }

  .quick-questions {
    padding: 14px 20px;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .chat-messages {
    padding: 24px;
  }

  .message {
    max-width: 70%;
    font-size: 15px;
  }

  .chat-form {
    padding: 16px 20px;
  }
}
