import type { Metadata } from "next";

export const metadata: Metadata = {
    title: "Rock Your Locker FAQ",
    description:
        "Everything you need to know about Rock Your Locker at South Forsyth Middle School — PTO membership, Eagle Pack lockers, dates, and early access.",
};

const faqs = [
    {
        q: "When is the Rock Your Locker Event?",
        a: "For the 26/27 school year, this event will be held on Friday, July 31st from 9am to 12pm.",
    },
    {
        q: "Do I need to join PTO?",
        a: "Membership in the PTO is completely voluntary, but access to Rock Your Locker is only available to PTO members.",
    },
    {
        q: "Does my membership obligate me to volunteer?",
        a: "No. We will have various volunteer opportunities throughout the year (find these by reading the SFMS Newsletter), but volunteering is completely optional. Your membership fee is simply a tax deductible donation to a 501(c)3 organization. All funds raised stay at South Forsyth Middle School and go directly back to benefit the students and teachers.",
    },
    {
        q: "How do I get access to the Rock Your Locker Event?",
        a: "You will need to join the PTO on this website AND purchase your locker on SchoolPay, both available starting 7/15/2026.",
    },
    {
        q: "What is the total cost to attend the early access locker event?",
        a: "You will need to pay for your $30 PTO membership (on the PTO website starting 7/15/2026), as well as $25 for your locker/Eagle Pack (on SchoolPay starting 7/15/2026).",
    },
    {
        q: "I have multiple students at South Forsyth Middle School - do I need a PTO membership for each student?",
        a: "No, one PTO membership is good for all SFMS students living at the same address. However, you will need to purchase an Eagle Pack for each individual student. For example, a family with a 6th grader and an 8th grader will need to purchase one PTO membership and two Eagle Packs.",
    },
    {
        q: "What if I show up before the start time for Rock Your Locker?",
        a: "You will be asked to wait until the time of the event is called. People who show up early will not be allowed to enter and select their locker prior to the start time of the event.",
    },
    {
        q: "What do I need to bring to prove I paid for my PTO membership and locker?",
        a: "PTO and school staff will have lists of all paid memberships and locker payments made through 7/30/26. Online purchases will be turned off at this time. We will have a table to look up and confirm your PTO membership and locker payment. You will experience a faster check-in process if you have paid for both items prior to 7/30/26.",
    },
    {
        q: "What do I do if I'll be out of town and can't attend the Rock Your Locker Event?",
        a: "If you provide proof of your PTO membership payment and proof of your purchase of the Eagle Pack, you can reach out to Principal Liz Tuck at ltuck@forsyth.k12.ga.us to coordinate a time to pick your locker after the Rock Your Locker event and before the first day of school.",
    },
];

const faqJsonLd = {
    "@context": "https://schema.org",
    "@type": "FAQPage",
    mainEntity: faqs.map((item) => ({
        "@type": "Question",
        name: item.q,
        acceptedAnswer: {
            "@type": "Answer",
            text: item.a,
        },
    })),
};

export default function RockYourLockerPage() {
    return (
        <div className="container" style={{ padding: "4rem 1.5rem", maxWidth: "800px" }}>
            <script
                type="application/ld+json"
                dangerouslySetInnerHTML={{ __html: JSON.stringify(faqJsonLd) }}
            />
            <h1 className="animate-fade-in" style={{ fontSize: "3rem", marginBottom: "1rem", textAlign: "center" }}>
                Rock Your Locker FAQ
            </h1>
            <p className="animate-fade-in" style={{ fontSize: "1.1rem", color: "var(--text-muted)", textAlign: "center", marginBottom: "3rem" }}>
                Everything you need to know about early access lockers and Eagle Packs for the 26/27 school year.
            </p>

            <div className="glass-panel animate-fade-in" style={{ padding: "3rem", display: "flex", flexDirection: "column", gap: "2.5rem" }}>
                {faqs.map((item) => (
                    <div key={item.q}>
                        <h2 style={{ fontSize: "1.35rem", marginBottom: "0.75rem", color: "var(--primary)" }}>{item.q}</h2>
                        <p style={{ fontSize: "1.05rem", lineHeight: 1.7, color: "var(--text-muted)" }}>{item.a}</p>
                    </div>
                ))}
            </div>
        </div>
    );
}
