"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroBillboard from "@/components/sections/hero/HeroBillboard";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal";
import Link from "next/link";
import { Phone } from "lucide-react";

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

  const footerColumns = [
    {
      title: "Quick Links",
      items: [
        { label: "Home", href: "/" },
        { label: "Services", href: "/services" },
        { label: "About Dr. Sakina", href: "/about" },
        { label: "Contact Us", href: "/contact" },
      ],
    },
    {
      title: "Contact Info",
      items: [
        { label: "Phone: +92 312 5458615", href: "tel:+923125458615" },
        { label: "WhatsApp", href: "https://wa.me/923125458615" },
        { label: "Email: info@drsakinaclinics.com", href: "mailto:info@drsakinaclinics.com" },
        { label: "Google Maps", href: "https://maps.google.com/?q=Dr+Sakina+Clinics+Wah+Cantt" },
      ],
    },
    {
      title: "Hours & Location",
      items: [
        { label: "Opens 10:00 AM - 7:00 PM", href: "#" },
        { label: "Closed Sundays", href: "#" },
        { label: "Mall Road, Wah Cantt", href: "#" },
        { label: "Near Barrier 3", href: "#" },
      ],
    },
    {
      title: "Legal",
      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
        { label: "Disclaimer", href: "#" },
        { label: "Accessibility", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="compact"
      sizing="largeSmallSizeMediumTitles"
      background="noiseDiagonalGradient"
      cardStyle="layered-gradient"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Dr. Sakina Clinics"
          navItems={navItems}
          button={{
            text: "Call Now: +92 312 5458615",
            href: "tel:+923125458615",
          }}
        />
      </div>

      <div id="contact-hero" data-section="contact-hero">
        <HeroBillboard
          title="Get in Touch With Dr. Sakina"
          description="Ready to start your dermatology journey? Contact us today to book your personalized consultation. We respond within 24 hours."
          background={{ variant: "radial-gradient" }}
          tag="Quick Response"
          tagIcon={Phone}
          tagAnimation="slide-up"
          buttons={[
            {
              text: "Call: +92 312 5458615",
              href: "tel:+923125458615",
            },
            {
              text: "WhatsApp Message",
              href: "https://wa.me/923125458615",
            },
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-vector/minimalist-location-app-template_23-2148690536.jpg?_wi=2"
          imageAlt="Dr. Sakina Clinics location in Wah Cantt"
          mediaAnimation="slide-up"
          avatars={[
            { src: "http://img.b2bpic.net/free-photo/smiling-young-doctor-wearing-stethoscope-medical-gown-showing-okey-gesture-both-hands-red-backgroung_141793-27138.jpg", alt: "Dr. Sakina" },
            { src: "http://img.b2bpic.net/free-photo/portrait-cheerful-teenage-girl-sitting-cafe_1262-3048.jpg", alt: "Patient Success" },
            { src: "http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg", alt: "Happy Client" },
          ]}
          avatarText="Our Team Welcomes You"
          ariaLabel="Contact page hero with clinic location and team introduction"
        />
      </div>

      <div id="contact-form" data-section="contact-form">
        <ContactSplitForm
          title="Request Your Appointment"
          description="Fill out the form below and we'll contact you within 24 hours to confirm your appointment. You can also call us directly at +92 312 5458615 or send a WhatsApp message."
          inputs={[
            {
              name: "fullName",
              type: "text",
              placeholder: "Your Full Name",
              required: true,
            },
            {
              name: "phone",
              type: "tel",
              placeholder: "+92 3XX XXXXXXX",
              required: true,
            },
            {
              name: "email",
              type: "email",
              placeholder: "Your Email Address",
              required: true,
            },
          ]}
          textarea={{
            name: "message",
            placeholder: "Describe your skin concern or question",
            rows: 5,
            required: true,
          }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-vector/minimalist-location-app-template_23-2148690536.jpg?_wi=3"
          imageAlt="Dr. Sakina Clinics location map - Wah Cantt"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Send Appointment Request"
          ariaLabel="Contact form for appointment requests"
        />
      </div>

      <div id="contact-faq" data-section="contact-faq">
        <div className="mx-auto px-4 md:px-6 py-16 md:py-24">
          <div className="max-w-4xl mx-auto">
            <div className="text-center mb-12">
              <p className="text-sm font-medium text-foreground/60 mb-2">QUICK INFORMATION</p>
              <h2 className="text-4xl md:text-5xl font-bold text-foreground mb-4">
                Frequently Asked Questions
              </h2>
              <p className="text-lg text-foreground/70">
                Have questions about reaching us? Here are the answers.
              </p>
            </div>

            <div className="space-y-6">
              <div className="bg-card/50 rounded-lg p-6 border border-card">
                <h3 className="text-lg font-semibold text-foreground mb-2">What are your operating hours?</h3>
                <p className="text-foreground/70">
                  Monday to Saturday: 10:00 AM to 7:00 PM. Sunday appointments available by special request. For holiday hours, please call ahead.
                </p>
              </div>

              <div className="bg-card/50 rounded-lg p-6 border border-card">
                <h3 className="text-lg font-semibold text-foreground mb-2">How quickly can I book an appointment?</h3>
                <p className="text-foreground/70">
                  We typically confirm appointments within 24 hours. For urgent concerns, call +92 312 5458615 directly during business hours.
                </p>
              </div>

              <div className="bg-card/50 rounded-lg p-6 border border-card">
                <h3 className="text-lg font-semibold text-foreground mb-2">Where is your clinic located?</h3>
                <p className="text-foreground/70">
                  Dr. Sakina Clinics is located at Mall Road, Wah Cantt, near Barrier 3. You can find us on Google Maps for exact directions.
                </p>
              </div>

              <div className="bg-card/50 rounded-lg p-6 border border-card">
                <h3 className="text-lg font-semibold text-foreground mb-2">Can I contact you via WhatsApp?</h3>
                <p className="text-foreground/70">
                  Yes! Send us a message on WhatsApp at +92 312 5458615 for quick inquiries or appointment requests.
                </p>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={footerColumns}
          copyrightText="© 2024 Dr. Sakina Clinics. All rights reserved. Women-Owned. Licensed & Insured."
          ariaLabel="Footer with contact and navigation information"
        />
      </div>
    </ThemeProvider>
  );
}