"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import AboutMetric from "@/components/sections/about/AboutMetric";
import MetricCardThree from "@/components/sections/metrics/MetricCardThree";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import { Phone, MapPin, Clock, Mail } from "lucide-react";

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "Reviews", id: "/reviews" },
    { name: "Gallery", id: "/gallery" },
    { name: "Contact", id: "/contact" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSmall"
      background="circleGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="Dynamite Plumbing"
          bottomLeftText="Hunt County, TX"
          bottomRightText="+1 469-410-2657"
        />
      </div>

      {/* Main Contact Form */}
      <div id="contact-form" data-section="contact-form">
        <ContactSplitForm
          title="Get in Touch"
          description="Have a plumbing issue? Need a free estimate? Contact our team today. We're ready to help with fast, reliable service."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Full Name", required: true },
            { name: "phone", type: "tel", placeholder: "Phone Number", required: true },
            { name: "email", type: "email", placeholder: "Email Address", required: true },
            { name: "service_type", type: "text", placeholder: "Type of Service Needed", required: false },
          ]}
          textarea={{
            name: "message",            placeholder: "Describe your plumbing issue or request...",            rows: 5,
            required: true,
          }}
          buttonText="Send Message"
          useInvertedBackground={false}
          mediaAnimation="slide-up"
          mediaPosition="right"
          imageSrc="http://img.b2bpic.net/free-photo/man-installs-heating-system-house-checks-pipes-with-wrench_169016-55834.jpg"
          imageAlt="Professional plumber ready to assist"
          ariaLabel="Contact form"
          onSubmit={(data) => {
            console.log("Contact form submitted:", data);
          }}
        />
      </div>

      {/* Contact Information */}
      <div id="contact-info" data-section="contact-info">
        <MetricCardThree
          title="Contact Information"
          description="Multiple ways to reach our team"
          metrics={[
            { id: "1", icon: Phone, title: "Call Us", value: "469-410-2657" },
            { id: "2", icon: MapPin, title: "Location", value: "Hunt County, TX" },
            { id: "3", icon: Clock, title: "Hours", value: "24/7 Service" },
            { id: "4", icon: Mail, title: "Email", value: "hello@dynamite.com" },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          ariaLabel="Contact information section"
        />
      </div>

      {/* Response Time & Availability */}
      <div id="availability" data-section="availability">
        <AboutMetric
          title="We're Here When You Need Us"
          metrics={[
            { icon: Clock, label: "Emergency Response", value: "Within 1 Hour" },
            { icon: Phone, label: "Availability", value: "24/7 Service" },
            { icon: MapPin, label: "Service Area", value: "Hunt County, TX" },
            { icon: Mail, label: "Fast Reply", value: "Same Day" },
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
          ariaLabel="Availability and response time section"
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Dynamite Plumbing"
          leftLink={{ text: "Privacy Policy", href: "/" }}
          rightLink={{ text: "Terms of Service", href: "/" }}
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}