import { CATERING_GUEST_MAX, CATERING_GUEST_MIN } from '@/lib/catering/pricing';

export const FIELD_LIMITS = {
  name: 100,
  phone: 30,
  email: 254,
  message: 5000,
  subject: 40,
  pickupTime: 20,
  eventType: 100,
  reviewQuote: 2000,
  reviewEvent: 120,
  quantityMax: 20,
  quantityMin: 1,
  guestCountMax: 50,
  guestCountMin: 1,
  cateringGuestMin: CATERING_GUEST_MIN,
  cateringGuestMax: CATERING_GUEST_MAX,
  cateringSelectionMax: 100,
  cartItemsMax: 50,
  header: 200,
} as const;

export const CONTACT_SUBJECTS = [
  'reservierung',
  'catering',
  'event',
  'feedback',
  'sonstiges',
] as const;

export type ContactSubjectValue = (typeof CONTACT_SUBJECTS)[number];

export const CATERING_PACKAGES = [
  'fingerfood_apero',
  'mezze_vegetarisch',
  'mezze_spezial',
  'mezze_royal',
  'mezze_seafood',
] as const;

export type CateringPackageValue = (typeof CATERING_PACKAGES)[number];

export const HONEYPOT_KEYS = ['website', 'hp_field', 'form_started_at'] as const;

/** Instant scripted POSTs only. 2s was blocking real autofill/fast submits. */
export const MIN_FORM_DURATION_MS = 400;
