
/* Важная часть */
.settings_popup_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0; /* // Скрываем фон и сам попап */
    pointer-events: none; /* // Запрещаем ему быть целью событий */
    transition: 0.5s all;
}

.settings_popup_bg.active { 
    z-index: 10000000;
    opacity: 1; /* Показываем фон и попап */
    pointer-events: all; /* Возвращаем события */
    transition: 0.5s all;
}

.sett_popup {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* // Центрируем и масштабируем в 0 само окно */
    background: #fff;
    width: 400px;
    padding: 25px;
    transition: 0.5s all;
}

.sett_popup.active { /* // При добавлении класса 'active' */
    border-radius: 5px;
    z-index: 10000000;
    transform: translate(-50%, -50%) scale(1); /* // Так же центрируем и плавно увеличиваем */
    transition: 0.5s all;
}
/* Конец важной части */
/* Далее код для стилизации формы */
.close-sett_popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2em;
    color: white;
    background: #2982ff;
    border-radius: 50%;
    cursor: pointer;
}

.sett_popup label {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column-reverse;
}

.sett_popup .label_text {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    color: #cfd0d3;
    margin-bottom: 5px;
}

.sett_popup input {
    height: 45px;
    font-size: 18px;
    border: none;
    outline: none;
    border-bottom: 1px solid #cfd0d3;
}

.sett_popup input:focus {
    border-bottom: 1px solid #2982ff;
}

.sett_popup input:focus + .label_text {
    color: #2982ff;
}

.sett_popup textarea {
    resize: none;
    width: 100%;
    height: 150px;
    border: none;
    outline: none;
    border-bottom: 1px solid #cfd0d3;
    font-size: 18px;
    padding-top: 5px;
}

.sett_popup textarea:focus {
    border-bottom: 1px solid #2982ff;
}

.sett_popup textarea:focus + .label_text {
    color: #2982ff;
}

.sett_popup .sett_button {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    border: 2px solid #2982ff;
    background: #2982ff;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.5s all;
}

.sett_popup .sett_button:hover {
    background: #fff;
    color:#2982ff;
    transition: 0.5s all;
}
