=== ContactUsIQ ===
Contributors: contactusiq
Tags: contact form, spam protection, turnstile, feedback, contact form 7
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Hosted contact forms with domain verification, Cloudflare Turnstile, spam screening and an intelligent inbox. Block, shortcode, feedback widget and Contact Form 7 adapter.

== Description ==

ContactUsIQ is a hosted contact-form backend. Your form posts straight from the visitor's browser to ContactUsIQ, which records the enquiry with the sender's IP and page, screens it with Cloudflare Turnstile and spam checks, and shows it in your inbox. Nothing posts to WordPress on submit, so page caching, security plugins and admin-ajax never break your form.

What the plugin adds:

* **Connect** in one click: sign in to ContactUsIQ in a popup, approve the site, and the API key is stored for you.
* **Domain verification** without DNS changes: the plugin prints the verification meta tag and can trigger a check from the settings page.
* **Block**: "ContactUsIQ Form" with a form id and a mode toggle (plain HTML form or hosted embed).
* **Shortcode**: `[contactusiq form="au_xxxxxxx" mode="html"]` for the classic editor, page builders and widget areas.
* **Feedback widget**: one switch puts the floating feedback icon on every page or on selected post types, optionally pre-filled with the logged-in user's name and email.
* **Contact Form 7 adapter**: keep your existing forms and route their submissions through ContactUsIQ instead of WordPress mail.
* **Site Health**: verification status and last delivery.

The plugin sends nothing to ContactUsIQ except form submissions, the Connect handshake and the verification request.

== Installation ==

1. Upload the `contactusiq` folder to `wp-content/plugins/`, or install from the plugin directory.
2. Activate the plugin.
3. Go to Settings > ContactUsIQ and click Connect. Sign in or sign up, approve the site.
4. Click Verify now. The domain shows as verified within seconds.
5. Add the "ContactUsIQ Form" block to a page, or use `[contactusiq]`.

== Frequently Asked Questions ==

= Does the form work with caching plugins? =

Yes. The form posts directly to api.contactusiq.com, so there is no nonce to expire and nothing server-side on submit.

= Do I need Cloudflare Turnstile? =

No, but it is recommended. Paste the Turnstile site key from the form's snippet screen in the settings and the plugin adds the widget to its own forms only.

= Can I use my existing Contact Form 7 forms? =

Yes. Tick the forms to route under Settings > ContactUsIQ > Contact Form 7. Fields `your-name`, `your-email`, `your-message` and `your-subject` are mapped; other fields pass through unchanged.

= What data is sent to ContactUsIQ? =

Form submissions (with the visitor's IP and the page URL), the Connect handshake, and the domain verification request. The logged-in user's name and email are sent to the feedback widget only when you enable that option.

== Changelog ==

= 0.1.0 =
* Initial release: settings and Connect, verification meta tag and check, block, shortcode, feedback widget, Contact Form 7 adapter, Site Health test.
