<?php
if (!defined('ABSPATH')) exit;
return [
    'insurance_quote' => ['title' => 'Insurance Quote', 'description' => 'Get an insurance quote', 'icon' => 'shield', 'category' => 'insurance', 'fields' => [
        ['id' => 'name', 'type' => 'name', 'label' => 'Full Name', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email', 'required' => true], ['id' => 'phone', 'type' => 'phone', 'label' => 'Phone', 'required' => true],
        ['id' => 'type', 'type' => 'select', 'label' => 'Insurance Type', 'required' => true, 'options' => [['value' => 'auto', 'label' => 'Auto'], ['value' => 'home', 'label' => 'Home'], ['value' => 'life', 'label' => 'Life'], ['value' => 'health', 'label' => 'Health'], ['value' => 'business', 'label' => 'Business']]],
        ['id' => 'dob', 'type' => 'date', 'label' => 'Date of Birth'], ['id' => 'coverage', 'type' => 'textarea', 'label' => 'Coverage Needs', 'rows' => 3],
    ]],
    'claim_submission' => ['title' => 'Insurance Claim', 'description' => 'File an insurance claim', 'icon' => 'media-text', 'category' => 'insurance', 'fields' => [
        ['id' => 'name', 'type' => 'name', 'label' => 'Policyholder', 'required' => true], ['id' => 'policy', 'type' => 'text', 'label' => 'Policy Number', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email', 'required' => true],
        ['id' => 'date', 'type' => 'date', 'label' => 'Date of Incident', 'required' => true], ['id' => 'type', 'type' => 'select', 'label' => 'Claim Type', 'options' => [['value' => 'property', 'label' => 'Property Damage'], ['value' => 'theft', 'label' => 'Theft'], ['value' => 'accident', 'label' => 'Accident'], ['value' => 'medical', 'label' => 'Medical'], ['value' => 'liability', 'label' => 'Liability']]],
        ['id' => 'description', 'type' => 'textarea', 'label' => 'Description', 'required' => true, 'rows' => 5],
        ['id' => 'amount', 'type' => 'number', 'label' => 'Estimated Amount ($)'], ['id' => 'docs', 'type' => 'file_upload', 'label' => 'Supporting Documents', 'accept' => '.pdf,.jpg,.png'],
    ]],
    'policy_change' => ['title' => 'Policy Change Request', 'description' => 'Request changes to your policy', 'icon' => 'edit', 'category' => 'insurance', 'fields' => [
        ['id' => 'name', 'type' => 'text', 'label' => 'Policyholder Name', 'required' => true], ['id' => 'policy', 'type' => 'text', 'label' => 'Policy Number', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email', 'required' => true],
        ['id' => 'change_type', 'type' => 'checkbox', 'label' => 'Change Type', 'options' => [['value' => 'address', 'label' => 'Address'], ['value' => 'coverage', 'label' => 'Coverage'], ['value' => 'beneficiary', 'label' => 'Beneficiary'], ['value' => 'vehicle', 'label' => 'Vehicle'], ['value' => 'payment', 'label' => 'Payment Method']]],
        ['id' => 'details', 'type' => 'textarea', 'label' => 'Change Details', 'required' => true, 'rows' => 4],
    ]],
    'certificate_request' => ['title' => 'Certificate of Insurance', 'description' => 'Request a COI', 'icon' => 'id-alt', 'category' => 'insurance', 'fields' => [
        ['id' => 'name', 'type' => 'text', 'label' => 'Insured Name', 'required' => true], ['id' => 'policy', 'type' => 'text', 'label' => 'Policy Number', 'required' => true],
        ['id' => 'holder', 'type' => 'text', 'label' => 'Certificate Holder', 'required' => true], ['id' => 'holder_address', 'type' => 'address', 'label' => 'Holder Address', 'required' => true],
        ['id' => 'email', 'type' => 'email', 'label' => 'Send To Email', 'required' => true], ['id' => 'needed_by', 'type' => 'date', 'label' => 'Needed By'],
    ]],
    'renewal_request' => ['title' => 'Policy Renewal', 'description' => 'Request policy renewal', 'icon' => 'update', 'category' => 'insurance', 'fields' => [
        ['id' => 'name', 'type' => 'text', 'label' => 'Policyholder', 'required' => true], ['id' => 'policy', 'type' => 'text', 'label' => 'Policy Number', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email', 'required' => true],
        ['id' => 'changes', 'type' => 'radio', 'label' => 'Any changes needed?', 'options' => [['value' => 'no', 'label' => 'No changes'], ['value' => 'yes', 'label' => 'Yes, see below']]],
        ['id' => 'details', 'type' => 'textarea', 'label' => 'Change Details', 'rows' => 3],
    ]],
];
