import { useState } from 'react'; import { Button } from '../ui/button'; import { Input } from '../ui/input'; import { Label } from '../ui/label'; import { Textarea } from '../ui/textarea'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../ui/select'; import { RadioGroup, RadioGroupItem } from '../ui/radio-group'; import { Checkbox } from '../ui/checkbox'; import { CheckCircle, Users, Star, Shield, LogIn, Award, TrendingUp, Handshake } from 'lucide-react'; import { toast } from 'sonner'; // import backgroundImage from 'figma:asset/ee01d864b6e23a8197b42f3168c98eedec9d2440.png'; interface ApplicationFormPageProps { onAdminLogin: () => void; } export function ApplicationFormPage({ onAdminLogin }: ApplicationFormPageProps) { const [formData, setFormData] = useState({ country: '', state: '', district: '', name: '', interestedCity: '', email: '', pincode: '', mobile: '', ownRoyalEnfield: '', royalEnfieldModel: '', age: '', education: '', companyName: '', source: '', existingDealer: '', description: '', address: '', acceptTerms: false }); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); // Validate required fields if (!formData.country || !formData.state || !formData.district || !formData.name || !formData.interestedCity || !formData.email || !formData.pincode || !formData.mobile || !formData.ownRoyalEnfield || !formData.age || !formData.education || !formData.companyName || !formData.source || !formData.existingDealer || !formData.description || !formData.address) { toast.error('Please fill in all required fields'); return; } // Validate Royal Enfield model if they own one if (formData.ownRoyalEnfield === 'yes' && !formData.royalEnfieldModel) { toast.error('Please select your Royal Enfield model'); return; } // Validate terms acceptance if (!formData.acceptTerms) { toast.error('Please accept the terms and conditions to continue'); return; } // Success message toast.success('Application submitted successfully! We will contact you soon.'); // Reset form setFormData({ country: '', state: '', district: '', name: '', interestedCity: '', email: '', pincode: '', mobile: '', ownRoyalEnfield: '', royalEnfieldModel: '', age: '', education: '', companyName: '', source: '', existingDealer: '', description: '', address: '', acceptTerms: false }); }; return (
{/* Header */}
RE

Royal Enfield

Dealer Partnership Portal

{/* Hero Section */}

Since 1901 • Legacy of Excellence

Join the Royal Enfield Partnership Network

Become part of our legendary heritage and bring the spirit of Pure Motorcycling to riders in your community

120+ Year Heritage
Global Recognition
Premium Support
{/* Why Partner Section */}

Why Partner With Royal Enfield?

Unmatched benefits for ambitious entrepreneurs

{/* Premium Brand */}

Premium Brand

Represent a legendary brand trusted by millions worldwide since 1901

{/* Strong Support */}

Complete Support

Comprehensive training, marketing, and ongoing operational support

{/* Growth Opportunity */}

Growth Potential

Tap into expanding markets with increasing customer demand

{/* Proven Success */}

Proven Model

Join thousands of successful dealers in our global network

{/* Application Form Section */}
{/* Background Image with Overlay */}
{/* Royal Enfield Showroom */}

Start Your Journey

Dealership Application

Complete the form below to begin your partnership with Royal Enfield

{/* Name & Email */}
setFormData({ ...formData, name: e.target.value })} className="bg-slate-800/50 border-slate-600/50 text-white placeholder:text-slate-500 focus:border-amber-500/50 focus:ring-amber-500/20" required />
setFormData({ ...formData, email: e.target.value })} className="bg-slate-800/50 border-slate-600/50 text-white placeholder:text-slate-500 focus:border-amber-500/50 focus:ring-amber-500/20" required />
{/* Mobile & Age */}
setFormData({ ...formData, mobile: e.target.value })} className="bg-slate-800/50 border-slate-600/50 text-white placeholder:text-slate-500 focus:border-amber-500/50 focus:ring-amber-500/20" required />
setFormData({ ...formData, age: e.target.value })} className="bg-slate-800/50 border-slate-600/50 text-white placeholder:text-slate-500 focus:border-amber-500/50 focus:ring-amber-500/20" required />
{/* Country, State, District */}
setFormData({ ...formData, district: e.target.value })} className="bg-slate-800/50 border-slate-600/50 text-white placeholder:text-slate-500 focus:border-amber-500/50 focus:ring-amber-500/20" required />
{/* Interested City & Pincode */}
setFormData({ ...formData, interestedCity: e.target.value })} className="bg-slate-800/50 border-slate-600/50 text-white placeholder:text-slate-500 focus:border-amber-500/50 focus:ring-amber-500/20" required />
setFormData({ ...formData, pincode: e.target.value })} className="bg-slate-800/50 border-slate-600/50 text-white placeholder:text-slate-500 focus:border-amber-500/50 focus:ring-amber-500/20" required />
{/* Education & Company Name */}
setFormData({ ...formData, companyName: e.target.value })} className="bg-slate-800/50 border-slate-600/50 text-white placeholder:text-slate-500 focus:border-amber-500/50 focus:ring-amber-500/20" required />
{/* Source */}
{/* Do you own a Royal Enfield? */}
setFormData({ ...formData, ownRoyalEnfield: value, royalEnfieldModel: value === 'no' ? '' : formData.royalEnfieldModel })}>
{/* Royal Enfield Model - Conditional */} {formData.ownRoyalEnfield === 'yes' && (
)} {/* Existing Dealer/Vendor */}
setFormData({ ...formData, existingDealer: value })}>
{/* Address */}