wordpress.com – Woocommerce redirect button "add to cart" to a contact form with product information for a query

I'm trying to replace the "add to cart" button in WordPress with "Send query", which sends a query about the product,
Skip the cart option and use it in a contact form,

A simple CSS was used to deactivate the add button to the cart.

I tried adding the "contact form 7" form on each product, but that was not resolved,

I have run out of ideas. Can someone guide me on a path that could work?