(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,916545,e=>{"use strict";var a=e.i(843476),t=e.i(271645),l=e.i(522016),i=e.i(657688),r=e.i(286536),s=e.i(77705),n=e.i(271974);let o=[{label:"Semester I — January / February",value:"jan-feb"},{label:"Semester II — May / June",value:"may-jun"},{label:"Semester III — August / September",value:"aug-sep"}],d=[{label:"2026",value:"2026"},{label:"2027",value:"2027"},{label:"2028",value:"2028"}],c=[{label:"Mr",value:"mr"},{label:"Mrs",value:"mrs"},{label:"Ms",value:"ms"},{label:"Dr",value:"dr"},{label:"Prof",value:"prof"},{label:"Rev",value:"rev"}],u=[{label:"Male",value:"male"},{label:"Female",value:"female"},{label:"Prefer not to say",value:"unspecified"}],m=[{label:"Single",value:"single"},{label:"Married",value:"married"},{label:"Divorced",value:"divorced"},{label:"Widowed",value:"widowed"}],p=[{label:"Online (ODeL)",value:"online"},{label:"Blended (Online + Face-to-face)",value:"blended"},{label:"Weekend",value:"weekend"},{label:"Evening",value:"evening"}],h=[{label:"Self-Sponsored",value:"self"},{label:"Employer-Sponsored",value:"employer"},{label:"Government-Sponsored",value:"government"},{label:"Scholarship",value:"scholarship"},{label:"Parent / Guardian",value:"parent"}],x=[{label:"UCE — Uganda Certificate of Education (O-Level)",value:"uce"},{label:"UACE — Uganda Advanced Certificate of Education (A-Level)",value:"uace"},{label:"Certificate",value:"certificate"},{label:"Higher Education Certificate",value:"higher-cert"},{label:"Diploma",value:"diploma"},{label:"Postgraduate Diploma",value:"pgdiploma"},{label:"Bachelor's Degree",value:"bachelors"},{label:"Master's Degree",value:"masters"},{label:"Professional Qualification (ACCA, CPA, CIPS…)",value:"professional"},{label:"Other",value:"other"}],b=[{label:"First Class / Distinction",value:"first-class"},{label:"Second Class Upper (2:1)",value:"second-upper"},{label:"Second Class Lower (2:2)",value:"second-lower"},{label:"Third Class",value:"third-class"},{label:"Credit",value:"credit"},{label:"Pass",value:"pass"},{label:"Merit",value:"merit"},{label:"Not Applicable",value:"na"}],f=[{label:"Parent",value:"parent"},{label:"Spouse",value:"spouse"},{label:"Sibling",value:"sibling"},{label:"Child",value:"child"},{label:"Guardian",value:"guardian"},{label:"Other Relative",value:"relative"},{label:"Friend",value:"friend"},{label:"Employer",value:"employer"}],g=[{label:"DOIM Website",value:"website"},{label:"Facebook",value:"facebook"},{label:"YouTube",value:"youtube"},{label:"X (Twitter)",value:"twitter"},{label:"LinkedIn",value:"linkedin"},{label:"TikTok",value:"tiktok"},{label:"Instagram",value:"instagram"},{label:"Radio",value:"radio"},{label:"Television",value:"tv"},{label:"Newspaper",value:"newspaper"},{label:"Friend / Family",value:"referral"},{label:"Current Student or Alumnus",value:"alumni"},{label:"Employer",value:"employer"},{label:"Education Fair / Exhibition",value:"fair"},{label:"Other",value:"other"}],y=[["Uganda","UG","256"],["Kenya","KE","254"],["Tanzania","TZ","255"],["Rwanda","RW","250"],["Burundi","BI","257"],["South Sudan","SS","211"],["Somalia","SO","252"],["Democratic Republic of Congo","CD","243"],["Ethiopia","ET","251"],["Eritrea","ER","291"],["Djibouti","DJ","253"],["Sudan","SD","249"],["Nigeria","NG","234"],["Ghana","GH","233"],["Cameroon","CM","237"],["Zambia","ZM","260"],["Zimbabwe","ZW","263"],["Malawi","MW","265"],["Mozambique","MZ","258"],["Botswana","BW","267"],["Namibia","NA","264"],["South Africa","ZA","27"],["Lesotho","LS","266"],["Eswatini","SZ","268"],["Angola","AO","244"],["Egypt","EG","20"],["Morocco","MA","212"],["Algeria","DZ","213"],["Tunisia","TN","216"],["Libya","LY","218"],["Senegal","SN","221"],["Ivory Coast","CI","225"],["Mali","ML","223"],["Burkina Faso","BF","226"],["Niger","NE","227"],["Chad","TD","235"],["Central African Republic","CF","236"],["Gabon","GA","241"],["Republic of Congo","CG","242"],["Liberia","LR","231"],["Sierra Leone","SL","232"],["Guinea","GN","224"],["Gambia","GM","220"],["Togo","TG","228"],["Benin","BJ","229"],["Mauritius","MU","230"],["Seychelles","SC","248"],["Madagascar","MG","261"],["Comoros","KM","269"],["United Kingdom","GB","44"],["Ireland","IE","353"],["United States","US","1"],["Canada","CA","1"],["Australia","AU","61"],["New Zealand","NZ","64"],["India","IN","91"],["Pakistan","PK","92"],["Bangladesh","BD","880"],["China","CN","86"],["Japan","JP","81"],["South Korea","KR","82"],["Malaysia","MY","60"],["Singapore","SG","65"],["Philippines","PH","63"],["Indonesia","ID","62"],["United Arab Emirates","AE","971"],["Saudi Arabia","SA","966"],["Qatar","QA","974"],["Kuwait","KW","965"],["Oman","OM","968"],["Bahrain","BH","973"],["Jordan","JO","962"],["Lebanon","LB","961"],["Turkey","TR","90"],["Germany","DE","49"],["France","FR","33"],["Italy","IT","39"],["Spain","ES","34"],["Portugal","PT","351"],["Netherlands","NL","31"],["Belgium","BE","32"],["Sweden","SE","46"],["Norway","NO","47"],["Denmark","DK","45"],["Finland","FI","358"],["Switzerland","CH","41"],["Austria","AT","43"],["Poland","PL","48"],["Greece","GR","30"],["Brazil","BR","55"]],v=e=>[...e.toUpperCase()].map(e=>String.fromCodePoint(127397+e.charCodeAt(0))).join(""),N=[...y.map(([e,a])=>({label:`${v(a)} ${e}`,value:e.toLowerCase().replace(/[^a-z0-9]+/g,"-")})),{label:"Other",value:"other"}],j=[...y.filter(([e])=>"Canada"!==e).map(([e,a,t])=>({label:"United States"===e?`${v(a)} United States / ${v("CA")} Canada (+${t})`:`${v(a)} ${e} (+${t})`,value:`+${t}`,dial:`+${t}`})),{label:"🌐 Other",value:"+",dial:"+"}],A=Array.from(new Set(["Kampala","Wakiso","Mukono","Mpigi","Buikwe","Butambala","Buvuma","Gomba","Kalangala","Kalungu","Kayunga","Kyotera","Luwero","Lwengo","Lyantonde","Masaka","Mityana","Nakaseke","Nakasongola","Rakai","Sembabule","Kassanda","Buwunga","Jinja","Iganga","Kamuli","Mbale","Tororo","Soroti","Busia","Bugiri","Mayuge","Namutumba","Pallisa","Budaka","Bududa","Bukedea","Bukwo","Bulambuli","Butaleja","Buyende","Kaliro","Kapchorwa","Katakwi","Kibuku","Kumi","Kween","Luuka","Manafwa","Namayingo","Ngora","Serere","Sironko","Amuria","Butebo","Namisindwa","Bugweri","Kapelebyong","Gulu","Lira","Kitgum","Arua","Nebbi","Adjumani","Moyo","Yumbe","Koboko","Maracha","Zombo","Pader","Agago","Amuru","Nwoya","Lamwo","Omoro","Alebtong","Amolatar","Apac","Dokolo","Kole","Otuke","Oyam","Kwania","Pakwach","Madi-Okollo","Obongi","Terego","Moroto","Kotido","Kaabong","Nakapiripirit","Napak","Amudat","Abim","Karenga","Nabilatuk","Mbarara","Bushenyi","Ntungamo","Kabale","Kasese","Fort Portal","Kabarole","Hoima","Masindi","Kibaale","Kiryandongo","Buliisa","Bundibugyo","Ntoroko","Kamwenge","Kyenjojo","Kyegegwa","Kagadi","Kakumiro","Rubirizi","Sheema","Mitooma","Buhweju","Ibanda","Isingiro","Kiruhura","Kanungu","Kisoro","Rukungiri","Rubanda","Rukiga","Kazo","Kitagwenda","Rwampara","Bunyangabu","Nakapiripirit","Outside Uganda"])).sort((e,a)=>"Outside Uganda"===e?1:"Outside Uganda"===a?-1:e.localeCompare(a)).map(e=>({label:e,value:e.toLowerCase().replace(/[^a-z0-9]+/g,"-")})),C=[{name:"passportPhoto",label:"Passport Photograph",hint:"Recent colour photo, plain background. JPG or PNG.",required:!0},{name:"nationalId",label:"National ID or Passport",hint:"Both sides of your National ID, or the bio-data page of your passport.",required:!0},{name:"academicCertificate",label:"Academic Certificate(s)",hint:"Certified copy of your highest qualification (UCE / UACE / Diploma / Degree).",required:!0},{name:"academicTranscript",label:"Academic Transcript(s)",hint:"Official transcript or results slip for the qualification above.",required:!0},{name:"additionalDocument",label:"Additional Supporting Document",hint:"Optional — CV, recommendation letter, or professional certificate.",required:!1}],w=(e,a)=>e.find(e=>e.value===a)?.label||a||"—";var k=e.i(980444);let B=["Personal","Programme","Education","Next of Kin","Documents","Submit"],S="w-full border border-[#E5E7EB] rounded-xl px-4 py-3 text-sm bg-white text-[#1B2A3A] placeholder:text-[#94A3B8] focus:outline-none focus:border-[#1B2A3A] focus:ring-2 focus:ring-[#1B2A3A]/10 transition-all",E="block text-sm font-semibold text-[#374151] mb-1.5",P={qualificationType:"",institution:"",qualification:"",yearStarted:"",yearCompleted:"",grade:""},F=({label:e,value:t,onChange:l,options:i,required:r,placeholder:s="Select…"})=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:E,children:[e," ",r&&(0,a.jsx)("span",{className:"text-[#C1923B]",children:"*"})]}),(0,a.jsxs)("select",{className:S,value:t,onChange:e=>l(e.target.value),children:[(0,a.jsx)("option",{value:"",children:s}),i.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))]})]}),O=({label:e,value:t,onChange:l,required:i,placeholder:r})=>{let s=t.match(/^(\+\d{1,4})\s*(.*)$/),n=s?s[1]:"+256",o=s?s[2]:t;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:E,children:[e," ",i&&(0,a.jsx)("span",{className:"text-[#C1923B]",children:"*"})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("select",{"aria-label":"Country Dial Code Selector",className:"w-[130px] flex-shrink-0 border border-[#E5E7EB] rounded-xl px-3 py-3 text-sm bg-white text-[#1B2A3A] focus:outline-none focus:border-[#1B2A3A] focus:ring-2 focus:ring-[#1B2A3A]/10 transition-all",value:n,onChange:e=>l(`${e.target.value} ${o}`.trim()),children:j.map(e=>(0,a.jsx)("option",{value:e.dial,children:e.label},e.value))}),(0,a.jsx)("input",{type:"tel",className:`${S} flex-1 min-w-0`,value:o,onChange:e=>l(`${n} ${e.target.value}`.trim()),placeholder:r})]})]})},T=({label:e,value:l,onChange:i,required:n,type:o="text",placeholder:d})=>{let[c,u]=(0,t.useState)(!1),m="password"===o;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:E,children:[e," ",n&&(0,a.jsx)("span",{className:"text-[#C1923B]",children:"*"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:m&&c?"text":o,className:m?`${S} pr-11`:S,value:l,onChange:e=>i(e.target.value),placeholder:d}),m&&(0,a.jsx)("button",{type:"button",onClick:()=>u(e=>!e),className:"absolute right-3 top-1/2 -translate-y-1/2 text-[#94A3B8] hover:text-[#1B2A3A] transition-colors","aria-label":c?"Hide password":"Show password",tabIndex:-1,children:c?(0,a.jsx)(s.EyeOff,{className:"w-[18px] h-[18px]"}):(0,a.jsx)(r.Eye,{className:"w-[18px] h-[18px]"})})]})]})};e.s(["default",0,function(){let[e,r]=(0,t.useState)("checking"),[s,y]=(0,t.useState)(null),[v,j]=(0,t.useState)("register"),[I,M]=(0,t.useState)({firstName:"",lastName:"",phone:"",email:"",password:"",confirmPassword:""}),[q,K]=(0,t.useState)(""),[D,R]=(0,t.useState)(!1),[$,L]=(0,t.useState)(null),[U,G]=(0,t.useState)(0),[X,Y]=(0,t.useState)([]),[W,H]=(0,t.useState)("idle"),[J,z]=(0,t.useState)(null),[Z,Q]=(0,t.useState)(""),[_,V]=(0,t.useState)([{...P}]),[ee,ea]=(0,t.useState)({}),[et,el]=(0,t.useState)(null),[ei,er]=(0,t.useState)(""),[es,en]=(0,t.useState)({title:"",firstName:"",lastName:"",otherNames:"",email:"",phone:"",alternatePhone:"",gender:"",dateOfBirth:"",maritalStatus:"",nationality:"uganda",country:"uganda",district:"",address:"",firstChoice:"",secondChoice:"",intakeSemester:"",intakeYear:"2026",studyMode:"",sponsorType:"",sponsorName:"",workExperience:"",nokName:"",nokRelationship:"",nokPhone:"",nokEmail:"",nokAddress:"",referralSource:"",declarationAccepted:!1}),eo=(e,a)=>en(t=>({...t,[e]:a})),ed=(e,a)=>M(t=>({...t,[e]:a})),ec=(e,a,t)=>V(l=>l.map((l,i)=>i===e?{...l,[a]:t}:l));(0,t.useEffect)(()=>{fetch("/api/applicants/me",{credentials:"include"}).then(e=>e.json()).then(e=>{e?.user?(y(e.user),r("signedIn")):r("signedOut")}).catch(()=>r("signedOut")),fetch("/api/apply").then(e=>e.json()).then(e=>{e.programmes&&Y(e.programmes)}).catch(()=>{})},[]),(0,t.useEffect)(()=>{"signedIn"===e&&fetch("/api/apply/draft",{credentials:"include"}).then(e=>e.json()).then(e=>{let a=e.application;if(!a)return;L(a.id),en(e=>({...e,title:a.title||"",firstName:a.firstName||"",lastName:a.lastName||"",otherNames:a.otherNames||"",email:a.email||"",phone:a.phone||"",alternatePhone:a.alternatePhone||"",gender:a.gender||"",dateOfBirth:a.dateOfBirth?String(a.dateOfBirth).slice(0,10):"",maritalStatus:a.maritalStatus||"",nationality:a.nationality||"uganda",country:a.country||"uganda",district:a.district||"",address:a.address||"",firstChoice:"string"==typeof a.firstChoice?a.firstChoice:a.firstChoice?.id||"",secondChoice:"string"==typeof a.secondChoice?a.secondChoice:a.secondChoice?.id||"",intakeSemester:a.intakeSemester||"",intakeYear:a.intakeYear||"2026",studyMode:a.studyMode||"",sponsorType:a.sponsorType||"",sponsorName:a.sponsorName||"",workExperience:a.workExperience||"",nokName:a.nextOfKin?.name||"",nokRelationship:a.nextOfKin?.relationship||"",nokPhone:a.nextOfKin?.phone||"",nokEmail:a.nextOfKin?.email||"",nokAddress:a.nextOfKin?.address||"",referralSource:a.referralSource||"",declarationAccepted:!!a.declarationAccepted})),Array.isArray(a.academicHistory)&&a.academicHistory.length>0&&V(a.academicHistory.map(e=>({qualificationType:e.qualificationType||"",institution:e.institution||"",qualification:e.qualification||"",yearStarted:e.yearStarted?String(e.yearStarted):"",yearCompleted:e.yearCompleted?String(e.yearCompleted):"",grade:e.grade||""})));let t={};for(let e of C){let l=a[e.name];l&&"object"==typeof l?t[e.name]={filename:l.filename,url:l.url}:l&&(t[e.name]={filename:"Uploaded"})}ea(t)}).catch(()=>{})},[e]);let eu=async()=>{if(K(""),"register"===v){if(I.password.length<8)return void K("Password must be at least 8 characters.");if(I.password!==I.confirmPassword)return void K("Passwords do not match. Please re-enter your confirmation password.")}R(!0);try{let e="register"===v?{firstName:I.firstName,lastName:I.lastName,phone:I.phone,email:I.email,password:I.password}:{email:I.email,password:I.password},a=await fetch("register"===v?"/api/account/register":"/api/applicants/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(e)}),t=await a.json();if(!a.ok)return void K(t.error||t.errors?.[0]?.message||"Something went wrong. Please try again.");y(t.applicant||t.user),r("signedIn")}catch{K("Network error. Please try again.")}finally{R(!1)}},em=async()=>{try{await fetch("/api/applicants/logout",{method:"POST",credentials:"include"})}catch{}y(null),L(null),G(0),r("signedOut")},ep=(0,t.useCallback)(()=>({id:$,title:es.title,firstName:es.firstName,lastName:es.lastName,otherNames:es.otherNames,email:es.email,phone:es.phone,alternatePhone:es.alternatePhone,gender:es.gender,dateOfBirth:es.dateOfBirth||null,maritalStatus:es.maritalStatus,nationality:es.nationality,country:es.country,district:es.district,address:es.address,firstChoice:es.firstChoice||null,secondChoice:es.secondChoice||null,intakeSemester:es.intakeSemester,intakeYear:es.intakeYear,studyMode:es.studyMode,sponsorType:es.sponsorType,sponsorName:es.sponsorName,academicHistory:_.filter(e=>e.institution||e.qualificationType).map(e=>({qualificationType:e.qualificationType,institution:e.institution,qualification:e.qualification,yearStarted:Number(e.yearStarted)||void 0,yearCompleted:Number(e.yearCompleted)||void 0,grade:e.grade})),workExperience:es.workExperience,nextOfKin:{name:es.nokName,relationship:es.nokRelationship,phone:es.nokPhone,email:es.nokEmail||null,address:es.nokAddress},referralSource:es.referralSource,declarationAccepted:es.declarationAccepted}),[$,es,_]),eh=(0,t.useCallback)(async()=>{if(!$)return!1;try{return(await fetch("/api/apply/draft",{method:"PATCH",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(ep())})).ok}catch{return!1}},[$,ep]),ex=async e=>{if(e>U){let e=(e=>{if(0===e){if(!es.firstName.trim())return"Please enter your first name.";if(!es.lastName.trim())return"Please enter your surname.";if(!es.email.trim())return"Please enter your email address.";if(!/^\S+@\S+\.\S+$/.test(es.email))return"Please enter a valid email address.";if(!es.phone.trim())return"Please enter your phone number.";if(!es.gender)return"Please select your gender.";if(!es.dateOfBirth)return"Please enter your date of birth.";if(!es.nationality)return"Please select your nationality.";if(!es.country)return"Please select your country of residence.";if(!es.district)return"Please select your district or region."}if(1===e){if(!es.firstChoice)return"Please select your first choice programme.";if(es.secondChoice&&es.secondChoice===es.firstChoice)return"Your second choice must be different from your first choice.";if(!es.intakeSemester)return"Please select your preferred intake semester.";if(!es.intakeYear)return"Please select your intake year.";if(!es.studyMode)return"Please select your preferred mode of study.";if(!es.sponsorType)return"Please select how your studies will be sponsored.";if("self"!==es.sponsorType&&!es.sponsorName.trim())return"Please enter the name of your sponsor or organisation."}if(2===e){let e=_.filter(e=>e.qualificationType||e.institution);if(0===e.length)return"Please add at least one qualification.";for(let[a,t]of e.entries()){if(!t.qualificationType)return`Qualification ${a+1}: please select the qualification type.`;if(!t.institution.trim())return`Qualification ${a+1}: please enter the institution name.`;if(!t.yearCompleted)return`Qualification ${a+1}: please enter the year completed.`;if(!t.grade)return`Qualification ${a+1}: please select the grade or classification.`}}if(3===e){if(!es.nokName.trim())return"Please enter your next of kin's full name.";if(!es.nokRelationship)return"Please select your relationship to your next of kin.";if(!es.nokPhone.trim())return"Please enter your next of kin's phone number.";if(es.nokEmail&&!/^\S+@\S+\.\S+$/.test(es.nokEmail))return"Please enter a valid email address for your next of kin.";if(!es.nokAddress.trim())return"Please enter your next of kin's address."}if(4===e){let e=C.filter(e=>e.required&&!ee[e.name]);if(e.length>0)return`Please upload: ${e.map(e=>e.label).join(", ")}.`}return""})(U);if(e)return void Q(e)}(Q(""),await eh())?G(e):Q("We could not save your progress just now. Please check your connection and try again before continuing.")},eb=async(e,a)=>{if($){el(e),er("");try{let t=new FormData;t.append("file",a),t.append("field",e),t.append("applicationId",$);let l=await fetch("/api/apply/upload",{method:"POST",credentials:"include",body:t}),i=await l.json();if(!l.ok)return void er(i.error||"Upload failed. Please try again.");ea(a=>({...a,[e]:{filename:i.media.filename,url:i.media.url}}))}catch{er("Network error while uploading. Please try again.")}finally{el(null)}}},ef=async()=>{if(!es.declarationAccepted)return void Q("Please accept the declaration before submitting.");if(Q(""),H("loading"),!await eh()){H("idle"),Q("We could not save your latest details. Please check your connection and try submitting again.");return}try{let e=await fetch("/api/apply",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({applicationId:$})}),a=await e.json();e.ok?H("success"):H("error"),z(a)}catch{H("error"),z({error:"Network error. Please try again."})}},eg=e=>X.find(a=>a.id===e)?.title||"—";return"success"===W&&J?(0,a.jsx)("div",{className:"min-h-screen bg-[#F8FAFC] flex items-center justify-center p-6",children:(0,a.jsxs)("div",{className:"max-w-lg w-full bg-white rounded-3xl border border-[#E5E7EB] shadow-xl p-10 text-center",children:[(0,a.jsx)("div",{className:"text-7xl mb-6",children:"🎉"}),(0,a.jsx)("h1",{className:"text-2xl font-black text-[#1B2A3A] mb-3",style:{fontFamily:"Inter, sans-serif"},children:"Application Submitted!"}),(0,a.jsxs)("div",{className:"bg-[#F8FAFC] rounded-xl border border-[#E5E7EB] p-4 mb-6",children:[(0,a.jsx)("div",{className:"text-sm text-[#6B7280] mb-1",children:"Your Application Reference"}),(0,a.jsx)("div",{className:"text-2xl font-black text-[#1B2A3A]",children:J.referenceNumber}),(0,a.jsx)("div",{className:"text-xs text-[#94A3B8] mt-1",children:"Save this number — you need it to track your application"})]}),(0,a.jsx)("p",{className:"text-[#374151] text-sm leading-relaxed mb-2",children:J.message}),(0,a.jsxs)("p",{className:"text-[#6B7280] text-xs leading-relaxed mb-6",children:["A confirmation has been emailed to ",(0,a.jsx)("strong",{children:es.email}),". We will email you again each time your application status changes."]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)(l.default,{href:`/admissions/status?ref=${encodeURIComponent(J.referenceNumber||"")}`,className:"w-full btn-gold py-3.5 justify-center text-base",children:"📍 Track Your Application"}),(0,a.jsx)(l.default,{href:"/academics",className:"w-full btn-outline py-3.5 justify-center",children:"Explore Programmes"}),(0,a.jsx)(l.default,{href:"/",className:"block text-sm text-[#6B7280] hover:text-[#1B2A3A] pt-1",children:"Back to Homepage"})]})]})}):(0,a.jsxs)("div",{className:"overflow-x-hidden",children:[(0,a.jsxs)("section",{className:"relative py-20 overflow-hidden",children:[(0,a.jsxs)("div",{className:"absolute inset-0",children:[(0,a.jsx)(i.default,{src:"https://images.unsplash.com/photo-1594750852563-5ed8e0421d40?w=1600&q=80&fit=crop",alt:"Apply to DOIM Uganda",fill:!0,className:"object-cover",priority:!0}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-[#1B2A3A]/95 via-[#1B2A3A]/85 to-transparent"})]}),(0,a.jsxs)("div",{className:"container relative z-10",children:[(0,a.jsx)(n.Breadcrumb,{items:[{label:"Home",href:"/"},{label:"Admissions",href:"/admissions"},{label:"Apply Online"}],align:"left"}),(0,a.jsx)("h1",{className:"text-4xl font-black text-white mb-3",style:{fontFamily:"Inter, sans-serif"},children:"Apply to DOIM"}),(0,a.jsxs)("p",{className:"text-white/70 max-w-xl",children:["Complete this application online. A non-refundable application fee of ",k.APPLICATION_FEE_LABEL," applies."]}),(0,a.jsx)(l.default,{href:"/admissions/status",className:"inline-flex items-center gap-2 mt-5 text-sm font-semibold text-[#E8D7B0] hover:text-white transition-colors",children:"📍 Already applied? Track your application →"})]})]}),(0,a.jsx)("section",{className:"py-12 bg-[#F8FAFC]",children:(0,a.jsxs)("div",{className:"container max-w-3xl mx-auto",children:["checking"===e&&(0,a.jsx)("div",{className:"bg-white rounded-3xl border border-[#E5E7EB] shadow-sm p-10 text-center text-[#6B7280]",children:"Loading…"}),"signedOut"===e&&(0,a.jsxs)("div",{className:"bg-white rounded-3xl border border-[#E5E7EB] shadow-sm p-8 max-w-md mx-auto",children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-[#1B2A3A] mb-1",style:{fontFamily:"Inter, sans-serif"},children:"register"===v?"🔐 Create Your Applicant Account":"🔐 Sign In to Continue"}),(0,a.jsx)("p",{className:"text-sm text-[#6B7280] mb-6",children:"register"===v?"Create a free applicant account so you can save your progress and come back anytime before submitting.":"Welcome back. Sign in to continue your application where you left off."}),(0,a.jsxs)("div",{className:"flex mb-6 bg-[#F8FAFC] rounded-xl p-1",children:[(0,a.jsx)("button",{onClick:()=>{j("register"),K("")},className:`flex-1 py-2 rounded-lg text-sm font-bold transition-all ${"register"===v?"bg-white text-[#1B2A3A] shadow-sm":"text-[#6B7280]"}`,children:"Create Account"}),(0,a.jsx)("button",{onClick:()=>{j("login"),K("")},className:`flex-1 py-2 rounded-lg text-sm font-bold transition-all ${"login"===v?"bg-white text-[#1B2A3A] shadow-sm":"text-[#6B7280]"}`,children:"Sign In"})]}),(0,a.jsxs)("div",{className:"space-y-4",children:["register"===v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,a.jsx)(T,{label:"First Name",required:!0,value:I.firstName,onChange:e=>ed("firstName",e),placeholder:"John"}),(0,a.jsx)(T,{label:"Surname",required:!0,value:I.lastName,onChange:e=>ed("lastName",e),placeholder:"Mukasa"})]}),(0,a.jsx)(O,{label:"Phone / WhatsApp",value:I.phone,onChange:e=>ed("phone",e),placeholder:"7XX XXX XXX"})]}),(0,a.jsx)(T,{label:"Email Address",required:!0,type:"email",value:I.email,onChange:e=>ed("email",e),placeholder:"john@email.com"}),(0,a.jsx)(T,{label:"Password",required:!0,type:"password",value:I.password,onChange:e=>ed("password",e),placeholder:"register"===v?"At least 8 characters":"Your password"}),"register"===v&&(0,a.jsxs)("div",{children:[(0,a.jsx)(T,{label:"Confirm Password",required:!0,type:"password",value:I.confirmPassword,onChange:e=>ed("confirmPassword",e),placeholder:"Re-enter your password"}),I.confirmPassword.length>0&&I.password!==I.confirmPassword&&(0,a.jsx)("p",{className:"text-xs text-rose-600 mt-1.5",children:"Passwords do not match."})]}),q&&(0,a.jsxs)("div",{className:"bg-rose-50 border border-rose-200 rounded-xl p-3 text-rose-800 text-sm",children:["❌ ",q]}),(0,a.jsx)("button",{onClick:eu,disabled:D||!I.email||!I.password||"register"===v&&(!I.firstName||!I.lastName||!I.confirmPassword),className:"btn-primary w-full justify-center py-3 disabled:opacity-50",children:D?"⏳ Please wait...":"register"===v?"Create Account & Continue →":"Sign In →"}),(0,a.jsx)("div",{className:"text-center text-sm text-[#6B7280] pt-1",children:"register"===v?(0,a.jsxs)(a.Fragment,{children:["Already have an account?"," ",(0,a.jsx)("button",{onClick:()=>{j("login"),K("")},className:"font-bold text-[#1B2A3A] hover:text-[#C1923B] underline underline-offset-2 transition-colors",children:"Sign in"})]}):(0,a.jsxs)(a.Fragment,{children:["Don't have an account yet?"," ",(0,a.jsx)("button",{onClick:()=>{j("register"),K("")},className:"font-bold text-[#1B2A3A] hover:text-[#C1923B] underline underline-offset-2 transition-colors",children:"Create one"})]})})]})]}),"signedIn"===e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-6 text-sm",children:[(0,a.jsxs)("span",{className:"text-[#6B7280]",children:["Signed in as ",(0,a.jsx)("span",{className:"font-semibold text-[#1B2A3A]",children:s?.email})]}),(0,a.jsx)("button",{onClick:em,className:"text-[#1B2A3A] font-semibold hover:underline",children:"Sign out"})]}),(0,a.jsx)("div",{className:"flex items-center mb-10 overflow-x-auto pb-2",children:B.map((e,l)=>(0,a.jsxs)(t.default.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col items-center flex-shrink-0",children:[(0,a.jsx)("div",{className:`w-9 h-9 rounded-full flex items-center justify-center font-bold text-sm transition-all ${l<=U?"bg-[#1B2A3A] text-white":"bg-[#E5E7EB] text-[#6B7280]"}`,children:leo("title",e),options:c}),(0,a.jsx)(T,{label:"First Name",required:!0,value:es.firstName,onChange:e=>eo("firstName",e),placeholder:"John"}),(0,a.jsx)(T,{label:"Surname",required:!0,value:es.lastName,onChange:e=>eo("lastName",e),placeholder:"Mukasa"}),(0,a.jsx)(T,{label:"Other Names",value:es.otherNames,onChange:e=>eo("otherNames",e),placeholder:"Middle name"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,a.jsx)(F,{label:"Nationality",required:!0,value:es.nationality,onChange:e=>eo("nationality",e),options:N}),(0,a.jsx)(F,{label:"Country of Residence",required:!0,value:es.country,onChange:e=>eo("country",e),options:N}),(0,a.jsx)(F,{label:"District / Region",required:!0,value:es.district,onChange:e=>eo("district",e),options:A})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,a.jsx)(T,{label:"Email Address",required:!0,type:"email",value:es.email,onChange:e=>eo("email",e),placeholder:"john@email.com"}),(0,a.jsx)(O,{label:"Phone / WhatsApp",required:!0,value:es.phone,onChange:e=>eo("phone",e),placeholder:"7XX XXX XXX"}),(0,a.jsx)(O,{label:"Alternative Phone",value:es.alternatePhone,onChange:e=>eo("alternatePhone",e),placeholder:"Optional"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,a.jsx)(F,{label:"Gender",required:!0,value:es.gender,onChange:e=>eo("gender",e),options:u}),(0,a.jsx)(T,{label:"Date of Birth",required:!0,type:"date",value:es.dateOfBirth,onChange:e=>eo("dateOfBirth",e)}),(0,a.jsx)(F,{label:"Marital Status",value:es.maritalStatus,onChange:e=>eo("maritalStatus",e),options:m})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:E,children:"Postal / Physical Address"}),(0,a.jsx)("textarea",{rows:2,className:`${S} resize-none`,value:es.address,onChange:e=>eo("address",e.target.value),placeholder:"Your postal or physical address"})]})]}),1===U&&(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-[#1B2A3A] mb-6",style:{fontFamily:"Inter, sans-serif"},children:"🎓 Programme of Study"}),(0,a.jsxs)("div",{className:"bg-[#F8FAFC] rounded-xl border border-[#E5E7EB] p-5 space-y-4",children:[(0,a.jsx)("p",{className:"text-xs text-[#6B7280]",children:"Choose two programmes in order of preference. If your first choice is full or you do not meet its entry requirements, we will consider you for your second choice."}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:E,children:["First Choice ",(0,a.jsx)("span",{className:"text-[#C1923B]",children:"*"})]}),(0,a.jsxs)("select",{className:S,value:es.firstChoice,onChange:e=>eo("firstChoice",e.target.value),children:[(0,a.jsx)("option",{value:"",children:"Choose your first choice programme…"}),X.map(e=>(0,a.jsxs)("option",{value:e.id,children:[e.title," — UGX ",Number(e.tuitionFee).toLocaleString(),"/sem"]},e.id))]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:E,children:"Second Choice"}),(0,a.jsxs)("select",{className:S,value:es.secondChoice,onChange:e=>eo("secondChoice",e.target.value),children:[(0,a.jsx)("option",{value:"",children:"Choose your second choice programme…"}),X.filter(e=>e.id!==es.firstChoice).map(e=>(0,a.jsxs)("option",{value:e.id,children:[e.title," — UGX ",Number(e.tuitionFee).toLocaleString(),"/sem"]},e.id))]})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,a.jsx)(F,{label:"Intake Semester",required:!0,value:es.intakeSemester,onChange:e=>eo("intakeSemester",e),options:o}),(0,a.jsx)(F,{label:"Intake Year",required:!0,value:es.intakeYear,onChange:e=>eo("intakeYear",e),options:d}),(0,a.jsx)(F,{label:"Mode of Study",required:!0,value:es.studyMode,onChange:e=>eo("studyMode",e),options:p})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,a.jsx)(F,{label:"Sponsorship",required:!0,value:es.sponsorType,onChange:e=>eo("sponsorType",e),options:h}),es.sponsorType&&"self"!==es.sponsorType&&(0,a.jsx)(T,{label:"Sponsor Name / Organisation",required:!0,value:es.sponsorName,onChange:e=>eo("sponsorName",e)})]})]}),2===U&&(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-[#1B2A3A]",style:{fontFamily:"Inter, sans-serif"},children:"📚 Education Background"}),(0,a.jsxs)("p",{className:"text-sm text-[#6B7280] mt-1",children:["Add every qualification you hold — O-Level, A-Level, certificates, diplomas and degrees. At least ",(0,a.jsx)("strong",{children:"one entry is required"}),". You may add up to ",5," entries."]})]}),_.map((e,t)=>(0,a.jsxs)("div",{className:"bg-[#F8FAFC] rounded-xl border border-[#E5E7EB] p-5",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:`text-[10px] font-bold uppercase tracking-wide px-2 py-0.5 rounded-full ${0===t?"bg-[#FBF3E7] text-[#7A5A22]":"bg-[#EEF2F6] text-[#1B2A3A]"}`,children:0===t?"Required":"Optional"}),(0,a.jsxs)("h3",{className:"font-bold text-[#1B2A3A] text-sm",children:["Qualification ",t+1]})]}),_.length>1&&(0,a.jsx)("button",{onClick:()=>V(e=>1===e.length?e:e.filter((e,a)=>a!==t)),className:"text-xs font-semibold text-rose-600 hover:text-rose-800 transition-colors",children:"✕ Remove"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-4",children:[(0,a.jsx)(F,{label:"Qualification Type",required:!0,value:e.qualificationType,onChange:e=>ec(t,"qualificationType",e),options:x}),(0,a.jsx)(T,{label:"Institution / School",required:!0,value:e.institution,onChange:e=>ec(t,"institution",e),placeholder:"e.g. Makerere University"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,a.jsx)(T,{label:"Award / Subject",value:e.qualification,onChange:e=>ec(t,"qualification",e),placeholder:"e.g. Bachelor of Commerce"}),(0,a.jsx)(F,{label:"Grade / Classification",required:!0,value:e.grade,onChange:e=>ec(t,"grade",e),options:b}),(0,a.jsx)(T,{label:"Year Started",type:"number",value:e.yearStarted,onChange:e=>ec(t,"yearStarted",e),placeholder:"e.g. 2018"}),(0,a.jsx)(T,{label:"Year Completed",required:!0,type:"number",value:e.yearCompleted,onChange:e=>ec(t,"yearCompleted",e),placeholder:"e.g. 2022"})]})]},t)),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[_.length<5&&(0,a.jsx)("button",{onClick:()=>V(e=>e.length>=5?e:[...e,{...P}]),className:"flex-1 py-3 rounded-xl border-2 border-dashed border-[#C1923B]/50 text-[#1B2A3A] font-semibold text-sm hover:bg-[#FBF3E7] hover:border-[#C1923B] transition-all",children:"+ Add Another Institution"}),(0,a.jsxs)("span",{className:"text-xs font-semibold text-[#6B7280] whitespace-nowrap",children:[_.length-1," / ",4," optional entries added"]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:E,children:"Relevant Work Experience"}),(0,a.jsx)("textarea",{rows:4,className:`${S} resize-none`,value:es.workExperience,onChange:e=>eo("workExperience",e.target.value),placeholder:"Describe your professional experience (optional but helpful for your application)"})]})]}),3===U&&(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-[#1B2A3A]",style:{fontFamily:"Inter, sans-serif"},children:"👨‍👩‍👧 Next of Kin"}),(0,a.jsx)("p",{className:"text-sm text-[#6B7280] mt-1",children:"The person DOIM should contact in an emergency or if we cannot reach you."})]}),(0,a.jsxs)("div",{className:"bg-[#F8FAFC] rounded-xl border border-[#E5E7EB] p-5 space-y-4",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,a.jsx)(T,{label:"Full Name",required:!0,value:es.nokName,onChange:e=>eo("nokName",e),placeholder:"e.g. Mary Nakato"}),(0,a.jsx)(F,{label:"Relationship",required:!0,value:es.nokRelationship,onChange:e=>eo("nokRelationship",e),options:f})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,a.jsx)(O,{label:"Phone / WhatsApp",required:!0,value:es.nokPhone,onChange:e=>eo("nokPhone",e),placeholder:"7XX XXX XXX"}),(0,a.jsx)(T,{label:"Email Address",type:"email",value:es.nokEmail,onChange:e=>eo("nokEmail",e),placeholder:"Optional"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:E,children:["Address ",(0,a.jsx)("span",{className:"text-[#C1923B]",children:"*"})]}),(0,a.jsx)("textarea",{rows:2,className:`${S} resize-none`,value:es.nokAddress,onChange:e=>eo("nokAddress",e.target.value),placeholder:"Postal or physical address"})]})]})]}),4===U&&(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-[#1B2A3A]",style:{fontFamily:"Inter, sans-serif"},children:"📎 Upload Your Documents"}),(0,a.jsx)("p",{className:"text-sm text-[#6B7280] mt-1",children:"Upload each document separately. Accepted formats: PDF, JPG, PNG or WEBP — maximum 5 MB per file."})]}),ei&&(0,a.jsxs)("div",{className:"bg-rose-50 border border-rose-200 rounded-xl p-3 text-rose-800 text-sm",children:["❌ ",ei]}),(0,a.jsx)("div",{className:"space-y-3",children:C.map(e=>{let t=ee[e.name],l=et===e.name;return(0,a.jsx)("div",{className:`rounded-xl border p-4 transition-all ${t?"border-emerald-300 bg-emerald-50/50":"border-[#E5E7EB] bg-[#F8FAFC]"}`,children:(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"font-bold text-[#1B2A3A] text-sm",children:[e.label," ",e.required?(0,a.jsx)("span",{className:"text-[#C1923B]",children:"*"}):(0,a.jsx)("span",{className:"text-xs font-medium text-[#94A3B8]",children:"(optional)"})]}),(0,a.jsx)("div",{className:"text-xs text-[#6B7280] mt-0.5",children:e.hint}),t&&(0,a.jsxs)("div",{className:"text-xs text-emerald-700 font-semibold mt-1.5 truncate",children:["✓ ",t.filename]})]}),(0,a.jsxs)("label",{className:`flex-shrink-0 px-4 py-2 rounded-lg text-sm font-bold cursor-pointer transition-all ${l?"bg-[#E5E7EB] text-[#6B7280] cursor-wait":t?"border-2 border-[#1B2A3A] text-[#1B2A3A] hover:bg-white":"bg-[#1B2A3A] text-white hover:bg-[#243A53]"}`,children:[l?"⏳ Uploading…":t?"Replace":"Choose File",(0,a.jsx)("input",{type:"file",className:"hidden",accept:".pdf,.jpg,.jpeg,.png,.webp",disabled:l,onChange:a=>{let t=a.target.files?.[0];t&&eb(e.name,t),a.target.value=""}})]})]})},e.name)})})]}),5===U&&(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-[#1B2A3A]",style:{fontFamily:"Inter, sans-serif"},children:"✅ Review & Submit"}),(0,a.jsxs)("p",{className:"text-sm text-[#6B7280] mt-1",children:["Please check every section below carefully. Use ",(0,a.jsx)("strong",{children:"Back"})," to correct anything before you submit — once submitted, your application is locked for review."]})]}),[{icon:"👤",heading:"Personal Information",rows:[{label:"Title",value:es.title?w(c,es.title):"—"},{label:"Full Name",value:[es.firstName,es.lastName,es.otherNames].filter(Boolean).join(" ")||"—"},{label:"Email Address",value:es.email||"—"},{label:"Phone",value:es.phone||"—"},{label:"Alternative Phone",value:es.alternatePhone||"—"},{label:"Gender",value:w(u,es.gender)},{label:"Date of Birth",value:es.dateOfBirth||"—"},{label:"Marital Status",value:es.maritalStatus?w(m,es.maritalStatus):"—"},{label:"Nationality",value:w(N,es.nationality)},{label:"Country of Residence",value:w(N,es.country)},{label:"District / Region",value:w(A,es.district)},{label:"Address",value:es.address||"—"}]},{icon:"🎓",heading:"Programme of Study",rows:[{label:"First Choice",value:eg(es.firstChoice)},{label:"Second Choice",value:es.secondChoice?eg(es.secondChoice):"Not specified"},{label:"Intake",value:`${w(o,es.intakeSemester)}, ${es.intakeYear}`},{label:"Mode of Study",value:w(p,es.studyMode)},{label:"Sponsorship",value:"self"===es.sponsorType?"Self-Sponsored":`${w(h,es.sponsorType)}${es.sponsorName?` — ${es.sponsorName}`:""}`}]},{icon:"📚",heading:"Education Background",rows:_.filter(e=>e.institution||e.qualificationType).map((e,a)=>({label:`Qualification ${a+1}`,value:[w(x,e.qualificationType),e.institution,e.qualification,e.grade?w(b,e.grade):null,[e.yearStarted,e.yearCompleted].filter(Boolean).join("–")||null].filter(Boolean).join(" · ")||"—"}))},...es.workExperience?[{icon:"💼",heading:"Work Experience",rows:[{label:"",value:es.workExperience}]}]:[],{icon:"👨‍👩‍👧",heading:"Next of Kin",rows:[{label:"Full Name",value:es.nokName||"—"},{label:"Relationship",value:w(f,es.nokRelationship)},{label:"Phone",value:es.nokPhone||"—"},{label:"Email",value:es.nokEmail||"—"},{label:"Address",value:es.nokAddress||"—"}]},{icon:"📎",heading:"Documents",rows:C.map(e=>({label:e.label,value:ee[e.name]?.filename||(e.required?"⚠️ Missing":"Not provided")}))}].map(e=>(0,a.jsxs)("div",{className:"bg-[#F8FAFC] rounded-xl border border-[#E5E7EB] p-5",children:[(0,a.jsxs)("h3",{className:"font-bold text-[#1B2A3A] text-sm mb-3",children:[e.icon," ",e.heading]}),(0,a.jsx)("div",{className:"space-y-0.5",children:e.rows.map((t,l)=>(0,a.jsxs)("div",{className:`${t.label?"flex justify-between gap-4":""} py-1.5 ${leo("referralSource",e),options:g}),(0,a.jsx)("div",{className:"bg-[#FBF3E7] border border-[#E8D7B0] rounded-xl p-4",children:(0,a.jsxs)("label",{className:"flex items-start gap-3 cursor-pointer",children:[(0,a.jsx)("input",{type:"checkbox",checked:es.declarationAccepted,onChange:e=>eo("declarationAccepted",e.target.checked),className:"mt-0.5 w-4 h-4 flex-shrink-0 accent-[#1B2A3A]"}),(0,a.jsxs)("span",{className:"text-[#7A5A22] text-sm leading-relaxed",children:[(0,a.jsx)("strong",{children:"Declaration:"})," I confirm that all information provided in this application is accurate and complete. I understand that providing false information may result in cancellation of my admission."]})]})}),(0,a.jsxs)("div",{className:"bg-[#EEF2F6] border border-[#D3DBE3] rounded-xl p-4 text-[#1B2A3A] text-sm",children:[(0,a.jsx)("strong",{children:"💳 Application fee:"})," ",k.APPLICATION_FEE_LABEL," (non-refundable). Payment instructions will be emailed to you as soon as this application is submitted."]}),"error"===W&&J&&(0,a.jsxs)("div",{className:"bg-rose-50 border border-rose-200 rounded-xl p-4 text-rose-800 text-sm",children:["❌ ",J.error]})]}),Z&&(0,a.jsxs)("div",{className:"mt-6 bg-rose-50 border border-rose-200 rounded-xl p-3 text-rose-800 text-sm",children:["⚠️ ",Z]}),(0,a.jsxs)("div",{className:"flex gap-3 mt-8 pt-6 border-t border-[#F1F4F8]",children:[U>0&&(0,a.jsx)("button",{onClick:()=>ex(U-1),className:"px-6 py-3 rounded-lg font-semibold border-2 border-[#E5E7EB] text-[#374151] hover:bg-[#F8FAFC] transition-all",children:"← Back"}),(0,a.jsx)("div",{className:"flex-1"}),Uex(U+1),className:"btn-primary px-8 py-3",children:["Next: ",B[U+1]," →"]}):(0,a.jsx)("button",{onClick:ef,disabled:"loading"===W||!es.declarationAccepted,className:"btn-gold px-8 py-3 disabled:opacity-60",children:"loading"===W?"⏳ Submitting...":"🚀 Submit Application"})]})]})]}),(0,a.jsxs)("p",{className:"text-center text-xs text-[#94A3B8] mt-4",children:["Need help? Call"," ",(0,a.jsx)("a",{href:k.PHONE_MAIN_HREF,className:"text-[#1B2A3A]",children:k.PHONE_MAIN})," ","or WhatsApp"," ",(0,a.jsx)("a",{href:k.WHATSAPP_URL,className:"text-[#1B2A3A]",children:k.WHATSAPP_DISPLAY})]})]})})]})}],916545)}]);