@extends('layouts.app')
@section('title', 'Contact Us - AutoPart')

@section('content')
<div class="bg-gray-50 min-h-screen pb-16">
    <div class="bg-brand-dark text-white py-12 mb-8">
        <div class="container mx-auto px-4 text-center">
            <h1 class="text-4xl font-extrabold uppercase tracking-widest mb-4">Contact Us</h1>
            <div class="flex items-center justify-center space-x-2 text-sm text-gray-400">
                <a href="{{ url('/') }}" class="hover:text-brand-red transition-colors">Home</a>
                <i data-lucide="chevron-right" class="w-3.5 h-3.5"></i>
                <span class="text-white">Contact</span>
            </div>
        </div>
    </div>

    <div class="container mx-auto px-4">
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-8 max-w-6xl mx-auto">
            <div class="lg:col-span-2">
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-8">
                    <h2 class="text-2xl font-extrabold text-brand-dark mb-6">Get in Touch</h2>
                    <form class="space-y-6">
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                            <div><label class="block text-sm font-bold text-gray-700 mb-2">Name *</label><input type="text" required class="w-full border border-gray-200 rounded px-4 py-3 outline-none focus:border-brand-red"></div>
                            <div><label class="block text-sm font-bold text-gray-700 mb-2">Email *</label><input type="email" required class="w-full border border-gray-200 rounded px-4 py-3 outline-none focus:border-brand-red"></div>
                        </div>
                        <div><label class="block text-sm font-bold text-gray-700 mb-2">Subject *</label><input type="text" required class="w-full border border-gray-200 rounded px-4 py-3 outline-none focus:border-brand-red"></div>
                        <div><label class="block text-sm font-bold text-gray-700 mb-2">Message *</label><textarea rows="6" required class="w-full border border-gray-200 rounded px-4 py-3 outline-none focus:border-brand-red"></textarea></div>
                        <button type="submit" class="bg-brand-red text-white px-8 py-3 rounded font-bold uppercase tracking-widest hover:bg-red-700 transition-colors">Send Message</button>
                    </form>
                </div>
            </div>
            <div class="space-y-6">
                @foreach([['map-pin','Address','Shop 6 Ozone Plaza, Site/Machine Parts Junction, Abakaliki, Ebonyi state.'],['phone','Phone','09020025723'],['message-circle','WhatsApp','09079472808'],['clock','Hours','Mon – Sat: 8:00 AM – 6:00 PM']] as $info)
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-6 flex items-start space-x-4 hover:shadow-md hover:border-brand-red/30 transition-all">
                    <div class="w-12 h-12 bg-red-50 rounded-full flex items-center justify-center text-brand-red shrink-0"><i data-lucide="{{ $info[0] }}" class="w-6 h-6"></i></div>
                    <div><h4 class="font-bold text-brand-dark mb-1">{{ $info[1] }}</h4><p class="text-sm text-gray-600">{{ $info[2] }}</p></div>
                </div>
                @endforeach
            </div>
        </div>
    </div>
</div>
@endsection
