

.modal__btn {
    cursor: pointer;
}

.modalobert {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    cursor: pointer;
    z-index: 1000;

}




.contain__form__modal {
    position:relative;
    margin: auto;
    height: 450px;
    width: 760px;
    border: 1px solid cornflowerblue;
    justify-self: center;
    border-radius: 5px;
    background: white;
    cursor: default;
}

.modal__close {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 30px;
    top: 20px;
    right: 50px;

}

.form__title__modal h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form__title__modal {
    justify-self: center;
    align-self: start;
}

.form__cost__modal {
    display: grid;
    grid-template-columns: 670px;
    grid-template-rows: 95px 200px;
    justify-content: center;
    margin-top: 50px;
}

.data__entry__modal {
    display: grid;
    grid-template-columns: 670px;
    grid-template-rows: 130px 60px 45px;
    row-gap: 10px;
}

.data__entry__fio-email-phone__modal {
    display: grid;
    grid-template-columns: 670px;
    grid-template-rows: 60px;
    row-gap: 15px;

}

.cost__btn__send__modal {
    background: cornflowerblue;
    border-radius: 20px;
}

.cost__btn__send__modal span {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

.input__fio__modal {
    background: #F4F4F4;
    border: 1px solid cornflowerblue;
    border-radius: 20px;
    overflow: hidden;
}

.input__email__modal {
    background: #F4F4F4;
    border: 1px solid #EC423E;
    border-radius: 80px;
    overflow: hidden;
}

.input__phone__modal {
    background: #F4F4F4;
    border: 1px solid cornflowerblue;
    border-radius: 20px;
    overflow: hidden;
}

.input__fio__modal input {
    height: 40px;
    width: 100%;
    background: #F4F4F4;
    align-self: center;
    padding-top: 15px;
    padding-left: 40px;
}

.input__email__modal input {
    height: 40px;
    width: 100%;
    background: #F4F4F4;
    align-self: center;
    padding-top: 15px;
    padding-left: 40px;
}

.input__phone__modal input {
    height: 40px;
    width: 100%;
    background: #F4F4F4;
    align-self: center;
    padding-top: 15px;
    padding-left: 40px;
}

.agreement__modal {
    padding-top: 30px;
    padding-left: 80px;
}

.agreement__modal .cost__agreement-checkbox__modal {
    background: #EC423E;
}

.agreement__label__modal {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 12px;
}

.agreement__link__modal {
    text-decoration: underline;
    color: #3C3C3C;
}

@media (max-width: 767px) {
    .contain__form__modal {
        margin-top: 100px;
        height: 500px;
        width: 320px;
        border: 1px solid cornflowerblue;
        justify-self: center;
        border-radius: 10px;
        margin-left: 15px;
    }

    .form__title__modal h2 {
        text-align: center;
    }

    .form__title__modal {
        justify-self: center;
        align-self: center;
        font-size: 13px;
    }

    .form__cost__modal {
        display: grid;
        grid-template-columns: 320px;
        grid-template-rows: 95px 200px;
        justify-content: center;
        margin-top: 50px;
    }

    .data__entry__modal {
        display: grid;
        grid-template-columns: 320px;
        grid-template-rows: 140px 60px 45px;
        row-gap: 10px;
    }

    .data__entry__fio-email-phone__modal {
        display: grid;
        grid-template-columns: 320px;
        grid-template-rows: 60px;
        row-gap: 15px;
        justify-self: center;

    }

    .cost__btn__send__modal {
        background: cornflowerblue;
        border-radius: 80px;
        width: 320px;
        justify-self: center;
    }

    .cost__btn__send__modal span {
        font-family: Montserrat;
        font-weight: 600;
        font-size: 16px;
        color: #ffffff;
    }



    .input__phone__modal {
        background: #F4F4F4;
        border: 1px solid cornflowerblue;
        border-radius: 80px;
        overflow: hidden;
    }




    .input__phone__modal input {
        height: 40px;
        width: 100%;
        background: #F4F4F4;
        align-self: center;
        padding-top: 15px;
        padding-left: 40px;
    }

    .agreement__modal {
        padding-left: 5px;
        width: 400px;
    }

    .agreement__modal .cost__agreement-checkbox__modal {
        background: #EC423E;
    }

    .agreement__label__modal {
        font-family: Montserrat;
        font-weight: 400;
        font-size: 12px;
    }

    .agreement__link__modal {
        text-decoration: underline;
        color: #3C3C3C;
    }

}