Another way to sort this would be to add the below filter to functions.php, this prevents ‘wpauto p’ from adding paragraphs.
Sites using css frameworks such as bootstrap can then use standard bootstrap form classes: e.g. .form-group.mb-4 > .form-control
add_filter('wpcf7_autop_or_not', '__return_false');