import type { Metadata } from "next";
import { BreadcrumbSection } from "@/components/BreadcrumbSection";
import { PolicyDocument } from "@/components/PolicyDocument";

export const metadata: Metadata = {
  title: "Cancellation & Rescheduling Policy | Ride N Revive",
  description:
    "Read the Ride N Revive Cancellation & Rescheduling Policy outlining our terms for service cancellations, booking modifications, no-shows, and rescheduling.",
  alternates: {
    canonical: "/cancellation-policy",
  },
  openGraph: {
    title: "Cancellation & Rescheduling Policy | Ride N Revive",
    description:
      "Our transparent policy for cancellations, rescheduling, mechanic unavailability, and emergency service requests on the Ride N Revive platform.",
    url: "/cancellation-policy",
  },
};

const sections = [
  {
    title: "PREAMBLE",
    content: [
      "At Ride N Revive™, we understand that plans change, emergencies happen, and vehicle issues may sometimes resolve before our technician arrives.",
      "This Cancellation & Rescheduling Policy has been designed to be fair to customers, mechanics, and service partners while ensuring service availability for everyone.",
    ],
  },
  {
    title: "POLICY DETAILS",
    items: [
      {
        heading: "1. Policy Objective",
        body: ["This policy governs:"],
        list: [
          "Service cancellations",
          "Booking modifications",
          "Rescheduling requests",
          "No-show situations",
          "Mechanic unavailability",
          "Emergency service cancellations",
          "Refund eligibility related to cancellations",
        ],
        after:
          "By booking any service through Ride N Revive, you agree to this Cancellation Policy.",
      },
      {
        heading: "2. Cancellation Time Windows",
        list: [
          "A. Free Cancellation: Customers may cancel a booking without any cancellation fee if no technician has been assigned, no spare parts have been ordered, and no service partner has been dispatched. (Cancellation Charge: ₹0)",
          "B. Technician Assigned: If a technician has already accepted the booking and started preparation for the service. This compensates the technician for reserved time and operational costs. (Cancellation Charge: Up to 20% of the booking value or ₹99, whichever is higher)",
          "C. Technician En Route: If the assigned technician is already travelling to the customer's location. (Cancellation Charge: Up to 30% of booking value or ₹199, whichever is higher)",
          "D. Technician Arrived at Location: If the technician reaches the service location and the customer is unavailable, refuses service, provides incorrect location, or vehicle is inaccessible. (Site Visit Fee Minimum Charge: ₹299)",
        ],
        after: "Additional charges may apply for long-distance travel.",
      },
      {
        heading: "3. Emergency Roadside Assistance Cancellation",
        body: ["For emergency services including:"],
        list: [
          "Breakdown Assistance",
          "Battery Jump Start",
          "Puncture Assistance",
          "Towing Services",
          "Fuel Delivery",
        ],
        after:
          "Once a technician or partner has been dispatched, cancellation charges may apply regardless of whether the service is ultimately used. This is because emergency resources are immediately allocated and unavailable for other customers.",
      },
      {
        heading: "4. Spare Parts & Battery Orders",
        body: [
          "If Ride N Revive has already procured spare parts, ordered batteries, arranged special inventory, or reserved OEM products, the cancellation request may be denied or subject to:",
        ],
        list: ["Procurement charges", "Return handling charges", "Logistics charges"],
        after:
          "Installed products are non-cancellable and non-returnable unless covered under warranty.",
      },
      {
        heading: "5. Subscription & Membership Plan Cancellation",
        body: [
          "Annual Membership Plans: Membership plans may be cancelled within 7 days of purchase only if:",
        ],
        list: [
          "No service benefits have been utilized.",
          "No complimentary services have been claimed.",
        ],
        after:
          "After benefits are used, memberships become non-refundable. Corporate agreements shall be governed by separate contractual terms.",
      },
      {
        heading: "6. Customer No-Show Policy",
        body: ["A booking shall be classified as a No-Show if:"],
        list: [
          "Customer is unreachable.",
          "Customer fails to respond for 15 minutes after technician arrival.",
          "Customer fails to provide access to the vehicle.",
        ],
        after:
          "In such cases, visit charges shall apply, refund requests may be rejected, and repeat no-shows may lead to account restrictions.",
      },
      {
        heading: "7. False or Fraudulent Bookings",
        body: [
          "Ride N Revive reserves the right to cancel suspicious bookings, suspend user accounts, block repeat offenders, and recover operational losses. Fraudulent activities include:",
        ],
        list: [
          "Fake breakdown reports",
          "Prank bookings",
          "Multiple duplicate bookings",
          "Misrepresentation of vehicle ownership",
        ],
      },
      {
        heading: "8. Mechanic or Service Partner Cancellation",
        body: [
          "If a mechanic is unable to complete a booking due to vehicle breakdown, medical emergency, safety concerns, or unavoidable circumstances, Ride N Revive may:",
        ],
        list: [
          "Reassign another technician",
          "Reschedule the booking",
          "Offer a refund where applicable",
        ],
        after:
          "Customers shall not be charged for cancellations initiated by Ride N Revive or its partners.",
      },
      {
        heading: "9. Rescheduling Policy",
        body: [
          "Customers may request a reschedule instead of cancellation. Benefits of Rescheduling:",
        ],
        list: [
          "Avoid cancellation charges where applicable.",
          "Retain booking priority.",
          "Maintain service continuity.",
        ],
        after:
          "Ride N Revive will make reasonable efforts to accommodate rescheduling requests based on technician availability.",
      },
      {
        heading: "10. Refund Processing",
        body: ["Where refunds are approved, estimated timelines are as follows:"],
        list: [
          "UPI: 1–5 Business Days",
          "Credit Card: 5–10 Business Days",
          "Debit Card: 5–10 Business Days",
          "Net Banking: 3–7 Business Days",
          "Wallets: 1–5 Business Days",
        ],
        after: "Actual timelines depend on banking partners and payment processors.",
      },
      {
        heading: "11. Non-Refundable Situations",
        body: ["Refunds shall generally not be provided where:"],
        list: [
          "Service has been successfully completed.",
          "Spare parts have been installed.",
          "Customer refuses service after technician arrival.",
          "Customer provides incorrect booking details.",
          "Customer is unavailable at the service location.",
          "Vehicle is not present at the booked location.",
          "Service delay is caused by customer actions.",
        ],
      },
      {
        heading: "12. Force Majeure Events",
        body: [
          "Cancellation charges may be waived at Ride N Revive's discretion in cases involving:",
        ],
        list: [
          "Natural disasters",
          "Floods",
          "Earthquakes",
          "Government restrictions",
          "Civil unrest",
          "Severe weather conditions",
        ],
        after: "Supporting documentation may be required.",
      },
      {
        heading: "13. Ride N Revive Fair Use Policy",
        body: [
          "To protect customers, mechanics, and service partners, Ride N Revive maintains a Fair Use Policy. Users who repeatedly:",
        ],
        list: [
          "Book and cancel services",
          "Create duplicate bookings",
          "Abuse emergency assistance requests",
          "Misuse promotional offers",
        ],
        after:
          "may face temporary account suspension, permanent account termination, or restrictions on future bookings.",
      },
    ],
  },
];

export default function CancellationPolicyPage() {
  return (
    <>
      <BreadcrumbSection
        currentPage="Cancellation Policy"
        title="Cancellation & Rescheduling Policy"
        lead="Fair policies for cancellations, rescheduling, and no-shows"
      />

      <PolicyDocument
        title="Cancellation & Rescheduling Policy"
        lead="Fair policies for cancellations, rescheduling, no-shows, dispatch, and refund eligibility."
        sections={sections}
        pledge={
          <>
            <h2 className="text-xl font-black tracking-tight text-foreground">
              Ride N Revive Customer-First Commitment
            </h2>
            <p className="mt-3 text-sm font-medium leading-7 text-muted-foreground">
              Wherever possible, Ride N Revive will prioritize rescheduling, transparent
              communication, fair compensation for mechanics, customer convenience, and
              resolution-oriented support.
            </p>
            <p className="mt-3 text-sm font-medium leading-7 text-muted-foreground">
              We believe in balancing customer flexibility with respect for the time, effort, and
              expertise of our service professionals.
            </p>
            <p className="mt-5 text-base font-black text-foreground">Ride N Revive</p>
            <p className="mt-2 text-sm font-bold text-muted-foreground">
              "Every Booking Matters. Every Technician Counts. Every Customer Deserves Fairness."
            </p>
          </>
        }
      />
    </>
  );
}
