.bg-f{
    position: relative;
}

.bg-f > div{
    position: relative;
    z-index: 3;
}

.bg-f:before{
    position: absolute;
    height: 100%;
    right: calc(50% - 100vw/2);
    left: calc(50% - 100vw/2);
    top: 0;
    content:'';
    background-image: url("../img/agents/agents_header.png");
    background-position: right;
    background-repeat: no-repeat;
    z-index: 3;
}

.agents-custom{
    position: relative;
}


.agents-custom__header{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agents-custom__header-title{
    padding: 30px 0;
}

.agents-custom__header-title > *{
    position: relative;
    z-index: 10;
}

.agents-custom__header-title:before{
    position: absolute;

    right: calc(50% - 100vw);
    left: calc(50% - 100vw);
    min-height: 100%;
    top: 0;
    content:'';


    z-index: 4;
}

.agents-custom__header-title:before{
    content: '';

}


.agents-custom__header-title h1{
    text-align: left;
    font-family: "Mont", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0em;
    color: #2f2f35;
    opacity: 0.9;
}
.agents-custom__header-title h2{
    text-align: left;
    font-family: "Mont", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0em;
    color: #2f2f35;
    opacity: 0.9;
}
.agents-custom__header-title-btn{
    cursor: pointer;
    background: linear-gradient(90deg, rgb(145, 12, 220), rgb(83, 1, 223));
    color: rgb(255, 255, 255);
    font-family: "Mont", sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 10px;
    display: inline-flex;
    position: relative;
    align-items: center;
    border-radius: 15px 15px 15px 15px;
    transition: 150ms transform;
    box-shadow: 0 0px 0px 0px rgba(145, 12, 220, 0.79);
}


.agents-custom__header-title-btn:hover{
    box-shadow: 0 0px 5px 5px rgba(145, 12, 220, 0.79);
}

.agents-custom__lists{
    margin-top: 50px;
    margin-bottom: 50px;
}

.agents-custom__lists ul{
    list-style: decimal;
}

.agents-custom__lists li{
    font-family: "Mont", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0em;
}

.agents-custom__modal {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    z-index: 99999999 !important;
    background: rgba(0, 0, 0, 0.5);
}

.agents-custom__modal>.custom-form-wrap{
    max-height: 500px;
    max-width: 600px;
}

.agents-custom__modal.active{
    display: flex;
}

@media (max-width: 1024px){
    .agents-custom__header{
        flex-direction: column;

        align-items: center;
    }



    /*.agents-custom__header-img{
        display: none;
    }*/
}

@media (max-width: 758px) {

    .agents-custom__header-title:before{
        background: rgba(0,0,0,0.5);
    }

    .bg-f:before {
        background-position: center;
    }
    .agents-custom__modal>.custom-form-wrap{
        max-width: 90%;
        max-height: 70%;
    }

}