@extends('layouts.app')

@section('title', 'Contact Us - NRT SA Luxury Van Rentals')
@section('description', 'Get in touch with NRT SA for luxury van rentals in Centurion. Contact us via phone, WhatsApp, or email for bookings and inquiries.')

@section('content')
    <!-- Hero Section -->
    <section class="py-16 luxury-gradient">
        <div class="max-w-4xl mx-auto text-center px-4">
            <div class="glass-card p-8 rounded-2xl floating-card">
                <h1 class="text-4xl md:text-5xl font-bold text-white mb-6 font-display text-glow">Contact Us</h1>
                <p class="text-xl text-gray-300 font-body">Get in touch for luxury transportation services</p>
            </div>
        </div>
    </section>

    <!-- Contact Information -->
    <section class="py-16">
        <div class="max-w-7xl mx-auto px-4">
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-12">
                <!-- Contact Details -->
                <div>
                    <div class="glass-card p-6 rounded-xl mb-8">
                        <h2 class="text-3xl font-bold text-white mb-6 font-display text-glow">Get In Touch</h2>
                        <p class="text-lg text-gray-300 mb-8 font-body">
                            Ready to experience luxury transportation? Contact us today for bookings, inquiries, or to discuss your specific needs.
                        </p>
                    </div>

                    <div class="space-y-6">
                        <div class="flex items-start">
                            <div class="icon-bg w-12 h-12 rounded-full flex items-center justify-center mr-4 flex-shrink-0">
                                <i class="fas fa-phone text-white"></i>
                            </div>
                            <div>
                                <h3 class="text-lg font-semibold text-white mb-1 font-display">Phone</h3>
                                <p class="text-gray-300 font-body">+27 64 534 3176</p>
                                <p class="text-sm text-gray-400 font-body">Available 24/7</p>
                            </div>
                        </div>

                        <div class="flex items-start">
                            <div class="icon-bg w-12 h-12 rounded-full flex items-center justify-center mr-4 flex-shrink-0">
                                <i class="fas fa-envelope text-white"></i>
                            </div>
                            <div>
                                <h3 class="text-lg font-semibold text-white mb-1 font-display">Email</h3>
                                <p class="text-gray-300 font-body">sales@clickmart.co.za</p>
                                <p class="text-sm text-gray-400 font-body">We'll respond within 24 hours</p>
                            </div>
                        </div>

                        <div class="flex items-start">
                            <div class="icon-bg w-12 h-12 rounded-full flex items-center justify-center mr-4 flex-shrink-0">
                                <i class="fas fa-map-marker-alt text-white"></i>
                            </div>
                            <div>
                                <h3 class="text-lg font-semibold text-white mb-1 font-display">Location</h3>
                                <p class="text-gray-300 font-body">Centurion, South Africa</p>
                                <p class="text-sm text-gray-400 font-body">Serving the greater Pretoria area</p>
                            </div>
                        </div>

                        <div class="flex items-start">
                            <div class="icon-bg w-12 h-12 rounded-full flex items-center justify-center mr-4 flex-shrink-0">
                                <i class="fas fa-clock text-white"></i>
                            </div>
                            <div>
                                <h3 class="text-lg font-semibold text-white mb-1 font-display">Business Hours</h3>
                                <p class="text-gray-300 font-body">Always Open</p>
                                <p class="text-sm text-gray-400 font-body">24/7 availability for your convenience</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Contact Form -->
                <div>
                    <div class="glass-card p-6 rounded-xl">
                        <h2 class="text-2xl font-bold text-white mb-6 font-display text-glow">Send Us a Message</h2>

                        @if(session('success'))
                            <div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded mb-6">
                                {{ session('success') }}
                            </div>
                        @endif

                        <form method="POST" action="{{ route('contact.send') }}" class="space-y-6">
                            @csrf

                            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                                <div>
                                    <label for="name" class="block text-sm font-medium text-gray-300 mb-2 font-body">Name</label>
                                    <input type="text" id="name" name="name" required
                                           class="w-full px-4 py-3 rounded-lg bg-white/10 border border-white/20 text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-white/50 focus:border-transparent backdrop-blur-sm">
                                    @error('name')
                                        <p class="text-red-400 text-sm mt-1">{{ $message }}</p>
                                    @enderror
                                </div>

                                <div>
                                    <label for="email" class="block text-sm font-medium text-gray-300 mb-2 font-body">Email</label>
                                    <input type="email" id="email" name="email" required
                                           class="w-full px-4 py-3 rounded-lg bg-white/10 border border-white/20 text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-white/50 focus:border-transparent backdrop-blur-sm">
                                    @error('email')
                                        <p class="text-red-400 text-sm mt-1">{{ $message }}</p>
                                    @enderror
                                </div>
                            </div>

                            <div>
                                <label for="phone" class="block text-sm font-medium text-gray-300 mb-2 font-body">Phone</label>
                                <input type="tel" id="phone" name="phone"
                                       class="w-full px-4 py-3 rounded-lg bg-white/10 border border-white/20 text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-white/50 focus:border-transparent backdrop-blur-sm">
                                @error('phone')
                                    <p class="text-red-400 text-sm mt-1">{{ $message }}</p>
                                @enderror
                            </div>

                            <div>
                                <label for="subject" class="block text-sm font-medium text-gray-300 mb-2 font-body">Subject</label>
                                <input type="text" id="subject" name="subject" required
                                       class="w-full px-4 py-3 rounded-lg bg-white/10 border border-white/20 text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-white/50 focus:border-transparent backdrop-blur-sm">
                                @error('subject')
                                    <p class="text-red-400 text-sm mt-1">{{ $message }}</p>
                                @enderror
                            </div>

                            <div>
                                <label for="message" class="block text-sm font-medium text-gray-300 mb-2 font-body">Message</label>
                                <textarea id="message" name="message" rows="5" required
                                          class="w-full px-4 py-3 rounded-lg bg-white/10 border border-white/20 text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-white/50 focus:border-transparent backdrop-blur-sm resize-none"></textarea>
                                @error('message')
                                    <p class="text-red-400 text-sm mt-1">{{ $message }}</p>
                                @enderror
                            </div>

                            <button type="submit" class="btn-primary w-full justify-center shimmer">
                                <i class="fas fa-paper-plane"></i>
                                <span>Send Message</span>
                            </button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Quick Contact -->
    <section class="py-16">
        <div class="max-w-7xl mx-auto px-4">
            <div class="text-center mb-12">
                <div class="glass-card p-6 rounded-xl mb-6">
                    <h2 class="text-3xl md:text-4xl font-bold text-white mb-4 font-display text-glow">Quick Contact Options</h2>
                    <p class="text-xl text-gray-300 font-body">Choose your preferred way to get in touch</p>
                </div>
            </div>

            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="glass-card p-6 rounded-xl text-center floating-card">
                    <div class="icon-bg w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
                        <i class="fas fa-phone text-2xl text-white"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-2 text-white font-display text-glow">Call Us</h3>
                    <p class="text-gray-300 mb-4 font-body">Speak directly with our team</p>
                    <a href="tel:+27645343176" class="btn-primary shimmer">
                        <i class="fas fa-phone"></i>
                        <span>Call Now</span>
                    </a>
                </div>

                <div class="glass-card p-6 rounded-xl text-center floating-card" style="animation-delay: 0.5s;">
                    <div class="icon-bg w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
                        <i class="fab fa-whatsapp text-2xl text-white"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-2 text-white font-display text-glow">WhatsApp</h3>
                    <p class="text-gray-300 mb-4 font-body">Quick messaging for instant responses</p>
                    <a href="https://wa.me/27645343176" target="_blank" class="btn-success shimmer">
                        <i class="fab fa-whatsapp"></i>
                        <span>WhatsApp Us</span>
                    </a>
                </div>

                <div class="glass-card p-6 rounded-xl text-center floating-card" style="animation-delay: 1s;">
                    <div class="icon-bg w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
                        <i class="fas fa-calendar-check text-2xl text-white"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-2 text-white font-display text-glow">Book Online</h3>
                    <p class="text-gray-300 mb-4 font-body">Reserve your luxury vehicle instantly</p>
                    <a href="{{ route('bookings.index') }}" class="btn-info shimmer">
                        <i class="fas fa-calendar-check"></i>
                        <span>Book Now</span>
                    </a>
                </div>
            </div>
        </div>
    </section>

    <!-- Service Area -->
    <section class="py-16">
        <div class="max-w-7xl mx-auto px-4">
            <div class="text-center mb-12">
                <div class="glass-card p-6 rounded-xl mb-6">
                    <h2 class="text-3xl md:text-4xl font-bold text-white mb-4 font-display text-glow">Service Area</h2>
                    <p class="text-xl text-gray-300 font-body">We serve the greater Pretoria and Johannesburg areas</p>
                </div>
            </div>

            <div class="glass-card p-8 rounded-xl">
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
                    <div class="text-center">
                        <div class="icon-bg w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3">
                            <i class="fas fa-map-marker-alt text-white"></i>
                        </div>
                        <h3 class="font-semibold text-white mb-1 font-display">Centurion</h3>
                        <p class="text-gray-300 text-sm font-body">Our home base</p>
                    </div>

                    <div class="text-center">
                        <div class="icon-bg w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3">
                            <i class="fas fa-city text-white"></i>
                        </div>
                        <h3 class="font-semibold text-white mb-1 font-display">Pretoria</h3>
                        <p class="text-gray-300 text-sm font-body">Capital city service</p>
                    </div>

                    <div class="text-center">
                        <div class="icon-bg w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3">
                            <i class="fas fa-building text-white"></i>
                        </div>
                        <h3 class="font-semibold text-white mb-1 font-display">Johannesburg</h3>
                        <p class="text-gray-300 text-sm font-body">Greater JHB area</p>
                    </div>

                    <div class="text-center">
                        <div class="icon-bg w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3">
                            <i class="fas fa-plane text-white"></i>
                        </div>
                        <h3 class="font-semibold text-white mb-1 font-display">Airports</h3>
                        <p class="text-gray-300 text-sm font-body">OR Tambo & Lanseria</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- CTA Section -->
    <section class="py-16 luxury-gradient">
        <div class="max-w-4xl mx-auto text-center px-4">
            <div class="glass-card p-8 rounded-2xl floating-card">
                <h2 class="text-3xl md:text-4xl font-bold text-white mb-6 font-display text-glow">
                    Ready to Experience Luxury?
                </h2>
                <p class="text-xl text-gray-300 mb-8 font-body">
                    Contact us today to book your Mercedes V-Class and enjoy premium transportation
                </p>
                <div class="flex flex-col sm:flex-row gap-4 justify-center">
                    <a href="{{ route('bookings.index') }}" class="btn-primary shimmer">
                        <i class="fas fa-calendar-check"></i>
                        <span>Book Now</span>
                    </a>
                    <a href="https://wa.me/27645343176" target="_blank" class="btn-success shimmer">
                        <i class="fab fa-whatsapp"></i>
                        <span>WhatsApp Us</span>
                    </a>
                </div>
            </div>
        </div>
    </section>
@endsection
