:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #121a35;
  background: #f5f3ee;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #c5a875; outline-offset: 2px; }

.demo-header {
  min-height: 70px;
  padding: 12px max(24px, calc((100vw - 1100px) / 2));
  background: #070a1c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.demo-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.demo-brand img { object-fit: contain; }
.demo-brand small { display: block; color: rgba(255,255,255,.68); font-size: 11px; font-weight: 500; }
.demo-badge { color: #c5a875; font-size: 11px; font-weight: 700; white-space: nowrap; }
main { max-width: 1148px; margin: 0 auto; padding: 28px 24px 48px; }
.si-layout { display: grid; grid-template-columns: minmax(245px, 300px) minmax(0, 1fr); min-height: 570px; background: #fff; border: 1px solid rgba(18,21,43,.12); }
.si-nav { padding: 30px 24px; border-right: 1px solid rgba(18,21,43,.12); background: #ede9e1; }
.si-language { display: flex; gap: 6px; margin-bottom: 24px; }
.si-language button { border: 1px solid #d9dce3; border-radius: 2px; background: #fff; padding: 6px 10px; color: #121a35; }
.si-language button[aria-pressed="true"] { color: white; background: #121a35; border-color: #121a35; }
.si-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.si-eyebrow { color: #9a773c; font-size: 11px; font-weight: 700; }
.si-nav h2 { margin: 14px 0 28px; font-size: 22px; line-height: 1.3; }
.si-nav label, .si-form label { display: block; color: #4f586d; font-size: 13px; font-weight: 700; }
.si-nav select, .si-form input, .si-form select, .si-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #d9dce3;
  border-radius: 2px;
  color: #121a35;
  background: white;
  font-size: 14px;
}
.si-facts { margin-top: 20px; }
.si-facts[hidden] { display: none; }
.si-facts h3 { margin: 0 0 12px; font-size: 13px; }
.si-fact-button { display: block; width: 100%; margin: 0 0 8px; padding: 9px 10px; border: 1px solid rgba(18,21,43,.12); background: #fff; color: #121a35; text-align: left; border-radius: 2px; font-size: 13px; }
.si-fact-button:hover { border-color: #c5a875; color: #8b6a2c; }
.si-ask-form { display: flex; gap: 6px; margin-top: 10px; }
.si-ask-form input { min-width: 0; flex: 1; padding: 10px; border: 1px solid #d9dce3; border-radius: 2px; }
.si-ask-form button { padding-inline: 12px; }
.si-note { margin-top: 28px; font-size: 12px; line-height: 1.5; color: #667084; }
.si-main { min-width: 0; padding: 24px 32px 34px; }
.si-main-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(18,21,43,.12); }
.si-main-heading h2 { margin: 0 0 16px; font-size: 19px; }
.si-main-heading span { font-size: 12px; color: #667084; }
.si-conversation { min-height: 210px; max-height: 430px; padding: 20px 0; overflow-y: auto; }
.si-bubble { width: fit-content; max-width: min(92%, 520px); margin: 0 0 14px; padding: 12px 15px; border-radius: 4px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.si-bubble--agent { background: #ede9e1; color: #121a35; }
.si-bubble--visitor { margin-left: auto; background: #121a35; color: white; }
.si-layout[dir="rtl"] .si-nav { border-right: 0; border-left: 1px solid #dae3df; }
.si-layout[dir="rtl"] .si-bubble--visitor { margin-left: 0; margin-right: auto; }
.si-layout[dir="rtl"] .si-fact-button { text-align: right; }
.si-layout[dir="rtl"] input[type="email"], .si-layout[dir="rtl"] input[type="tel"] { direction: ltr; text-align: left; }
.si-form { padding-top: 14px; border-top: 1px solid rgba(18,21,43,.12); }
.si-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 16px; }
.si-contact-grid label:first-child, .si-contact-grid label:nth-child(2) { grid-column: auto; }
.si-form textarea { resize: vertical; }
.si-form .si-consent { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0; font-weight: 400; line-height: 1.5; }
.si-consent input { width: auto; margin: 3px 0 0; flex: 0 0 auto; }
.si-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.si-button { min-height: 42px; padding: 10px 20px; border: 1px solid #121a35; border-radius: 2px; background: #121a35; color: white; font-weight: 700; }
.si-button--secondary { background: #fff; color: #121a35; }
.si-error { min-height: 20px; margin: 12px 0 0; color: #a4312c; font-size: 13px; }
.demo-output { padding: 24px 0; }
.demo-output h2 { margin: 0 0 6px; font-size: 18px; }
.demo-output p { color: #667084; font-size: 13px; }
.demo-output pre { max-height: 270px; overflow: auto; padding: 16px; border: 1px solid rgba(18,21,43,.12); background: #fff; color: #121a35; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; direction: ltr; text-align: left; }
.review-main { max-width: 1000px; }
.review-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-tools .si-language { margin: 0; }
.review-tools a { color: #8b6a2c; }
.review-main h1 { margin: 26px 0 10px; font-size: 26px; }
.review-main > p { max-width: 750px; color: #667084; line-height: 1.55; }
.review-group { margin-top: 32px; }
.review-group > h2 { margin: 0; padding: 12px 0; border-bottom: 2px solid #c5a875; color: #121a35; font-size: 16px; }
.review-entry { padding: 18px 0 22px; border-bottom: 1px solid rgba(18,21,43,.12); }
.review-entry h3 { font-size: 18px; margin: 8px 0; }
.review-entry > p:not(.si-eyebrow) { max-width: 800px; line-height: 1.65; }
.review-entry small { color: #667084; overflow-wrap: anywhere; }

@media (max-width: 740px) {
  .demo-header { padding: 12px 16px; }
  main { padding: 0 0 28px; }
  .si-layout { display: block; border-left: 0; border-right: 0; }
  .si-nav { border-right: 0; border-bottom: 1px solid #dae3df; padding: 18px 20px; }
  .si-layout[dir="rtl"] .si-nav { border-left: 0; }
  .si-nav h2 { margin: 8px 0 16px; font-size: 19px; }
  .si-facts { margin-top: 18px; }
  .si-fact-button { display: inline-block; width: auto; margin-right: 6px; }
  .si-note { margin: 12px 0 0; }
  .si-main { padding: 22px 20px; }
  .si-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-output { padding: 20px; }
  .review-main { padding: 22px 20px; }
}
