"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { HelpCircle } from "lucide-react";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import FooterBase from '@/components/sections/footer/FooterBase';

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="largeSmallSizeLargeTitles"
      background="plain"
      cardStyle="gradient-mesh"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Local Brewery"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Our Beers", id: "/products" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Visit Us",
            href: "/contact"
          }}
        />
      </div>

      <div id="contact" data-section="contact" className="mx-auto px-4 md:px-6">
        <ContactSplitForm
          title="Get In Touch"
          description="Have questions about our beers or want to schedule a brewery tour? We'd love to hear from you! Fill out the form and our team will get back to you within 24 hours."
          useInvertedBackground="noInvert"
          mediaPosition="right"
          imageSrc="https://img.b2bpic.net/free-photo/close-up-bar-tender-filling-beer-from-bar-pump_107420-65349.jpg"
          imageAlt="Local brewery storefront and location"
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "email", type: "email", placeholder: "Email Address", required: true },
            { name: "subject", type: "text", placeholder: "Subject", required: true }
          ]}
          textarea={{
            name: "message",
            placeholder: "Tell us about your interest in our brewery...",
            rows: 5,
            required: true
          }}
          buttonText="Send Message"
        />
      </div>

      <div id="faq" data-section="faq" className="mx-auto px-4 md:px-6">
        <FaqSplitMedia
          title="Frequently Asked Questions"
          description="Find answers to common questions about our brewery, beers, and brewery experiences."
          tag="Help & Support"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          mediaPosition="left"
          imageSrc="https://img.b2bpic.net/free-photo/close-up-hand-pouring-beer-glass_23-2148872415.jpg"
          imageAlt="Brewery tasting event and customer experience"
          animationType="smooth"
          faqs={[
            {
              id: "1",
              title: "What makes your beers different?",
              content: "Our beers are crafted using locally-sourced ingredients and time-honored brewing techniques. Every batch is carefully monitored for quality and taste consistency, ensuring you get the same exceptional beer every time."
            },
            {
              id: "2",
              title: "Do you offer brewery tours?",
              content: "Yes! We offer guided brewery tours on weekends. Visitors can see our brewing facility, learn about the brewing process, and enjoy a tasting of our signature beers. Tours are available by appointment."
            },
            {
              id: "3",
              title: "Where can I buy your beers?",
              content: "Our beers are available at our brewery taproom and through select local retailers. You can also order online for local delivery. Check our website for a complete list of locations."
            },
            {
              id: "4",
              title: "Are your beers available year-round?",
              content: "Our core signature beers are available year-round, while seasonal and limited edition brews rotate throughout the year. Sign up for our newsletter to stay updated on new releases."
            },
            {
              id: "5",
              title: "Do you offer private events?",
              content: "Absolutely! We host private events, parties, and corporate gatherings at our brewery. Our team can customize beer selections and create memorable experiences for your group."
            }
          ]}
        />
      </div>

      <FooterBase
        logoText="Local Brewery"
        copyrightText="© 2025 Local Brewery. All rights reserved."
        columns={[
          {
            title: "Product",
            items: [
              { label: "Our Beers", href: "/products" },
              { label: "Seasonal Releases", href: "/products" },
              { label: "Gift Sets", href: "/products" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Story", href: "/about" },
              { label: "Sustainability", href: "/about" },
              { label: "Careers", href: "/about" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Brewery Tours", href: "/contact" },
              { label: "Events", href: "/contact" },
              { label: "FAQ", href: "/faq" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}