/* Overlay (затемненный фон) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Контейнер попапа */
.popup-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    padding: 0;
    width: 32px;
    height: 32px;
}

.popup-close:hover {
    color: #333;
}

/* Форма */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Заголовок */
.popup-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Поля ввода */
.popup-input {
    width: 100% !important;
    padding: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: border-color 0.2s ease !important;
    background-color: #fff !important;
}

.popup-input:focus {
    outline: none !important;
    border-color: #5a67d8 !important;
}

.popup-input::placeholder {
    color: #999 !important;
}

/* Чекбокс */
.popup-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.popup-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.privacy-link {
    color: #5a67d8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* Кнопка отправки */
.popup-submit {
    background: linear-gradient(135deg, #5a67d8 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 103, 216, 0.4);
}

.popup-submit:active {
    transform: translateY(0);
}

/* Кнопка для открытия попапа (демонстрационная) */
.open-popup-btn {
    background: linear-gradient(135deg, #5a67d8 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.open-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(90, 103, 216, 0.4);
}

/* Адаптивность */
@media (max-width: 576px) {
    .popup-container {
        padding: 30px 20px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-input {
        padding: 12px;
        font-size: 14px;
    }
    
    .popup-submit {
        padding: 14px;
        font-size: 15px;
    }
}

