/* Основные стили попапов */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.active {
    display: flex;
}

.popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.popup__content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    width: 100%;
    margin: 20px;
}

.popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #E8B125;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.popup__close:hover {
    background-color: #414042;
}

/* Ваши оригинальные стили с небольшими правками */
.popupOne, .popupTwo {
    width: 100%;
    padding: 40px;
    border-radius: 8px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    flex-direction: column;
    line-height: 1.1;
    position: relative;
}

.popupOneTitle {
    text-align: center;
    width: 100%;
    font-size: 25px;
    font-weight: 700;
    color: #E8B125;
    margin-bottom: 20px;
    line-height: 1.2;
}

.popupOneDiscr {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
    color: #414042;
}

#formPopup1 , #formPopup2{
    display: flex;
    flex-direction: column;
    width: 100%;
}

#formPopup1 input,
#formPopup1 select {
    width: 100%;
    height: 50px;
    font-size: 14px;
    color: #000000;
    background-color: #F9F9F9;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 0 20px;
}

#formPopup2 input,
#formPopup2 select {
    width: 100%;
    height: 50px;
    font-size: 14px;
    color: #000000;
    background-color: #F9F9F9;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 0 20px;
}

#formPopup1 input::placeholder {
    color: #939598;
}

#formPopup2 input::placeholder {
    color: #939598;
}

.select-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.select-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #000000;
    font-weight: 400;
}

#service-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23939598' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px 8px;
    cursor: pointer;
}

#service-select:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#formPopup1 button {
    width: 100%;
    height: 50px;
    background-color: #E8B125;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#formPopup2 button {
    width: 100%;
    height: 50px;
    background-color: #E8B125;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#formPopup1 button:hover {
    background-color: #414042;
}

#formPopup2 button:hover {
    background-color: #414042;
}

.popupOnePolit {
    font-size: 14px;
    color: #939598;
    text-decoration: underline;
    margin-top: 30px;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 619px) {
    .popup__content {
        margin: 10px;
        max-width: 340px;
    }
    
    .popupOne, .popupTwo {
        padding: 30px 20px;
    }
    
    .popupOneTitle {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .popupOneDiscr {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    #formPopup1 input,
    #formPopup1 select {
        margin-bottom: 15px;
    }
    
    #formPopup1 button {
        font-size: 15px;
    }
    
        #formPopup2 input,
    #formPopup2 select {
        margin-bottom: 15px;
    }
    
    #formPopup2 button {
        font-size: 15px;
    }
}