If you submit the form without data you can inspect the error element and find there is already a CSS class assigned to it. You can write your styles around that class name. You can then set your form within an ajax panel (checkbox in the webpart) to ensure it doesn't post back.