<section class="estimate-section relative overflow-hidden bg-gradient-to-b from-white via-[#FFF9F5] to-white py-24 lg:py-32">
    <div class="absolute top-20 right-10 w-[500px] h-[500px] bg-gradient-to-bl from-[#FF007A]/5 to-transparent rounded-full blur-3xl"></div>
    <div class="absolute bottom-20 left-10 w-[400px] h-[400px] bg-gradient-to-tr from-[#D87AA8]/5 to-transparent rounded-full blur-3xl"></div>

    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
        <div class="text-center max-w-3xl mx-auto mb-20">
            <span class="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-gradient-to-r from-[#FF007A] to-[#D87AA8] text-white text-xs font-bold uppercase tracking-[0.25em] mb-8 shadow-xl shadow-[#FF007A]/20">
                Free Estimate
            </span>
            <h1 class="text-4xl sm:text-5xl lg:text-6xl font-extrabold text-slate-900 tracking-tight leading-[1.08] mb-6">
                Start Your <span class="text-transparent bg-clip-text bg-gradient-to-r from-[#FF007A] to-[#D87AA8]">Project Today</span>
            </h1>
            <p class="text-base sm:text-lg text-slate-500 leading-relaxed max-w-2xl mx-auto">Select your project type, services, budget and share your details to receive a tailored estimate.</p>
        </div>

        <div class="grid gap-8 lg:grid-cols-2 items-start">
            <div class="relative rounded-[2rem] overflow-hidden shadow-2xl border border-white/60 bg-white">
                <div class="absolute inset-0 bg-gradient-to-tr from-[#FF007A]/10 via-transparent to-[#D87AA8]/10 z-10 mix-blend-overlay"></div>
                <div class="absolute inset-0 bg-gradient-to-t from-black/20 via-transparent to-transparent z-10"></div>
                <img src="<?= htmlspecialchars($baseUrl) ?>/images/slider03.png" alt="Finished interior space" class="w-full h-auto object-cover">
                <div class="absolute -bottom-6 -right-6 w-24 h-24 bg-gradient-to-br from-[#FF007A] to-[#D87AA8] rounded-full blur-2xl opacity-40 z-0"></div>
            </div>

            <div class="relative rounded-[2rem] overflow-hidden shadow-2xl border border-white/60 bg-white p-8 sm:p-10">
                <div class="absolute top-0 left-0 right-0 h-1.5 rounded-t-[2rem] bg-gradient-to-r from-[#FF007A] to-[#D87AA8]"></div>
                
                <div class="relative z-10">
                    <h2 class="text-2xl font-bold text-slate-900 mb-2">Quick Estimate Request</h2>
                    <p class="text-slate-600 mb-8">Fill out the form below and we'll get back to you within 24 hours with a customized quote.</p>
                    
                    <form action="<?= htmlspecialchars($baseUrl) ?>/wizard/submit" method="POST" enctype="multipart/form-data" class="space-y-5">
                        <?= CSRF::input() ?>
                        
                        <div class="grid sm:grid-cols-2 gap-5">
                            <div>
                                <label class="block text-sm font-semibold text-slate-900 mb-2">First Name *</label>
                                <input type="text" name="first_name" required class="w-full rounded-2xl border border-slate-200 bg-slate-50/50 px-4 py-3 text-slate-900 placeholder:text-slate-400 focus:border-[#FF007A] focus:ring-2 focus:ring-[#FF007A]/20 focus:bg-white transition-all" placeholder="John">
                            </div>
                            <div>
                                <label class="block text-sm font-semibold text-slate-900 mb-2">Last Name *</label>
                                <input type="text" name="last_name" required class="w-full rounded-2xl border border-slate-200 bg-slate-50/50 px-4 py-3 text-slate-900 placeholder:text-slate-400 focus:border-[#FF007A] focus:ring-2 focus:ring-[#FF007A]/20 focus:bg-white transition-all" placeholder="Doe">
                            </div>
                        </div>
                        
                        <div class="grid sm:grid-cols-2 gap-5">
                            <div>
                                <label class="block text-sm font-semibold text-slate-900 mb-2">Email *</label>
                                <input type="email" name="email" required class="w-full rounded-2xl border border-slate-200 bg-slate-50/50 px-4 py-3 text-slate-900 placeholder:text-slate-400 focus:border-[#FF007A] focus:ring-2 focus:ring-[#FF007A]/20 focus:bg-white transition-all" placeholder="you@example.com">
                            </div>
                            <div>
                                <label class="block text-sm font-semibold text-slate-900 mb-2">Phone *</label>
                                <input type="tel" name="phone" required class="w-full rounded-2xl border border-slate-200 bg-slate-50/50 px-4 py-3 text-slate-900 placeholder:text-slate-400 focus:border-[#FF007A] focus:ring-2 focus:ring-[#FF007A]/20 focus:bg-white transition-all" placeholder="+233 00 000 0000">
                            </div>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-semibold text-slate-900 mb-2">Service Interested In *</label>
                            <select name="service_type" required class="w-full rounded-2xl border border-slate-200 bg-slate-50/50 px-4 py-3 text-slate-900 focus:border-[#FF007A] focus:ring-2 focus:ring-[#FF007A]/20 focus:bg-white transition-all">
                                <option value="">Select a service</option>
                                <option value="painting">Painting Works</option>
                                <option value="pop_ceiling">POP Ceiling Installation</option>
                                <option value="flooring">Flooring & Tiling</option>
                                <option value="interior_decor">Interior Décor</option>
                                <option value="renovations">Renovations</option>
                                <option value="landscaping">Landscaping</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-semibold text-slate-900 mb-2">Budget Range</label>
                            <select name="budget" class="w-full rounded-2xl border border-slate-200 bg-slate-50/50 px-4 py-3 text-slate-900 focus:border-[#FF007A] focus:ring-2 focus:ring-[#FF007A]/20 focus:bg-white transition-all">
                                <option value="">Select your budget range</option>
                                <option value="under_50k">Under GHS 50,000</option>
                                <option value="50k_100k">GHS 50,000 - GHS 100,000</option>
                                <option value="100k_250k">GHS 100,000 - GHS 250,000</option>
                                <option value="250k_500k">GHS 250,000 - GHS 500,000</option>
                                <option value="above_500k">Above GHS 500,000</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-semibold text-slate-900 mb-2">Project Description *</label>
                            <textarea name="message" rows="4" required class="w-full rounded-2xl border border-slate-200 bg-slate-50/50 px-4 py-3 text-slate-900 placeholder:text-slate-400 focus:border-[#FF007A] focus:ring-2 focus:ring-[#FF007A]/20 focus:bg-white transition-all resize-none" placeholder="Tell us about your project..."></textarea>
                        </div>
                        
                        <div class="flex items-start gap-3">
                            <input type="checkbox" id="consent" name="consent" required class="mt-1 h-4 w-4 rounded border-slate-300 text-[#FF007A] focus:ring-[#FF007A]">
                            <label for="consent" class="text-sm text-slate-600">I agree to be contacted by Balorp Ventures regarding my project inquiry. *</label>
                        </div>
                        
                        <button type="submit" class="inline-flex w-full items-center justify-center gap-2 px-8 py-4 rounded-full bg-gradient-to-r from-[#FF007A] to-[#D87AA8] text-white font-semibold text-base shadow-xl shadow-[#FF007A]/25 hover:shadow-2xl hover:shadow-[#FF007A]/40 hover:-translate-y-1 transition-all duration-300">
                            <span class="material-symbols-outlined text-xl">request_quote</span>
                            Request Free Estimate
                        </button>
                    </form>
                </div>
            </div>
        </div>

        <div class="mt-24 grid gap-8 sm:grid-cols-3">
            <div class="text-center">
                <div class="w-16 h-16 rounded-2xl bg-gradient-to-br from-[#FF007A] to-[#D87AA8] flex items-center justify-center text-white mx-auto mb-5 shadow-xl shadow-[#FF007A]/25">
                    <span class="material-symbols-outlined text-3xl">verified</span>
                </div>
                <h3 class="text-xl font-bold text-slate-900 mb-2">Premium Quality</h3>
                <p class="text-sm text-slate-600">We use only top-tier materials and proven techniques for lasting results.</p>
            </div>
            <div class="text-center">
                <div class="w-16 h-16 rounded-2xl bg-gradient-to-br from-[#FF007A] to-[#D87AA8] flex items-center justify-center text-white mx-auto mb-5 shadow-xl shadow-[#FF007A]/25">
                    <span class="material-symbols-outlined text-3xl">schedule</span>
                </div>
                <h3 class="text-xl font-bold text-slate-900 mb-2">On-Time Delivery</h3>
                <p class="text-sm text-slate-600">Clear timelines and proactive updates keep your project on track.</p>
            </div>
            <div class="text-center">
                <div class="w-16 h-16 rounded-2xl bg-gradient-to-br from-[#FF007A] to-[#D87AA8] flex items-center justify-center text-white mx-auto mb-5 shadow-xl shadow-[#FF007A]/25">
                    <span class="material-symbols-outlined text-3xl">diamond</span>
                </div>
                <h3 class="text-xl font-bold text-slate-900 mb-2">Expert Craftsmanship</h3>
                <p class="text-sm text-slate-600">Our skilled team delivers precision and elegance in every detail.</p>
            </div>
        </div>
    </div>
</section>
