/* The chat assistant (public/site/lendl-chat.js). Site red, Questrial, the same soft cards as the dialogs. */
.lchat { --lc-red: #c8102e; --lc-red-dark: #a50d26; --lc-ink: #121212; --lc-muted: #5b5f66; --lc-line: #e6e7ea; --lc-soft: #f5f6f8;
  position: fixed; right: 20px; bottom: 20px; z-index: 9000; font-family: 'Questrial', sans-serif; color: var(--lc-ink); font-size: 15px; line-height: 1.45; letter-spacing: 0; }
.lchat *, .lchat *::before, .lchat *::after { box-sizing: border-box; font-family: inherit; }
.lchat button { border-radius: 0; }
.lchat__launcher { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px !important; background: var(--lc-red); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(200, 16, 46, .6); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.lchat__launcher:hover { background: var(--lc-red-dark); transform: translateY(-2px); }
.lchat__launcher:focus-visible { outline: 3px solid rgba(200, 16, 46, .35); outline-offset: 3px; box-shadow: none; }
.lchat.is-open .lchat__launcher { display: none; }

.lchat__panel { position: absolute; right: 0; bottom: 0; width: 380px; height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lc-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 28px 70px -24px rgba(15, 18, 24, .45); opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1); }
.lchat.is-shown .lchat__panel { opacity: 1; transform: none; }
.lchat__panel[hidden] { display: none; }

.lchat__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 12px; background: var(--lc-ink); color: #fff; }
.lchat__avatar { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lc-red); font-weight: 700; font-size: 17px; }
.lchat__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lchat__title strong { font-size: 15px; font-weight: 600; }
.lchat__title span { font-size: 12px; opacity: .7; }
.lchat__icon { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 50% !important; }
.lchat__icon:hover { background: rgba(255, 255, 255, .12); }
.lchat__icon[hidden] { display: none; }
.lchat.is-home .lchat__avatar { margin-left: 6px; }

.lchat__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; background: var(--lc-soft); display: flex; flex-direction: column; gap: 12px; }
.lchat__msg { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 88%; }
.lchat__msg--user { align-self: flex-end; align-items: flex-end; }
.lchat__bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--lc-line); font-size: 14.5px; white-space: normal; word-wrap: break-word; }
.lchat__msg--user .lchat__bubble { border-radius: 16px 16px 4px 16px; background: var(--lc-red); border-color: var(--lc-red); color: #fff; }
.lchat__links { display: flex; flex-wrap: wrap; gap: 6px; }
.lchat__links a { display: inline-block; max-width: 100%; padding: 6px 11px; border: 1px solid var(--lc-line); border-radius: 999px; background: #fff; color: var(--lc-ink) !important; font-size: 13px; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lchat__links a::after { content: ' →'; color: var(--lc-red); }
.lchat__links a:hover { border-color: var(--lc-red); }
.lchat__cta { border: 0; background: var(--lc-red); color: #fff; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px !important; cursor: pointer; }
.lchat__cta:hover { background: var(--lc-red-dark); }
.lchat__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lchat__chip { border: 1px solid #f0c9cf; background: #fff; color: var(--lc-red); font-size: 13.5px; padding: 7px 12px; border-radius: 999px !important; cursor: pointer; transition: background .15s, border-color .15s; }
.lchat__chip:hover { background: #fdf2f3; border-color: var(--lc-red); }
.lchat__typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.lchat__typing i { width: 7px; height: 7px; border-radius: 50%; background: #b6bac1; animation: lchat-dot 1.1s infinite ease-in-out; }
.lchat__typing i:nth-child(2) { animation-delay: .15s; }
.lchat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lchat-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.lchat__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 8px; border-top: 1px solid var(--lc-line); background: #fff; }
.lchat__form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; margin: 0; padding: 10px 14px; border: 1px solid #d5d8dd !important; border-radius: 21px !important; background: #fff; color: var(--lc-ink); font-size: 15px; line-height: 1.4; box-shadow: none !important; outline: none; }
.lchat__form textarea:focus { border-color: var(--lc-red) !important; }
.lchat__send { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50% !important; background: var(--lc-red); color: #fff; cursor: pointer; }
.lchat__send:disabled { opacity: .5; cursor: default; }
.lchat__fine { margin: 0; padding: 0 16px 10px; background: #fff; color: #8a8f97; font-size: 11.5px; line-height: 1.35; }

@media (max-width: 600px) {
  .lchat { right: 14px; bottom: 14px; }
  .lchat__launcher { width: 52px; padding: 0; justify-content: center; }
  .lchat__launcher-label { display: none; }
  .lchat.is-open { inset: 0; }
  .lchat__panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
  .lchat__form textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .lchat__panel, .lchat__launcher { transition: none; } .lchat__typing i { animation: none; } }
@media print { .lchat { display: none; } }

/* Views: topics, question lists, call-back form */
.lchat__form[hidden] { display: none; }
.lchat__tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lc-red); }
.lchat__label { margin: 4px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lc-muted); }
.lchat__topics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lchat__topic { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; text-align: left; border: 1px solid var(--lc-line); background: #fff; border-radius: 12px !important; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.lchat__topic span { font-size: 14px; font-weight: 600; color: var(--lc-ink); line-height: 1.3; }
.lchat__topic small { font-size: 12px; color: var(--lc-muted); }
.lchat__topic:hover { border-color: var(--lc-red); transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(15, 18, 24, .3); }
.lchat__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.lchat__cta--ghost { background: #fff !important; color: var(--lc-red) !important; border: 1px solid var(--lc-red) !important; }
.lchat__cta--ghost:hover { background: #fdf2f3 !important; }
.lchat__cta--block { width: 100%; padding: 12px 16px; font-size: 14.5px; }
.lchat__resume, .lchat__reset { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; color: var(--lc-red); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.lchat__reset { color: var(--lc-muted); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.lchat__loading { grid-column: 1 / -1; color: var(--lc-muted); font-size: 13px; }
.lchat__qs { display: flex; flex-direction: column; gap: 6px; }
.lchat__qbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 12px 11px 14px; text-align: left; border: 1px solid var(--lc-line); background: #fff; border-radius: 10px !important; font-size: 14px; line-height: 1.35; color: var(--lc-ink); cursor: pointer; transition: border-color .15s, background .15s; }
.lchat__qbtn svg { flex: 0 0 auto; color: var(--lc-red); }
.lchat__qbtn:hover { border-color: var(--lc-red); background: #fffafa; }
.lchat__cb { display: flex; flex-direction: column; gap: 10px; }
.lchat__cb-sub { margin: 0; font-size: 13.5px; color: var(--lc-muted); }
.lchat__cb label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.lchat__cb label > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--lc-ink); }
.lchat__cb input:not([type="checkbox"]), .lchat__cb textarea { width: 100%; margin: 0; padding: 10px 12px; border: 1px solid #d5d8dd !important; border-radius: 10px !important; background: #fff; font-size: 14.5px; color: var(--lc-ink); box-shadow: none !important; outline: none; }
.lchat__cb input:focus, .lchat__cb textarea:focus { border-color: var(--lc-red) !important; }
.lchat__cb textarea { resize: vertical; min-height: 64px; }
.lchat__cc { display: flex; align-items: stretch; }
.lchat__cc b { display: grid; place-items: center; padding: 0 12px; border: 1px solid #d5d8dd; border-right: 0; border-radius: 10px 0 0 10px; background: var(--lc-soft); font-size: 14px; font-weight: 600; white-space: nowrap; }
.lchat__cc input { border-radius: 0 10px 10px 0 !important; }
.lchat__consent { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-size: 12.5px; color: var(--lc-muted); }
.lchat__consent input { margin-top: 3px; accent-color: var(--lc-red); }
.lchat__consent a { color: var(--lc-red); }
.lchat__err { margin: 0; min-height: 0; color: #c62828; font-size: 13px; }
.lchat__err:empty { display: none; }
.lchat__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 8px; }
.lchat__done p { margin: 0; font-size: 14.5px; color: var(--lc-muted); }
.lchat__done strong { color: var(--lc-ink); font-size: 16px; }
.lchat__done-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: var(--lc-red); color: #fff; font-size: 24px; box-shadow: 0 0 0 8px #fdf2f3; }
.lchat__done .lchat__cta { margin-top: 12px; }
