If you are happy with that code on that page, then add my piece to the front to limit it to just that page:
#page-enrol-editinstance div.d-md-inline-block {
width: 500px;
}
#page-enrol-editinstance div.d-md-inline-block {
width: 500px;
}