/* Общие стили для премиальных модальных окон 4WIN */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.modal-handle {
    display: none;
    width: 40px;
    height: 5px;
    background-color: #E5E7EB;
    border-radius: 10px;
    margin: 12px auto 0;
}

.modal-4win {
    background-color: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    overflow: visible; /* Разрешаем выпадающим спискам выходить за границы */
    display: flex;
    position: relative;
    border: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-left {
    flex: 0 0 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.modal-right {
    flex: 1;
    padding: 50px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--4win-text-muted);
    cursor: pointer;
    z-index: 10;
}

/* Стили полей ввода */
.reg-input-group {
    margin-bottom: 12px;
}

.reg-input {
    width: 100%;
    background-color: #f2f3f5;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: background-color 0.2s;
}

.reg-input:focus {
    background-color: #ebedf0;
}

.btn-reg-submit {
    width: 100%;
    background: var(--4win-primary);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    padding: 18px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-reg-submit:hover {
    background-color: var(--4win-primary-hover);
}

.btn-reg-submit:active {
    transform: scale(0.99);
}

.btn-reg-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .modal-left {
        display: none;
    }
    .modal-4win {
        max-width: 450px;
        margin: 20px;
    }
    .modal-right {
        padding: 40px 30px;
    }
}
