"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import TextAbout from '@/components/sections/about/TextAbout';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Instagram, Facebook, Hash } from 'lucide-react';

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumLarge"
      sizing="large"
      background="circleGradient"
      cardStyle="soft-shadow"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Jasmin"
          navItems={[
            { name: "Home", id: "/" },
            { name: "About", id: "/about" },
            { name: "Portfolio", id: "/portfolio" },
            { name: "Services", id: "/services" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Book Now",            href: "/contact"
          }}
        />
      </div>

      <div id="contact-form" data-section="contact-form">
        <ContactSplitForm
          title="Get In Touch"
          description="Ready to bring your floral vision to life? Contact us to discuss your event or arrangement needs."
          inputs={[
            { name: "fullName", type: "text", placeholder: "Your Full Name", required: true },
            { name: "email", type: "email", placeholder: "Your Email Address", required: true },
            { name: "eventType", type: "text", placeholder: "Event Type (Wedding, Corporate, Other)", required: true },
            { name: "eventDate", type: "date", placeholder: "Planned Event Date", required: true }
          ]}
          textarea={{
            name: "message",            placeholder: "Tell us about your floral vision and any specific preferences",            rows: 5,
            required: true
          }}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/assorted-flower-arrangement-vase_209848-94.jpg"
          imageAlt="Florist workspace"
          mediaPosition="right"
          buttonText="Send Request"
          onSubmit={(data) => console.log('Form submitted:', data)}
        />
      </div>

      <div id="contact-info" data-section="contact-info">
        <TextAbout
          title="We're here to help bring your floral dreams to life. Whether you're planning a wedding, corporate event, or need regular arrangements, our team is ready to create something beautiful just for you."
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "View Our Work", href: "/portfolio" },
            { text: "Our Services", href: "/services" }
          ]}
        />
      </div>

      <div id="contact-availability" data-section="contact-availability">
        <TextAbout
          title="Studio hours: Tuesday through Saturday, 9 AM to 6 PM. We offer flexible consultation scheduling including evenings and weekends by appointment. Same-day delivery available for orders placed before 2 PM."
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Schedule Call", href: "tel:+1-555-JASMIN" },
            { text: "Email Us", href: "mailto:hello@jasminflowers.com" }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="Jasmin"
          copyrightText="© 2024 Jasmin Flowers Studio. All rights reserved."
          socialLinks={[
            { icon: Instagram, href: "https://instagram.com/jasminflowers", ariaLabel: "Instagram" },
            { icon: Facebook, href: "https://facebook.com/jasminflowers", ariaLabel: "Facebook" },
            { icon: Hash, href: "https://pinterest.com/jasminflowers", ariaLabel: "Pinterest" }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}