/* unicsupport additions on top of the Tilda copy: quiz, chat launcher, form notes.
   Tokens follow the page itself (Raleway, #06020f text, #fd633e accent,
   1px cards with 8px radius, 2px pill buttons). */
:root {
  --u-ink: #06020f;
  --u-muted: #55555a;
  --u-accent: #fd633e;
  --u-tint: #fff3f0;
  --u-line: #ffc8ba;
  --u-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- quiz ---------- */
.uq { font-family: 'raleway', Arial, sans-serif; color: var(--u-ink); background: #fff; padding: 105px 0 90px; }
.uq__wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.uq__title { font-size: 42px; line-height: 1.3; font-weight: 600; margin: 0 0 20px; }
.uq__title span { color: var(--u-accent); }
.uq__lead { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--u-muted); margin: 0; max-width: 400px; }

.uq__panel { border: 1px solid var(--u-accent); border-radius: 8px; padding: 32px; min-height: 420px; display: flex; flex-direction: column; }
.uq__step { font-size: 14px; font-weight: 600; color: var(--u-accent); letter-spacing: .02em; margin-bottom: 12px; }
.uq__q { font-size: 24px; line-height: 1.2; font-weight: 600; margin: 0 0 6px; }
.uq__hint { font-size: 14px; color: var(--u-muted); font-weight: 500; margin: 0 0 22px; min-height: 1em; }
.uq__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.uq__opt {
  font: inherit; font-size: 16px; font-weight: 600; text-align: left; color: var(--u-ink);
  background: #fff; border: 1px solid var(--u-ink); border-radius: 8px; padding: 16px 18px; cursor: pointer;
  transition: background-color 160ms var(--u-ease), border-color 160ms var(--u-ease), transform 120ms var(--u-ease);
}
.uq__opt small { display: block; font-size: 13px; font-weight: 500; color: var(--u-muted); margin-top: 4px; }
.uq__opt[aria-pressed="true"] { background: var(--u-tint); border-color: var(--u-accent); }
.uq__opt:active { transform: scale(0.97); }
.uq__opt:focus-visible, .uq__btn:focus-visible, .uq__back:focus-visible, .uq input:focus-visible { outline: 2px solid var(--u-accent); outline-offset: 2px; }

.uq__nav { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 28px; gap: 12px; }
.uq__back { font: inherit; font-size: 16px; font-weight: 600; color: var(--u-muted); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.uq__back[hidden] { visibility: hidden; display: block; }
.uq__btn {
  font: inherit; font-size: 16px; font-weight: 600; color: var(--u-ink); background: #fff;
  border: 2px solid var(--u-ink); border-radius: 56px; height: 56px; padding: 0 8px 0 28px;
  display: inline-flex; align-items: center; gap: 16px; cursor: pointer;
  transition: background-color 160ms var(--u-ease), transform 120ms var(--u-ease);
}
.uq__btn::after {
  content: ""; width: 40px; height: 40px; border-radius: 50%; background: var(--u-ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h12M10 4l5 5-5 5'/%3E%3C/svg%3E") center no-repeat;
}
.uq__btn:hover { background: var(--u-tint); }
.uq__btn:active { transform: scale(0.97); }
.uq__btn:disabled { opacity: .4; cursor: default; transform: none; }

.uq__result { font-size: 48px; line-height: 1.05; font-weight: 600; margin: 4px 0 8px; }
.uq__result span { color: var(--u-accent); }
.uq__note { font-size: 14px; line-height: 1.4; color: var(--u-muted); font-weight: 500; margin: 0 0 22px; }
.uq__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.uq input[type="text"], .uq input[type="email"] {
  font: inherit; font-size: 16px; color: var(--u-ink); background: #fff;
  border: 0; border-bottom: 1px solid var(--u-ink); border-radius: 0; height: 52px; padding: 0 2px; width: 100%;
}
.uq__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.uq__err { color: #c3341b; font-size: 14px; font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }
.uq__done { font-size: 24px; font-weight: 600; line-height: 1.3; margin: auto 0; }
.uq__done span { display: block; font-size: 16px; font-weight: 500; color: var(--u-muted); margin-top: 8px; }

.uq__body { animation: uq-in 220ms var(--u-ease); }
@keyframes uq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 959px) {
  .uq { padding: 60px 0; }
  .uq__wrap { grid-template-columns: 1fr; gap: 28px; }
  .uq__title { font-size: 30px; }
  .uq__panel { padding: 22px 18px; min-height: 0; }
  .uq__q { font-size: 20px; }
  .uq__opts, .uq__fields { grid-template-columns: 1fr; }
  .uq__result { font-size: 36px; }
}

/* ---------- chat launcher ---------- */
.uc-launch {
  position: fixed; right: 24px; bottom: 24px; z-index: 9990;
  font-family: 'raleway', Arial, sans-serif; font-size: 16px; font-weight: 600; color: #fff;
  background: var(--u-accent); border: 0; border-radius: 56px; height: 56px; padding: 0 22px 0 18px;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(253, 99, 62, .35);
  transition: transform 160ms var(--u-ease), opacity 160ms var(--u-ease);
}
.uc-launch:hover { transform: translateY(-2px); }
.uc-launch:active { transform: scale(0.97); }
.uc-launch:focus-visible { outline: 2px solid var(--u-ink); outline-offset: 3px; }
.uc-launch[aria-busy="true"] { opacity: .7; }
.uc-launch[hidden] { display: none; }
[data-chat-open][role="button"] { cursor: pointer; }
.uc-launch[aria-busy="true"] { cursor: progress; }
@media (max-width: 640px) { .uc-launch { right: 16px; bottom: 16px; } }

/* ---------- Tilda form: our status line ---------- */
.uf-status { font-family: 'raleway', Arial, sans-serif; font-size: 16px; font-weight: 600; margin-top: 14px; }
.uf-status.is-error { color: #c3341b; }
.uf-status.is-ok { color: var(--u-ink); }

@media (prefers-reduced-motion: reduce) {
  .uq__body { animation: none; }
  .uq__opt, .uq__btn, .uc-launch { transition: none; }
}
