"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import { Instagram, Facebook } from "lucide-react";

export default function ContactPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="expand-hover"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="medium"
        sizing="largeSmallSizeLargeTitles"
        background="blurBottom"
        cardStyle="soft-shadow"
        primaryButtonStyle="radial-glow"
        secondaryButtonStyle="solid"
        headingFontWeight="bold"
    >
      <ReactLenis root>
        <div id="nav" data-section="nav">
            <NavbarLayoutFloatingInline
            navItems={[
              { name: "Home", id: "/" },
              { name: "Our Premium Fleet", id: "/fleet" },
              { name: "Contact us", id: "/contact-us" },
            ]}
            brandName="CleanScene"
            logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Cr9i1HT3S4vLNiV9XJ6S4fk81W/uploaded-1777837799704-b8guhfm1.png"
            logoAlt="CleanScene Logo"
            button={{ text: "Get My Free Estimate", href: "/estimate" }}
            className="py-2"
          />
        </div>

        <div id="contact" data-section="contact">
            <ContactSplitForm
            useInvertedBackground={false}
            title="Request a Free Estimate"
            titleClassName="text-[#0a7039]"
            description="Tell us about your event. We typically respond within 4 business hours."
            inputs={[
              { name: "name", type: "text", placeholder: "Full Name", required: true },
              { name: "email", type: "email", placeholder: "Email Address", required: true },
            ]}
            textarea={{ name: "message", placeholder: "Tell us about your event details...", rows: 4 }}
            imageSrc="http://img.b2bpic.net/free-photo/happy-event-manager-banquet-hall_23-2148085332.jpg"
          />
        </div>

        <div id="footer" data-section="footer">
            <div className="flex flex-col items-center py-8">
              <div className="flex items-center mb-4 gap-4">
                <a href="https://www.instagram.com/cleanscene" target="_blank" rel="noopener noreferrer" aria-label="Follow CleanScene on Instagram" className="text-[#0a7039] hover:opacity-80 transition-opacity">
                  <Instagram size={24} />
                </a>
                <a href="https://www.facebook.com/people/CleanScene-Restroom-Rentals/61588358724791/?name=xhp_nt__fb__action__open_user" target="_blank" rel="noopener noreferrer" aria-label="CleanScene Restroom Rentals on Facebook" className="text-[#0a7039] hover:opacity-80 transition-opacity">
                  <Facebook size={24} />
                </a>
              </div>
              <FooterLogoEmphasis
                columns={[
                  { items: [{ label: "Home", href: "/" }, { label: "Our Premium Fleet", href: "/fleet" }, { label: "Get My Free Estimate", href: "/estimate" }] },
                  { items: [{ label: "Contact Us", href: "/contact-us" }, { label: "Privacy Policy", href: "/privacy" }, { label: "Terms and Conditions", href: "/terms" }] },
                ]}
                logoText="CleanScene"
              />
            </div>
        </div>
      </ReactLenis>
    </ThemeProvider>
  );
}