.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный цвет */
    z-index: 999; /* Должен быть ниже, чем у попапа */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.need-consult-popup {
    width: 30%;
    height: fit-content;
    background: #FFFFFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Указываем высокий z-index для отображения поверх остальных элементов */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Добавляем тень для эффекта */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.popup__active {
    opacity: 1;
    visibility: visible;
}


    
    
.need-consult-popup   .popup__content-consult {
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 60px 30px;
        box-sizing: border-box;
    }
    
.need-consult-popup   .popup__button__close-consult {
        position: absolute;
        top: 10px;
        right: 15px;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    
.need-consult-popup    .popup__title-consult {
        color: #2B3888;
        font-family: "Montserrat", Montserrat, sans-serif;
        font-size: 32px;
        font-weight: 600;
        line-height: 24px;
        text-align: left;
    }
    
.need-consult-popup    .popup__description-consult {
        font-family: "Montserrat", Montserrat, sans-serif;
        font-size: 20px;
        color: rgb(173, 173, 173);
        font-weight: 400;
        line-height: 24px;
        width: 100%;
    }
    
.need-consult-popup    .popup__form-consult {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }
    
.need-consult-popup    .popup__input-consult {
        box-sizing: border-box;
        font-family: "Montserrat", Montserrat, sans-serif;
        font-size: 20px;
        color: rgb(173, 173, 173);
        font-weight: 400;
        line-height: 24px;
        width: 100%;
        height: 70px;
        background: rgb(255, 255, 255);
        border: 2px solid rgb(173, 173, 173);
        padding: 0 14px 0 14px;
        margin: 0;
        margin-block: 10px;
    }
    
.need-consult-popup    .popup__input-consult::placeholder, .popup__textarea::placeholder {
        color: rgb(173, 173, 173);
        font-size: 20px;
        font-weight: 400;
        line-height: 24px;
    }
    
.need-consult-popup    .popup__input-consult:focus-visible, .popup__textarea:focus-visible {
        outline: none;
    }
    
.need-consult-popup    .popup__input__label-consult {
        position: relative;
        font-family: "Montserrat", Montserrat, sans-serif;
        font-size: 20px;
        color: #2B3888;
        font-weight: 600;
        line-height: 24px;
        padding-bottom: 10px;
    }
    
.need-consult-popup    .popup__input__label-consult::after {
        content: "*";
        position: absolute;
        top: 0;
        right: -15px;
        color: #FF6224;
        font-size: 20px;
    }
    
    .popup__field:nth-child(3) .popup__input__label-consult::after {
        content: "";
    }
    
.need-consult-popup    .popup__button-consult {
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgb(255, 255, 255);
        font-family: "Montserrat", Montserrat, sans-serif;
        font-size: 24px;
        font-weight: 400;
        line-height: 24px;
        width: 100%;
        height: 70px;
        background: #FF6224;
        border-color: transparent;
        padding: 0;
        cursor: pointer;
        transition: all 0.1s ease-in-out;
    }
    
.need-consult-popup    .popup__button-consult:hover, .get-consult-button-consult:hover {
        background: rgba(255, 98, 36, 0.9);
        transition: all 0.1s ease-in-out;
    }
    
.need-consult-popup    .popup__message-consult {
        display: none;
        width: 100%;
        margin-top: 30px;
        text-align: center;
    }
    
.need-consult-popup    .popup__message__button__close-consult {
        display: flex;
        margin: 70px 0 30px 0;
        align-items: center;
        justify-content: center;
        color: rgb(255, 255, 255);
        font-family: "Montserrat", Montserrat, sans-serif;
        font-size: 24px;
        font-weight: 400;
        line-height: 24px;
        width: 100%;
        height: 70px;
        background: rgb(173, 173, 173);
        border-color: transparent;
        padding: 0;
        cursor: pointer;
    }

    .send-application {
    
        width: 48px;
        height: 48px;
        position: fixed;
        right: 1.875rem;
        bottom: 1.875rem;
        z-index: 20;
        border-radius: 50%;
      }
      
      .send-application-button {
        width: 100%;
        height: 100%;
        background-color: #161E70;
        border: none;
        border-radius: 50%;
        outline: none;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      
      .send-application-image {
        width: 28px;
        height: 28px;
      }
      
      .real-estate-buy-item-description-hidden {
        margin: 0;
        align-self: self-start;
        display: none;
        width: 100%;
      }
      
      .real-estate-buy-item:hover .real-estate-buy-item-description-hidden {
        display: block;
      }
      
      
      .real-estate-buy-item-description-hidden-row {
          font-size: 14px;
          display: grid;
          grid-template-columns: 2fr 1fr 2fr;
          width: 100%;
          justify-content: space-between;
      }
      
      
      .real-estate-buy-item-description-hidden-row-text-bald {
        font-weight: 700;
      }
    
    @media screen and (max-width: 1400px) {
        .need-consult-popup {
            width: 50%;
        }
    }
    
    @media screen and (max-width: 992px) {
        .need-consult-popup {
            width: 80%;
        }
    }
    
    @media screen and (max-width: 768px) {
        .need-consult-popup {
            /* margin-top: -25px; */
            position: absolute;
            margin-top: 10%;
            width: 100%;
        }
    
        .need-consult-popup .popup__content-consult {
            gap: 20px;
            padding: 30px 15px;
        }
    
        .need-consult-popup .popup__title-consult {
            font-size: 24px;
        }
    
        .need-consult-popup .popup__description-consult {
            font-size: 16px;
        }
    
        .need-consult-popup .popup__form-consult {
            gap: 14px;
        }
    
        .need-consult-popup .popup__input-consult {
            height: 45px;
        }
    
        .need-consult-popup .popup__button-consult {
            font-size: 20px;
            height: 40px;
        }
    }


