/* ============================================================
   EDIT ME — business details, ticket endpoint, services & pricing
   ============================================================ */

window.CONFIG = {
  business: "Griffs",
  area:  "the Central Coast",      // ← your service area
  hours: "After hours & weekends",

  /* ----- WHERE TICKETS GO -----------------------------------
     Tickets POST to the Pages Function /api/submit, which writes
     them into D1 (the service-desk database). Override only for
     local dev against a different URL — leave as "/api/submit"
     in production.
     ---------------------------------------------------------- */
  apiEndpoint: "/api/submit",
};

window.SERVICES = [
  { id: "setup",   icon: "Monitor", price: "from $130", title: "Computer & Mobile Setup",
    desc: "New or old, phone or computer — set up properly and explained simply. Plenty of experience with student devices." },
  { id: "student", icon: "Laptop",  price: "from $150", title: "Student Device Help",
    desc: "Not sure which laptop to buy? Give us a budget and we'll pick it, buy it, and set it up — ready for school." },
  { id: "optimise",icon: "Gauge",   price: "from $140", title: "Device Optimisation",
    desc: "Slow? Freezing? Turning off randomly? We'll get your device running like its old self again." },
  { id: "virus",   icon: "ShieldAlert", price: "from $170", title: "Virus & Malware Removal",
    desc: "Pesky pop-ups or scary 'you have a virus' messages? We'll clear them out — safely and for good." },
  { id: "prevent", icon: "Shield",  price: "from $110", title: "Virus & Scam Prevention",
    desc: "Most places wait until you're infected. We set things up to stop the problem before it ever starts." },
  { id: "repair",  icon: "Wrench",  price: "quote",     title: "Device Repairs",
    desc: "Won't turn on? Broken ports? We'll diagnose it and point you the right way. Can't fix it? No charge." },
];

// Appended to the booking form & hero picker as a catch-all option.
window.OTHER_SERVICE = { id: "other", icon: "Chat", price: "", title: "Something else",
  desc: "Not sure which box you fit in? No worries — tell us what's going on and we'll take a look." };

/* ----- DEALS & BUNDLES ---------------------------------------
   Each bundle pre-fills the form with `service` + the prevention
   add-on switched on. Prices in AUD — edit freely.
   ------------------------------------------------------------- */
window.BUNDLES = [
  { id: "setup-secure", service: "setup", tag: "Most popular",
    title: "Set Up & Secure", blurb: "Get your new device running and protected from day one.",
    items: ["Computer or mobile setup", "Virus & scam prevention", "Quick how-to walkthrough"],
    was: 240, now: 200 },
  { id: "tuneup-secure", service: "optimise", tag: "",
    title: "Tune-Up & Secure", blurb: "Speed it back up — then lock it down so it stays that way.",
    items: ["Full device optimisation", "Virus & scam prevention", "Health & backup check"],
    was: 250, now: 210 },
  { id: "student", service: "student", tag: "Back to school",
    title: "Student Starter Pack", blurb: "Everything a school device needs, sorted in one visit.",
    items: ["Student device help & setup", "Virus & scam prevention", "Parental controls set up"],
    was: 300, now: 240 },
];

/* The standalone upsell shown inside the booking form. */
window.ADDON = { label: "Add Virus & Scam Prevention", save: 40, price: 70,
  sub: "Stop problems before they start — normally $110" };

window.DEVICE_TYPES = [
  "Windows laptop / PC", "Mac / MacBook", "iPhone / iPad",
  "Android phone / tablet", "School / student device", "Printer or other", "Not sure",
];

window.URGENCY = [
  { id: "flexible", label: "No rush", sub: "Whenever suits" },
  { id: "week",     label: "This week", sub: "Sometime soon" },
  { id: "asap",     label: "ASAP", sub: "It's urgent" },
];
