<x-main-inner-page 
    category="Apply" title="Scientific Reviewer" 
    subtitle="Apply to join GARI's panel of Scientific Reviewers and contribute to the quality and integrity of international academic research."
>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-16">

    <!-- Left: Info / Steps -->
    <div>
        <span class="text-brand-600 text-xs font-bold uppercase tracking-widest mb-2 block">Application</span>
        <h2 class="text-3xl font-bold text-slate-900 mb-4 leading-snug">Apply &amp; Join the GARI Community</h2>
        <p class="text-slate-600 leading-relaxed mb-8">Please fill out the form carefully. Our committee reviews all applications within 3–5 business days. Ensure your document is in PDF/DOCX format before submitting.</p>

        <div class="space-y-6 mb-10">
            @foreach([
                ['icon'=>'fa-file-alt','step'=>'01','title'=>'Prepare Documents','desc'=>'Have your CV and a list of your research publications ready in PDF format.'],
                ['icon'=>'fa-edit','step'=>'02','title'=>'Complete the Form','desc'=>'Fill in your personal and institutional details accurately.'],
                ['icon'=>'fa-paper-plane','step'=>'03','title'=>'Submit & Await Review','desc'=>'We will contact you within 3–5 business days regarding your application.'],
            ] as $step)
            <div class="flex items-start gap-5">
                <div class="shrink-0 w-12 h-12 rounded-2xl bg-brand-100 flex items-center justify-center text-brand-600 shadow-sm">
                    <i class="fas {{ $step['icon'] }} text-lg"></i>
                </div>
                <div>
                    <span class="text-brand-400 font-bold text-xs uppercase tracking-widest">Step {{ $step['step'] }}</span>
                    <h5 class="font-bold text-slate-900 mb-1">{{ $step['title'] }}</h5>
                    <p class="text-sm text-slate-500 leading-relaxed">{{ $step['desc'] }}</p>
                </div>
            </div>
            @endforeach
        </div>

        <div class="grid grid-cols-2 gap-3">
            @foreach(['Free Application','Expert Review','Fast Response','Certificate Issued'] as $pill)
            <div class="flex items-center gap-2 bg-white border border-slate-100 rounded-xl p-3 shadow-sm">
                <div class="w-7 h-7 rounded-full bg-brand-100 flex items-center justify-center shrink-0">
                    <i class="fas fa-check text-brand-600 text-xs"></i>
                </div>
                <span class="text-slate-700 text-sm font-medium">{{ $pill }}</span>
            </div>
            @endforeach
        </div>
    </div>

    <!-- Right: Form Card -->
    <div class="bg-white border border-slate-100 rounded-2xl shadow-xl relative overflow-hidden">
        <div class="h-1.5 w-full bg-gradient-to-r from-brand-500 via-cyan-400 to-brand-700"></div>
        <div class="p-10 sm:p-12">
            <h3 class="text-xl font-bold text-slate-900 mb-6">Complete Application</h3>
            <form class="space-y-5">
                <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
                    <div>
                        <label class="block text-xs font-bold text-slate-600 uppercase tracking-wide mb-1.5">Designation <span class="text-red-500">*</span></label>
                        <select name="designation" class="w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-800 focus:outline-none focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20 focus:bg-white transition" required>
                            <option value="">— Select Designation —</option>
                            <option value="Prof.">Prof.</option>
                            <option value="Dr.">Dr.</option>
                            <option value="Mr.">Mr.</option>
                            <option value="Ms.">Ms.</option>
                            <option value="Mrs.">Mrs.</option>
                        </select>
                    </div>
                    <div>
                        <label class="block text-xs font-bold text-slate-600 uppercase tracking-wide mb-1.5">Name <span class="text-red-500">*</span></label>
                        <input type="text" name="name" placeholder="Enter Name" class="w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-800 placeholder-slate-400 focus:outline-none focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20 focus:bg-white transition" required>
                    </div>
                </div>

                <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
                    <div>
                        <label class="block text-xs font-bold text-slate-600 uppercase tracking-wide mb-1.5">Email <span class="text-red-500">*</span></label>
                        <input type="email" name="email" placeholder="Enter Email" class="w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-800 placeholder-slate-400 focus:outline-none focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20 focus:bg-white transition" required>
                    </div>
                    <div>
                        <label class="block text-xs font-bold text-slate-600 uppercase tracking-wide mb-1.5">Select Conference:</label>
                        <select name="subconference_id" class="w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-800 focus:outline-none focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20 focus:bg-white transition">
                            <option value="">— Select Conference —</option>
                            <option value="social-media">Technology and Innovation for Social M</option>
                        </select>
                    </div>
                </div>

                <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
                    <div>
                        <label class="block text-xs font-bold text-slate-600 uppercase tracking-wide mb-1.5">Select Category <span class="text-red-500">*</span></label>
                        <select name="s_category" class="w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-800 focus:outline-none focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20 focus:bg-white transition" required>
                            <option value="">— Select Category —</option>
                            <option value="Scientific Reviewer" selected>Scientific Reviewer</option>
                        </select>
                    </div>
                    <div>
                        <label class="block text-xs font-bold text-slate-600 uppercase tracking-wide mb-1.5">Select Country <span class="text-red-500">*</span></label>
                        <select name="country" class="w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-800 focus:outline-none focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20 focus:bg-white transition" required>
                            <option value="">— Select Country —</option>
                            <option value="USA">United States</option>
                            <option value="UK">United Kingdom</option>
                            <option value="LK">Sri Lanka</option>
                            <option value="IN">India</option>
                        </select>
                    </div>
                </div>

                <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
                    <div>
                        <label class="block text-xs font-bold text-slate-600 uppercase tracking-wide mb-1.5">Contact Number <span class="text-red-500">*</span></label>
                        <input type="text" name="phone" placeholder="Enter Phone" class="w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-800 placeholder-slate-400 focus:outline-none focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20 focus:bg-white transition" required>
                    </div>
                    <div>
                        <label class="block text-xs font-bold text-slate-600 uppercase tracking-wide mb-1.5">LinkedIn ID <span class="text-red-500">*</span></label>
                        <input type="text" name="linkedin" placeholder="Enter LinkedIn ID" class="w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-800 placeholder-slate-400 focus:outline-none focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20 focus:bg-white transition" required>
                    </div>
                </div>

                <div>
                    <label class="block text-xs font-bold text-slate-600 uppercase tracking-wide mb-2">Document <span class="text-red-500">*</span></label>
                    <label class="flex items-center gap-4 w-full border-2 border-dashed border-slate-200 rounded-xl px-5 py-4 cursor-pointer hover:border-blue-400 hover:bg-slate-50 transition-all group">
                        <div class="w-12 h-12 bg-slate-100 group-hover:bg-blue-100 rounded-xl flex items-center justify-center shrink-0 transition-colors">
                            <i class="fas fa-cloud-upload-alt text-slate-400 group-hover:text-blue-600 transition-colors text-lg"></i>
                        </div>
                        <div class="flex-1 min-w-0">
                            <p class="text-sm font-semibold text-slate-700 group-hover:text-blue-600 transition-colors truncate" id="file-name-display-reviewer">Click to upload file</p>
                            <p class="text-xs text-slate-400 mt-0.5">PDF or DOCX • Max 5MB</p>
                        </div>
                        <input type="file" name="document" class="hidden" accept=".pdf,.doc,.docx" required onchange="document.getElementById('file-name-display-reviewer').innerText = this.files.length ? this.files[0].name : 'Click to upload file';">
                    </label>
                </div>

                <div>
                    <label class="block text-xs font-bold text-slate-600 uppercase tracking-wide mb-1.5">Message <span class="text-red-500">*</span></label>
                    <textarea name="message" rows="3" placeholder="Enter Message" class="w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-800 placeholder-slate-400 focus:outline-none focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20 focus:bg-white transition" required></textarea>
                </div>

                <div class="pt-2">
                    <button type="submit" class="w-full bg-blue-600 text-white font-bold rounded-xl px-6 py-3 hover:bg-blue-700 transition-all duration-300 shadow-lg flex items-center justify-center text-base">
                        Apply
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
</x-main-inner-page>