Template affect other template styling

I created 2 template and both of them consist of form using CF7. I styled both the forms differently.
Then I test them out by creating a testing page and put in both the template inside. And it seems like styling of one form is affected by another. What I am expecting is the form styling for template A stays with template A and form styling for template B stays with template B.


Due to limitation of media uploading, I can only upload one by one.
This is template A


This is template B

As you can see, in the template B the input field for the name is different with contact No. and Email. The inset boxshadow suppose to only apply in template A