/* === Попап «Оставить заявку» (js/lead-popup.js) ===
   Поля и кнопка повторяют блок обратной связи на странице статьи (styles/article.css) */

.lead-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
}

.lead-popup.is-open {
    opacity: 1;
    visibility: visible;
}

body.lead-popup-lock {
    overflow: hidden;
}

.lead-popup__card {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: auto;
    padding: 48px 40px 40px;
    background: #FFFFFF;
    border-radius: 24px;
    box-sizing: border-box;
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.lead-popup.is-open .lead-popup__card {
    transform: translateY(0);
}

.lead-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #666666;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lead-popup__close:hover {
    background: #F2F4F8;
    color: #000000;
}

.lead-popup__title {
    margin: 0 0 12px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 1.1;
    color: #000000;
    text-align: center;
}

.lead-popup__description {
    margin: 0 auto 28px;
    max-width: 440px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    text-align: center;
}

.lead-popup__success .lead-popup__description {
    margin-bottom: 0;
}

.lead-popup__group {
    margin-bottom: 20px;
}

.lead-popup__input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 30, 126, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #2d2d2d;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.lead-popup__input:focus {
    outline: none;
    border-color: #192B63;
    background: rgba(255, 255, 255, 0.8);
}

.lead-popup__input.is-invalid {
    border-color: #D93025;
}

.lead-popup__error {
    display: none;
    margin: 6px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #D93025;
    text-align: left;
}

.lead-popup__error.is-visible {
    display: block;
}

.lead-popup__submit {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    background-color: #082E74;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.lead-popup__submit:hover {
    background-color: #214382;
    transform: translateY(-2px);
}

.lead-popup__submit:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

.lead-popup__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    cursor: pointer;
    text-align: left;
}

.lead-popup__consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #082E74;
    cursor: pointer;
}

.lead-popup__consent-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #666666;
}

.lead-popup__consent-text a {
    color: #082E74;
    text-decoration: underline;
}

.lead-popup__consent-text a:hover {
    color: #0a3a92;
}

@media (max-width: 480px) {
    .lead-popup {
        padding: 12px;
    }

    .lead-popup__card {
        padding: 44px 20px 28px;
        border-radius: 20px;
    }

    .lead-popup__title {
        font-size: 24px;
    }

    .lead-popup__description {
        font-size: 15px;
    }
}
