html{overflow-x:clip}
body{min-width:0}
img,video,canvas{max-width:100%}
input,select,textarea,button{max-width:100%}
(max-width:600px){input,select,textarea{font-size:16px!important}}

.demo-preview-bar {
  position: sticky;
  z-index: 9999;
  top: 0;
  background: #1f4fd1;
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 26, 51, .18);
  font-family: Inter, system-ui, sans-serif;
}

.demo-preview-bar * { box-sizing: border-box; }

.demo-preview-bar__inner {
  width: min(100% - 48px, 1240px);
  min-height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.demo-preview-bar a {
  color: #fff;
  text-decoration: none;
}

.demo-preview-bar__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.demo-preview-bar__back svg { width: 18px; height: 18px; }

.demo-preview-bar__title {
  font-size: 15px;
  letter-spacing: .01em;
  text-align: center;
}

.demo-preview-bar__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-preview-bar__call,
.demo-preview-bar__contact {
  min-height: 40px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.demo-preview-bar .demo-preview-bar__call {
  border-color: #fff;
  background: #fff;
  color: #163ba3;
}

.demo-preview-bar__contact:hover { background: rgba(255, 255, 255, .12); }
.demo-preview-bar__call:hover { background: #eef3fb; }

.demo-preview-bar a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .demo-preview-bar__inner {
    width: min(100% - 28px, 1240px);
    min-height: 66px;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .demo-preview-bar__title { display: none; }
  .demo-preview-bar__actions { gap: 6px; }
  .demo-preview-bar__call,
  .demo-preview-bar__contact { padding: 8px 10px; }
}

@media (max-width: 430px) {
  .demo-preview-bar__back { font-size: 0; }
  .demo-preview-bar__back svg { width: 22px; height: 22px; }
}

.demo-lead-modal {
  width: min(92vw, 560px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  color: #0a1a33;
  font-family: Inter, system-ui, sans-serif;
  box-shadow: 0 28px 80px rgba(10, 26, 51, .35);
}

.demo-lead-modal::backdrop { background: rgba(10, 26, 51, .72); }

.demo-lead-modal__panel {
  position: relative;
  padding: 46px;
  border-top: 8px solid #1f4fd1;
  background: #fff;
  text-align: center;
}

.demo-lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid #d6e2f5;
  border-radius: 50%;
  background: #f4f7fc;
  color: #0a1a33;
  cursor: pointer;
  font: 500 25px/1 Inter, sans-serif;
}

.demo-lead-modal__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #1f4fd1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.demo-lead-modal h2 {
  margin: 0 0 14px;
  color: #0a1a33;
  font: 800 clamp(28px, 5vw, 38px)/1.12 Archivo, Inter, sans-serif;
  letter-spacing: -.025em;
}

.demo-lead-modal p {
  max-width: 440px;
  margin: 0 auto;
  color: #46566f;
  font-size: 17px;
  line-height: 1.65;
}

.demo-lead-modal__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.demo-lead-modal__actions a {
  min-height: 50px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.demo-lead-modal__primary { background: #1f4fd1; color: #fff; }
.demo-lead-modal__primary:hover { background: #163ba3; }
.demo-lead-modal__secondary { border: 1.5px solid #0a1a33; color: #0a1a33; }
.demo-lead-modal__secondary:hover { background: #eef3fb; }

.demo-lead-modal__continue {
  margin-top: 20px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #46566f;
  cursor: pointer;
  font: 700 13px Inter, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-lead-modal button:focus-visible,
.demo-lead-modal a:focus-visible {
  outline: 3px solid #5b9bff;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .demo-lead-modal__panel { padding: 42px 22px 30px; }
  .demo-lead-modal__actions { flex-direction: column; }
  .demo-lead-modal__actions a { width: 100%; }
}

.demo-chat {
  position: fixed;
  z-index: 9998;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: Inter, system-ui, sans-serif;
}

.demo-chat * { box-sizing: border-box; }
.demo-chat__panel[hidden] { display: none; }

.demo-chat__launcher {
  position: relative;
  width: 62px;
  height: 62px;
  padding: 7px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1f4fd1;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(10, 26, 51, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}

.demo-chat__launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(10, 26, 51, .34);
}

.demo-chat__launcher img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.demo-chat__status {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #22c55e;
}

.demo-chat__panel {
  width: min(350px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #d6e2f5;
  border-radius: 16px;
  background: #fff;
  color: #0a1a33;
  box-shadow: 0 22px 60px rgba(10, 26, 51, .26);
  animation: demo-chat-in .2s ease-out;
}

@keyframes demo-chat-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.demo-chat__header {
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #1f4fd1;
  color: #fff;
}

.demo-chat__avatar {
  width: 40px;
  height: 40px;
  padding: 4px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: #fff;
}

.demo-chat__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.demo-chat__header > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.25;
}

.demo-chat__header strong { font-size: 15px; }
.demo-chat__header small { display: flex; align-items: center; gap: 5px; color: #dce7ff; font-size: 11px; }
.demo-chat__header small i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }

.demo-chat__header button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  font: 500 23px/1 Inter, sans-serif;
}

.demo-chat__body {
  padding: 18px;
  display: grid;
  gap: 10px;
  background: #f4f7fc;
}

.demo-chat__message {
  margin-bottom: 6px;
  padding: 13px 14px;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  color: #263750;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 4px 14px rgba(10, 26, 51, .08);
}

.demo-chat__primary,
.demo-chat__secondary {
  min-height: 46px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.demo-chat .demo-chat__primary { background: #1f4fd1; color: #fff; }
.demo-chat .demo-chat__primary:hover { background: #163ba3; }
.demo-chat .demo-chat__secondary { border: 1px solid #b9cceb; background: #fff; color: #0a1a33; }
.demo-chat .demo-chat__secondary:hover { background: #eef3fb; }

.demo-chat button:focus-visible,
.demo-chat a:focus-visible {
  outline: 3px solid #5b9bff;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .demo-chat { right: 14px; bottom: 14px; }
  .demo-chat__launcher { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-chat__panel { animation: none; }
  .demo-chat__launcher { transition: none; }
}
