"use client";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ContactText from '@/components/sections/contact/ContactText';
import FaqBase from '@/components/sections/faq/FaqBase';
import FooterBase from '@/components/sections/footer/FooterBase';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="slide-background"
      defaultTextAnimation="background-highlight"
      borderRadius="sharp"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeMediumTitles"
      background="circleGradient"
      cardStyle="outline"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="GoGoToMe"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Fleet", id: "/fleet" },
            { name: "Pricing", id: "/pricing" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Book Now",
            href: "/booking"
          }}
        />
      </div>

      <div id="contact-main" data-section="contact-main">
        <ContactText
          text="Ready for your next adventure? Contact our team today and book your perfect vehicle."
          animationType="entrance-slide"
          buttons={[
            { text: "Get in Touch", href: "mailto:support@gogotome.com" },
            { text: "Book Now", href: "/booking" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact-faq" data-section="contact-faq">
        <FaqBase
          title="Need Help? We're Here"
          description="Find answers to common questions or contact our support team for personalized assistance."
          tag="Support"
          faqs={[
            {
              id: "1",
              title: "How can I contact customer support?",
              content: "Our 24/7 support team is available via phone at 1-800-GOGOTOME, email at support@gogotome.com, or through our live chat feature on the website and mobile app."
            },
            {
              id: "2",
              title: "What if I have an emergency during my rental?",
              content: "For emergencies, call our 24/7 emergency hotline at 1-800-GOGO-911. We provide immediate roadside assistance, replacement vehicles, and emergency support services."
            },
            {
              id: "3",
              title: "Can I modify my booking after confirmation?",
              content: "Yes! You can modify your booking through your account dashboard, mobile app, or by contacting our support team. Some modifications may be subject to availability and rate changes."
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="smooth"
          showCard={true}
        />
      </div>

      <FooterBase
        logoText="GoGoToMe"
        copyrightText="© 2025 GoGoToMe Car Rentals. All rights reserved."
        columns={[
          {
            title: "Product",
            items: [
              { label: "Browse Fleet", href: "/fleet" },
              { label: "Pricing Plans", href: "/pricing" },
              { label: "Insurance Options", href: "#" },
              { label: "Book Now", href: "/booking" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Careers", href: "#" },
              { label: "Blog", href: "#" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "Help Center", href: "#" },
              { label: "FAQs", href: "/faq" },
              { label: "Track Rental", href: "#" },
              { label: "Support 24/7", href: "#" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}