Validate field in one page checkout

Validate field in one page checkout

Hi I need a help with two specifics validations fields in amasty one page checkout.
The first is the dni fields I'm from Chile so in mi country we have a specifc validations for the dni.
And the second validations is in a custom field.
Validation case 1

Validations case 2