"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Mail } from 'lucide-react';

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="compact"
      sizing="medium"
      background="none"
      cardStyle="inset"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered 
          brandName="JCode"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Courses", id: "/courses" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{ text: "Enroll Now", href: "/contact" }}
        />
      </div>

      <div id="contact-hero" data-section="contact-hero">
        <HeroOverlay 
          title="Get Started With JCode"
          description="Ready to transform your IT career? Reach out to us today and let's discuss the perfect learning path for you."
          tag="Contact Us"
          tagIcon={Mail}
          imageSrc="https://img.b2bpic.net/free-photo/happy-young-businesswoman-talking-mobile-phone-cafe_1262-20247.jpg"
          imageAlt="Contact JCode"
          textPosition="center"
          showBlur={true}
          showDimOverlay={true}
          buttons={[{ text: "Send Message", href: "#contact-form" }]}
        />
      </div>

      <div id="contact-form" data-section="contact-form">
        <ContactSplitForm 
          title="Let's Connect"
          description="Have questions about our courses or enrollment process? Fill out this form and our admissions team will get back to you within 24 hours."
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/happy-young-businesswoman-talking-mobile-phone-cafe_1262-20247.jpg"
          imageAlt="JCode contact"
          mediaPosition="right"
          buttonText="Send Message"
          inputs={[
            { name: "fullName", type: "text", placeholder: "Full Name", required: true },
            { name: "email", type: "email", placeholder: "Email Address", required: true },
            { name: "phone", type: "tel", placeholder: "Phone Number", required: false },
            { name: "courseInterest", type: "text", placeholder: "Course of Interest", required: true }
          ]}
          textarea={{ name: "message", placeholder: "Tell us more about your IT learning goals and background...", rows: 5, required: true }}
          onSubmit={(data) => console.log(data)}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia 
          imageSrc="https://img.b2bpic.net/free-photo/programming-background-with-person-working-with-codes-computer_23-2150010129.jpg"
          imageAlt="JCode IT School footer background"
          logoText="JCode"
          copyrightText="© 2024 JCode IT School. All rights reserved."
          columns={[
            {
              title: "Courses",
              items: [
                { label: "Web Development", href: "/courses" },
                { label: "Data Science", href: "/courses" },
                { label: "Mobile Development", href: "/courses" },
                { label: "DevOps", href: "/courses" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "/about" },
                { label: "Our Team", href: "/about" },
                { label: "Careers", href: "#" },
                { label: "Blog", href: "#" }
              ]
            },
            {
              title: "Connect",
              items: [
                { label: "Contact Us", href: "/contact" },
                { label: "Support", href: "#" },
                { label: "LinkedIn", href: "#" },
                { label: "Twitter", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}