=== PhoenixForge Forms ===
Contributors: ryanpurvisphoenixforge
Tags: forms, contact form, waitlist, support ticket, lead sync
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 8.1
Stable tag: 2.2.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Configurable form engine with JSON-driven workflows. Contact forms, waitlists, support tickets with notifications, PhoenixOS sync, and admin management.

== Description ==

PhoenixForge Forms is a lightweight, configurable form engine for WordPress. Each form is defined as a JSON configuration — no page builder or drag-and-drop required.

**Pre-built Forms:**

* **Contact Form** — Name, email, phone, company, enquiry type, message
* **Waitlist Form** — Name, email, referral source, position tracking
* **Support Ticket** — Name, email, priority, category, subject, description

**Features:**

* JSON-driven form configuration (fields, notifications, sync, appearance)
* 10 field types: text, email, textarea, select, number, phone, url, checkbox, consent, hidden
* Dark and light themes with self-contained inline CSS
* Admin and user email notifications with merge tag support
* PhoenixOS lead sync integration
* Submission management with search, filter, status tracking
* CSV export
* Rate limiting per IP
* Honeypot anti-spam
* GDPR consent tracking
* Shortcode rendering: [pf_form id="contact"]

== Installation ==

1. Upload the `phoenixforge-forms` folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins menu
3. Three default forms (Contact, Waitlist, Support) are created automatically
4. Add `[pf_form id="contact"]` to any page or post

== Screenshots ==

1. Frontend contact form rendered with dark theme styling via shortcode
2. Admin submission management list with search, filter, and status tracking
3. JSON-driven form configuration editor with field types and notification settings
4. Email notification template with merge tag support for admin and user emails
5. CSV export of form submissions with all captured field data

== Third-Party Services ==

This plugin connects to external services under certain conditions:

= PhoenixForge License Server =
When you activate a Pro license key, the plugin validates it with the PhoenixForge license server.
* Service URL: https://phoenixforge-licenses.phoenixforge.workers.dev
* Privacy Policy: https://phoenixforge.io/privacy
* Terms of Service: https://phoenixforge.io/terms
* Data sent: License key, site URL
* When: On license activation, deactivation, and daily revalidation

= PhoenixForge Update Server =
The plugin checks for new versions from the PhoenixForge update server. This is disabled in WordPress.org distributed builds.
* Service URL: https://phoenixforge-updates.phoenixforge.workers.dev
* Privacy Policy: https://phoenixforge.io/privacy
* Terms of Service: https://phoenixforge.io/terms
* Data sent: Plugin slug and current version
* When: During WordPress update checks (approximately every 12 hours)

= Outbound Webhooks (Pro Feature) =
Pro users can optionally configure webhook URLs to send event data to services like Zapier, Make, or n8n.
* Only active when explicitly configured by the site administrator
* Data sent: Event type, site URL, and event-specific data
* Destination URL is entirely user-controlled

== Changelog ==

= 2.1.0 =
* WordPress.org compliance: prefix updated from pff (3 chars) to pffrm (5 chars)
* Removed load_plugin_textdomain call from main plugin file
* Fixed text domains in shared library files

= 1.0.0 =
* Initial release
* JSON-driven configurable form engine
* 3 pre-built form templates (Contact, Waitlist, Support Ticket)
* 10 field types with validation
* Admin and user email notifications with merge tags
* PhoenixOS lead sync integration
* Submission management with search, filter, bulk actions
* CSV export
* Dark and light themes
* Rate limiting, honeypot anti-spam, GDPR consent
* Demo data support
