"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FaqBase from "@/components/sections/faq/FaqBase";
import FooterMedia from "@/components/sections/footer/FooterMedia";
import Link from "next/link";

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="noise"
      cardStyle="soft-shadow"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={[
            { name: "Home", id: "home" },
            { name: "Services", id: "services" },
            { name: "About", id: "about" },
            { name: "FAQ", id: "faq" },
            { name: "Contact", id: "contact" },
          ]}
          button={{
            text: "Request Service",
            href: "/contact",
          }}
          brandName="Schneider Plumbing & Heating"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Request Service or Get in Touch"
          description="Contact Schneider Plumbing & Heating today for emergency service or to schedule an appointment. Fill out the form or call us directly for immediate assistance."
          inputs={[
            {
              name: "name",
              type: "text",
              placeholder: "Your Name",
              required: true,
            },
            {
              name: "phone",
              type: "tel",
              placeholder: "Phone Number",
              required: true,
            },
            {
              name: "email",
              type: "email",
              placeholder: "Email Address",
              required: true,
            },
            {
              name: "service",
              type: "text",
              placeholder: "Service Type (e.g., Emergency, Water Heater, Furnace)",
              required: true,
            },
          ]}
          textarea={{
            name: "message",
            placeholder: "Describe your plumbing or heating issue...",
            rows: 5,
            required: true,
          }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/person-office-analyzing-checking-finance-graphs_23-2150377161.jpg"
          imageAlt="professional plumbing office background"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Request Service"
          onSubmit={(data) => console.log("Form submitted:", data)}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Find answers to common questions about our plumbing and heating services."
          tag="FAQ"
          faqs={[
            {
              id: "1",
              title: "Do you offer emergency plumbing service?",
              content: "Yes! We offer 24/7 emergency plumbing service. When you have an urgent issue like a burst pipe or major leak, call us immediately and we'll send a technician as quickly as possible.",
            },
            {
              id: "2",
              title: "How quickly can you respond to an emergency?",
              content: "We prioritize emergency calls and typically respond within 1-2 hours depending on your location and current workload. We serve the local area and maintain a fleet of service vehicles for rapid response.",
            },
            {
              id: "3",
              title: "What types of water heaters do you service?",
              content: "We repair and install all major types of water heaters including tank-style gas and electric, tankless water heaters, and hybrid systems. We can help you choose the right system for your home and budget.",
            },
            {
              id: "4",
              title: "Do you offer financing options?",
              content: "Yes, we work with several financing partners to help make larger repairs and installations more affordable. Ask about our available financing options when you call.",
            },
            {
              id: "5",
              title: "Are your estimates free?",
              content: "Yes! We provide free estimates on all plumbing and heating work. We'll explain what needs to be done and give you a clear price before we start any work.",
            },
            {
              id: "6",
              title: "Do you guarantee your work?",
              content: "Absolutely. We stand behind our work with quality guarantees. If you're not satisfied with any repair or installation, we'll make it right.",
            },
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="http://img.b2bpic.net/free-photo/full-shot-man-working-as-plumber_23-2150746297.jpg?_wi=10"
          imageAlt="professional plumbing team working together"
          columns={[
            {
              title: "Services",
              items: [
                { label: "Emergency Plumbing", href: "/" },
                { label: "Water Heater Repair", href: "/" },
                { label: "Heating & Furnace", href: "/" },
                { label: "Drain Issues", href: "/" },
              ],
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "/about" },
                { label: "Contact", href: "/contact" },
                { label: "FAQ", href: "/contact" },
                { label: "Service Areas", href: "#" },
              ],
            },
            {
              title: "Legal",
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Licenses & Certifications", href: "#" },
                { label: "Contact Us", href: "/contact" },
              ],
            },
          ]}
          logoText="Schneider Plumbing & Heating"
          copyrightText="© 2025 Schneider Plumbing & Heating. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}