SETUP
1. Create a web root and place all project files inside it.
2. Update DB settings in config/config.php, or provide DB_HOST / DB_PORT / DB_NAME / DB_USER / DB_PASS as environment variables.
3. Import database/schema.sql into MySQL / MariaDB.
4. Import database/demo_data.sql if you want ready-to-test demo agents and reports for the RSM login.
5. Make sure uploads/ is writable by PHP.
6. Open index.php and login using:
   admin / Admin@123
   rsm1 / Rsm@123

NOTES
- Save Form 01 first. It creates the master visit_reports row.
- Local draft data created before Form 01 is now migrated to the new report ID after the first save, preventing cross-form data loss.
- Form 02 can auto-fill contact / coverage hints based on the DB selected in Form 01.
- If Route Map is changed to No, the old route-map image is cleared so final data does not conflict.
- Form 08 now requires Forms 01-07 to be saved before final submission.
- Re-saving Form 08 keeps the original completion timestamp instead of overwriting it.
- Mobile camera works through file input capture.
- Laptop camera works through getUserMedia webcam capture in Form 02.
- Signatures use HTML5 canvas and can now be cleared properly.
