"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactForm from "@/components/form/ContactForm";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { MessageCircle } from "lucide-react";

export default function ContactUsPage() {
  const commonNavItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/#services" },
    { name: "About", id: "/#about" },
    { name: "Reviews", id: "/#reviews" },
    { name: "Contact", id: "/contact-us" }
  ];

  const footerColumns = [
    {
      items: [
        { label: "Home", href: "/" },
        { label: "Services", href: "/#services" },
        { label: "About", href: "/#about" },
        { label: "Reviews", href: "/#reviews" },
        { label: "Contact", href: "/contact-us" }
      ]
    },
    {
      items: [
        { label: "Greater Victoria, BC", href: "#" },
        { label: "Phone: (XXX) XXX-XXXX", href: "tel:XXX-XXX-XXXX" },
        { label: "Email: info@prizmhvac.com", href: "mailto:info@prizmhvac.com" },
        { label: "Hours: Mon-Fri, 8 AM - 5 PM", href: "#" }
      ]
    }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="compact"
      sizing="mediumLarge"
      background="noise"
      cardStyle="layered-gradient"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <ReactLenis root>
        <div id="nav" data-section="nav">
          <NavbarStyleApple
            navItems={commonNavItems}
            brandName="Prizm Heating & Ventilation"
          />
        </div>

        <div id="contact-form-section" data-section="contact-form-section">
          <ContactForm
            tag="Get an Estimate"
            tagIcon={MessageCircle}
            title="Request Your HVAC Estimate"
            description="Tell us about your project details, and we'll get back to you with a detailed estimate."
            inputPlaceholder="Your Email"
            buttonText="Submit Request"
            termsText="By submitting, you agree to our Privacy Policy."
            onSubmit={(email) => console.log("Estimate requested for:", email)}
          />
        </div>

        <div id="footer" data-section="footer">
          <FooterLogoEmphasis
            columns={footerColumns}
            logoText="Prizm Heating & Ventilation"
          />
        </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
