/* ═══════════════════════════════════════════════════════
   CTA-блок: Вариант 4 — Синяя панель слева + форма справа
   /bitrix/templates/luidor_2021/components/luidor/cta.home/.default/style.css

   Токены дизайн-системы: --ls-color-primary, --ls-color-text-*, --ls-color-bg-*
   ═══════════════════════════════════════════════════════ */

/* ── Секция ── */
.lsx-cta {
    position: relative;
}

/* ── Двухколоночная обёртка без внешней карточки ── */
.lsx-cta__wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: var(--ls-radius-card, 14px);
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(15, 23, 42, 0.12);
}

/* ══ ЛЕВАЯ ПАНЕЛЬ: синяя ══ */
.lsx-cta__left {
    background: var(--ls-color-primary, #0179b9);
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

/* декоративные круги */
.lsx-cta__left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.lsx-cta__left::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/* Бейдж */
.lsx-cta__badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    position: relative;
}

/* Заголовок */
.lsx-cta__title {
    font-size: clamp(1.45rem, 2.3vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
    position: relative;
}

.lsx-cta__title em {
    font-style: normal;
    display: block;
    margin-top: 6px;
    font-size: 0.82em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0;
    line-height: 1.4;
}

/* Статистика */
.lsx-cta__stats {
    display: flex;
    gap: 0;
    position: relative;
}

.lsx-cta__stat {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

.lsx-cta__stat:first-child { border-radius: 10px 0 0 10px; }
.lsx-cta__stat:last-child  { border-radius: 0 10px 10px 0; }
.lsx-cta__stat + .lsx-cta__stat { border-left: none; }

.lsx-cta__stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}

.lsx-cta__stat-txt {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.58);
    margin-top: 4px;
    line-height: 1.3;
    white-space: nowrap;
}

/* Преимущества */
.lsx-cta__feats {
    display: flex;
    flex-direction: column;
    gap: 9px;
    position: relative;
}

.lsx-cta__feat {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.lsx-cta__feat svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ══ ПРАВАЯ ПАНЕЛЬ: форма ══ */
.lsx-cta__right {
    background: #ffffff;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

/* Заголовок формы */
.lsx-cta__form-head {}

.lsx-cta__form-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ls-color-text-head, #0c1a28);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.lsx-cta__form-sub {
    font-size: 13px;
    color: var(--ls-color-text-meta, #6b7a8d);
    line-height: 1.5;
}

/* Форма */
.lsx-cta__form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Строка имя + телефон */
.lsx-cta__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Поле */
.lsx-cta__field {
    position: relative;
    margin-bottom: 12px;
}

.lsx-cta__row .lsx-cta__field {
    margin-bottom: 0;
}

.lsx-cta__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ls-color-text-subtle, #5f6b7a);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lsx-cta__input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: transparent;
    border: none;
    color: var(--ls-color-text-body, #1b2530);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    flex: 1;
    min-width: 0;
}

/* Обёртка-врез с иконкой — flex-контейнер вместо padding-left */
.lsx-cta__field-inner {
    display: flex;
    align-items: center;
    height: 44px;
    background: var(--ls-color-bg-section, #f8f9fb);
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    padding: 0 14px 0 12px;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.lsx-cta__field-inner:hover {
    border-color: rgba(1, 121, 185, 0.30);
}

.lsx-cta__field-inner:focus-within {
    border-color: var(--ls-color-primary, #0179b9);
    box-shadow: 0 0 0 3px rgba(1, 121, 185, 0.10);
    background: #ffffff;
}

/* Поле без иконки (Вопрос) — обычный стиль */
.lsx-cta__input--no-icon {
    height: 44px;
    padding: 0 14px;
    background: var(--ls-color-bg-section, #f8f9fb);
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    color: var(--ls-color-text-body, #1b2530);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lsx-cta__input--no-icon:hover { border-color: rgba(1, 121, 185, 0.30); }
.lsx-cta__input--no-icon:focus {
    border-color: var(--ls-color-primary, #0179b9);
    box-shadow: 0 0 0 3px rgba(1, 121, 185, 0.10);
    background: #ffffff;
}

.lsx-cta__input::placeholder,
.lsx-cta__input--no-icon::placeholder {
    color: #9fadbf;
    font-size: 13px;
}

/* Иконка — flex-элемент, не абсолютное позиционирование */
.lsx-cta__field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    color: #b0bec5;
    pointer-events: none;
    transition: color 0.2s;
}

.lsx-cta__field-inner:focus-within .lsx-cta__field-icon {
    transition: color 0.2s;
}

.lsx-cta__input:focus ~ .lsx-cta__field-icon,
.lsx-cta__input:focus + .lsx-cta__field-icon {
    color: var(--ls-color-primary, #0179b9);
}

/* Captcha */
.lsx-cta__captcha {
    margin: 2px 0 10px;
}

.lsx-cta__captcha .cf-turnstile {
    width: 100%;
}

.cf-turnstile {
    border-radius: 8px;
    overflow: hidden;
}

/* Футер формы */
.lsx-cta__footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Кнопка */
.lsx-btn--cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    padding: 0 24px;
    background: var(--ls-btn-primary-bg, #0179b9);
    color: var(--ls-btn-primary-color, #ffffff);
    border: none;
    border-radius: var(--ls-btn-primary-radius, 8px);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--ls-btn-primary-shadow, 0 4px 14px rgba(1,121,185,0.30));
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lsx-btn--cta:hover {
    background: var(--ls-btn-primary-bg-hover, #015d91);
    box-shadow: var(--ls-btn-primary-shadow-hover, 0 6px 20px rgba(1,121,185,0.45));
    transform: translateY(-1px);
}

.lsx-btn--cta:active {
    transform: translateY(0);
    box-shadow: var(--ls-btn-primary-shadow, 0 4px 14px rgba(1,121,185,0.30));
}

.lsx-btn--cta svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.lsx-btn--cta:hover svg {
    transform: translateX(3px);
}

.lsx-btn--cta:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Политика */
.lsx-cta__policy {
    text-align: center;
    font-size: 11px;
    color: var(--ls-color-text-meta, #6b7a8d);
    line-height: 1.4;
    margin: 0;
}

.lsx-cta__policy a {
    color: var(--ls-color-text-subtle, #5f6b7a);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: color 0.2s;
}

.lsx-cta__policy a:hover {
    color: var(--ls-color-primary, #0179b9);
}

/* Honeypot */
.lsx-cta__honeypot { display: none !important; }

/* Валидация */
.lsx-cta__field--error .lsx-cta__input {
    border-color: #f59e0b;
    animation: lsx-shake 0.25s ease;
}

@keyframes lsx-shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-5px); }
    75%       { transform: translateX(5px); }
}

/* Спиннер */
.lsx-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: lsx-spin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes lsx-spin {
    to { transform: rotate(360deg); }
}

/* ══ АДАПТИВ ══ */
@media (max-width: 900px) {
    .lsx-cta__wrap {
        grid-template-columns: 1fr;
    }

    .lsx-cta__left {
        padding: 36px 28px;
    }

    .lsx-cta__right {
        padding: 32px 28px;
    }

    .lsx-cta__stats {
        max-width: 440px;
    }
}

@media (max-width: 600px) {
    .lsx-cta__left  { padding: 28px 20px; gap: 20px; }
    .lsx-cta__right { padding: 28px 20px; gap: 16px; }

    .lsx-cta__row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .lsx-cta__row .lsx-cta__field {
        margin-bottom: 12px;
    }

    .lsx-cta__stats {
        flex-direction: row;
    }

    .lsx-cta__stat-num { font-size: 1.1rem; }

    .lsx-cta__title { font-size: 1.4rem; }

    .lsx-cta__wrap { border-radius: 12px; }
}
