For a software testing services company while automating the application we avoid the usage of the Xpaths. We give preferences to the Classname>=Id>=Linktext>=Css and then last preference is given to the Xpath. Please try the code below.
public void clickCancelBtn() {
webElement = driver.findElement(By.cssselector("button.btn.btn-outline-primary.bold"));
webElement.click();
}
Also, Form seems to be written using jquery. We have to look into the other solution if it not working at your end. Please do share your code snippet or error that it throws if it is not working at your end.