// SupervisionPage — individual clinical supervision detail page (/supervision).
// Built from the clinical team's "External Supervision" information pack so OTs
// get every pre-booking answer here and go straight to the EOI form, instead of
// ringing the Family Liaison Team. Summary stays on the Clinicians page.

function SupervisionPage() {
  const { go } = useRoute();

  const SUPERVISION_FAQ = [
    {
      label: "Supervision",
      items: [
        {
          q: "Is this individual supervision only?",
          a: "In addition to individual supervision, Kid Link also offers group supervision for clinician teams and businesses. Head to the group supervision section on our Clinicians page for more information and the group expression of interest.",
        },
        {
          q: "Does supervision count towards CPD or registration requirements?",
          a: "Absolutely. Your supervisor will send a session summary at the conclusion of each session. Session summaries can be kept as supporting documentation for your professional development record.",
        },
        {
          q: "Do I need to prepare anything before my first session?",
          a: "Your first session is about getting to know your supervisor and setting goals. It helps to think about what you would like to get out of supervision, and to note any challenges, questions or goals from your day-to-day clinical work. We will also ask you to complete a learning styles questionnaire to help us understand more about how you learn!",
        },
        {
          q: "How long do people usually stay in supervision?",
          a: "OTA recommends that supervision should be ongoing, regardless of experience, in recognition of professional life-long learning and professional development requirements. Frequency of supervision sessions can vary dependent on your personal experience, role and learning needs.",
        },
      ],
    },
  ];

  const goalAreas = [
    { h: "Clinical", accent: "var(--kl-plum)", soft: "var(--kl-plum-lightest)", b: "Building and refining core clinical competencies, including assessment, case formulation, clinical reasoning, therapy planning, intervention and evaluation, and the clinical judgement to adapt your approach with confidence and flexibility." },
    { h: "Professional", accent: "var(--kl-leaf-darker)", soft: "var(--kl-leaf-lightest)", b: "Self-management (self-awareness, emotional intelligence, boundary-setting, workload management), interpersonal skills (teamwork, negotiation, conflict resolution, giving and receiving feedback) and broader professional practice, including leadership." },
    { h: "Organisational", accent: "var(--kl-sun-dark)", soft: "var(--kl-sun-lightest)", b: "Learning specific to your workplace, including its values, structure, funding arrangements, client population and local community. This can include caseload management, administrative requirements and workplace procedures." },
    { h: "Personal", accent: "var(--kl-gray-nurse-darker)", soft: "var(--kl-gray-nurse-light)", b: "Strengthening and maintaining your resilience and wellbeing over time, so you have more capacity to fulfil your professional responsibilities. This can include work-life balance, professional burnout and compassion fatigue, and stress management." },
  ];

  const bookEoi = () => {
    if (window.klTrack) window.klTrack("supervision_eoi_click", {});
    window.open(SPLOSE_SUPERVISION_URL, "_blank", "noopener,noreferrer");
  };

  return (
    <>
      {/* Hero */}
      <Hero
        eyebrow="Individual Clinical Supervision"
        title={<>Individual clinical <span style={{ color: "var(--kl-sun)" }}>supervision</span> at Kid Link OT</>}
        body="Kid Link OT offers individual clinical supervision for Occupational Therapists across Australia, delivered by senior paediatric OTs via Zoom. Sessions focus on reflective practice, clinical reasoning and sustainable caseload management."
        image="../../assets/images/clinicians1.jpg"
        imageFocus="50% 35%"
        primaryLabel="Express your interest"
        onPrimary={bookEoi}
      />

      {/* Facts strip */}
      <IconStrip
        scheme="scheme-2"
        items={[
          { icon: "videocam", h: "Via Zoom", b: "60 minutes per session" },
          { icon: "event_repeat", h: "Fortnightly, monthly or adhoc", b: "Matched to your needs" },
          { icon: "public", h: "Australia-wide", b: "Scheduling in Melbourne time" },
          { icon: "workspace_premium", h: "Senior paediatric OTs" },
        ]}
      />

      {/* Who it's for */}
      <Section scheme="scheme-1">
        <SectionHeader
          title="Who supervision is for"
          lede="Supervision for every career stage"
        />
        <div className="kl-cols-3" style={{ gap: 24 }}>
          {[
            { i: "school", h: "New graduates", b: "New graduate Occupational Therapists" },
            { i: "menu_book", h: "New to paediatrics", b: "Occupational Therapists who are new to paediatrics" },
            { i: "psychology", h: "Experienced OTs", b: "Experienced Occupational Therapists who want to keep expanding their knowledge" },
          ].map((c) => (
            <Card key={c.h} style={{ padding: 28, display: "flex", flexDirection: "column", gap: 14 }}>
              <MIcon name={c.i} size={32} />
              <h3 style={{ fontSize: "var(--kl-text-h5)", lineHeight: 1.2 }}>{c.h}</h3>
              <p style={{ fontSize: "var(--kl-text-regular)", lineHeight: 1.55, color: "var(--kl-fg-2)" }}>{c.b}</p>
            </Card>
          ))}
        </div>
      </Section>

      {/* How it works */}
      <Section scheme="scheme-3">
        <SectionHeader title="How supervision works" lede="Your first session and beyond" />
        <div className="kl-split" style={{ gap: 48, alignItems: "flex-start" }}>
          <Card style={{ padding: 32 }}>
            <h3 style={{ fontSize: "var(--kl-text-h4)", marginBottom: 14 }}>Your first session: goal setting</h3>
            <p style={{ fontSize: "var(--kl-text-medium)", lineHeight: 1.6, color: "var(--kl-fg-2)" }}>
              Your first session is an Initial Goal Setting Session with your supervisor. It is a chance to get to know each other and check that the relationship feels like a good fit. You will explore what you want to get out of supervision, formalise your goals and talk through expectations on both sides.
            </p>
          </Card>
          <Card style={{ padding: 32 }}>
            <h3 style={{ fontSize: "var(--kl-text-h4)", marginBottom: 14 }}>Standard sessions</h3>
            <p style={{ fontSize: "var(--kl-text-regular)", lineHeight: 1.55, color: "var(--kl-fg-2)", marginBottom: 14 }}>After your goals are set, each session follows a similar format:</p>
            <ol style={{ margin: 0, paddingLeft: 22, display: "flex", flexDirection: "column", gap: 10, fontSize: "var(--kl-text-regular)", lineHeight: 1.55 }}>
              <li>You summarise the goal areas you have worked on since the last session, including any successes and challenges.</li>
              <li>You and your supervisor set the agenda for the session.</li>
              <li>Your supervisor leads discussion and reflection on the agenda.</li>
              <li>You recap recommendations, reflect on the session, and your supervisor shares any resources or follow-up.</li>
            </ol>
          </Card>
        </div>
        <p style={{ marginTop: 28, fontSize: "var(--kl-text-regular)", color: "var(--kl-fg-2)" }}>
          Most supervisees choose fortnightly sessions, though we offer monthly and adhoc sessions too. We may be able to accommodate other requests, depending on supervisor and supervisee availability. Kid Link OT is based in Melbourne, so all scheduling is in Melbourne time.
        </p>
      </Section>

      {/* Who supervises you */}
      <Section scheme="scheme-2">
        <div className="kl-split" style={{ gap: 64, alignItems: "flex-start" }}>
          <div style={{ maxWidth: 560 }}>
            <h2 style={{ fontSize: "var(--kl-text-h2)", marginBottom: 20, lineHeight: 1.15 }}>Who supervises you</h2>
            <p style={{ fontSize: "var(--kl-text-medium)", lineHeight: 1.6, marginBottom: 16 }}>
              Kid Link currently has six senior occupational therapists offering clinical supervision.
            </p>
            <p style={{ fontSize: "var(--kl-text-medium)", lineHeight: 1.6, marginBottom: 24 }}>
              Kid Link OT has a special interest in neurodiversity-affirming social emotional development and comprehensive experience working with Autistic children, as well as children with diagnoses including Attention Deficit Hyperactivity Disorder, anxiety and motor skills challenges.
            </p>
            <Button variant="link" iconRight={<ChevronRight />} onClick={() => go("clinicians")}>Meet the supervision team on our Clinicians page</Button>
            <figure style={{ margin: "32px 0 0" }}>
              <img
                src="../../assets/images/senior-team-2026.jpg"
                alt="The Kid Link senior occupational therapy team"
                loading="lazy"
                decoding="async"
                style={{ width: "100%", display: "block", borderRadius: "var(--kl-radius-card-lg)", boxShadow: "var(--kl-card-shadow)" }}
              />
              <figcaption style={{ fontSize: "var(--kl-text-small)", color: "var(--kl-fg-2)", marginTop: 12 }}>
                The Kid Link senior team
              </figcaption>
            </figure>
          </div>
          <div>
            <h3 style={{ fontSize: "var(--kl-text-h5)", marginBottom: 18 }}>All Kid Link OT supervisors:</h3>
            <ul style={{ listStyle: "none", padding: 0, margin: 0 }}>
              {[
                "Are Senior Occupational Therapists with a minimum of 5 years' experience working under Kid Link's model of practice",
                "Carry a current paediatric caseload",
                "Have extensive experience delivering paediatric occupational therapy services and can demonstrate a high level of competence across a number of goal areas",
                "Have demonstrated strong interpersonal skills and leadership qualities",
                "Have gained their Better Access to Mental Health endorsement",
                "Have experience supervising university students and early career Occupational Therapists",
                "Have developed and presented webinar and workshop content for occupational therapists, schools and parents/carers",
                "Have organised and chaired in-services for colleagues",
                "Have developed and coordinated group-based services",
                "Have demonstrated a strong ability to maintain a full caseload",
                "Have attended extensive external professional development across a variety of clinical areas",
              ].map((b) => (
                <li key={b} style={{ display: "flex", gap: 12, alignItems: "flex-start", padding: "9px 0", borderBottom: "1px solid var(--kl-border)", fontSize: "var(--kl-text-regular)", lineHeight: 1.5 }}>
                  <MIcon name="check_circle" size={20} color="var(--kl-plum)" />
                  {b}
                </li>
              ))}
            </ul>
          </div>
        </div>
      </Section>

      {/* Fees */}
      <Section scheme="scheme-1" id="fees">
        <SectionHeader title="Fees" lede="Fees current as of 5 October 2026." />
        <Card style={{ padding: "8px 32px", maxWidth: 760, marginInline: "auto" }}>
          {[
            { name: "Fortnightly package", detail: "4 x 60 minute sessions, pre-booked fortnightly", price: "$240 inc. GST per session (paid per session)" },
            { name: "Adhoc package (including monthly)", detail: "60 minute session", price: "$268 inc. GST per session" },
          ].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)", flexWrap: "wrap" }}>
              <div style={{ minWidth: 220, flex: "1 1 280px" }}>
                <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.1rem", color: "var(--kl-plum)" }}>{row.price}</div>
            </div>
          ))}
        </Card>
        <div style={{ marginTop: 24, background: "var(--kl-sun-lightest)", borderRadius: "var(--kl-radius-card-lg)", padding: 24, display: "flex", gap: 16, alignItems: "flex-start", maxWidth: 760, marginInline: "auto" }}>
          <MIcon name="event_busy" size={24} color="var(--kl-sun-dark)" />
          <p style={{ fontSize: "var(--kl-text-regular)", lineHeight: 1.6 }}>
            <strong>Cancellation policy:</strong> if you cancel with at least 48 hours' notice, no fee applies. If a session is cancelled with less than 48 hours' notice, a $100 cancellation fee is charged.
          </p>
        </div>
        <p style={{ marginTop: 24, fontSize: "var(--kl-text-regular)", lineHeight: 1.6, color: "var(--kl-fg-2)", maxWidth: 760, marginInline: "auto" }}>
          <strong style={{ color: "var(--kl-fg-1)" }}>Availability and matching:</strong> availability for fortnightly or adhoc (including monthly) supervision largely depends on your own availability across the week. When you complete the Expression of Interest form, list as many availability options as you can, as this helps us match you with a supervisor sooner.
        </p>
      </Section>

      {/* Bonus: course discount for fortnightly supervisees. The code itself is
          shared privately by the supervisor, never published here. */}
      <Section scheme="scheme-2" style={{ paddingTop: 48, paddingBottom: 48 }}>
        <div style={{ background: "var(--kl-leaf-lightest)", borderRadius: "var(--kl-radius-card-lg)", padding: "clamp(28px, 4vw, 44px)", display: "flex", flexWrap: "wrap", alignItems: "center", justifyContent: "space-between", gap: 28, maxWidth: 960, marginInline: "auto" }}>
          <div style={{ display: "flex", gap: 20, alignItems: "flex-start", flex: "1 1 460px" }}>
            <div style={{ flexShrink: 0, width: 52, height: 52, borderRadius: 14, background: "var(--kl-leaf-dark)", display: "grid", placeItems: "center" }}>
              <MIcon name="redeem" size={26} color="#fff" />
            </div>
            <div>
              <Eyebrow>Bonus for supervisees</Eyebrow>
              <h3 style={{ fontSize: "var(--kl-text-h4)", marginTop: 8, marginBottom: 12 }}>50% off Kid Link Education courses</h3>
              <p style={{ fontSize: "var(--kl-text-medium)", lineHeight: 1.6 }}>
                Supervisees on the fortnightly package receive a 50% discount code to use on courses at Kid Link Education, our online learning platform for paediatric clinicians. Your supervisor will share your code once you begin.
              </p>
            </div>
          </div>
          <a href="https://www.kidlinkeducation.com.au" target="_blank" rel="noopener noreferrer" className="kl-btn kl-btn--secondary" style={{ flexShrink: 0 }}>
            Browse courses
            <MIcon name="open_in_new" size={18} />
          </a>
        </div>
      </Section>

      {/* What you can work on */}
      <Section scheme="scheme-3">
        <SectionHeader
          title="What you can work on"
          lede="Supervision can focus on clinical, professional, organisational and personal skills. Your supervisor will work with you in your first session to identify your goals, which are often a mix of current priorities, workplace challenges and longer-term professional development."
        />
        <div className="kl-cols-2" style={{ gap: 24 }}>
          {goalAreas.map((g) => (
            <Card key={g.h} style={{ padding: 28, borderTop: `4px solid ${g.accent}` }}>
              <h3 style={{ fontSize: "var(--kl-text-h5)", marginBottom: 10, color: g.accent }}>{g.h}</h3>
              <p style={{ fontSize: "var(--kl-text-regular)", lineHeight: 1.55, color: "var(--kl-fg-2)" }}>{g.b}</p>
            </Card>
          ))}
        </div>
        <p style={{ marginTop: 20, fontSize: "var(--kl-text-small)", color: "var(--kl-fg-3)", fontStyle: "italic" }}>
          Goal areas adapted from Bihary, M. (2022). Professional Supervision Workbook. In M. Bihary (Ed.), Professional and Clinical Supervision (5-70). Delta Consulting Pty Ltd.
        </p>
      </Section>

      {/* Expectations both ways */}
      <Section scheme="scheme-2">
        <div className="kl-split" style={{ gap: 48, alignItems: "stretch" }}>
          <Card style={{ padding: 32 }}>
            <h3 style={{ fontSize: "var(--kl-text-h4)", marginBottom: 16 }}>What you can expect from your supervisor</h3>
            <ul style={{ listStyle: "none", padding: 0, margin: 0, display: "flex", flexDirection: "column", gap: 12 }}>
              {[
                "A psychologically safe environment where your contributions are heard and valued, and you can ask questions and raise challenges and concerns.",
                "Sessions that prioritise reflection and learning.",
                "Feedback that suits your individual learning style and personality.",
                "Notes of the agenda, discussion points and recommendations, emailed to you after each session. You can keep these as supporting documentation for your professional development record. Summaries are securely stored on Splose for supervisor reference.",
              ].map((b) => (
                <li key={b} style={{ display: "flex", gap: 12, alignItems: "flex-start", fontSize: "var(--kl-text-regular)", lineHeight: 1.55 }}>
                  <MIcon name="check_circle" size={20} color="var(--kl-leaf-dark)" />
                  {b}
                </li>
              ))}
            </ul>
          </Card>
          <Card style={{ padding: 32 }}>
            <h3 style={{ fontSize: "var(--kl-text-h4)", marginBottom: 16 }}>What we ask of you</h3>
            <p style={{ fontSize: "var(--kl-text-regular)", lineHeight: 1.55, color: "var(--kl-fg-2)", marginBottom: 14 }}>
              Supervision works best when you are the driving force of your own learning. We ask supervisees to:
            </p>
            <ul style={{ listStyle: "none", padding: 0, margin: 0, display: "flex", flexDirection: "column", gap: 12 }}>
              {[
                "Take an active part in each session and prepare for it.",
                "Work on the recommendations from the previous session between sessions.",
                "Keep a record of challenges, questions and goals that come up in your day-to-day clinical work, as these help shape discussions and future goal areas.",
                "Use the update form linked in your session reminder email and SMS to send agenda items ahead of time.",
              ].map((b) => (
                <li key={b} style={{ display: "flex", gap: 12, alignItems: "flex-start", fontSize: "var(--kl-text-regular)", lineHeight: 1.55 }}>
                  <MIcon name="check_circle" size={20} color="var(--kl-plum)" />
                  {b}
                </li>
              ))}
            </ul>
            <p style={{ marginTop: 16, fontSize: "var(--kl-text-small)", color: "var(--kl-fg-2)", lineHeight: 1.5 }}>
              If you feel any of these expectations, from either side, are not being met, please let your supervisor know.
            </p>
          </Card>
        </div>

        {/* Confidentiality */}
        <div style={{ marginTop: 40, background: "var(--kl-plum-lightest)", borderRadius: "var(--kl-radius-card-lg)", padding: "28px 32px", display: "flex", gap: 18, alignItems: "flex-start" }}>
          <MIcon name="lock" size={26} color="var(--kl-plum)" />
          <div>
            <h3 style={{ fontSize: "var(--kl-text-h5)", marginBottom: 10 }}>Confidentiality and mandatory reporting</h3>
            <p style={{ fontSize: "var(--kl-text-regular)", lineHeight: 1.6 }}>
              Your supervisor will keep the information you share in sessions confidential, whether it is personal or professional. Kid Link takes its duty of care seriously and chooses to act as Mandatory Reporters. If we believe there is a risk to the safety of any person, we will follow the Mandatory Reporting guidelines.
            </p>
          </div>
        </div>
      </Section>

      {/* FAQ */}
      <FAQ
        scheme="scheme-1"
        eyebrow={null}
        lede="Questions before you start? Email us at admin@kidlink.net.au."
        categories={SUPERVISION_FAQ}
      />

      {/* Ready to get started. Carries id="contact" so the navbar's Enquire Now
          lands here: this page deliberately has no enquiry form, because we
          want interested OTs to hit Express your interest (the Splose EOI)
          rather than send a general enquiry. */}
      <Section scheme="scheme-2" id="contact">
        <div style={{ background: "linear-gradient(135deg, var(--kl-plum) 0%, var(--kl-plum-dark) 100%)", borderRadius: "var(--kl-radius-card-lg)", boxShadow: "var(--kl-card-shadow)", padding: "clamp(28px, 4vw, 48px)", color: "#fff", display: "flex", flexWrap: "wrap", alignItems: "center", justifyContent: "space-between", gap: 32 }}>
          <div style={{ maxWidth: 620 }}>
            <h2 style={{ color: "#fff", fontSize: "var(--kl-text-h3)", lineHeight: 1.12, marginBottom: 14 }}>Ready to get started?</h2>
            <p style={{ fontSize: "var(--kl-text-medium)", lineHeight: 1.55, color: "rgba(255,255,255,0.9)", marginBottom: 10 }}>
              Complete our Expression of Interest form to begin. Once you submit it, our team will be in touch to schedule your sessions based on your availability and preferences. We will then send through a service agreement, and you will be all set for your initial session.
            </p>
            <p style={{ fontSize: "var(--kl-text-medium)", lineHeight: 1.55, color: "rgba(255,255,255,0.9)" }}>
              We look forward to supporting you on your clinical supervision journey.
            </p>
          </div>
          <div style={{ display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 14 }}>
            <button type="button" className="kl-btn kl-btn--book" onClick={bookEoi}>
              Express your interest
              <ChevronRight />
            </button>
            <p style={{ fontSize: "var(--kl-text-small)", color: "rgba(255,255,255,0.8)" }}>
              Got more questions? Email admin@kidlink.net.au or call (03) 9879 7019.
            </p>
          </div>
        </div>
      </Section>
    </>
  );
}

window.SupervisionPage = SupervisionPage;
