import type { Metadata } from "next"
import Link from "next/link"
import { Clock, Calendar, ArrowLeft } from "lucide-react"
import { Button } from "@/components/ui/button"

export const metadata: Metadata = {
  title: "Cancellation Policy | Teertham",
  description:
    "Understand Teertham's cancellation policy for vehicle bookings, hotel reservations, spiritual packages, and custom travel services. Learn about cancellation timelines and applicable charges.",
  openGraph: {
    title: "Cancellation Policy | Teertham",
    description:
      "Understand Teertham's cancellation policy for vehicle bookings, hotel reservations, spiritual packages, and custom travel services. Learn about cancellation timelines and applicable charges.",
    type: "website",
  },
  twitter: {
    card: "summary_large_image",
    title: "Cancellation Policy | Teertham",
    description:
      "Understand Teertham's cancellation policy for vehicle bookings, hotel reservations, spiritual packages, and custom travel services. Learn about cancellation timelines and applicable charges.",
  },
}

export default function CancellationPolicyPage() {
  const readTime = "7 min read"
  const lastUpdated = "December 15, 2024"

  return (
    <main className="min-h-screen bg-gradient-to-br from-background via-background to-muted/20">
      <div className="mx-auto max-w-4xl px-4 py-12 md:py-16 lg:py-20">
        {/* Back Button */}
        <Link href="/">
          <Button variant="ghost" size="sm" className="mb-8 -ml-2">
            <ArrowLeft className="mr-2 h-4 w-4" />
            Back to Home
          </Button>
        </Link>

        <div className="bg-card rounded-2xl shadow-xl border border-border/50 overflow-hidden">
          {/* Header */}
          <header className="px-6 md:px-10 pt-10 pb-8 bg-gradient-to-br from-primary/5 via-primary/10 to-primary/5">
            <h1 className="text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight text-balance mb-6">
              Cancellation Policy
            </h1>

            <div className="flex flex-wrap items-center gap-4 text-sm text-muted-foreground">
              <div className="flex items-center gap-1.5">
                <Clock className="h-4 w-4" aria-hidden="true" />
                <span>{readTime}</span>
              </div>
              <div className="flex items-center gap-1.5">
                <Calendar className="h-4 w-4" aria-hidden="true" />
                <span>Last updated: {lastUpdated}</span>
              </div>
            </div>
          </header>

          {/* Content */}
          <article className="px-6 md:px-10 py-10 prose prose-slate dark:prose-invert prose-headings:font-bold prose-headings:tracking-tight prose-h2:text-3xl prose-h2:mt-12 prose-h2:mb-6 prose-h3:text-xl prose-h3:mt-8 prose-h3:mb-4 prose-p:text-foreground/80 prose-p:leading-relaxed prose-li:text-foreground/80 prose-strong:text-foreground max-w-none">
            <section>
              <p className="text-lg leading-relaxed">
                At Teertham, we understand that plans can change. This Cancellation Policy outlines the terms and
                conditions for cancelling bookings made through our platform. Cancellation policies may vary depending
                on the service type and provider.
              </p>
            </section>

            <section>
              <h2>1. General Cancellation Guidelines</h2>

              <h3>1.1 How to Cancel</h3>
              <p>You can cancel your booking through the following methods:</p>
              <ul>
                <li>Log in to your account and navigate to &quot;My Bookings&quot;</li>
                <li>Select the booking you wish to cancel and click &quot;Cancel Booking&quot;</li>
                <li>Contact our customer support team at +91 123 456 7890 or support@teertham.com</li>
              </ul>

              <h3>1.2 Cancellation Confirmation</h3>
              <p>
                Once your cancellation is processed, you will receive a confirmation email with cancellation details and
                refund information (if applicable).
              </p>

              <h3>1.3 Cancellation Charges</h3>
              <p>
                Cancellation charges vary based on the service type, timing of cancellation, and provider-specific
                policies. The applicable charges will be deducted from your refund amount.
              </p>
            </section>

            <section>
              <h2>2. Vehicle Booking Cancellations</h2>

              <h3>2.1 Standard Vehicle Bookings</h3>
              <p>Cancellation charges for vehicle bookings are as follows:</p>
              <ul>
                <li>
                  <strong>More than 48 hours before pickup:</strong> 10% cancellation fee
                </li>
                <li>
                  <strong>24-48 hours before pickup:</strong> 25% cancellation fee
                </li>
                <li>
                  <strong>12-24 hours before pickup:</strong> 50% cancellation fee
                </li>
                <li>
                  <strong>Less than 12 hours before pickup:</strong> 75% cancellation fee
                </li>
                <li>
                  <strong>No-show:</strong> 100% cancellation fee (no refund)
                </li>
              </ul>

              <h3>2.2 Multi-Day Vehicle Bookings</h3>
              <p>For bookings exceeding 3 days, the following cancellation policy applies:</p>
              <ul>
                <li>
                  <strong>More than 7 days before pickup:</strong> 5% cancellation fee
                </li>
                <li>
                  <strong>3-7 days before pickup:</strong> 20% cancellation fee
                </li>
                <li>
                  <strong>1-3 days before pickup:</strong> 40% cancellation fee
                </li>
                <li>
                  <strong>Less than 24 hours before pickup:</strong> 80% cancellation fee
                </li>
              </ul>

              <h3>2.3 Partial Cancellation</h3>
              <p>
                If you have a multi-day booking and wish to cancel only certain days, please contact customer support.
                Cancellation fees will be calculated proportionally based on the cancelled portion.
              </p>
            </section>

            <section>
              <h2>3. Hotel Booking Cancellations</h2>

              <h3>3.1 Standard Hotel Bookings</h3>
              <p>Hotel cancellation policies are set by individual hotel partners and typically include:</p>
              <ul>
                <li>
                  <strong>More than 72 hours before check-in:</strong> Free cancellation or 10% fee (hotel-dependent)
                </li>
                <li>
                  <strong>48-72 hours before check-in:</strong> 25-30% cancellation fee
                </li>
                <li>
                  <strong>24-48 hours before check-in:</strong> 50% cancellation fee
                </li>
                <li>
                  <strong>Less than 24 hours before check-in:</strong> 100% cancellation fee (no refund)
                </li>
              </ul>

              <h3>3.2 Non-Refundable Bookings</h3>
              <p>
                Some hotel bookings are marked as &quot;Non-Refundable&quot; and cannot be cancelled for a refund.
                However, you may be able to modify dates subject to availability and hotel approval.
              </p>

              <h3>3.3 Special Rates and Packages</h3>
              <p>
                Promotional rates, seasonal packages, and special offers may have stricter cancellation policies. Please
                review the specific terms at the time of booking.
              </p>
            </section>

            <section>
              <h2>4. Spiritual Package Cancellations</h2>

              <h3>4.1 Fixed Spiritual Packages</h3>
              <p>Cancellation charges for pre-designed spiritual packages:</p>
              <ul>
                <li>
                  <strong>More than 15 days before departure:</strong> 15% cancellation fee
                </li>
                <li>
                  <strong>8-15 days before departure:</strong> 30% cancellation fee
                </li>
                <li>
                  <strong>3-7 days before departure:</strong> 50% cancellation fee
                </li>
                <li>
                  <strong>Less than 3 days before departure:</strong> 75% cancellation fee
                </li>
                <li>
                  <strong>No-show:</strong> 100% cancellation fee (no refund)
                </li>
              </ul>

              <h3>4.2 Group Bookings</h3>
              <p>
                For group spiritual packages (5 or more people), cancellation policies may differ. Group cancellations
                must be made by the primary booking contact. Partial group cancellations are subject to negotiation with
                the tour operator.
              </p>
            </section>

            <section>
              <h2>5. Custom Package Cancellations</h2>

              <h3>5.1 Customized Travel Packages</h3>
              <p>
                Custom packages are tailored to your specific requirements and involve coordination with multiple
                service providers. Cancellation policies are determined on a case-by-case basis depending on:
              </p>
              <ul>
                <li>Services included in the package</li>
                <li>Advance bookings made with third-party providers</li>
                <li>Timing of the cancellation request</li>
                <li>Non-refundable components (flights, special permits, etc.)</li>
              </ul>

              <h3>5.2 Cancellation Process</h3>
              <p>
                To cancel a custom package, contact our customer support team immediately. We will assess the situation
                and provide a detailed breakdown of applicable charges and potential refunds.
              </p>
            </section>

            <section>
              <h2>6. Force Majeure and Exceptional Circumstances</h2>

              <h3>6.1 Natural Disasters and Emergencies</h3>
              <p>
                In cases of natural disasters, extreme weather, political unrest, or government-imposed travel
                restrictions, we will work with you to reschedule or provide alternative arrangements. Standard
                cancellation fees may be waived or reduced at our discretion.
              </p>

              <h3>6.2 Medical Emergencies</h3>
              <p>
                If you need to cancel due to a medical emergency, please provide valid medical documentation within 48
                hours of cancellation. We will review on a case-by-case basis and may offer full or partial refunds.
              </p>

              <h3>6.3 Service Provider Cancellations</h3>
              <p>
                If a service provider cancels your booking, you will receive a full refund or the option to book an
                alternative service at no additional cost.
              </p>
            </section>

            <section>
              <h2>7. Modification vs. Cancellation</h2>

              <h3>7.1 Booking Modifications</h3>
              <p>
                Before cancelling, consider modifying your booking. Changes to dates, times, or services are often
                subject to lower fees than full cancellations. Modification fees and availability depend on the service
                provider.
              </p>

              <h3>7.2 How to Modify</h3>
              <p>
                Contact our customer support team to discuss modification options. We will check availability and inform
                you of any applicable charges or price differences.
              </p>
            </section>

            <section>
              <h2>8. Refund Processing</h2>
              <p>
                After cancellation is confirmed and charges are calculated, refunds are processed according to our{" "}
                <Link href="/refund-policy" className="text-primary hover:underline">
                  Refund Policy
                </Link>
                . Refunds typically take 7-10 business days to reflect in your original payment method.
              </p>
            </section>

            <section>
              <h2>9. Important Notes</h2>
              <ul>
                <li>All cancellation times are calculated based on Indian Standard Time (IST)</li>
                <li>Cancellation fees are non-negotiable unless exceptional circumstances apply</li>
                <li>Payment gateway charges and convenience fees are non-refundable</li>
                <li>Promotional discounts may be forfeited upon cancellation</li>
                <li>Cancellation policies are subject to change; the policy at the time of booking applies</li>
              </ul>
            </section>

            <section>
              <h2>10. Contact Us</h2>
              <p>
                For assistance with cancellations or to discuss your specific situation, please contact our customer
                support team:
              </p>
              <ul>
                <li>
                  <strong>Email:</strong> support@teertham.com
                </li>
                <li>
                  <strong>Phone:</strong> +91 123 456 7890 (Available 24/7)
                </li>
                <li>
                  <strong>Live Chat:</strong> Available on our website during business hours
                </li>
              </ul>
            </section>
          </article>
        </div>
      </div>
    </main>
  )
}
