<?php
if (!defined('ABSPATH')) exit;
return [
    'test_drive' => ['title' => 'Test Drive Request', 'description' => 'Schedule a test drive', 'icon' => 'car', 'category' => 'automotive', 'fields' => [
        ['id' => 'name', 'type' => 'name', 'label' => 'Name', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email', 'required' => true], ['id' => 'phone', 'type' => 'phone', 'label' => 'Phone', 'required' => true],
        ['id' => 'vehicle', 'type' => 'text', 'label' => 'Vehicle of Interest', 'required' => true], ['id' => 'date', 'type' => 'date', 'label' => 'Preferred Date', 'required' => true],
        ['id' => 'time', 'type' => 'select', 'label' => 'Preferred Time', 'options' => [['value' => 'morning', 'label' => 'Morning'], ['value' => 'afternoon', 'label' => 'Afternoon'], ['value' => 'evening', 'label' => 'Evening']]],
        ['id' => 'license', 'type' => 'radio', 'label' => 'Valid Driver License?', 'required' => true, 'options' => [['value' => 'yes', 'label' => 'Yes'], ['value' => 'no', 'label' => 'No']]],
    ]],
    'service_appointment' => ['title' => 'Service Appointment', 'description' => 'Schedule car service/maintenance', 'icon' => 'admin-tools', 'category' => 'automotive', 'fields' => [
        ['id' => 'name', 'type' => 'text', 'label' => 'Owner Name', 'required' => true], ['id' => 'phone', 'type' => 'phone', 'label' => 'Phone', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email'],
        ['id' => 'make_model', 'type' => 'text', 'label' => 'Vehicle Make & Model', 'required' => true], ['id' => 'year', 'type' => 'number', 'label' => 'Year', 'min' => 1990, 'max' => 2027],
        ['id' => 'service', 'type' => 'checkbox', 'label' => 'Service Needed', 'options' => [['value' => 'oil', 'label' => 'Oil Change'], ['value' => 'brakes', 'label' => 'Brakes'], ['value' => 'tires', 'label' => 'Tires'], ['value' => 'inspection', 'label' => 'Inspection'], ['value' => 'other', 'label' => 'Other']]],
        ['id' => 'date', 'type' => 'date', 'label' => 'Preferred Date', 'required' => true],
        ['id' => 'description', 'type' => 'textarea', 'label' => 'Describe the Issue', 'rows' => 3],
    ]],
    'trade_in' => ['title' => 'Trade-In Valuation', 'description' => 'Get a trade-in quote for your car', 'icon' => 'money-alt', 'category' => 'automotive', 'fields' => [
        ['id' => 'name', 'type' => 'name', 'label' => 'Name', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email', 'required' => true], ['id' => 'phone', 'type' => 'phone', 'label' => 'Phone'],
        ['id' => 'make', 'type' => 'text', 'label' => 'Make', 'required' => true], ['id' => 'model', 'type' => 'text', 'label' => 'Model', 'required' => true], ['id' => 'year', 'type' => 'number', 'label' => 'Year', 'required' => true],
        ['id' => 'mileage', 'type' => 'number', 'label' => 'Mileage'], ['id' => 'condition', 'type' => 'select', 'label' => 'Condition', 'options' => [['value' => 'excellent', 'label' => 'Excellent'], ['value' => 'good', 'label' => 'Good'], ['value' => 'fair', 'label' => 'Fair'], ['value' => 'poor', 'label' => 'Poor']]],
        ['id' => 'photos', 'type' => 'file_upload', 'label' => 'Vehicle Photos', 'accept' => '.jpg,.png,.webp'],
    ]],
    'vehicle_inquiry' => ['title' => 'Vehicle Inquiry', 'description' => 'Ask about a specific vehicle', 'icon' => 'editor-help', 'category' => 'automotive', 'fields' => [
        ['id' => 'name', 'type' => 'text', 'label' => 'Name', 'required' => true], ['id' => 'email', 'type' => 'email', 'label' => 'Email', 'required' => true], ['id' => 'phone', 'type' => 'phone', 'label' => 'Phone'],
        ['id' => 'stock', 'type' => 'text', 'label' => 'Stock # or Vehicle Name'], ['id' => 'questions', 'type' => 'textarea', 'label' => 'Your Questions', 'required' => true, 'rows' => 4],
    ]],
    'insurance_claim_auto' => ['title' => 'Auto Insurance Claim', 'description' => 'File an auto insurance claim', 'icon' => 'shield', 'category' => 'automotive', 'fields' => [
        ['id' => 'name', 'type' => 'name', 'label' => 'Policyholder Name', 'required' => true], ['id' => 'policy', 'type' => 'text', 'label' => 'Policy Number', 'required' => true],
        ['id' => 'date', 'type' => 'date', 'label' => 'Date of Incident', 'required' => true], ['id' => 'location', 'type' => 'text', 'label' => 'Location', 'required' => true],
        ['id' => 'description', 'type' => 'textarea', 'label' => 'Description of Incident', 'required' => true, 'rows' => 5],
        ['id' => 'photos', 'type' => 'file_upload', 'label' => 'Photos of Damage', 'accept' => '.jpg,.png'], ['id' => 'police_report', 'type' => 'file_upload', 'label' => 'Police Report', 'accept' => '.pdf'],
    ]],
];
