:root {
  --brand-brown: #6e4f2a;
  --brand-brown-dark: #4b3219;
  --brand-gold: #c99247;
  --brand-gold-soft: #dcb177;
  --brand-cream: #fdf8f2;
  --brand-ivory: #f4ebdf;
  --brand-line: #e2d4c0;
  --gray-border: #dfd2c4;
  --bot-bg: #ffffff;
  --text-dark: #2c1b11;
  --widget-bg: linear-gradient(145deg, #6e4f2a, #a0713c);
  --widget-bg-soft: #fdf8f2;
  --icon-color: #6e4f2a;
  --user-accent: linear-gradient(125deg, #f9e1c0, #edc188);

  /* Layout customization */
  --chat-offset: 10px;
  --toggle-size: 60px;
  --chat-width: 480px;
  --chat-body-height: 560px;
  --chat-border-radius: 26px;
  --chat-shadow: 0 40px 80px rgba(41, 26, 9, 0.35);
  --chat-max-width: calc(100vw - 16px);
  --toggle-shadow: 0 15px 30px rgba(110, 79, 42, 0.35);
  --toggle-shadow-hover: 0 22px 40px rgba(110, 79, 42, 0.45);
  --user-bubble-radius: 24px;
  --bot-bubble-radius: 16px;
  --toggle-icon-image: url("/images/chatbot_blink_avatar.gif");
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* Landing Page Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: radial-gradient(circle at top, #a1924f, #b09f00);
  color: var(--text-dark);
  min-height: 100vh;
}

.landing {
  min-height: 100vh;
  padding: 60px 24px 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero {
  max-width: 720px;
  color: #fff7ea;
  text-shadow: 0 3px 8px rgba(73, 54, 16, 0.4);
}

.hero-tagline {
  letter-spacing: 0.25em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.hero-subtitle {
  margin: 6px 0 18px;
  font-size: 1rem;
  letter-spacing: 0.15em;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 0.3em;
}

.hero-emoji {
  font-size: 1.4rem;
  margin-bottom: 32px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  color: #5c3c0d;
  border-radius: 28px;
  padding: 32px 40px;
  box-shadow: 0 40px 80px rgba(55, 38, 9, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: perspective(800px) rotateX(2deg);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.cta-button {
  margin-top: 18px;
  border: none;
  border-radius: 999px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(120deg, #f7e6b4, #d5af54);
  color: #5a4713;
  box-shadow: 0 15px 35px rgba(150, 112, 33, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(150, 112, 33, 0.5);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 960px;
  margin-top: 50px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 30px 60px rgba(44, 32, 9, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px rgba(44, 32, 9, 0.25);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.landing-accent {
  position: absolute;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  right: 40px;
  bottom: 80px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Chatbot Test Table Styling */
#testTable {
  margin: 0 0 60px;
  max-width: 960px;
  width: min(92vw, 960px);
  align-self: flex-start;
}

#testTable table {
  width: 100%;
  border-collapse: collapse;
  background: #fff9e6; /* soft gold paper tone */
  color: #3b2f0a; /* dark warm brown */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

#testTable th {
  background: #b08b36;   /* gold header */
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 1px;
  font-size: 15px;
}

#testTable td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-size: 15px;
}

#testTable tr:hover {
  background: #f8efd1; /* mild hover highlight */
}

#testTable td:nth-child(1) {
  text-align: center;
  font-weight: bold;
}
#testTable td:nth-child(2) {
  direction: rtl;
  text-align: right;
}
#testTable td:nth-child(3) {
  direction: ltr;
  text-align: left;
}

.test-table-header {
  text-align: center;
  margin: 0 auto 20px;
  width: min(92vw, 960px);
  color: #fffdf4;
}

.test-table-title {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #fff7ea;
  text-shadow: 0 3px 8px rgba(73, 54, 16, 0.4);
  font-weight: 700;
}

.test-table-subtitle {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: #3b2f0a;
}

.test-table-note {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.question-cell {
  position: relative;
  padding-right: 44px;
}

.question-cell .question-text {
  display: inline;
}

.question-cell-ar {
  padding-left: 44px;
  padding-right: 12px;
}

.question-cell-en {
  padding-right: 44px;
}

.copy-btn {
  border: none;
  background: transparent;
  color: #585858;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.35;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.copy-btn .copy-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
}

.copy-btn .copy-icon::before,
.copy-btn .copy-icon::after {
  content: '';
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 4px;
  width: 14px;
  height: 14px;
}

.copy-btn .copy-icon::before {
  top: 2px;
  left: 0;
  opacity: 0.45;
}

.copy-btn .copy-icon::after {
  top: -2px;
  right: 0;
}

.copy-btn.copied {
  opacity: 1;
  color: #a27a1f;
}

.copy-btn.copy-error {
  color: #b3261e;
}

.question-cell:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.04);
}

.copy-btn:focus-visible {
  outline: 2px solid #a27a1f;
  outline-offset: 2px;
}

.question-cell-en .copy-btn {
  right: 12px;
}

.question-cell-ar .copy-btn {
  left: 12px;
  right: auto;
}

/* Chat Widget Styles */

.chat-widget,
.chat-widget *,
.chat-widget *::before,
.chat-widget *::after {
  box-sizing: border-box;
}

.chat-widget,
.chat-widget button,
.chat-widget input,
.chat-widget textarea,
.chat-widget select {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

.chat-widget {
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  color: var(--text-dark);
}

.chat-widget button,
.chat-widget input,
.chat-widget textarea {
  font-size: 1rem;
}

.chat-widget {
  position: fixed;
  bottom: var(--chat-offset);
  right: var(--chat-offset);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.chat-toggle .toggle-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
  text-align: right;
  padding: 10px 26px;
  background: var(--brand-cream);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  color: var(--brand-brown);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 18px 30px rgba(68, 42, 13, 0.16);
}

.chat-toggle .toggle-greeting {
  font-size: 1rem;
}

.chat-toggle .toggle-label {
  font-size: 1rem;
}

.chat-toggle .toggle-icon {
  width: var(--toggle-size);
  height: var(--toggle-size);
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.chat-toggle .toggle-icon::before {
  content: '';
  width: 180%;
  height: 180%;
  background-image: var(--toggle-icon-image);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: block;
}

.chat-toggle:hover {
  transform: translateY(-2px);
}

.chat-toggle:hover .toggle-icon {
  box-shadow: var(--toggle-shadow-hover);
}

.chat-toggle .toggle-text,
.chat-toggle .toggle-icon {
  transition: box-shadow 0.2s ease;
}

.chat-window {
  position: absolute;
  bottom: calc(var(--toggle-size) + 14px);
  right: 0;
  width: var(--chat-width);
  max-width: var(--chat-max-width);
  border-radius: var(--chat-border-radius);
  box-shadow: var(--chat-shadow);
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid var(--brand-line);
  background: var(--widget-bg-soft);
  backdrop-filter: blur(4px);
}

.chat-window.open {
  display: flex;
}

.chat-widget.chat-open .chat-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.chat-widget.chat-open .chat-window {
  bottom: var(--chat-offset);
}

.chat-header {
  background: var(--widget-bg);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(114, 83, 43, 1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid rgba(114, 83, 43, 1);
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.brand-info h2 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: 0.3px;
}

.brand-info p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.chat-action:hover {
  opacity: 0.85;
}

.chat-refresh svg {
  width: 16px;
  height: 16px;
}

.chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.chat-close:hover {
  opacity: 0.85;
}

.chat-body {
  display: flex;
  flex-direction: column;
  height: var(--chat-body-height);
  background: var(--brand-cream);
}

.messages {
  flex: 1;
  padding: 18px 20px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
}

.message {
  padding: 0;
  border-radius: var(--bot-bubble-radius);
  font-size: 0.96rem;
  line-height: 1.38;
  max-width: calc(100% - 8px);
  word-wrap: break-word;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.message.bot {
  align-self: flex-start;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.message.bot[dir='rtl'] {
  flex-direction: row-reverse;
}

.message.bot-rich {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--brand-line);
  padding: 18px 18px;
  box-shadow: none;
  width: 100%;
  max-width: calc(100% - 4px);
}

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-ivory);
  border: 1px solid var(--brand-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--icon-color);
  overflow: hidden;
}

.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bot-content {
  flex: 1;
  color: var(--text-dark);
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.4;
}

.bot-content h1,
.bot-content h2,
.bot-content h3,
.bot-content h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #1f1a12;
}

.bot-content ul,
.bot-content ol {
  padding-left: 0;
  margin: 4px 0;
  margin-left: 0;
  list-style-position: inside;
}

.bot-content li {
  margin-bottom: 2px;
  padding-left: 0;
}

.bot-content .advisor-link {
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-content .advisor-link img {
  margin: 0;
  border-radius: 0;
}

.bot-content a {
  color: var(--brand-brown);
  font-weight: 600;
  text-decoration: none;
}

.bot-content a:hover {
  text-decoration: underline;
}

.bot-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.bot-content th,
.bot-content td {
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  text-align: left;
}

.bot-content th {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

.message.bot.intro {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fffaf2;
  border: 1px solid var(--brand-line);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 10px 35px rgba(48, 32, 13, 0.08);
}

.message.bot.intro p {
  margin: 0;
  font-size: 1rem;
  color: #3b2f0a;
}

.message.user {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.user-bubble {
  border-radius: var(--user-bubble-radius);
  border-bottom-right-radius: 8px;
  background: var(--user-accent);
  color: var(--brand-brown-dark);
  min-width: 130px;
  max-width: 85%;
  padding: 8px 18px;
  box-shadow: none;
}

.user-bubble p {
  margin: 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 157, 52, 0.25);
  color: var(--brand-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.message[dir='rtl'] {
  text-align: right;
}

.typing-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0 22px 16px;
}

.typing-indicator.hidden {
  display: none;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gold);
  display: inline-block;
  animation: typing 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

.typing-indicator small {
  font-size: 0.75rem;
  color: #777;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  align-items: stretch;
}

.quick-options.stacked {
  width: 100%;
}

.quick-option {
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 4px 18px;
  background: var(--brand-ivory);
  color: var(--brand-brown);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  line-height: 1.1;
  flex: 1 1 240px;
  white-space: normal;
  box-shadow: none;
  transition: transform 0.15s ease, background 0.15s ease;
  max-width: 100%;
}

.quick-option .icon {
  font-size: 1rem;
}

.quick-option:hover {
  transform: translateY(-1px);
  background: #fffdfa;
}

.quick-options.follow-ups {
  margin-top: 10px;
  gap: 8px;
}

.message.bot.intro .quick-options {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  align-items: stretch;
}

.message.bot.intro .quick-option {
  justify-content: flex-start;
  width: auto;
  min-width: 160px;
  flex: 1 1 220px;
  max-width: 100%;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  padding-bottom: calc(8px + var(--safe-area-bottom));
  border-top: 1px solid var(--brand-line);
  background: #fff;
  flex-shrink: 0;
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  background: #fffdfa;
}

.chat-input input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(201, 146, 71, 0.18);
}

.chat-language {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  border-radius: 14px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  background: #f5efe6;
  color: var(--brand-brown);
}

.chat-language span {
  font-size: 0.85rem;
}

.chat-language[data-lang='en'] .lang-en,
.chat-language[data-lang='ar'] .lang-ar {
  font-weight: 700;
  color: #000;
}

.voice-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #f5efe6;
  color: var(--brand-brown);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  touch-action: none;
}

.voice-btn:hover {
  transform: translateY(-2px);
}

.voice-btn.listening {
  background: rgba(201, 146, 71, 0.18);
  color: var(--brand-brown-dark);
  box-shadow: 0 0 0 3px rgba(201, 146, 71, 0.25);
}

.voice-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.chat-input button[type='submit'] {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--brand-gold), #a56c3a);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(58, 33, 10, 0.3);
  transition: transform 0.2s;
  flex: 0 0 auto;
}

.chat-input button[type='submit']:hover {
  transform: translateY(-2px);
}

.chat-footer {
  text-align: center;
  padding: 12px;
  padding-bottom: calc(12px + var(--safe-area-bottom));
  font-size: 0.85rem;
  color: var(--brand-brown);
  background: #fffdfa;
  border-top: 1px solid var(--brand-line);
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.chat-window[data-dir='rtl'] .chat-input {
  direction: rtl;
}

.chat-window[data-dir='rtl'] .chat-input button,
.chat-window[data-dir='rtl'] .chat-input .voice-btn {
  direction: ltr;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  transition: opacity 0.2s ease;
  z-index: 10;
}

.contact-overlay[aria-hidden='true'] {
  opacity: 0;
  pointer-events: none;
}

.contact-panel {
  background: #fffdfa;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
}

.contact-panel h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.contact-panel p {
  margin-top: 0;
  margin-bottom: 18px;
  color: #4d4530;
}

.contact-panel label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  background: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: inherit;
  resize: none;
}

.contact-panel textarea {
  min-height: 110px;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.contact-panel button {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-panel button.secondary {
  background: transparent;
  border: 1px solid var(--brand-gold);
  color: var(--brand-brown);
}

.contact-panel button:not(.secondary) {
  background: linear-gradient(140deg, var(--brand-brown), #a97846);
  color: #fff;
  box-shadow: 0 10px 20px rgba(41, 26, 9, 0.25);
}

.contact-panel button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.contact-status {
  min-height: 20px;
  font-size: 0.9rem;
  margin: 0;
}

.contact-status.error {
  color: #b3261e;
}

.contact-status.success {
  color: #0c7a43;
}

@media (max-width: 520px) {
  .chat-window {
    right: 16px;
    width: calc(100vw - 32px);
  }
}

.bot-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 8px;
}
