<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class LeadCaptureRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'email', 'max:255'],
            'phone' => ['nullable', 'string', 'max:255'],
            'company' => ['nullable', 'string', 'max:255'],
            'website' => ['nullable', 'string', 'max:255'],
            'industry' => ['nullable', 'string', 'max:255'],
            'pain_point' => ['nullable', 'string'],
            'budget_range' => ['nullable', 'string', 'max:255'],
            'urgency' => ['nullable', 'string', 'max:255'],
            'preferred_meeting_time' => ['nullable', 'date'],
            'source' => ['nullable', 'string', 'max:255'],
            'consultant_slug' => ['nullable', 'string', 'max:255'],
        ];
    }
}
