=== Insurance Quotes for MediaAlpha by Kuda ===
Contributors: kudazafevere
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 8.3
Stable tag: 1.3.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds an insurance quote form with MediaAlpha integration.

== Description ==

This plugin provides shortcode-driven insurance quote flows with MediaAlpha integration.

== Shortcodes ==

= [insurance_quote_form] =
Default quote form that submits to /get-quotes/.

Supported attributes:
* default_type: auto, life, health, motorcycle, home, medicare, commercial, renters, or numeric 1-8.

= [insurance_quote_form_v3] =
Loads the V3 quote template and submits to /get-quotes/ with form_source=v3.

Supported attributes:
* track: tracking parameter passed through to /get-quotes/.
* click_id: click ID override.
* default_type: same values as insurance_quote_form.

= [insurance_quote_form_v4] =
Loads the V4 multi-step quote template and submits to /get-quotes/ with form_source=v4.

Supported attributes:
* track: tracking parameter passed through to /get-quotes/.
* click_id: click ID override.
* default_type: same values as insurance_quote_form.

== Get Quotes Pages ==

On plugin activation, the plugin auto-creates:
* Get Quotes page at /get-quotes/
* Get Quotes V2 page at /get-quotes-v2/

/get-quotes-v2 flow:
* Step 1: If zipcode is missing, the hero ZIP capture form is shown.
* Step 2: After zipcode is provided, the 28-step V2 form is shown.
* Step 3: On submit (with nonce validation), lead data is sanitized and sent to MediaAlpha placement GnT8OTJsKJ15A3DIaklYibD9NEMwLA.
* Tracking passthrough: track, click_id, leadid_id, and trusted_form_certificate_id are preserved when present.

== Compatibility ==

* Tested up to WordPress 7.0.
* Works on PHP 8.3 in production.
* Codebase is prepared for PHP 8.4 upgrades.
* Fully compatible with WordPress 7.0 - all core functions tested and verified.

== Changelog ==

== 1.3.1 =
* Reduced top spacing for insurance quotes
* Updated the CTA buttons to "Compare My Rates"
* Updated v4 progress to start at 0 %

= 1.3.0 =
* WordPress 7.0 compatibility verified and tested.
* Updated plugin metadata to reflect WordPress 7.0 support.
* Improved exit-intent pop-under detection across all form templates.
* Fixed automatic lead submission issue - now only submits when track parameter is present.
* Enhanced pop-under functionality with better mouse exit tracking and user interaction detection.

= 1.2.9 =
* Add plugin update icons for the WordPress admin update UI.
* Expose icon metadata through the GitHub updater so branding shows in update flows.

= 1.2.8 =
* Fix insurance click_id not passing to MediaAlpha sub_1.
