/*! LeadKit 1.0.0 — styles. Brand it by overriding the --lk-* tokens on .lk-root or any parent. */
.lk-root {
  --lk-accent: #2f6bff;
  --lk-accent-text: #fff;
  --lk-bg: #fff;
  --lk-surface: #f4f5f7;
  --lk-text: #12141a;
  --lk-muted: #5f6673;
  --lk-border: #d5d9e0;
  --lk-error: #c8261b;
  --lk-ok: #12804a;
  --lk-radius: 14px;
  --lk-font: inherit;
  --lk-gap: 12px;
  font-family: var(--lk-font);
  color: var(--lk-text);
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.lk-root[data-lk-theme="dark"], [data-lk-theme="dark"] .lk-root {
  --lk-bg: #14161b; --lk-surface: #1e2128; --lk-text: #f2f3f5; --lk-muted: #a3a9b5; --lk-border: #353a45; --lk-error: #ff6b5e; --lk-ok: #3ccf85;
}
.lk-root *, .lk-root *::before, .lk-root *::after { box-sizing: border-box; }
.lk-root .lk-quiz, .lk-root.lk-quiz { background: var(--lk-bg); border-radius: var(--lk-radius); padding: 20px 16px; position: relative; max-width: 640px; margin: 0 auto; }
@media (min-width: 600px) { .lk-root .lk-quiz { padding: 28px; } }
.lk-root .lk-sr, .lk-root .lk-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.lk-root[hidden], .lk-root [hidden] { display: none !important; }

/* head: bonus + progress */
.lk-root .lk-head { display: grid; gap: 12px; margin-bottom: 18px; }
.lk-root .lk-bonus { display: flex; gap: 10px; align-items: center; background: var(--lk-surface); border-radius: calc(var(--lk-radius) - 4px); padding: 10px 12px; font-weight: 600; font-size: 15px; }
.lk-root .lk-bonus small { display: block; font-weight: 400; color: var(--lk-muted); font-size: 12px; }
.lk-root .lk-bonus__icon { font-size: 22px; }
.lk-root .lk-progress { display: grid; gap: 6px; }
.lk-root .lk-counter { font-size: 13px; color: var(--lk-muted); font-weight: 600; letter-spacing: .02em; }
.lk-root .lk-counter:empty { display: none; }
.lk-root .lk-progress__track { height: 6px; background: var(--lk-surface); border-radius: 99px; overflow: hidden; }
.lk-root .lk-progress__bar { height: 100%; width: 0; background: var(--lk-accent); border-radius: inherit; transition: width .35s ease; }
.lk-root .lk-testbadge { position: absolute; top: 8px; right: 8px; font: 700 10px/1 monospace; background: #ffd400; color: #000; padding: 4px 6px; border-radius: 4px; }

/* step */
.lk-root .lk-form { margin: 0; }
.lk-root .lk-step { border: 0; padding: 0; margin: 0; min-width: 0; animation: lk-in .25s ease; }
@keyframes lk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lk-root .lk-step, .lk-root .lk-progress__bar { animation: none; transition: none; } }
.lk-root .lk-title { font-size: 21px; line-height: 1.25; margin: 0 0 6px; font-weight: 700; outline: none; overflow-wrap: anywhere; }
@media (min-width: 600px) { .lk-root .lk-title { font-size: 24px; } }
.lk-root .lk-sub { margin: 0 0 16px; color: var(--lk-muted); font-size: 15px; }

/* consultant bubble */
.lk-root .lk-say { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.lk-root .lk-say__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.lk-root .lk-say__bubble { background: var(--lk-surface); border-radius: 4px 14px 14px 14px; padding: 9px 12px; font-size: 14px; min-width: 0; }
.lk-root .lk-say__bubble b { display: block; font-size: 12px; color: var(--lk-muted); margin-bottom: 2px; }

/* options */
.lk-root .lk-opts { display: grid; gap: 10px; margin-top: 14px; }
.lk-root .lk-opts--grid { grid-template-columns: repeat(var(--lk-cols-m, 2), minmax(0, 1fr)); }
@media (min-width: 600px) { .lk-root .lk-opts--grid { grid-template-columns: repeat(var(--lk-cols-d, 3), minmax(0, 1fr)); } }
.lk-root .lk-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border: 1.5px solid var(--lk-border); border-radius: calc(var(--lk-radius) - 2px); background: var(--lk-bg); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; font-size: 16px; min-width: 0; }
@media (hover: hover) { .lk-root .lk-opt:hover { border-color: var(--lk-accent); } }
.lk-root .lk-opt:active { transform: scale(.985); }
.lk-root .lk-opt__input { position: absolute; opacity: 0; pointer-events: none; }
.lk-root .lk-opt__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lk-root .lk-opt__text small { display: block; color: var(--lk-muted); font-size: 13px; margin-top: 2px; }
.lk-root .lk-opt__icon { font-size: 24px; line-height: 1; flex: none; }
.lk-root .lk-opt__mark { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--lk-border); border-radius: 50%; display: grid; place-items: center; }
.lk-root .lk-step--multi .lk-opt__mark { border-radius: 6px; }
.lk-root .lk-opt__input:checked ~ .lk-opt__mark { background: var(--lk-accent); border-color: var(--lk-accent); }
.lk-root .lk-opt__input:checked ~ .lk-opt__mark::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--lk-accent-text); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.lk-root .lk-opt.lk-on { border-color: var(--lk-accent); background: var(--lk-surface); background: color-mix(in srgb, var(--lk-accent) 8%, var(--lk-bg)); }
.lk-root .lk-opt__input:focus-visible ~ .lk-opt__mark { outline: 3px solid var(--lk-accent); outline-offset: 2px; }
.lk-root .lk-opts--grid .lk-opt { flex-direction: column; align-items: stretch; text-align: center; padding: 10px; }
.lk-root .lk-opts--grid .lk-opt__mark { position: absolute; top: 8px; right: 8px; background: var(--lk-bg); }
.lk-root .lk-opt__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.lk-root .lk-opts--grid .lk-opt__icon { font-size: 34px; margin: 6px 0 2px; }
.lk-root .lk-step.lk-invalid .lk-opt { border-color: var(--lk-error); border-color: color-mix(in srgb, var(--lk-error) 55%, var(--lk-border)); }
.lk-root .lk-other { margin-top: 10px; }

/* fields */
.lk-root .lk-field, .lk-root.lk-field { display: grid; gap: 6px; margin-top: 14px; min-width: 0; }
.lk-root .lk-label { font-size: 14px; font-weight: 600; }
.lk-root .lk-input, .lk-root input.lk-input, .lk-root.lk-styled input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not(.lk-phone__code) {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 16px; /* 16px: no iOS zoom on focus */
  color: var(--lk-text, inherit); background: var(--lk-bg, #fff); border: 1.5px solid var(--lk-border, #d5d9e0); border-radius: calc(var(--lk-radius, 14px) - 4px); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.lk-root textarea.lk-input { min-height: 96px; resize: vertical; }
.lk-root .lk-input:focus, .lk-root.lk-styled input:focus { border-color: var(--lk-accent, #2f6bff); box-shadow: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lk-accent, #2f6bff) 20%, transparent); }
.lk-root .lk-input::placeholder { color: color-mix(in srgb, var(--lk-muted) 70%, transparent); }
.lk-root .lk-invalid .lk-input, .lk-root.lk-invalid .lk-input, .lk-root .lk-invalid input:not([type=checkbox]), .lk-root.lk-invalid input:not([type=checkbox]) { border-color: var(--lk-error, #c8261b) !important; }
.lk-root .lk-valid .lk-input:not(:focus), .lk-root.lk-valid .lk-input:not(:focus) { border-color: var(--lk-border, #d5d9e0); border-color: color-mix(in srgb, var(--lk-ok, #12804a) 60%, var(--lk-border, #d5d9e0)); }
.lk-root .lk-msg { color: var(--lk-error, #c8261b); font-size: 13.5px; line-height: 1.35; }
.lk-root .lk-msg:empty { display: none; }
.lk-root .lk-msg--form { margin-top: 12px; }
.lk-root .lk-fhint { margin: 0; font-size: 13px; color: var(--lk-muted, #5f6673); }
.lk-root .lk-field--auto, .lk-root.lk-field--auto { display: contents; }
.lk-root label.lk-invalid { color: var(--lk-error, #c8261b); }
.lk-root .lk-field button.lk-suggest, .lk-root.lk-field button.lk-suggest, .lk-root.lk-enhanced button.lk-suggest { all: unset; box-sizing: border-box; display: block; margin: 0; min-height: 0; width: auto; border-radius: 0; cursor: pointer; justify-self: start; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--lk-accent, #2f6bff); cursor: pointer; text-align: left; }
.lk-root .lk-suggest b { text-decoration: underline; }

/* phone */
.lk-root .lk-phone__row, .lk-root.lk-phone__row { display: flex; gap: 8px; min-width: 0; }
.lk-root .lk-phone__row > input, .lk-root.lk-phone__row > input { flex: 1; min-width: 0; }
.lk-root .lk-phone__row { position: relative; }
.lk-root .lk-phone__ccwrap { position: relative; flex: none; display: flex; align-items: center; width: 112px; border: 1.5px solid var(--lk-border, #d5d9e0); border-radius: calc(var(--lk-radius, 14px) - 4px); background: var(--lk-surface, #f4f5f7); }
.lk-root .lk-phone__ccwrap:focus-within { border-color: var(--lk-accent, #2f6bff); background: var(--lk-bg, #fff); }
.lk-root .lk-phone__flag { position: absolute; z-index: 1; left: 10px; width: 24px; text-align: center; font-size: 18px; line-height: 1; pointer-events: none; }
.lk-root .lk-phone__code { width: 100%; min-height: 49px; padding: 0 6px 0 42px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--lk-text, inherit); outline: none; -webkit-appearance: none; appearance: none; }
.lk-root .lk-phone__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 264px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 4px; list-style: none; background: var(--lk-bg, #fff); border: 1.5px solid var(--lk-border, #d5d9e0); border-radius: calc(var(--lk-radius, 14px) - 4px); box-shadow: 0 12px 28px rgba(10, 12, 16, .14); }
.lk-root .lk-phone__opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.lk-root .lk-phone__opt.lk-hi { background: var(--lk-surface, #f4f5f7); }
.lk-root .lk-phone__oflag { font-size: 18px; flex: none; }
.lk-root .lk-phone__oname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-root .lk-phone__odial { flex: none; color: var(--lk-muted, #5f6673); font-variant-numeric: tabular-nums; }
.lk-root .lk-phone__row.lk-picking .lk-phone__ccwrap { flex: 1; width: auto; }
.lk-root .lk-phone__row.lk-picking > input { display: none; }
.lk-root .lk-phone__row.lk-searching .lk-phone__flag { display: none; }
.lk-root .lk-phone__row.lk-searching .lk-phone__code { padding-left: 12px; }
.lk-root .lk-phone__empty { padding: 10px; font-size: 14px; color: var(--lk-muted, #5f6673); }

/* range */
.lk-root .lk-range-wrap { gap: 14px; }
.lk-root .lk-range__out { display: inline-flex; align-items: baseline; justify-self: start; max-width: 100%; font-size: 28px; font-weight: 700; color: var(--lk-accent); cursor: text; border-bottom: 2px dashed color-mix(in srgb, var(--lk-accent) 40%, transparent); padding-bottom: 2px; }
.lk-root .lk-range__out:focus-within { border-bottom-style: solid; border-bottom-color: var(--lk-accent); }
.lk-root .lk-range__num { width: 6ch; min-width: 2ch; max-width: 12ch; padding: 0; margin: 0; border: 0; outline: none; background: transparent; font: inherit; color: inherit; font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; }
.lk-root .lk-range__unit { white-space: pre; }
.lk-root .lk-range__edit { margin-left: 8px; font-size: 16px; font-weight: 400; opacity: .55; }
.lk-root .lk-range { --lk-fill: 0%; width: 100%; height: 32px; background: transparent; -webkit-appearance: none; appearance: none; }
.lk-root .lk-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--lk-accent) var(--lk-fill), var(--lk-surface) var(--lk-fill)); }
.lk-root .lk-range::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--lk-accent) var(--lk-fill), var(--lk-surface) var(--lk-fill)); }
.lk-root .lk-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--lk-bg); border: 3px solid var(--lk-accent); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.lk-root .lk-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--lk-bg); border: 3px solid var(--lk-accent); }

/* chips (messenger) */
.lk-root .lk-tg { position: relative; }
.lk-root .lk-tg__at { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--lk-muted); pointer-events: none; }
.lk-root .lk-tg .lk-input { padding-left: 32px; }
.lk-root .lk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-root .lk-chip { position: relative; cursor: pointer; }
.lk-root .lk-chip input { position: absolute; opacity: 0; }
.lk-root .lk-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--lk-border); border-radius: 99px; font-size: 15px; }
.lk-root .lk-chip input:checked + span { border-color: var(--lk-accent); background: var(--lk-accent); color: var(--lk-accent-text); }
.lk-root .lk-chip input:focus-visible + span { outline: 3px solid var(--lk-accent); outline: 3px solid color-mix(in srgb, var(--lk-accent) 45%, transparent); outline-offset: 2px; }

/* consent + note */
.lk-root .lk-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--lk-muted); cursor: pointer; }
.lk-root .lk-consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--lk-accent); }
.lk-root .lk-consent a { color: inherit; }
.lk-root .lk-consent.lk-invalid label { color: var(--lk-error); }
.lk-root .lk-note { margin: 12px 0 0; font-size: 13px; color: var(--lk-muted); }

/* buttons + nav */
.lk-root .lk-nav { display: flex; gap: 10px; margin-top: 20px; }
.lk-root .lk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: calc(var(--lk-radius) - 2px); font: inherit; font-size: 16px; font-weight: 700; border: 0; cursor: pointer; text-decoration: none; text-align: center; transition: filter .15s, transform .1s; }
.lk-root .lk-btn:active { transform: scale(.98); }
.lk-root .lk-btn:disabled { opacity: .6; cursor: progress; }
.lk-root .lk-btn--primary { flex: 1; background: var(--lk-accent); color: var(--lk-accent-text); }
.lk-root .lk-btn--primary:hover { filter: brightness(1.07); }
.lk-root .lk-btn--ghost { background: var(--lk-surface); color: var(--lk-text); }
.lk-root .lk-btn:focus-visible { outline: 3px solid var(--lk-accent); outline: 3px solid color-mix(in srgb, var(--lk-accent) 45%, transparent); outline-offset: 2px; }
.lk-root .lk-btn--tg { background: #229ed9; color: #fff; }
.lk-root .lk-btn--wa { background: #1fa855; color: #fff; }
.lk-root .lk-link { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 14px; color: var(--lk-accent); cursor: pointer; min-height: 44px; }
.lk-root .lk-link:disabled { color: var(--lk-muted); cursor: default; }
.lk-root .lk-otp { font-size: 26px !important; letter-spacing: .4em; text-align: center; max-width: 220px; }
.lk-root .lk-otp__links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* success */
.lk-root .lk-success, .lk-root.lk-success { text-align: center; padding: 8px 0; display: grid; gap: 10px; justify-items: center; }
.lk-root .lk-success .lk-btn, .lk-root.lk-success .lk-btn { width: 100%; max-width: 360px; }
.lk-root .lk-success__icon, .lk-root.lk-success__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 700; background: var(--lk-surface, #f4f5f7); background: color-mix(in srgb, var(--lk-ok, #12804a) 14%, transparent); color: var(--lk-ok, #12804a); }
.lk-root .lk-callback { margin: 0; font-weight: 600; }
.lk-root .lk-leadno { margin: 4px 0 0; font-size: 12px; color: var(--lk-muted, #5f6673); }

/* modal */
.lk-modal { position: fixed; inset: 0; z-index: 2147483000; background: rgba(10, 12, 16, .55); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 600px) { .lk-modal { align-items: center; padding: 24px; } }
.lk-modal__panel { position: relative; width: 100%; max-width: 640px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--lk-bg); border-radius: var(--lk-radius) var(--lk-radius) 0 0; padding-bottom: env(safe-area-inset-bottom); animation: lk-up .25s ease; }
@media (min-width: 600px) { .lk-modal__panel { border-radius: var(--lk-radius); max-height: calc(100vh - 48px); } }
@keyframes lk-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.lk-modal__close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--lk-muted); cursor: pointer; }
.lk-modal .lk-quiz { padding-top: 44px; }
.lk-modal .lk-testbadge { right: auto; left: 12px; top: 14px; }
html.lk-lock, html.lk-lock body { overflow: hidden; }

/* sticky CTA for mobile (optional helper) */
.lk-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--lk-bg); background: color-mix(in srgb, var(--lk-bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--lk-border); display: none; }
.lk-sticky .lk-btn { width: 100%; }
@media (max-width: 599px) { .lk-sticky { display: block; } }
