// FeesPage - transparent fee schedule + funding options, brought across from
// kidlink.net.au/fees (figures effective July 2025; confirm current rates with admin).

function FeesPage() {
  const privateFees = [
    { name: "Initial Intake Session & Summary Report", detail: "100 min face to face, 80 min non face to face", price: "$581.97" },
    { name: "Individual Therapy Session", detail: "50 min face to face, 20 min non face to face", price: "$225.03" },
    { name: "Group Session", detail: "Per hour, divided by participants (min 2, max 4). Excludes report writing", price: "$193.99/hr" },
    { name: "Offsite Therapy Session", detail: "60 min therapy, plus travel costs", price: "$193.99" },
    { name: "Travel", detail: "Max 60 minutes at the hourly rate, plus $1.11 per km (GST inc.)", price: "$213.39/hr" },
    { name: "Report Writing", detail: "Per hour (GST inc.)", price: "$213.39/hr" },
    { name: "Occupational Therapy Assessment", detail: "Per hour, quote on request", price: "$193.99/hr" },
    { name: "Phone & Email Communication", detail: "Per hour", price: "$193.99/hr" },
  ];

  const funding = [
    { icon: "accessible", h: "NDIS", b: "We are a registered NDIS provider under the Improved Daily Living support category. NDIS session rates match our private rates, with reduced travel (50%) and travel capped at 30 minutes." },
    { icon: "medical_services", h: "Chronic Disease Management Plan (CDMP)", b: "Ask your GP whether your child is eligible for a CDMP (also called an EPC plan). It covers 5 individual OT sessions a year with a Medicare rebate per visit, which increases once you are over the safety net." },
    { icon: "psychology", h: "Better Access to Mental Health Plan", b: "Your GP or paediatrician may consider your child eligible for OT under a Mental Health Plan, with rebates on up to 10 sessions a year. Kid Link is authorised to provide these services." },
    { icon: "health_and_safety", h: "Private Health Insurance", b: "Check whether your 'Extras' cover includes occupational therapy. If you are entitled to a rebate, please let our Family Liaison Team know before your session, as some funds require the therapist to register with them specifically." },
    { icon: "volunteer_activism", h: "Helping Children with Autism", b: "Eligible families may access up to 20 government-funded OT sessions through this program." },
  ];

  return (
    <>
      {/* Hero */}
      <Hero
        eyebrow="Fees"
        title={<>Clear, upfront <span style={{ color: "var(--kl-sun)" }}>fees</span> and funding</>}
        body="We believe in being transparent about cost. Below are our current session fees and the funding pathways that may help make therapy more affordable for your family."
        image="../../assets/images/parents-hero.jpg"
        imageFocus="50% 30%"
        primaryLabel="Enquire Now"
      />

      {/* Private fee schedule */}
      <Section scheme="scheme-2">
        <div style={{ maxWidth: 760, marginBottom: 40 }}>
          <Eyebrow>Session fees</Eyebrow>
          <h2 style={{ fontSize: "var(--kl-text-h2)", marginTop: 12, marginBottom: 16, lineHeight: 1.15 }}>Private and self-managed NDIS fees</h2>
          <p style={{ fontSize: "var(--kl-text-medium)", lineHeight: 1.6, color: "var(--kl-fg-2)" }}>
            The following rates apply to private and self-managed NDIS clients. NDIS plan-managed and agency-managed rates are the same, with reduced travel charges (see below).
          </p>
        </div>

        <Card style={{ padding: "8px 32px" }}>
          {privateFees.map((row, i) => (
            <div key={row.name} style={{ display: "flex", alignItems: "baseline", justifyContent: "space-between", gap: 24, padding: "20px 0", borderTop: i === 0 ? "none" : "1px solid var(--kl-border)" }}>
              <div>
                <div style={{ fontSize: "var(--kl-text-medium)", fontWeight: 700, marginBottom: 2 }}>{row.name}</div>
                <div style={{ fontSize: "var(--kl-text-small)", color: "var(--kl-fg-2)" }}>{row.detail}</div>
              </div>
              <div style={{ fontFamily: "var(--kl-font-display)", fontWeight: "var(--kl-weight-emphasis)", fontSize: "1.35rem", color: "var(--kl-plum)", whiteSpace: "nowrap" }}>{row.price}</div>
            </div>
          ))}
        </Card>

        <div style={{ marginTop: 24, background: "var(--kl-leaf-lightest)", borderRadius: "var(--kl-radius-card-lg)", padding: 28, display: "flex", gap: 16, alignItems: "flex-start" }}>
          <MIcon name="directions_car" size={26} color="var(--kl-leaf-darker)" />
          <p style={{ fontSize: "var(--kl-text-regular)", lineHeight: 1.6, color: "var(--kl-fg-1)" }}>
            <strong>NDIS plan-managed and agency-managed travel:</strong> charged at $97 per hour (a 50% reduction) plus $1.01 per km, and capped at 30 minutes. NDIS community visits are offered only when a clinic or telehealth appointment is not suitable.
          </p>
        </div>

        <p style={{ marginTop: 20, fontSize: "var(--kl-text-small)", color: "var(--kl-fg-3)", lineHeight: 1.6 }}>
          Intake appointments may need to be conducted over two sessions of 50 minutes if booked during term. NDIS funding cannot be used to cover all report writing; please call our Family Liaison Team to discuss options if you need a service not listed. Fees are current as of July 2025 and may be reviewed periodically.
        </p>
      </Section>

      {/* Funding & rebates */}
      <Section scheme="scheme-1">
        <div style={{ maxWidth: 760, marginBottom: 48 }}>
          <Eyebrow>Funding and rebates</Eyebrow>
          <h2 style={{ fontSize: "var(--kl-text-h2)", marginTop: 12, marginBottom: 16, lineHeight: 1.15 }}>Ways to help cover the cost</h2>
          <p style={{ fontSize: "var(--kl-text-medium)", lineHeight: 1.6, color: "var(--kl-fg-2)" }}>
            Depending on your circumstances, several funding pathways may reduce your out-of-pocket cost. Our team is happy to talk through what might apply to your family.
          </p>
        </div>
        <div className="kl-cols-2" style={{ gap: 32 }}>
          {funding.map((c) => (
            <Card key={c.h} style={{ background: "var(--kl-white)", padding: 32, display: "flex", gap: 20, alignItems: "flex-start" }}>
              <div style={{ flexShrink: 0, width: 52, height: 52, borderRadius: 14, background: "var(--kl-plum-lightest)", display: "grid", placeItems: "center" }}>
                <MIcon name={c.icon} size={28} color="var(--kl-plum)" />
              </div>
              <div>
                <h3 style={{ fontSize: "var(--kl-text-h5)", marginBottom: 8, lineHeight: 1.2 }}>{c.h}</h3>
                <p style={{ fontSize: "var(--kl-text-regular)", lineHeight: 1.55, color: "var(--kl-fg-2)" }}>{c.b}</p>
              </div>
            </Card>
          ))}
        </div>
        <div style={{ marginTop: 40, display: "flex", justifyContent: "center" }}>
          <Button variant="primary" iconRight={<ChevronRight />} onClick={scrollToContact}>Ask us about funding options</Button>
        </div>
      </Section>

      {/* Payment & cancellation */}
      <Section scheme="scheme-2">
        <div className="kl-cols-2" style={{ gap: 32 }}>
          <Card style={{ padding: 32 }}>
            <div style={{ marginBottom: 16 }}><MIcon name="payments" size={32} color="var(--kl-plum)" /></div>
            <h3 style={{ fontSize: "var(--kl-text-h5)", marginBottom: 12 }}>Payment terms</h3>
            <p style={{ fontSize: "var(--kl-text-regular)", lineHeight: 1.6, color: "var(--kl-fg-2)" }}>
              Kid Link is a pay-on-the-day clinic. In-clinic private and self-managed NDIS clients pay at the end of each session. Offsite and telehealth clients are invoiced by email and pay on the day via the "Pay Now" link. NDIS plan-managed and agency-managed families can be invoiced after the session.
            </p>
          </Card>
          <Card style={{ padding: 32 }}>
            <div style={{ marginBottom: 16 }}><MIcon name="event_busy" size={32} color="var(--kl-plum)" /></div>
            <h3 style={{ fontSize: "var(--kl-text-h5)", marginBottom: 12 }}>Cancellation policy</h3>
            <p style={{ fontSize: "var(--kl-text-regular)", lineHeight: 1.6, color: "var(--kl-fg-2)" }}>
              Cancel before 10am the day before your session and there is no fee. Cancellations after 10am the day prior, or no-shows, are charged 90% of the full session fee. We honour notices sent by email or voicemail outside business hours, as long as they reach us before the 10am cut-off.
            </p>
          </Card>
        </div>
      </Section>

      <Contact
        showBooking={false}
        title="Questions about fees or funding?"
        intro="Get in touch and our admin team will talk you through session costs and the funding options that might apply to your family."
      />
    </>
  );
}

window.FeesPage = FeesPage;
