import { z } from 'zod' export const step1Schema = z.object({ name: z.string().min(1, 'Naam is verplicht').max(255), email: z.string().min(1, 'E-mailadres is verplicht').email('Ongeldig e-mailadres').max(255), phone: z.string().max(50).optional().or(z.literal('')), }) export const step2Schema = z.object({ tshirt_size: z.enum(['XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL']).optional().or(z.literal('')), first_aid: z.boolean().default(false), allergies: z.string().max(500).optional().or(z.literal('')), access_requirements: z.string().max(500).optional().or(z.literal('')), driving_licence: z.boolean().default(false), }) export const step3Schema = z.object({ motivation: z.string().max(1000).optional().or(z.literal('')), motivation_other: z.string().max(500).optional().or(z.literal('')), }) export const fullRegistrationSchema = step1Schema .merge(step2Schema) .merge(step3Schema)