/** * ============================================================================ * PLANET EDUCATION NOIDA – MAIN SINGLE-PAGE APPLICATION (React 18) * ============================================================================ * Complete 13-Section Single-Page Landing Website: * Section 1: Sticky Header & Responsive Navigation + Top Trust Bar * Section 2: Full-Width Hero Section + Instant Assessment Preview Card * Section 3: About Planet Education (Est. 1999, Vision, Mission, Global Reach) * Section 4: Why Choose Planet Education (Value Proposition Cards) * Section 5: Study Abroad Destinations (Interactive Country Cards & Filter) * Section 6: Study Abroad Services (6 Core Service Pillars) * Section 7: University Showcase (Filterable by Country + Direct Enquiry Link) * Section 8: Student Admission Journey (6-Step 8–10 Week Roadmap) * Section 9: Student Success Stories (Verified Testimonials + Interactive Slider) * Section 10: Frequently Asked Questions (Interactive Accordion) * Section 11: Contact & Enquiry Form (Real Email Submission to backend recipient) * Section 12: Final Full-Width CTA Banner * Section 13: Comprehensive Footer + Floating WhatsApp, Scroll-To-Top & Lead Popup */ const { useState, useEffect } = React; // Reusable SVG Icons Component function Icon({ name, className = "w-5 h-5" }) { switch (name) { case "phone": return ( ); case "mapPin": return ( ); case "check": return ( ); case "arrowRight": return ( ); case "shield": return ( ); case "globe": return ( ); case "userCheck": return ( ); case "checkBadge": return ( ); case "award": return ( ); case "compass": return ( ); case "star": return ( ); case "chevronDown": return ( ); case "close": return ( ); case "whatsapp": return ( ); default: return null; } } function App() { const data = window.SITE_CONTENT; const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const [isScrolled, setIsScrolled] = useState(false); const [selectedDestination, setSelectedDestination] = useState(data.destinations.countries[0]); const [uniFilter, setUniFilter] = useState("All"); const [activeTestimonial, setActiveTestimonial] = useState(0); const [openFaqIndex, setOpenFaqIndex] = useState(0); const [showScrollTop, setShowScrollTop] = useState(false); // Popup Modal State const [isPopupOpen, setIsPopupOpen] = useState(false); const [isPopupClosing, setIsPopupClosing] = useState(false); //Popup Form State const [popupForm, setPopupForm] = useState({ fullName: "", mobile: "", email: "", preferredCountry: "Australia", preferredCourse: data.enquiryForm.courses[0], qualification: data.enquiryForm.qualifications[2], botHoney: "" }); const [popupErrors, setPopupErrors] = useState({}); const [popupSubmitState, setPopupSubmitState] = useState("idle"); // idle | submitting | success | error const [popupFeedback, setPopupFeedback] = useState(""); const [lastPopupSignature, setLastPopupSignature] = useState(""); // Section 11 Page Enquiry Form State const [formData, setFormData] = useState({ fullName: "", mobile: "", email: "", preferredCountry: "Australia", preferredCourse: data.enquiryForm.courses[0], qualification: data.enquiryForm.qualifications[2], preferredIntake: data.enquiryForm.intakes[0], message: "", botHoney: "" }); const [formErrors, setFormErrors] = useState({}); const [submitState, setSubmitState] = useState("idle"); // idle | submitting | success | error const [submitFeedback, setSubmitFeedback] = useState(""); const [lastSubmittedSignature, setLastSubmittedSignature] = useState(""); // Scroll listener for sticky header & scroll-to-top button useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 24); setShowScrollTop(window.scrollY > 500); }; window.addEventListener("scroll", handleScroll, { passive: true }); return () => window.removeEventListener("scroll", handleScroll); }, []); // Auto-open popup once after 10 seconds if not already opened or dismissed in this session useEffect(() => { const hasSeenPopup = sessionStorage.getItem("pe_noida_popup_shown"); if (hasSeenPopup) return; const timer = setTimeout(() => { const alreadyShown = sessionStorage.getItem("pe_noida_popup_shown"); if (!alreadyShown) { sessionStorage.setItem("pe_noida_popup_shown", "true"); setIsPopupClosing(false); setIsPopupOpen(true); } }, 10000); return () => clearTimeout(timer); }, []); // Lock background body scroll when popup is open & support Escape key useEffect(() => { if (isPopupOpen) { document.body.style.overflow = "hidden"; } else { document.body.style.overflow = ""; } const handleKeyDown = (e) => { if (e.key === "Escape" && isPopupOpen) { closePopup(); } }; window.addEventListener("keydown", handleKeyDown); return () => { document.body.style.overflow = ""; window.removeEventListener("keydown", handleKeyDown); }; }, [isPopupOpen]); // Open Popup Handler (marks session storage so auto-timer never interrupts later) const openPopup = (preselectedCountry = "") => { sessionStorage.setItem("pe_noida_popup_shown", "true"); if (preselectedCountry && typeof preselectedCountry === "string") { setPopupForm((prev) => ({ ...prev, preferredCountry: preselectedCountry })); } setMobileMenuOpen(false); setIsPopupClosing(false); setIsPopupOpen(true); }; // Smooth Close Popup Handler const closePopup = () => { sessionStorage.setItem("pe_noida_popup_shown", "true"); setIsPopupClosing(true); setTimeout(() => { setIsPopupOpen(false); setIsPopupClosing(false); }, 210); }; // Helper to pre-select a country/university and scroll smoothly to the Enquiry Form const handleSelectAndEnquire = (countryName, extraNote = "") => { setFormData((prev) => ({ ...prev, preferredCountry: countryName || prev.preferredCountry, message: extraNote ? `Interested in: ${extraNote}` : prev.message })); const contactEl = document.getElementById("contact"); if (contactEl) { contactEl.scrollIntoView({ behavior: "smooth" }); } }; // Validate Popup Enquiry Form const validatePopupEnquiry = () => { const errors = {}; const trimmedName = popupForm.fullName.trim(); if (!trimmedName || trimmedName.length < 2) { errors.fullName = "Please enter your full name."; } const cleanedPhone = popupForm.mobile.replace(/[\s\-+]/g, "").replace(/^91/, ""); const indianMobileRegex = /^[6-9]\d{9}$/; if (!indianMobileRegex.test(cleanedPhone)) { errors.mobile = "Enter a valid 10-digit Indian mobile number."; } const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/; if (!emailRegex.test(popupForm.email.trim())) { errors.email = "Please enter a valid email address."; } if (!popupForm.preferredCountry) { errors.preferredCountry = "Please select a study destination."; } if (!popupForm.preferredCourse) { errors.preferredCourse = "Please select a preferred course."; } if (!popupForm.qualification) { errors.qualification = "Please select your current qualification."; } setPopupErrors(errors); return Object.keys(errors).length === 0; }; // Submit Popup Form to Backend Recipient Email (aaeraconsultants@gmail.com via data.contact.formSubmitEndpoint) const handlePopupFormSubmit = async (e) => { e.preventDefault(); if (popupForm.botHoney) return; if (!validatePopupEnquiry()) return; const signature = `${popupForm.email.trim().toLowerCase()}|${popupForm.mobile.trim()}|${popupForm.preferredCountry}`; if (signature === lastPopupSignature && popupSubmitState === "success") { setPopupFeedback("Your counselling request has already been received! Our senior advisor will call you shortly."); return; } setPopupSubmitState("submitting"); setPopupFeedback(""); try { const payload = { _subject: data.contact.emailSubject, _template: "table", _captcha: "false", "Submission Source": "Planet Education Noida – Popup Counselling Form", "Full Name": popupForm.fullName.trim(), "Mobile Number": popupForm.mobile.trim(), "Email Address": popupForm.email.trim(), "Preferred Study Destination": popupForm.preferredCountry, "Preferred Course": popupForm.preferredCourse, "Current Qualification": popupForm.qualification }; const response = await fetch(data.contact.formSubmitEndpoint, { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, body: JSON.stringify(payload) }); const result = await response.json().catch(() => ({})); if (response.ok && (result.success === "true" || result.success === true)) { setPopupSubmitState("success"); setLastPopupSignature(signature); setPopupFeedback( "Thank you! Your request for Free Counselling has been submitted successfully. Our senior Planet Education counsellor will contact you within 24 working hours." ); } else { setPopupSubmitState("error"); setPopupFeedback( result.message || "We could not complete your request automatically right now. Please verify form activation or connect with our Noida counselling desk at +91-9650022154." ); } } catch (err) { setPopupSubmitState("error"); setPopupFeedback( "Unable to reach the submission server right now. Please check your connection or call our counsellors directly at +91-9650022154." ); } }; // Validate Main Section 11 Enquiry Form const validateEnquiry = () => { const errors = {}; const trimmedName = formData.fullName.trim(); if (!trimmedName || trimmedName.length < 2) { errors.fullName = "Please enter your full name (minimum 2 characters)."; } const cleanedPhone = formData.mobile.replace(/[\s\-+]/g, "").replace(/^91/, ""); const indianMobileRegex = /^[6-9]\d{9}$/; if (!indianMobileRegex.test(cleanedPhone)) { errors.mobile = "Please enter a valid 10-digit Indian mobile number (starting with 6, 7, 8, or 9)."; } const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/; if (!emailRegex.test(formData.email.trim())) { errors.email = "Please enter a valid email address."; } if (!formData.preferredCountry) { errors.preferredCountry = "Please select your preferred study destination."; } if (!formData.preferredCourse) { errors.preferredCourse = "Please select your preferred course."; } if (!formData.qualification) { errors.qualification = "Please select your current qualification."; } if (!formData.preferredIntake) { errors.preferredIntake = "Please select your preferred intake."; } setFormErrors(errors); return Object.keys(errors).length === 0; }; // Handle Main Section 11 Email Submission via FormSubmit AJAX API const handleFormSubmit = async (e) => { e.preventDefault(); if (formData.botHoney) { return; } if (!validateEnquiry()) { return; } const signature = `${formData.email.trim().toLowerCase()}|${formData.mobile.trim()}|${formData.preferredCountry}`; if (signature === lastSubmittedSignature && submitState === "success") { setSubmitFeedback("Your enquiry has already been received. Our counsellor will contact you shortly."); return; } setSubmitState("submitting"); setSubmitFeedback(""); try { const payload = { _subject: data.contact.emailSubject, _template: "table", _captcha: "false", "Brand Portal": "Planet Education Noida Landing Page", "Full Name": formData.fullName.trim(), "Mobile Number": formData.mobile.trim(), "Email Address": formData.email.trim(), "Preferred Country": formData.preferredCountry, "Preferred Course": formData.preferredCourse, "Current Qualification": formData.qualification, "Preferred Intake": formData.preferredIntake, "Student Message": formData.message.trim() || "Requested Free 1-on-1 Study Abroad Counselling" }; const response = await fetch(data.contact.formSubmitEndpoint, { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, body: JSON.stringify(payload) }); const result = await response.json().catch(() => ({})); if (response.ok && (result.success === "true" || result.success === true)) { setSubmitState("success"); setLastSubmittedSignature(signature); setSubmitFeedback( "Thank you! Your study abroad enquiry has been successfully submitted to our counselling desk. A senior Planet Education advisor will contact you within 24 working hours." ); } else { setSubmitState("error"); setSubmitFeedback( result.message || "We could not complete the automated submission right now. You can also reach our Noida counselling desk immediately at +91-9650022154 or via WhatsApp." ); } } catch (error) { setSubmitState("error"); setSubmitFeedback( "Network connection error while submitting your enquiry. Please verify your internet connection or contact our Noida desk directly at +91-9650022154." ); } }; // Filtered Universities const universityCountries = ["All", "Australia", "United Kingdom", "United States", "Canada", "Ireland"]; const filteredUniversities = uniFilter === "All" ? data.universities.list : data.universities.list.filter((u) => u.country === uniFilter); const whatsappUrl = `https://wa.me/${data.contact.whatsappNumber}?text=${encodeURIComponent( data.contact.whatsappDefaultMessage )}`; return (
{/* TOP ANNOUNCEMENT & CONTACT BAR (No Email Displayed) */}
Est. 1999 · 28+ Years Excellence Certified by AAERI, ICEF & PIER · Wave Silver Tower, Sector 18, Noida
{data.contact.phones[0].display} | {data.contact.phones[1].display}
{/* ===================================================================== SECTION 1: STICKY HEADER & NAVIGATION (Single Row Desktop Layout) ===================================================================== */}
{/* Official Planet Education Noida Logo (Left Aligned, Uncropped) */} Planet Education Noida Official Logo {/* Desktop Navigation Links — Single Horizontal Row, Evenly Spaced, Never Wrapping */} {/* Right CTA Button ("Get Free Counselling") & Mobile Hamburger Trigger */}
{/* Mobile & Tablet Responsive Dropdown Menu */} {mobileMenuOpen && (
{data.navigation.map((item) => ( { setMobileMenuOpen(false); if (item.label === "Contact Us") { e.preventDefault(); openPopup(); } }} className="px-3.5 py-2.5 rounded-lg text-sm font-semibold text-slate-700 hover:bg-blue-50 hover:text-blue-700 whitespace-nowrap" > {item.label} ))}
Call {data.contact.phones[0].display}
)}
{/* ===================================================================== SECTION 2: HERO SECTION ===================================================================== */}
{/* Left Column: Headline, Description, CTAs, Trust Indicators */}
{data.hero.badge}

Guiding Ambitious Students to Their{" "} Dream Universities {" "} for Over 28 Years.

{data.hero.subheadline}

{/* Two Prominent CTA Buttons */}
{data.hero.secondaryCta}
{/* Verified Accreditations & Zero-Pressure Note */}
{data.hero.trustNote} Wave Silver Tower, Sector 18, Noida
{/* 4 Verified Planet Education Statistics */}
{data.hero.stats.map((stat, idx) => (
{stat.value}
{stat.label}
{stat.detail}
))}
{/* Right Column: Visual Showcase with International Students & Campus Card */}
International students at university campus guided by Planet Education Noida
{/* Bottom Overlay Card Inside Hero Visual */}
Talk to a Counsellor — No Commitment

Australia, UK, USA, Canada, NZ, Ireland & Singapore

Direct pathways to Group of Eight (Go8), Russell Group & 300+ global institutions.

Free 30–45 Min Profile Evaluation
{/* Floating Accreditation Badge */}
1999
Global Accreditations
AAERI · ICEF · PIER Certified
{/* ===================================================================== SECTION 3: ABOUT PLANET EDUCATION ===================================================================== */}
{/* Left Image Collage */}
Planet Education one-on-one student counselling session
Student-First Advisory Since 1999
25+ Global Offices Across India, Australia & South Asia
AAERI
Australian Specialist
ICEF
Global Quality Agency
PIER
Qualified Counsellors
{/* Right Content */}
{data.about.eyebrow}

{data.about.headline}

{data.about.leadParagraph}

{data.about.bodyParagraph}

{/* Vision & Mission Boxes */}
{data.about.visionTitle}

{data.about.visionText}

{data.about.missionTitle}

{data.about.missionText}

{/* Checklist Highlights */}
{data.about.highlights.map((point, index) => (
{point}
))}
{data.contact.phones[0].display}
{/* ===================================================================== SECTION 4: WHY CHOOSE PLANET EDUCATION ===================================================================== */}
{data.whyChoose.eyebrow}

{data.whyChoose.headline}

{data.whyChoose.description}

{data.whyChoose.cards.map((card) => (
{card.metric}

{card.title}

{card.description}

Planet Education Advantage
))}
{/* ===================================================================== SECTION 5: STUDY ABROAD DESTINATIONS ===================================================================== */}
{data.destinations.eyebrow}

{data.destinations.headline}

{data.destinations.description}

{/* Interactive Country Selector Pills */}
{data.destinations.countries.map((country) => { const isSelected = selectedDestination.id === country.id; return ( ); })}
{/* Spotlight Interactive Country Detail Banner */}
{`Study
{selectedDestination.flagEmoji} Study in {selectedDestination.name}
{selectedDestination.badge}

Study in {selectedDestination.name} — Admissions, Scholarships & Visa Guide

{selectedDestination.summary}

Post-Study Work Visa
{selectedDestination.workRights}
High-Demand Career Sectors
{selectedDestination.keySectors}
Featured Universities in {selectedDestination.name}:
{selectedDestination.topUniversities.map((uni, idx) => ( {uni} ))}
{/* All 7 Country Destination Grid Cards */}
{data.destinations.countries.map((country) => (
{`Study
{country.flagEmoji} {country.flagCode}

{country.name}

{country.badge}

{country.summary}

Post-Study Work: {country.workRights}
))}
{/* ===================================================================== SECTION 6: STUDY ABROAD SERVICES ===================================================================== */}
{data.services.eyebrow}

{data.services.headline}

{data.services.description}

{data.services.items.map((service) => (
Service Pillar {service.step}

{service.title}

{service.description}

{service.points.map((pt, i) => (
{pt}
))}
))}
{/* ===================================================================== SECTION 7: UNIVERSITY SHOWCASE ===================================================================== */}
{data.universities.eyebrow}

{data.universities.headline}

{data.universities.description}

{/* Filter Tabs by Country */}
{universityCountries.map((country) => ( ))}
{/* University Cards Grid */}
{filteredUniversities.map((uni, idx) => (
{`${uni.name}
{uni.country} · {uni.city}
{uni.tag}

{uni.name}

{uni.highlights}

))}

{data.universities.disclaimer}

{/* ===================================================================== SECTION 8: STUDENT ADMISSION JOURNEY ===================================================================== */}
{data.journey.eyebrow}

{data.journey.headline}

{data.journey.description}

{data.journey.steps.map((item, idx) => (
{item.step} Timeline: {item.timeline}

{item.title}

{item.description}

))}
{/* ===================================================================== SECTION 9: STUDENT SUCCESS STORIES (Genuine Planet Education Reviews) ===================================================================== */}
{data.testimonials.eyebrow}

{data.testimonials.headline}

{data.testimonials.description}

{/* Interactive Testimonial Spotlight + Grid */}
{data.testimonials.stories.map((story, idx) => { const isHighlighted = activeTestimonial === idx; return (
setActiveTestimonial(idx)} className={`cursor-pointer rounded-3xl p-7 transition-all border ${ isHighlighted ? "bg-white text-slate-900 border-amber-400 shadow-2xl scale-[1.01]" : "glass-card text-white border-white/15 hover:bg-white/10" }`} >
{[...Array(story.rating)].map((_, i) => ( ))}
{story.badge}

"{story.quote}"

{story.name}
{story.program} · {story.university}
{story.name.charAt(0)}
); })}
{/* ===================================================================== SECTION 10: FREQUENTLY ASKED QUESTIONS (Accordion) ===================================================================== */}
{data.faqs.eyebrow}

{data.faqs.headline}

{data.faqs.description}

{data.faqs.items.map((faq, idx) => { const isOpen = openFaqIndex === idx; return (
{isOpen && (
{faq.answer}
)}
); })}
{/* ===================================================================== SECTION 11: CONTACT & ENQUIRY FORM (No Email Address Displayed) ===================================================================== */}
{/* Left Column: Contact Information & Noida/Delhi Offices */}
Connect With Planet Education Noida

{data.enquiryForm.headline}

{data.enquiryForm.subheadline}

{/* Office Location Cards */}
{data.contact.offices.map((office, i) => (

{office.label}

{office.badge}

{office.address}

))}
{/* Direct Phone & Website Reference (No Public Email Shown) */}
{/* Right Column: Functional Lead-Generation Enquiry Form */}

Book Your Free Study Abroad Assessment

Complete the form below and our senior Noida counsellors will connect with you shortly.

100% Free Counselling
{/* Honeypot field for spam protection */} setFormData({ ...formData, botHoney: e.target.value })} className="hidden" tabIndex="-1" autoComplete="off" />
{/* Full Name */}
{ setFormData({ ...formData, fullName: e.target.value }); if (formErrors.fullName) setFormErrors({ ...formErrors, fullName: "" }); }} className={`w-full px-4 py-3 rounded-xl border text-sm font-medium focus:outline-none focus:ring-2 ${ formErrors.fullName ? "border-red-400 focus:ring-red-200 bg-red-50/30" : "border-slate-300 focus:border-blue-600 focus:ring-blue-100" }`} /> {formErrors.fullName && (

{formErrors.fullName}

)}
{/* Mobile Number (Indian validation) */}
{ setFormData({ ...formData, mobile: e.target.value }); if (formErrors.mobile) setFormErrors({ ...formErrors, mobile: "" }); }} className={`w-full px-4 py-3 rounded-xl border text-sm font-medium focus:outline-none focus:ring-2 ${ formErrors.mobile ? "border-red-400 focus:ring-red-200 bg-red-50/30" : "border-slate-300 focus:border-blue-600 focus:ring-blue-100" }`} /> {formErrors.mobile && (

{formErrors.mobile}

)}
{/* Email Address */}
{ setFormData({ ...formData, email: e.target.value }); if (formErrors.email) setFormErrors({ ...formErrors, email: "" }); }} className={`w-full px-4 py-3 rounded-xl border text-sm font-medium focus:outline-none focus:ring-2 ${ formErrors.email ? "border-red-400 focus:ring-red-200 bg-red-50/30" : "border-slate-300 focus:border-blue-600 focus:ring-blue-100" }`} /> {formErrors.email && (

{formErrors.email}

)}
{/* Preferred Country */}
{/* Preferred Course */}
{/* Current Qualification */}
{/* Preferred Intake */}
{/* Message */}
{/* Submit Button */} {/* Submission Status Feedback Alert */} {submitState === "success" && (
Enquiry Submitted Successfully!

{submitFeedback}

)} {submitState === "error" && (
Notice Regarding Submission:

{submitFeedback}

)}
{/* ===================================================================== SECTION 12: FINAL FULL-WIDTH CTA BANNER ===================================================================== */}
Ready to Take the Next Step?

Turn Your Study Abroad Ambition Into an Offer Letter.

Join 52,000+ successful global graduates. Visit Planet Education at Wave Silver Tower, Sector 18, Noida or speak to our certified counsellors today.

{data.contact.phones[0].display}
{/* ===================================================================== SECTION 13: COMPREHENSIVE PREMIUM FOOTER (No Email Displayed) ===================================================================== */} {/* ===================================================================== PREMIUM POPUP ENQUIRY FORM MODAL (Two-Column Desktop / Single-Column Mobile) ===================================================================== */} {isPopupOpen && (
e.stopPropagation()} > {/* Prominent Close (X) Button */}
{/* Left Column (Desktop): International Student / Campus Visual + Brand Trust */}
Study Abroad with Planet Education Noida
Planet Education Noida Logo
Est. 1999 · 28+ Years Excellence

Your Global University Dream Starts Here.

Get 1-on-1 profile evaluation, university shortlisting, scholarship guidance, and visa support from AAERI, ICEF & PIER certified experts.

52,000+
Students Placed
300+
Partner Universities
Wave Silver Tower, Sector 18, Noida
{/* Right Column: Popup Enquiry Form */}
{/* Mobile Brand Logo Header */}
Planet Education Noida
Free 1-on-1 Counselling Session

Connect with our expert counsellors and get personalised guidance for your international education goals.

{/* Honeypot field */} setPopupForm({ ...popupForm, botHoney: e.target.value })} className="hidden" tabIndex="-1" autoComplete="off" />
{/* Full Name */}
{ setPopupForm({ ...popupForm, fullName: e.target.value }); if (popupErrors.fullName) setPopupErrors({ ...popupErrors, fullName: "" }); }} className={`w-full px-3.5 py-2.5 rounded-xl border text-sm font-medium focus:outline-none focus:ring-2 ${ popupErrors.fullName ? "border-red-400 focus:ring-red-200 bg-red-50/30" : "border-slate-300 focus:border-blue-600 focus:ring-blue-100" }`} /> {popupErrors.fullName && (

{popupErrors.fullName}

)}
{/* Mobile Number */}
{ setPopupForm({ ...popupForm, mobile: e.target.value }); if (popupErrors.mobile) setPopupErrors({ ...popupErrors, mobile: "" }); }} className={`w-full px-3.5 py-2.5 rounded-xl border text-sm font-medium focus:outline-none focus:ring-2 ${ popupErrors.mobile ? "border-red-400 focus:ring-red-200 bg-red-50/30" : "border-slate-300 focus:border-blue-600 focus:ring-blue-100" }`} /> {popupErrors.mobile && (

{popupErrors.mobile}

)}
{/* Email Address */}
{ setPopupForm({ ...popupForm, email: e.target.value }); if (popupErrors.email) setPopupErrors({ ...popupErrors, email: "" }); }} className={`w-full px-3.5 py-2.5 rounded-xl border text-sm font-medium focus:outline-none focus:ring-2 ${ popupErrors.email ? "border-red-400 focus:ring-red-200 bg-red-50/30" : "border-slate-300 focus:border-blue-600 focus:ring-blue-100" }`} /> {popupErrors.email && (

{popupErrors.email}

)}
{/* Preferred Study Destination */}
{/* Preferred Course */}
{/* Current Qualification */}
{popupSubmitState === "success" && (
Counselling Request Confirmed!

{popupFeedback}

)} {popupSubmitState === "error" && ( )}
100% Privacy Assured · No Spam Helpline: {data.contact.phones[0].display}
)} {/* ===================================================================== FLOATING WHATSAPP BUTTON & SCROLL-TO-TOP BUTTON ===================================================================== */} {showScrollTop && ( )}
); } const root = ReactDOM.createRoot(document.getElementById("root")); root.render();