/* ============================================================
   Lead Form · VOOM DS · multi-step survey
   ============================================================ */

/* Benefits/checklist box — a lead-form of type "benefits". Rendered by
   components/lead-form.tpl. Duplicated from public.css so it also styles
   the standalone /lead-form/{id} page, which doesn't load public.css. */
.benefits-box {
    --bb-title-bg: #c8102e;
    --bb-title-color: #fff;
    --bb-check: #c8102e;
    --bb-bg: #fff;
    margin: 24px 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bb-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    font-family: 'Heebo', 'Assistant', system-ui, sans-serif;
    direction: rtl;
}
.benefits-box-title {
    background: var(--bb-title-bg);
    color: var(--bb-title-color);
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    padding: 16px 20px;
}
.benefits-box-list {
    list-style: none;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.benefits-box-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 19px;
    line-height: 1.4;
    color: #3D3530;
}
.benefits-box-check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bb-check);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    box-sizing: border-box;
}
/* Outline variant — hollow circle, colored border + check, no fill. */
.benefits-box--outline .benefits-box-check {
    background: transparent;
    border: 2px solid var(--bb-check);
    color: var(--bb-check);
}
/* No-background variant — transparent box, no shadow. */
.benefits-box--no-bg {
    background: transparent;
    box-shadow: none;
}

/* ── Star primitive (shared by reviews + rating) ─────────────────────────── */
.lf-stars {
    --lf-star: #f0ad4e;
    --lf-star-empty: #ccd6df;
    display: inline-flex;
    gap: 2px;
    direction: rtl;
    line-height: 1;
}
.lf-star {
    color: var(--lf-star-empty);
    font-size: 18px;
}
.lf-star.is-full {
    color: var(--lf-star);
}
/* Half star: fill the leading (right, in RTL) half with the star color. */
.lf-star.is-half {
    background: linear-gradient(to left, var(--lf-star) 50%, var(--lf-star-empty) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.lf-stars--lg .lf-star { font-size: 26px; }

/* ── Block badge (prefix pill on a block title) ──────────────────────────── */
.lf-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
    margin-inline-end: 8px;
    vertical-align: middle;
}

/* ── Benefits: check-circle icon variant (outline circle + check) ────────── */
.benefits-box-check--circle {
    width: 26px;
    height: 26px;
    background: transparent;
    color: var(--bb-check);
    padding: 0;
}
.benefits-box-check--circle .lf-ico-check {
    width: 26px;
    height: 26px;
    display: block;
}

/* ── Reviews block — a lead-form of type "reviews" ───────────────────────── */
.lf-reviews {
    --lf-star: #f0ad4e;
    --lf-fg: #1A1410;
    margin: 24px 0;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    font-family: 'Heebo', 'Assistant', system-ui, sans-serif;
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lf-reviews--no-bg {
    background: transparent;
    box-shadow: none;
    padding: 0;
}
.lf-reviews-title {
    font-weight: 700;
    font-size: 22px;
    color: #1A1410;
    margin-bottom: 4px;
}
/* Regular title + subtitle header above the reviews swiper.
   Flex gap on .lf-reviews handles spacing — kill the intro's own margins. */
.lf-reviews-intro {
    text-align: center;
    margin: 0;
}
.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
    bottom: -10px;
}
.lf-reviews-intro.lf-intro--boxed { margin: 0; }
/* Filled colour bar — break out of the block's 20px padding, span edge to edge.
   Radius is set inline from the titleRadius control (top corners only). */
.lf-reviews-intro--bar {
    margin: -20px -20px 0;
    padding: 18px 24px;
}
.lf-reviews--no-bg .lf-reviews-intro--bar {
    margin: 0;
}
/* Full-width solid title bar (gavra style) — spans to the block edges. */
.lf-reviews-title--bar {
    margin: -20px -20px 20px;
    padding: 18px 20px;
    color: #fff;
    text-align: center;
    font-size: 24px;
    border-radius: 16px 16px 0 0;
}
.lf-reviews--no-bg .lf-reviews-title--bar {
    margin: 0 0 20px;
    border-radius: 12px;
}
/* Aggregate rating header inside the reviews block */
.lf-reviews-agg {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.lf-reviews-agg .lf-rating-score {
    font-weight: 700;
    font-size: 20px;
    color: #1A1410;
}
.lf-reviews-agg .lf-rating-count {
    font-size: 14px;
    color: #9ca3af;
}
.lf-review {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
}
/* Header: name/stars/date stacked on the right, source badge on the left */
.lf-review .lf-review-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}
.lf-review-cite {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.lf-review .lf-stars .lf-star { font-size: 15px; }
/* Google+ badge in the card corner (opposite the name — space-between on the header).
   44px matches the original gavra review-card badge. */
.lf-review-google {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}
.lf-review-google svg {
    width: 100%;
    height: 100%;
    display: block;
}
.lf-review-sep {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2px 0;
    width: 100%;
}
.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
    bottom:-5px;
}
.lf-review:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.lf-review-hd {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.lf-review-name {
    font-weight: 700;
    font-size: 20px;
    color: #1A1410;
    line-height: 1.2;
}
.lf-review-date {
    font-size: 13px;
    color: #9ca3af;
}
.lf-review-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #3D3530;
}

/* Reviews carousel (Swiper) mode.
   Wide side gutters hold the nav buttons; extra bottom room for the dots. */
.lf-reviews-swiper {
    width: 100%;
    padding: 0 56px 48px;
    overflow: hidden;
}
.lf-reviews-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
    width: 90%;
}

.lf-reviews-swiper .swiper-slide .lf-review {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    box-sizing: border-box;
}
/* Nav buttons — white floating circles pinned to the physical gutters.
   We draw our own chevrons and set left/right by side (not by prev/next)
   so Swiper's RTL swap can't reverse either the glyph or the placement. */
.lf-reviews-swiper .swiper-button-next,
.lf-reviews-swiper .swiper-button-prev {
    width: 38px;
    height: 38px;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.18);
    color: #6b7280;
    z-index: 5;
}
.lf-reviews-swiper .swiper-button-next::after,
.lf-reviews-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}
/* prev = right side, next = left side (RTL), each pointing outward. */
.lf-reviews-swiper .swiper-button-prev {
    left: auto !important;
    right: 8px !important;
}
.lf-reviews-swiper .swiper-button-prev::after { content: '\203A'; }
.lf-reviews-swiper .swiper-button-next {
    right: auto !important;
    left: 8px !important;
}
.lf-reviews-swiper .swiper-button-next::after { content: '\2039'; }
.lf-reviews-swiper .swiper-pagination {
    bottom: -4px !important;
}
.lf-reviews-swiper .swiper-pagination-bullet-active {
    background: #0D3FDA;
}
/* Card border already on .lf-review; keep slide flush */
.lf-reviews-swiper .swiper-slide .lf-review { height: 100%; }

/* ── Rating block — a lead-form of type "rating" ─────────────────────────── */
.lf-rating {
    --lf-star: #f0ad4e;
    margin: 24px 0;
    padding: 16px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    font-family: 'Heebo', 'Assistant', system-ui, sans-serif;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lf-rating--no-bg {
    background: transparent;
    box-shadow: none;
    padding: 0;
}
.lf-rating-title {
    font-weight: 700;
    font-size: 18px;
    color: #1A1410;
    width: 100%;
}
.lf-rating-score {
    font-weight: 700;
    font-size: 20px;
    color: #1A1410;
}
.lf-rating-count {
    font-size: 14px;
    color: #9ca3af;
}

/* Custom HTML mode — no imposed styles, raw HTML controls everything */
.lf-custom-html {
    direction: rtl;
    font-family: 'Heebo', 'Assistant', system-ui, sans-serif;
    width: 100%;
    margin: 36px 0;
    box-sizing: border-box;
}

.lf-wrap {
    --lf-bg: #ffffff;
    --lf-fg: #1A1410;          /* ink */
    --lf-accent: #C91D36;      /* voom red */
    --lf-accent-deep: #9E0F26;
    --lf-mute: #5A4F47;
    --lf-hair: #e5e7eb;
    --lf-paper: #f9fafb;
    direction: rtl;
    font-family: 'Heebo', 'Assistant', system-ui, sans-serif;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 6px 0;
    padding: 40px 10px;
    background: var(--lf-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    color: var(--lf-fg);
    box-sizing: border-box;
    overflow: hidden;
}
.lf-wrap--page {
    border-radius: 16px;
    margin-top:150px !important;
    
}
/* Transparent background — no box, blends into article */
.lf-wrap--transparent {
    background: transparent !important;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
    margin: 16px 0;
}
/* Hero images — intro (base) and per-step override */
.lf-hero-img,
.lf-step-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.lf-hero-img      { z-index: 0; }
.lf-step-hero-img { z-index: 1; }

/* Top banner hero (image_mode = banner) — image sits at the top of the card,
   content flows below on the solid --lf-bg. Not full-bleed, no overlay. */
.lf-hero {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    margin: 0 auto 22px;
}

/* Dark gradient overlay for legibility when image is present */
.lf-wrap.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,20,16,.45) 0%, rgba(26,20,16,.7) 100%);
    pointer-events: none;
    z-index: 2;
}
.lf-wrap.has-bg-image {
    color: #fff;
    --lf-fg: #fff;
    --lf-mute: rgba(255,255,255,.85);
    --lf-hair: rgba(255,255,255,.3);
    --lf-paper: rgba(255,255,255,.08);
}
.lf-wrap.has-bg-image .lf-card,
.lf-wrap.has-bg-image .lf-body { position: relative; z-index: 3; }

.lf-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: transparent;
    color: inherit;
    display: block;
    text-align: center;
}
.lf-card .lf-card-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 !important;
    border-radius: 12px 12px 0 0 ;
}

.lf-body { padding: 0; text-align: center; }
.lf-wrap .lf-title,
.lf-reviews .lf-title {
    margin: 0 0 12px;
    font-family: 'Heebo', sans-serif;
    font-size: 44px !important;
    font-weight: 900;
    line-height: 1.1;
    color: var(--lf-fg);
    letter-spacing: -.015em;
    text-align: center;
}
.lf-wrap .lf-subtitle,
.lf-reviews .lf-subtitle {
    margin: -4px 0 16px;
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--lf-fg);
    opacity: .75;
    text-align: center;
}
.lf-intro {
    margin: 0 auto 24px;
    font-size: 44px;
    color: var(--lf-mute);
    line-height: 1.55;

    text-align: center;
}
/* Boxed intro — border wraps ONLY the title+subtitle (border/padding set inline). */
.lf-intro--boxed { margin: 0 auto 24px; }
.lf-intro--boxed .lf-title { margin: 0 0 8px; }
.lf-intro--boxed .lf-subtitle { margin: 0; }

/* Progress bar — visible meter (vooom style) */
.lf-progress {
    height: 6px;
    background: var(--lf-hair);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 0 24px;
}
.lf-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--lf-accent);
    border-radius: 999px;
    transition: width .35s ease;
}

.lf-progress-text:empty { display: none; }

/* Step area */
.lf-step-area { min-height: fit-content; overflow: hidden; }
.lf-step { animation: lf-step-next .32s cubic-bezier(.22,.68,0,1.2) both; }
.lf-step.lf-step--back { animation: lf-step-prev .32s cubic-bezier(.22,.68,0,1.2) both; }
@keyframes lf-step-next {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: none; }
}
@keyframes lf-step-prev {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: none; }
}
.lf-q {
    margin: 0 0 22px;
    font-family: 'Heebo', sans-serif;
    font-size: clamp(20px, 1.5vw, 22px);
    font-weight: 700;
    line-height: 1.4;
    /* Title colour = per-step text_color; falls back to the body colour. */
    color: var(--lf-q-color, var(--lf-fg));
    text-align: center;
}
.lf-q b, .lf-q strong { color: var(--lf-accent); font-weight: 900; }
.lf-q em, .lf-q i { font-style: normal; text-decoration: underline; text-underline-offset: 4px; }
.lf-q br + br { content: ""; display: block; height: 6px; }
.lf-q a { color: var(--lf-accent); text-decoration: underline; }
.lf-card .lf-step-subtitle {
    margin: -6px auto 20px;
    max-width: 100%;
    color: var(--lf-mute);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}
.lf-opts-yn, .lf-opts-img { justify-content: center; }
.lf-req { color: var(--lf-accent); font-weight: 700; }

.lf-fields {
    display: grid;
    gap: 14px;
    max-width: 620px;
    margin: 0 auto;
    text-align: right;
}
.lf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lf-field-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--lf-fg);
}
.lf-input,
.lf-fields select,
.lf-fields input[type="text"],
.lf-fields input[type="email"],
.lf-fields input[type="tel"],
.lf-fields input[type="number"] {
    width: 100%;
    padding: 13px 16px;
    background: var(--lf-paper);
    border: 1.5px solid var(--lf-hair);
    color: var(--lf-fg);
    font: inherit;
    font-size: 17px;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.lf-input:focus,
.lf-fields select:focus,
.lf-fields input:focus {
    outline: none;
    border-color: var(--lf-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lf-accent) 16%, transparent);
}
/* Placeholder follows the text colour (--lf-fg), softened. */
.lf-input::placeholder,
.lf-fields input::placeholder,
.lf-fields textarea::placeholder,
.lf-textarea::placeholder {
    color: var(--lf-fg);
    opacity: .55;
}
/* Select — custom arrow */
.lf-fields select,
select.lf-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A4F47' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 40px;
    cursor: pointer;
}
.lf-opts-check {
    display: grid;
    gap: 8px;
}
.lf-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--lf-fg);
}
.lf-check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--lf-accent);
}

/* Yes/No chips */
.lf-opts-yn { display: flex; gap: 10px; flex-wrap: wrap; }
.lf-chip {
    padding: 13px 26px;
    background: var(--lf-paper);
    border: 1px solid var(--lf-hair);
    color: var(--lf-fg);
    font: inherit;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.lf-chip:hover {
    border-color: var(--lf-fg);
}
.lf-chip.is-selected {
    background: var(--lf-accent);
    color: #fff;
    border-color: var(--lf-accent);
}

/* Image choice cards */
.lf-opts-img {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    justify-content: center;
}
/* Exactly 3 option cards: 3-across on desktop; on narrow screens fall to a
   2-column grid and CENTER the lone 3rd card instead of pinning it to the side. */
.lf-opts-img:has(> .lf-card-opt:nth-child(3):last-child):not(.lf-cols--2):not(.lf-cols--4) {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 520px) {
    .lf-opts-img:has(> .lf-card-opt:nth-child(3):last-child):not(.lf-cols--2):not(.lf-cols--4) {
        grid-template-columns: repeat(2, 1fr);
    }
    .lf-opts-img:has(> .lf-card-opt:nth-child(3):last-child):not(.lf-cols--2):not(.lf-cols--4) > .lf-card-opt:nth-child(3) {
        grid-column: 1 / -1;
        width: calc(50% - 8px);
        justify-self: center;
    }
}

.lf-card-opt {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--lf-paper);
    border: 0px solid var(--lf-hair);
    cursor: pointer;
    transition: border-color .2s, transform .18s, box-shadow .18s;
    font: inherit;
    color: inherit;
    text-align: center;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    position: relative;
}
.lf-card-opt:hover {
    border-color: var(--lf-fg);
    border-width: 2px;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.13);
}
.lf-card-opt.is-selected {
    border-color: var(--lf-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lf-accent) 25%, transparent), 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.lf-card-opt.is-selected::after {
    content: '✓';
    position: absolute;
    top: 8px; right: 8px;
    width: 24px; height: 24px;
    background: var(--lf-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.lf-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    background-color: var(--lf-hair);
    display: block;
}
.lf-card-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lf-card-img-empty::before {
    content: "?";
    color: var(--lf-mute);
    font-size: 28px;
    font-weight: 700;
}
.lf-card-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--lf-fg);
    padding: 10px 8px 12px;
    line-height: 1.3;
}

/* Image-only cards — no label, image fills full card */
.lf-opts-img--notext .lf-card-opt { border-radius: 12px; }
.lf-opts-img--notext .lf-card-img { aspect-ratio: 1/1; border-radius: 12px; }

/* Text-only list — plain chips, no dot, no border */
.lf-opts-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}
.lf-opts-text .lf-radio-opt {
    background: transparent;
    border: 1px solid var(--lf-hair);
    border-radius: 0;
    padding: 10px 4px;
    font-size: 22px;
    grid-template-columns: 1fr;
    text-align: right;
}
.lf-opts-text .lf-radio-opt:hover { background: color-mix(in srgb, var(--lf-accent) 8%, var(--lf-paper)); border-color: var(--lf-accent); }
.lf-opts-text .lf-radio-opt.is-selected { border-bottom: 2px solid var(--lf-accent); color: var(--lf-accent); padding: 10px 4px; background: color-mix(in srgb, var(--lf-accent) 6%, transparent); }

/* Radio vertical */
.lf-opts-radio {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
}
.lf-opts-radio--inline {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
}
.lf-opts-radio--inline .lf-radio-opt {
    width: auto;
    flex: 0 1 auto;
}
.lf-opts-radio--inline .lf-radio-opt:hover { box-shadow: none; }

/* 4+ text-only options in 2-column grid: no dot, full-width label */
.lf-opts-radio--many:not(:has(.lf-radio-dot)) .lf-radio-opt {
    grid-template-columns: 1fr;
    text-align: center;
    font-size: 16px;
    padding: 12px 14px;
}

/* 4+ options: 2-column compact grid */
.lf-opts-radio--many {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 640px;
}
.lf-opts-radio--many .lf-radio-opt {
    padding: 10px 14px;
    font-size: 15px;
    width: 100%;
}

.lf-radio-opt {
    display: grid;
    grid-template-columns: 20px auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px 18px;
    background: var(--lf-paper);
    border: 1.5px solid var(--lf-hair);
    border-radius: 10px;
    color: var(--lf-fg);
    font: inherit;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    text-align: right;
    width: 100%;
}
.lf-radio-opt:hover {
    border-color: var(--lf-accent);
    background: color-mix(in srgb, var(--lf-accent) 6%, var(--lf-paper));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--lf-accent) 25%, transparent);
}
.lf-radio-opt.is-selected {
    border-color: var(--lf-accent);
    border-width: 2px;
    background: color-mix(in srgb, var(--lf-accent) 7%, var(--lf-paper));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--lf-accent) 20%, transparent);
    padding: 12px 17px;
}
.lf-radio-dot {
    width: 20px; height: 20px; flex: none;
    border: 2px solid var(--lf-hair);
    border-radius: 50%;
    background: transparent;
    position: relative;
    transition: border-color .15s;
}
.lf-radio-opt:hover .lf-radio-dot { border-color: var(--lf-accent); }
.lf-radio-opt.is-selected .lf-radio-dot {
    border-color: var(--lf-fg);
    border-width: 6px;
    background: var(--lf-bg);
}
.lf-radio-opt.is-selected .lf-radio-dot::after {
    display: none;
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--lf-bg);
}
.lf-radio-img {
    width: 44px; height: 44px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: var(--lf-hair);
    flex: none;
}
.lf-radio-label {
    text-align: right;
    line-height: 1.3;
}

/* Textarea */
.lf-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--lf-paper);
    border: 1px solid var(--lf-hair);
    font: inherit;
    font-size: 20px;
    resize: vertical;
    min-height: 100px;
    color: var(--lf-fg);
    transition: border-color .15s;
}
.lf-textarea:focus {
    outline: none;
    border-color: var(--lf-fg);
}
input[type="tel"]{
        direction:rtl;
    }
/* Actions */
.lf-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content:center;
    padding-top: 16px;
   
}
.lf-btn {
    padding: 12px 26px;
    font: inherit;
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: var(--lf-btn-size, 17px);
    letter-spacing: .03em;
    cursor: pointer;
    border: 0;
    border-radius: var(--lf-btn-radius, 8px);
    transition: background .15s, color .15s, box-shadow .15s, transform .1s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}
.lf-btn:active { transform: scale(.97); }
.lf-btn-back {
    background: transparent;
    color: var(--lf-fg);
    border: 1.5px solid var(--lf-hair);
}
.lf-btn-back:hover { border-color: var(--lf-fg); background: color-mix(in srgb, var(--lf-fg) 5%, transparent); }
.lf-btn-next, .lf-btn-submit {
    background: var(--lf-btn-bg, var(--lf-accent));
    color: var(--lf-btn-text, #fff);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--lf-accent) 35%, transparent);
}
.lf-btn-next:hover, .lf-btn-submit:hover {
    background: var(--lf-btn-hover-bg, var(--lf-accent-deep));
    color: var(--lf-btn-hover-text, var(--lf-btn-text, #fff));
    box-shadow: 0 4px 16px color-mix(in srgb, var(--lf-accent) 45%, transparent);
}
/* Per-button hover colors (set inline as --lf-hover-* by setButtonVisual).
   !important overrides the inline base bg/color the same JS applies. */
.lf-btn.lf-has-hover-bg:hover {
    background: var(--lf-hover-bg) !important;
    border-color: var(--lf-hover-bg) !important;
}
.lf-btn.lf-has-hover-text:hover {
    color: var(--lf-hover-text) !important;
}
/* Step border (around the question / fields) — padding so the border has room. */
.lf-step--bordered {
    padding: 20px;
}

/* Free content above the question / below the options (raw text / HTML / SVG). */
.lf-step-html {
    text-align: center;
    margin: 10px 0;
}
.lf-step-html--top { margin-bottom: 14px; }
.lf-step-html--bottom { margin-top: 14px; }
.lf-step-html svg { max-width: 100%; height: auto; }
.lf-step-html img { max-width: 100%; height: auto; }

/* Per-step survey option button colors (age-quiz style). Applied when the step
   sets --lf-opt-* vars; hover swaps to the hover pair. */
.lf-step--optclr .lf-radio-opt,
.lf-step--optclr .lf-card-opt {
    background: var(--lf-opt-bg) !important;
    color: var(--lf-opt-text, #fff) !important;
    border-color: var(--lf-opt-bg) !important;
}
.lf-step--optclr .lf-radio-opt .lf-radio-label,
.lf-step--optclr .lf-card-opt .lf-card-label {
    color: var(--lf-opt-text, #fff) !important;
}
.lf-step--optclr .lf-radio-opt:hover,
.lf-step--optclr .lf-card-opt:hover,
.lf-step--optclr .lf-radio-opt.is-selected,
.lf-step--optclr .lf-card-opt.is-selected {
    background: var(--lf-opt-hover-bg, var(--lf-opt-bg)) !important;
    border-color: var(--lf-opt-hover-bg, var(--lf-opt-bg)) !important;
}
.lf-step--optclr .lf-radio-opt:hover .lf-radio-label,
.lf-step--optclr .lf-card-opt:hover .lf-card-label,
.lf-step--optclr .lf-radio-opt.is-selected .lf-radio-label,
.lf-step--optclr .lf-card-opt.is-selected .lf-card-label {
    color: var(--lf-opt-hover-text, var(--lf-opt-text, #fff)) !important;
}

/* ── gavra parity ─────────────────────────────────────────────────────────
   Quiz option buttons (colored option steps): pill shape, centered, no dot.
   Base .lf-radio-opt is a 3-col grid (dot/img/label); hiding the dot there
   would drop the label into the 20px column and stack the text vertically.
   Switch to flex so the label centers on one line. */
.lf-step--optclr .lf-radio-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-columns: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    min-height: 0;
}
.lf-step--optclr .lf-radio-opt .lf-radio-dot { display: none; }
.lf-step--optclr .lf-radio-opt .lf-radio-label {
    white-space: nowrap;
    line-height: 1.2;
}

/* Inline form fields (name/phone/email in one row) when the form's card_cols
   is 3 or auto — matches gavra's 3-across field row. Labels hidden (placeholder
   acts as the label, like gavra). */
.lf-cols--3 .lf-fields,
.lf-cols--auto .lf-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 100%;
}
.lf-cols--3 .lf-field-label,
.lf-cols--auto .lf-field-label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
@media (max-width: 600px) {
    .lf-cols--3 .lf-fields,
    .lf-cols--auto .lf-fields { grid-template-columns: 1fr; }
}

/* Button width: full row vs fit-to-text (design_json btn_width) */
.lf-btnw--full .lf-actions { flex-direction: column; align-items: stretch; }
.lf-btnw--full .lf-btn-next,
.lf-btnw--full .lf-btn-submit { width: 100%; justify-content: center; }
.lf-btnw--auto .lf-btn-next,
.lf-btnw--auto .lf-btn-submit { width: auto; }
/* Button padding (design_json btn_pad) */
.lf-btnp--sm .lf-btn { padding: 7px 16px; }
.lf-btnp--lg .lf-btn { padding: 16px 34px; }

.lf-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.lf-btn-submit { display: none; }
.lf-btn i { font-size: 16px; }

/* Success */
.lf-success {
    text-align: center;
    padding: 24px 0;
}
.lf-success-icon {
    font-size: 56px;
    color: var(--lf-accent);
    margin-bottom: 16px;
}
.lf-success-msg {
    font-family: 'Heebo', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--lf-fg);
    text-align: center;
    line-height: 1.3;
}

/* Error */
.lf-error {
    margin-top: 14px;
    padding: 12px 16px;
    background: #FBEEF0;
    color: var(--lf-accent-deep);
    border-inline-start: 3px solid var(--lf-accent);
    font-size: 20px;
    font-weight: 500;
}

/* Modal variant */
.lf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 16, .75);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: lf-modal-in .25s ease;
}
.lf-modal-backdrop.active { display: flex; }
@keyframes lf-modal-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lf-modal {
    background: var(--lf-bg, #F2ECE0);
    max-width: 880px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 48px clamp(20px, 5vw, 64px);
    position: relative;
    animation: lf-modal-slide .35s ease;
}
@keyframes lf-modal-slide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.lf-modal-close {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    font-size: 26px;
    cursor: pointer;
    color: var(--lf-fg, #1A1410);
    display: grid;
    place-items: center;
    line-height: 1;
}
.lf-modal-close:hover { color: var(--lf-accent, #C91D36); }

/* ── form_style variants ── */
.lf-style--flat {
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 0;
}
.lf-style--card .lf-step-area {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
    margin-bottom: 16px;
}
.lf-style--glass .lf-step-area {
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

/* ── btn_shape variants ── */
.lf-btn--pill .lf-btn,
.lf-btn--pill .lf-chip,
.lf-btn--pill .lf-radio-opt { border-radius: 999px; }
.lf-btn--sharp .lf-btn,
.lf-btn--sharp .lf-chip,
.lf-btn--sharp .lf-radio-opt { border-radius: 0; }

/* ── input_style variants ── */
.lf-input--underline .lf-input,
.lf-input--underline .lf-fields input,
.lf-input--underline .lf-fields select,
.lf-input--underline .lf-textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--lf-hair);
    border-radius: 0;
    padding-inline: 0;
}
.lf-input--underline .lf-input:focus,
.lf-input--underline .lf-fields input:focus,
.lf-input--underline .lf-fields select:focus,
.lf-input--underline .lf-textarea:focus {
    border-bottom-color: var(--lf-accent);
    box-shadow: none;
    outline: none;
}
.lf-input--filled .lf-input,
.lf-input--filled .lf-fields input,
.lf-input--filled .lf-fields select,
.lf-input--filled .lf-textarea {
    background: color-mix(in srgb, var(--lf-fg) 8%, transparent);
    border: none;
    border-radius: 8px;
}
.lf-input--filled .lf-input:focus,
.lf-input--filled .lf-fields input:focus,
.lf-input--filled .lf-fields select:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lf-accent) 20%, transparent);
    outline: none;
}

/* ── card_cols variants ── */
.lf-cols--2 .lf-opts-img { grid-template-columns: repeat(2, 1fr); }
.lf-cols--3 .lf-opts-img { grid-template-columns: repeat(3, 1fr); }
.lf-cols--4 .lf-opts-img { grid-template-columns: repeat(4, 1fr); }

/* Same column control for button/text (radio) options — they default to a
   single stacked column, so without this the age-quiz buttons render 1-per-row. */
.lf-cols--auto .lf-opts-radio,
.lf-cols--auto .lf-opts-text,
.lf-cols--2 .lf-opts-radio, .lf-cols--2 .lf-opts-text,
.lf-cols--3 .lf-opts-radio, .lf-cols--3 .lf-opts-text,
.lf-cols--4 .lf-opts-radio, .lf-cols--4 .lf-opts-text {
    display: grid;
    max-width: none;
    gap: 12px;
}
.lf-cols--auto .lf-opts-radio,
.lf-cols--auto .lf-opts-text { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.lf-cols--2 .lf-opts-radio, .lf-cols--2 .lf-opts-text { grid-template-columns: repeat(2, 1fr); }
.lf-cols--3 .lf-opts-radio, .lf-cols--3 .lf-opts-text { grid-template-columns: repeat(3, 1fr); }
.lf-cols--4 .lf-opts-radio, .lf-cols--4 .lf-opts-text { grid-template-columns: repeat(4, 1fr); }
/* In a grid each option fills its cell */
.lf-cols--auto .lf-radio-opt,
.lf-cols--2 .lf-radio-opt, .lf-cols--3 .lf-radio-opt, .lf-cols--4 .lf-radio-opt {
    width: 100%;
    box-sizing: border-box;
}

/* ── card_ratio variants ── */
.lf-ratio--landscape .lf-card-img { aspect-ratio: 16/9; }
.lf-ratio--portrait  .lf-card-img { aspect-ratio: 3/4; }

/* ── progress variants ── */
.lf-progress--none  .lf-progress { display: none; }
.lf-progress--steps .lf-progress { display: none; }
.lf-progress-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--lf-mute);
    text-align: center;
    margin-bottom: 16px;
    min-height: 1.4em;
    letter-spacing: .02em;
}

/* ── per-step custom HTML ── */
.lf-step-custom-html { text-align: right; line-height: 1.6; padding:20px 0; }

/* Disable sticky hover on touch-only devices */
@media (hover: none) {
    .lf-radio-opt:hover {
        background: var(--lf-paper);
        border-color: var(--lf-hair);
        box-shadow: none;
    }
    .lf-radio-opt:hover .lf-radio-dot { border-color: var(--lf-hair); }
    .lf-chip:hover { background: transparent; }
    .lf-card-opt:hover { border-color: var(--lf-hair); transform: none; }
    .lf-btn-back:hover { background: transparent; border-color: var(--lf-hair); }
    .lf-btn-next:hover, .lf-btn-submit:hover { background: var(--lf-accent); box-shadow: 0 2px 10px color-mix(in srgb, var(--lf-accent) 35%, transparent); }
}

/* Responsive */
@media (max-width: 900px) {
    .lf-card { grid-template-columns: minmax(0, 1fr) !important; gap: 24px; }
    .lf-hero { aspect-ratio: 16/9; max-height: 280px; }
}
@media (max-width: 600px) {
    .lf-wrap {
        padding: 28px 16px;
        margin: 24px 0;
    }
    .lf-actions { flex-wrap: wrap; }
    .lf-btn { width: 100%; justify-content: center; }
    .lf-modal { padding: 36px 18px; }
}
