create function of the HostedFields library supports a second property called styles. There, you can provide all the CSS styles needed to render the forms in your design. E.g:Whenever an input is considered invalid we will add invalidclassName to the class attribute of the input. If the input is considered valid we will addvalidclassName to the class attribute.
useTargetStyle flag inside the field config. E.g:form-control and my-input-clss) and an id card-number-input, then we inform the config that this element (#card-number-input) will be the target element for the iframe providing the card number input and that it needs to use its styles to render the input. And you are ready to go, the iframe will copy your styles and apply them for you.Keep in mind that your original inputelement will be removed and the iframe will be inserted inside its parent. In the example above the parent isdiv#card-number.