=== ROI Estimator (LED retrofit demo) ===
Tags: calculator, roi, savings, lead form, shortcode
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Savings and payback calculator for an LED lighting retrofit, with a 5-year chart and an optional "email me this estimate" lead form.

== Description ==

Add the shortcode `[roi_estimator]` to any page (block theme, classic theme or an Elementor Shortcode widget).

* Live results while typing: saving per year, payback, net after 5 years, 5-year return, kWh and CO2 saved.
* SVG chart of the running total for years 0 to 5.
* "Email me this estimate": the visitor gets the estimate by email and the site owner gets the lead. Leads are stored as a private post type with the estimate recalculated on the server.
* Spam protection: REST nonce, honeypot, consent tick box and a limit of 5 requests per hour per IP address.
* Settings > ROI Estimator: default values, currency and the email address for new leads.

This is a portfolio demo plugin.

== Installation ==

1. Copy the `roi-estimator` folder to `wp-content/plugins/`.
2. Activate the plugin in Plugins.
3. Add `[roi_estimator]` to a page and set the defaults under Settings > ROI Estimator.

== Changelog ==

= 1.1.2 =
* Theme colours: the --roi-* variable defaults now have zero specificity, so a theme rule such as `.roi-est { --roi-accent: ... }` wins on classic and block themes.
* One visible error message per field (the second copy under the form is gone); the error is marked and announced when the visitor leaves the field or sends the form, not while typing; no role="alert" element.
* The chart label is set once (duplicate line removed from roi.js).
* Added the full GPL version 2 text (LICENSE), a copyright and licence notice, the License URI and `Update URI: false` headers.

= 1.1.1 =
* Accessibility: the chart name lists all six yearly values; the dimmed results state keeps the "Results paused" line at full contrast.
* Requires at least is now 6.4, the lowest WordPress version the plugin was tested on.
* The release zip no longer contains the tests folder.

= 1.1.0 =
* Input validation: min/max/step on every number field, errors tied to their field, identical rules in the browser and on the server, REST argument schema, settings refuse out-of-range values.

= 1.0.0 =
* First release.
