The snippets below should be inserted into your WordPress theme's functions.php file or via a plugin that does this for you. I particularly like Code Snippets.
The following filter prevents CF7 from rendering multiple <p> tags in your form, improving custom styling.
add_filter('wpcf7_autop_or_not', '__return_false');