<?php
if (!defined('ABSPATH')) exit;
return [
    'complaint_form' => ['title' => 'Citizen Complaint', 'description' => 'Submit a public complaint', 'icon' => 'megaphone', 'category' => 'government', 'fields' => [
        ['id' => 'name', 'type' => 'name', 'label' => 'Full Name', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email', 'required' => true], ['id' => 'phone', 'type' => 'phone', 'label' => 'Phone'],
        ['id' => 'address', 'type' => 'address', 'label' => 'Address', 'required' => true],
        ['id' => 'category', 'type' => 'select', 'label' => 'Category', 'required' => true, 'options' => [['value' => 'infrastructure', 'label' => 'Infrastructure'], ['value' => 'noise', 'label' => 'Noise'], ['value' => 'sanitation', 'label' => 'Sanitation'], ['value' => 'safety', 'label' => 'Public Safety'], ['value' => 'other', 'label' => 'Other']]],
        ['id' => 'description', 'type' => 'textarea', 'label' => 'Complaint Description', 'required' => true, 'rows' => 5],
        ['id' => 'photo', 'type' => 'file_upload', 'label' => 'Photo Evidence', 'accept' => '.jpg,.png'],
    ]],
    'public_records' => ['title' => 'Public Records Request', 'description' => 'Request government records', 'icon' => 'media-document', 'category' => 'government', 'fields' => [
        ['id' => 'name', 'type' => 'name', 'label' => 'Requester Name', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email', 'required' => true], ['id' => 'phone', 'type' => 'phone', 'label' => 'Phone'],
        ['id' => 'records', 'type' => 'textarea', 'label' => 'Records Requested', 'required' => true, 'rows' => 4],
        ['id' => 'date_range', 'type' => 'text', 'label' => 'Date Range (if applicable)'],
        ['id' => 'format', 'type' => 'radio', 'label' => 'Preferred Format', 'options' => [['value' => 'electronic', 'label' => 'Electronic'], ['value' => 'paper', 'label' => 'Paper Copies']]],
    ]],
    'permit_application' => ['title' => 'Permit Application', 'description' => 'Apply for a government permit', 'icon' => 'id-alt', 'category' => 'government', 'fields' => [
        ['id' => 'name', 'type' => 'name', 'label' => 'Applicant Name', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email', 'required' => true], ['id' => 'phone', 'type' => 'phone', 'label' => 'Phone', 'required' => true],
        ['id' => 'address', 'type' => 'address', 'label' => 'Property Address', 'required' => true],
        ['id' => 'type', 'type' => 'select', 'label' => 'Permit Type', 'required' => true, 'options' => [['value' => 'building', 'label' => 'Building'], ['value' => 'electrical', 'label' => 'Electrical'], ['value' => 'plumbing', 'label' => 'Plumbing'], ['value' => 'event', 'label' => 'Event'], ['value' => 'business', 'label' => 'Business']]],
        ['id' => 'description', 'type' => 'textarea', 'label' => 'Project Description', 'required' => true, 'rows' => 4],
        ['id' => 'plans', 'type' => 'file_upload', 'label' => 'Plans/Documents', 'accept' => '.pdf,.jpg,.png'],
    ]],
    'pothole_report' => ['title' => 'Pothole / Road Report', 'description' => 'Report road damage', 'icon' => 'location-alt', 'category' => 'government', 'fields' => [
        ['id' => 'location', 'type' => 'text', 'label' => 'Location (street/intersection)', 'required' => true],
        ['id' => 'severity', 'type' => 'radio', 'label' => 'Severity', 'required' => true, 'options' => [['value' => 'minor', 'label' => 'Minor'], ['value' => 'moderate', 'label' => 'Moderate'], ['value' => 'severe', 'label' => 'Severe/Dangerous']]],
        ['id' => 'description', 'type' => 'textarea', 'label' => 'Description', 'rows' => 3],
        ['id' => 'photo', 'type' => 'file_upload', 'label' => 'Photo', 'accept' => '.jpg,.png'],
        ['id' => 'name', 'type' => 'text', 'label' => 'Your Name'], ['id' => 'phone', 'type' => 'phone', 'label' => 'Phone'],
    ]],
    'public_comment' => ['title' => 'Public Comment', 'description' => 'Submit a public comment on proposals', 'icon' => 'format-chat', 'category' => 'government', 'fields' => [
        ['id' => 'name', 'type' => 'name', 'label' => 'Name', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email', 'required' => true],
        ['id' => 'topic', 'type' => 'text', 'label' => 'Proposal/Topic', 'required' => true],
        ['id' => 'position', 'type' => 'radio', 'label' => 'Position', 'options' => [['value' => 'support', 'label' => 'Support'], ['value' => 'oppose', 'label' => 'Oppose'], ['value' => 'neutral', 'label' => 'Neutral']]],
        ['id' => 'comment', 'type' => 'textarea', 'label' => 'Your Comment', 'required' => true, 'rows' => 5],
    ]],
];
