/* ═══════════════════════════════════════════
   KS Clients — Exit-intent pop-up
   ═══════════════════════════════════════════ */

.ksc-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ksc-popup {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 40px 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: ksc-slide-in 0.3s ease;
}

@keyframes ksc-slide-in {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ksc-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}
.ksc-popup__close:hover {
    color: #333;
}

.ksc-popup__icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.ksc-popup__title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.ksc-popup__text {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}

.ksc-popup__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ksc-popup__input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ksc-popup__input:focus {
    border-color: #20B8AD;
}

.ksc-popup__btn {
    width: 100%;
    padding: 14px;
    background: #20B8AD;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.ksc-popup__btn:hover {
    background: #1a9b92;
}
.ksc-popup__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ksc-popup__note {
    font-size: 11px;
    color: #aaa;
    margin: 12px 0 0;
}

.ksc-popup__error {
    color: #c0392b;
    font-size: 13px;
    margin-top: 8px;
}

/* ── Мобильная адаптация ───────────────────── */
@media (max-width: 480px) {
    .ksc-popup {
        padding: 32px 24px 24px;
        border-radius: 12px;
    }
    .ksc-popup__title {
        font-size: 18px;
    }
    .ksc-popup__text {
        font-size: 13px;
    }
}
