"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import PricingCardNine from "@/components/sections/pricing/PricingCardNine";
import FaqDouble from "@/components/sections/faq/FaqDouble";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterMedia from "@/components/sections/footer/FooterMedia";
import { DollarSign, HelpCircle } from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "Services", id: "/services" },
  { name: "Pricing", id: "/pricing" },
  { name: "Gallery", id: "/gallery" },
  { name: "Contact", id: "#contact" },
];

const pricingPlans = [
  {
    id: "basic",
    title: "Basic Clean",
    price: "Starting at $89",
    period: "per vehicle",
    imageSrc: "http://img.b2bpic.net/free-photo/close-up-car-care-process_23-2149193171.jpg",
    imageAlt: "Basic Clean package",
    button: { text: "Book Now", href: "#contact" },
    features: ["Exterior wash and dry", "Tire shine", "Window cleaning", "Quick vacuum interior"],
  },
  {
    id: "interior-refresh",
    title: "Interior Refresh",
    price: "Starting at $149",
    period: "per vehicle",
    imageSrc: "http://img.b2bpic.net/free-photo/young-man-washing-car-carwash-station-outdoor_651396-2004.jpg",
    imageAlt: "Interior Refresh package",
    button: { text: "Book Now", href: "#contact" },
    features: ["Complete interior vacuum", "Carpet and upholstery cleaning", "Dashboard cleaning", "Interior protectant"],
  },
  {
    id: "exterior-shine",
    title: "Exterior Shine",
    price: "Starting at $179",
    period: "per vehicle",
    imageSrc: "http://img.b2bpic.net/free-photo/man-washing-car-carwash-station-wearing-orange-vest_651396-2793.jpg",
    imageAlt: "Exterior Shine package",
    button: { text: "Book Now", href: "#contact" },
    features: ["Professional wash and dry", "Clay bar decontamination", "Premium wax application", "Trim and tire conditioning"],
  },
  {
    id: "full-detail",
    title: "Full Detail",
    price: "Starting at $299",
    period: "per vehicle",
    imageSrc: "http://img.b2bpic.net/free-photo/man-polishing-car-with-orbital-applicator_1303-30576.jpg",
    imageAlt: "Full Detail package - Most Popular",
    button: { text: "Book Now", href: "#contact" },
    features: ["Complete interior detailing", "Professional exterior detailing", "Paint protection", "Engine bay cleaning", "Leather conditioning", "Interior protectant"],
  },
  {
    id: "ceramic-package",
    title: "Ceramic Coating",
    price: "Starting at $499",
    period: "per vehicle",
    imageSrc: "http://img.b2bpic.net/free-photo/man-working-car-detailing-coating-car_1303-30596.jpg",
    imageAlt: "Ceramic Coating package",
    button: { text: "Book Now", href: "#contact" },
    features: ["Full detail package included", "Professional ceramic coating", "Multi-year paint protection", "Hydrophobic finish", "Free 6-month inspection"],
  },
];

const faqs = [
  { id: "1", title: "How are your prices determined?", content: "Our pricing is based on vehicle size, condition, and service type. Final quotes depend on the specific needs of your vehicle. Contact us for a personalized quote." },
  { id: "2", title: "Do you offer package discounts?", content: "Yes! We offer volume discounts for multiple vehicles, recurring service discounts, and loyalty rewards. Contact us to discuss custom packages for your needs." },
  { id: "3", title: "Is there a mobile service fee?", content: "Our service area includes a 15-mile radius from our location with no additional travel fees. For locations outside this radius, a small travel surcharge may apply." },
];

const footerColumns = [
  {
    title: "Services",
    items: [
      { label: "Interior Detailing", href: "/services" },
      { label: "Exterior Detailing", href: "/services" },
      { label: "Paint Correction", href: "/services" },
      { label: "Ceramic Coating", href: "/services" },
      { label: "Fleet Detailing", href: "/services" },
    ],
  },
  {
    title: "Company",
    items: [
      { label: "Home", href: "/" },
      { label: "About Us", href: "/about" },
      { label: "Gallery", href: "/gallery" },
      { label: "Pricing", href: "/pricing" },
      { label: "Contact", href: "#contact" },
    ],
  },
  {
    title: "Contact",
    items: [
      { label: "Call: (###) ###-####", href: "tel:+1-###-###-####" },
      { label: "Text Us", href: "sms:+1-###-###-####" },
      { label: "Email: info@eliteautodetailing.com", href: "mailto:info@eliteautodetailing.com" },
      { label: "Service Area: [City/Region]", href: "#" },
      { label: "Hours: Mon-Sun, By Appointment", href: "#" },
    ],
  },
];

export default function PricingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="small"
      sizing="mediumLargeSizeMediumTitles"
      background="fluid"
      cardStyle="gradient-bordered"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "Pricing", id: "/pricing" },
            { name: "Gallery", id: "/gallery" },
            { name: "Contact", id: "#contact" },
          ]}
          brandName="Elite Auto Detailing"
          bottomLeftText="Professional Auto Detailing"
          bottomRightText="(###) ###-#### or text us"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardNine
          title="Transparent Pricing for Every Budget"
          description="Choose the package that fits your needs. Final pricing depends on vehicle size and condition. All prices include professional-grade products and expert service."
          tag="Pricing & Packages"
          tagIcon={DollarSign}
          tagAnimation="slide-up"
          plans={pricingPlans}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "Schedule Your Detail Today", href: "#contact" }]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="pricing-faq" data-section="pricing-faq">
        <FaqDouble
          title="Pricing FAQs"
          description="Common questions about our pricing, packages, and special offers."
          tag="Questions"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          faqs={faqs}
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          animationType="smooth"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Get Your Custom Quote"
          description="Every vehicle is unique. Contact us to discuss your specific detailing needs and get a personalized quote. Our team is ready to help."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "phone", type: "tel", placeholder: "(###) ###-####", required: true },
            { name: "email", type: "email", placeholder: "your@email.com", required: true },
            { name: "vehicleType", type: "text", placeholder: "Vehicle Type (Car, Truck, SUV, etc.)", required: true },
          ]}
          textarea={{ name: "message", placeholder: "Tell us about your vehicle and what services you're interested in...", rows: 4, required: true }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/close-up-car-care-process_23-2149193588.jpg"
          imageAlt="Professional detailing equipment"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Request Quote"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="http://img.b2bpic.net/free-photo/luxury-car-interior-brown-black-colors_181624-31177.jpg"
          imageAlt="Elite Auto Detailing showcase"
          logoText="Elite Auto Detailing & Mobile Services LLC"
          copyrightText="© 2025 Elite Auto Detailing & Mobile Services LLC. All rights reserved."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}