"use client";

import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FaqBase from '@/components/sections/faq/FaqBase';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Mail } from "lucide-react";

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="sharp"
      contentWidth="compact"
      sizing="largeSizeMediumTitles"
      background="circleGradient"
      cardStyle="soft-shadow"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Link AI"
          navItems={[
            { name: "Home", id: "/" },
            { name: "How It Works", id: "/how-it-works" },
            { name: "Features", id: "/features" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Start Free Trial",
            href: "https://app.linkaitech.com/signup"
          }}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Get Started"
          title="Ready to Automate Your Customer Conversations?"
          description="Join thousands of businesses using Link AI to handle customer inquiries 24/7. Start your free 14-day trial today—no credit card required."
          tagIcon={Mail}
          useInvertedBackground="noInvert"
          inputPlaceholder="Enter your work email"
          buttonText="Start Free Trial"
          termsText="By signing up, you agree to our Terms of Service and Privacy Policy. We'll send you a confirmation email shortly."
        />
      </div>

      <div id="support-faq" data-section="support-faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Everything you need to know about Link AI and how it works"
          faqs={[
            {
              id: "1",
              title: "How do I integrate Link AI with my WhatsApp Business account?",
              content: "Integration takes less than 5 minutes. Connect your WhatsApp Business Account through our dashboard, grant necessary permissions, and Link AI will automatically start handling incoming messages. No coding required."
            },
            {
              id: "2",
              title: "Can Link AI learn my brand voice and customer service style?",
              content: "Yes. Link AI analyzes your previous conversations to understand your tone, vocabulary, and customer service approach. You can also customize response templates and guidelines to ensure consistency with your brand."
            },
            {
              id: "3",
              title: "What happens if AI can't answer a customer question?",
              content: "Link AI automatically flags complex or sensitive inquiries and escalates them to your team with full conversation context. Your team receives notifications and can take over the conversation instantly."
            },
            {
              id: "4",
              title: "Is customer data secure with Link AI?",
              content: "Security is our top priority. We use enterprise-grade encryption, comply with GDPR and data protection regulations, and never share your data with third parties. All conversations are stored securely in your dedicated account."
            },
            {
              id: "5",
              title: "Can I use Link AI for both WhatsApp and Instagram?",
              content: "Absolutely. Link AI supports both WhatsApp Business and Instagram DMs. You can manage all conversations from one unified dashboard and apply consistent AI agents across all channels."
            },
            {
              id: "6",
              title: "What's included in the free trial?",
              content: "Our free trial includes full access to all features: WhatsApp and Instagram integration, AI agent deployment, analytics dashboard, and team collaboration tools. No credit card required. Try for 14 days risk-free."
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="smooth"
        />
      </div>

      <div id="enterprise-contact" data-section="enterprise-contact">
        <ContactCenter
          tag="Enterprise"
          title="Need a Custom Solution?"
          description="For enterprise customers with specific requirements, we offer custom integrations, dedicated support, and tailored AI training programs."
          tagIcon={Mail}
          useInvertedBackground="noInvert"
          inputPlaceholder="Enter your business email"
          buttonText="Contact Sales"
          termsText="Our enterprise team will contact you within 24 hours to discuss your specific requirements."
        />
      </div>

      <FooterSimple
        columns={[
          {
            title: "Product",
            items: [
              { label: "Features", href: "/features" },
              { label: "How It Works", href: "/how-it-works" },
              { label: "Security", href: "#" },
              { label: "Updates", href: "#" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "How It Works", href: "/how-it-works" },
              { label: "Blog", href: "#" },
              { label: "Careers", href: "#" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            title: "Resources",
            items: [
              { label: "Documentation", href: "#" },
              { label: "API Reference", href: "#" },
              { label: "Community", href: "#" },
              { label: "Support", href: "#" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy Policy", href: "#" },
              { label: "Terms of Service", href: "#" },
              { label: "Cookie Policy", href: "#" },
              { label: "Compliance", href: "#" }
            ]
          }
        ]}
        bottomLeftText="© 2025 Link AI. All rights reserved."
        bottomRightText="Automating conversations, scaling support."
      />
    </ThemeProvider>
  );
}