.popup-input {
    position: fixed;
    z-index: 11;
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms ease;
}

.popup-input.active {
    opacity: 1;
    pointer-events:all;
}

.popup-input .fon {
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
}

.popup-input .main {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    background-color: #FFFFFF;
    border-radius: 5px;
    padding: 3.75vw;
    z-index: 11;
}

.popup-input .text-container .title {
    color: #444651;
    font-family: "Wix Madefor Display", serif;
    font-size: 2.5vw;
    font-weight: 400;
}

.popup-input .text-container .subtitle {
    margin-top: 1.25vw;
    color: #444651;
    font-size: 0.833vw;
    font-family: "Inter Tight", serif;
    font-weight: 500;
}

.popup-input .form-contacts {
    margin-top: 3.125vw;
    display: flex;
    align-items: center;
    gap: 0.625vw;
    justify-content: space-between;
}

.popup-input .form-contacts input {
    padding: 1.041vw 2.91vw;
    border-radius: 5px;
    outline: none;
    border: 1px solid #EDF0F2;
    background-color: #F9F9F9 !important;
    background: url('../img/User.webp') no-repeat 1vw center;
    background-size: 1.041vw 1.041vw;
    width: calc(100% / 3);
    transition: border 300ms ease;
}

.popup-input .form-contacts input:last-of-type {
    background: url('../img/Phone.webp') no-repeat 1vw center;
    background-size: 1.041vw 1.041vw;
}

.popup-input .form-contacts input::placeholder {
    color: #828689;
    font-family: "Inter Tight", serif;
    font-weight: 500;
    font-size: 0.833vw;
}

.popup-input .form-contacts input:hover {
    border: 1px solid #828689;
}

.popup-input .form-contacts .send-application {
    background-color: #EF7403;
    border-radius: 5px;
    width: calc(100% / 3);
    padding: 1.041vw 1.25vw;
    text-align: center;
    color: white;
    font-family: "Inter Tight", serif;
    font-weight: 400;
    font-size: 0.833vw;
    transition: background-color 300ms ease;
}

.popup-input .form-contacts .send-application:hover {
    background-color: #1976D2;
    cursor: pointer;
}

.popup-input .note {
    margin-top: 0.625vw;
    color: #828689;
    font-size: 0.625vw;
    font-family: "Inter Tight", serif;
    font-weight: 400;
}

.popup-input .note a {
    color: #828689;
    font-weight: 800;
}

.popup-input .exit {
    position: absolute;
    top: 1.25vw;
    right: 1.25vw;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.125vw;
    height: 3.125vw;
    background-color: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #C7D0DA;
    transition: background-color 300ms ease, border 300ms ease;
}

.popup-input .exit svg {
    width: 1.041vw;
    height: 1.041vw;
}

.popup-input .exit svg path {
    stroke: #444651;
    transition: stroke 300ms ease;
}

.popup-input .exit:hover {
    cursor: pointer;
    background-color: #1976D2;
    border: 1px solid #1976D2;
}

.popup-input .exit:hover svg path {
    stroke: #FFFFFF;
}

@media (max-width: 768px) {
    .popup-input .main {
        width: 87.69vw;
        padding: 6.15vw;
    }

    .popup-input .text-container .title {
        padding-right: 11.79vw;
        font-size: 7.17vw;
    }

    .popup-input .text-container .subtitle {
        padding-right: 11.79vw;
        margin-top: 3.07vw;
        font-size: 4.1vw;
    }

    .popup-input .exit {
        top: 3.07vw;
        right: 3.07vw;
        width: 12.3vw;
        height: 12.3vw;
    }

    .popup-input .exit svg {
        width: 5.12vw;
        height: 5.12vw;
    }

    .popup-input .form-contacts {
        margin-top: 9.23vw;
        flex-direction: column;
        gap: 3.07vw;
    }


    .popup-input .form-contacts input {
        width: 100%;
        height: 15.38vw;
        padding: 5.12vw 14.86vw;
        background: url('../img/User.webp') no-repeat 6.15vw center;
        background-size: 5.12vw 5.12vw;
    }

    .popup-input .form-contacts input:nth-child(2n) {
        background: url('../img/Phone.webp') no-repeat 6.15vw center;
        background-size: 5.12vw 5.12vw;   
    }

    .popup-input .form-contacts input::placeholder {
        font-size: 4.1vw;
    }

    .popup-input .form-contacts .send-application {
        margin-top: 3.07vw;
        padding: 5.12vw 0vw;
        white-space: nowrap;
        font-size: 4.1vw;
        width: 100%;
        text-align: center;
    }

    .popup-input .note {
        margin-top: 3.07vw;
        font-size: 3.07vw;
    }
}