<x-site-layout title="Check Mentorship Application Status">

    {{-- Hero Section — Advocacy Style --}}
    <div class="relative bg-gradient-to-r from-green-700 to-emerald-800 shadow-xl">
        <div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16">
            <div class="text-center">
                <span class="inline-block px-4 py-1 bg-white/20 text-white rounded-full text-sm font-semibold mb-4">
                    <i class="fas fa-search mr-2"></i> Track Application
                </span>
                <h1 class="text-4xl md:text-5xl font-serif font-bold text-white mb-4">
                    Check Application Status
                </h1>
                <p class="text-xl text-green-100 max-w-3xl mx-auto">
                    Enter your email address to track your mentorship application
                </p>
            </div>
        </div>
    </div>

    {{-- Breadcrumb --}}
    <div class="bg-gray-50 border-b border-gray-200">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3">
            <nav class="flex items-center space-x-2 text-sm text-gray-600" aria-label="Breadcrumb">
                <a href="{{ url('/') }}" class="hover:text-green-600 transition flex items-center">
                    <i class="fas fa-home mr-1"></i>Home
                </a>
                <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
                <a href="{{ route('mentorship.public.index') }}" class="hover:text-green-600 transition">Mentorship</a>
                <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
                <span class="text-gray-900 font-medium">Check Application Status</span>
            </nav>
        </div>
    </div>

    <section class="py-16 bg-gray-50 min-h-screen">
        <div class="max-w-5xl mx-auto px-4 sm:px-6 lg:px-8">

            {{-- Error Messages --}}
            @if ($errors->any())
                <div class="mb-6 p-4 bg-red-50 border border-red-200 rounded-lg">
                    @foreach ($errors->all() as $error)
                        <p class="text-sm text-red-700">{{ $error }}</p>
                    @endforeach
                </div>
            @endif

            {{-- Check Status Form --}}
            <div class="bg-white rounded-xl shadow-lg overflow-hidden">
                <div class="bg-green-600 px-6 py-5">
                    <h2 class="text-lg font-semibold text-white flex items-center">
                        <i class="fas fa-clipboard-list mr-3"></i>
                        Application Status Lookup
                    </h2>
                </div>
                <div class="p-8">
                    <form method="POST" action="{{ route('mentorship.public.check-status.submit') }}">
                        @csrf
                        <div class="mb-6">
                            <label for="email" class="block text-sm font-medium text-gray-700 mb-2">
                                Email Address
                            </label>
                            <input type="email"
                                   id="email"
                                   name="email"
                                   value="{{ old('email') }}"
                                   placeholder="Enter the email you used to apply"
                                   class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-green-500 focus:border-green-500 text-gray-900"
                                   required>
                            <p class="mt-2 text-sm text-gray-500">
                                Enter the email address you used when submitting your application.
                            </p>
                        </div>
                        <button type="submit"
                                class="w-full px-6 py-3 bg-green-600 text-white rounded-lg hover:bg-green-700 transition font-medium text-base">
                            <i class="fas fa-search mr-2"></i> Check Status
                        </button>
                    </form>
                </div>
            </div>

            {{-- Apply Link --}}
            <p class="text-center mt-6 text-sm text-gray-600">
                Don't have an application yet?
                <a href="{{ route('mentorship.public.index') }}#programmes" class="text-green-600 hover:underline font-medium">Browse mentorship programmes</a>
            </p>

        </div>
    </section>

</x-site-layout>
