"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FaqSplitText from "@/components/sections/faq/FaqSplitText";
import FooterCard from "@/components/sections/footer/FooterCard";
import { Facebook, Instagram, MessageCircle } from "lucide-react";

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Products", id: "/products" },
    { name: "About", id: "/about" },
    { name: "Contact", id: "/contact" },
    { name: "WhatsApp", id: "https://wa.me/1234567890" },
  ];

  const handleContactSubmit = (data: Record<string, string>) => {
    console.log("Contact form submitted:", data);
  };

  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="small"
      sizing="largeSmallSizeMediumTitles"
      background="blurBottom"
      cardStyle="glass-elevated"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="NS"
          bottomLeftText="Premium Tailoring Supplies"
          bottomRightText="contact@nstailoring.com"
        />
      </div>

      <div id="contact-form" data-section="contact-form">
        <ContactSplitForm
          title="Get in Touch with NS"
          description="Have questions about our products or need a quote? Reach out to us and our team will respond promptly. We're here to support your tailoring business."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "email", type: "email", placeholder: "Your Email", required: true },
            { name: "phone", type: "tel", placeholder: "Phone Number", required: true },
            { name: "business", type: "text", placeholder: "Business Name (Optional)", required: false },
          ]}
          textarea={{
            name: "message",
            placeholder: "Tell us about your requirements, product inquiries, or bulk orders...",
            rows: 5,
            required: true,
          }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/creative-tailor-talking-by-mobile-phone_329181-14314.jpg"
          imageAlt="NS Tailoring Workshop"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Send Message"
          onSubmit={handleContactSubmit}
        />
      </div>

      <div id="contact-faq" data-section="contact-faq">
        <FaqSplitText
          sideTitle="Common Contact Questions"
          sideDescription="Quick answers to help you reach us and get the support you need."
          faqs={[
            {
              id: "1",
              title: "What's the best way to contact NS?",
              content: "You can reach us through our contact form, email at contact@nstailoring.com, or via WhatsApp at the number provided. We typically respond within 24 hours.",
            },
            {
              id: "2",
              title: "How quickly will you respond to my inquiry?",
              content: "We aim to respond to all inquiries within 24 hours. For urgent requests, WhatsApp is often the fastest way to reach us during business hours.",
            },
            {
              id: "3",
              title: "Can I get a bulk order quote?",
              content: "Absolutely! For bulk orders, please provide details about quantities and products in your inquiry. Our team will prepare a customized quote for you.",
            },
            {
              id: "4",
              title: "Do you offer sample products?",
              content: "For professional customers and boutiques, we can often provide product samples. Please reach out directly to discuss your specific needs.",
            },
            {
              id: "5",
              title: "What payment methods do you accept?",
              content: "We accept multiple payment methods. Please contact us for details about payment options available in your region.",
            },
            {
              id: "6",
              title: "Is there a showroom I can visit?",
              content: "Contact us directly to arrange a visit to our showroom or to discuss product viewing options. We're happy to accommodate professional customers.",
            },
          ]}
          faqsAnimation="slide-up"
          textPosition="left"
          useInvertedBackground={false}
          animationType="smooth"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="NS"
          copyrightText="© 2025 NS Tailoring Supplies. All rights reserved. Premium tailoring materials and sewing supplies."
          socialLinks={[
            { icon: Facebook, href: "https://facebook.com/nstailoring", ariaLabel: "Facebook" },
            { icon: Instagram, href: "https://instagram.com/nstailoring", ariaLabel: "Instagram" },
            { icon: MessageCircle, href: "https://wa.me/1234567890", ariaLabel: "WhatsApp" },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}