"use client"; import { motion, useInView } from "framer-motion"; import { useRef, useState } from "react"; import { Send } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Textarea } from "@/components/ui/textarea"; import { Card, CardContent } from "@/components/ui/card"; import { toast } from "sonner"; import { useAppTheme } from "@/components/ThemeProvider"; import { submitContactForm } from "@/lib/actions/auth"; export function ContactSection() { const ref = useRef(null); const isInView = useInView(ref, { once: true, margin: "-100px" }); const { theme } = useAppTheme(); const isDark = theme === "dark"; const [formData, setFormData] = useState({ name: "", email: "", phone: "", message: "", }); const [isSubmitting, setIsSubmitting] = useState(false); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); setIsSubmitting(true); try { await submitContactForm(formData); toast.success("Message Sent Successfully", { description: "Thank you for reaching out. We'll get back to you soon!", }); setFormData({ name: "", email: "", phone: "", message: "" }); } catch (error) { const errorMessage = error instanceof Error ? error.message : "Failed to send message. Please try again."; toast.error("Error Sending Message", { description: errorMessage, }); } finally { setIsSubmitting(false); } }; return (
{/* Background Image */}
{/* Subtle overlay for readability - keeping background image clearly visible */}
{/* Very subtle gradient overlay */} {!isDark && (
)} {isDark && (
)} {/* Subtle animated blobs */}

Get in Touch

Ready to start your journey? Reach out to schedule a consultation.

{/* Left: Illustration replacing cards */} {/* Background image for the card */}
{/* Content */}
{/* Image and text side by side */}
{/* Modern therapy-related illustration */}
Nathalie Mac Guffie, LCSW - Your therapist
{/* Text content */}

Let's Begin Your Healing Journey

Taking the first step toward therapy can feel daunting, but you're not alone. I'm here to support you through every stage of your journey toward wellness and growth.

Whether you're seeking help for yourself or your child, I provide a warm, non-judgmental space where healing can begin. My approach is relationship-based and tailored to meet your unique needs.

Reach out today to schedule a consultation. Together, we can explore how therapy can support you in creating positive change and building resilience.

{/* Right: Contact form */}

Send a Message

setFormData({ ...formData, name: e.target.value })} required className="bg-card text-foreground dark:text-zinc-100 placeholder:text-muted-foreground dark:placeholder:text-zinc-400 border-border focus-visible:ring-rose-500" />
setFormData({ ...formData, email: e.target.value })} required className="bg-card text-foreground dark:text-zinc-100 placeholder:text-muted-foreground dark:placeholder:text-zinc-400 border-border focus-visible:ring-rose-500" />
setFormData({ ...formData, phone: e.target.value })} className="bg-card text-foreground dark:text-zinc-100 placeholder:text-muted-foreground dark:placeholder:text-zinc-400 border-border focus-visible:ring-rose-500" />