import React, { useState } from 'react'; import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card'; import { Alert, AlertTitle, AlertDescription } from '@/components/ui/alert'; import { Camera } from 'lucide-react'; const RegistrationForm = () => { const [currentStep, setCurrentStep] = useState(1); const [formData, setFormData] = useState({}); const [recommendations, setRecommendations] = useState(null); const handleInputChange = (field, value) => { setFormData(prev => ({...prev, [field]: value})); }; const sections = { 1: { title: "פרטים אישיים", fields: [ { id: "fullName", label: "שם מלא", type: "text", required: true }, { id: "email", label: "דואר אלקטרוני", type: "email", required: true }, { id: "phone", label: "טלפון", type: "tel", required: true }, { id: "age", label: "גיל", type: "number", required: false } ] }, 2: { title: "רקע אקדמי", fields: [ { id: "mastersField", label: "תחום התואר השני", type: "text", required: true }, { id: "mastersInstitution", label: "מוסד לימודים", type: "text", required: true }, { id: "mastersGrade", label: "ממוצע ציונים", type: "number", required: true }, { id: "thesis", label: "האם כתבת תזה?", type: "select", options: ["כן", "לא", "בתהליך", "פרויקט גמר"], required: true } ] }, 3: { title: "העדפות ואילוצים", fields: [ { id: "preferredCountries", label: "מדינות מועדפות", type: "multiselect", options: ["אנגליה", "ספרד", "פולין", "בולגריה", "סלובניה"], required: true }, { id: "budget", label: "תקציב משוער", type: "select", options: ["עד 30,000 ₪", "30,000-60,000 ₪", "מעל 60,000 ₪"], required: true }, { id: "timeframe", label: "מסגרת זמן רצויה", type: "select", options: ["שנה-שנתיים", "2-3 שנים", "3-4 שנים", "גמיש"], required: true }, { id: "languagePreference", label: "שפת הנחיה מועדפת", type: "select", options: ["עברית", "אנגלית", "שתיהן"], required: true } ] }, 4: { title: "תחום מחקר", fields: [ { id: "researchField", label: "תחום מחקר מועדף", type: "text", required: true }, { id: "researchTopic", label: "נושא מחקר מתוכנן (אם יש)", type: "textarea", required: false }, { id: "researchGoals", label: "מטרות המחקר", type: "textarea", required: false } ] }, 5: { title: "מוטיבציה ומטרות", fields: [ { id: "motivation", label: "מדוע את/ה מעוניין/ת בדוקטורט?", type: "textarea", required: true }, { id: "careerGoals", label: "מטרות קריירה לאחר הדוקטורט", type: "textarea", required: false }, { id: "additionalInfo", label: "מידע נוסף שחשוב לך לשתף", type: "textarea", required: false } ] } }; const renderField = (field) => { switch (field.type) { case 'select': return ( ); case 'multiselect': return (
{field.options.map(opt => ( ))}
); case 'textarea': return (