import type { Metadata } from "next";
import Link from "next/link";
import { Clock, Calendar } from "lucide-react";

// export const metadata: Metadata = {
//   title: "Cancellation Policy | Ameera Holidays",
//   description:
//     "Understand Ameera Holidays'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 | Ameera Holidays",
//     description:
//       "Understand Ameera Holidays'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 | Ameera Holidays",
//     description:
//       "Understand Ameera Holidays'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-[#f7f9fb]">
      <div className="w-full">
        {/* Header */}
        <header className="w-full rounded-2xl bg-secondary-foreground/10 px-4 py-10 md:px-10 md:py-14 lg:px-16">
          <div className="mx-auto max-w-4xl py-2 text-center md:py-6">
            <h1 className="text-balance text-4xl font-bold tracking-tight text-slate-950 md:text-6xl">
              Cancellation{" "}
              <span className="frontend-text-gradient">Policy</span>
            </h1>
            <p className="mx-auto mt-5 max-w-3xl text-lg leading-relaxed text-slate-700 md:text-xl md:leading-10">
              Find answers to the most common questions about using ameera
              holidays. If you can't find what you're looking for, feel free to
              contact our support team.
            </p>

            <div className="mt-5 flex flex-wrap items-center justify-center gap-3">
              <span className="inline-flex items-center gap-2 rounded-full border border-slate-300/80 bg-white/70 px-4 py-1.5 text-sm font-medium text-slate-700 backdrop-blur-sm md:text-base">
                <Clock className="h-4 w-4 text-primary" aria-hidden="true" />
                {readTime}
              </span>
              <span className="inline-flex items-center gap-2 rounded-full border border-slate-300/80 bg-white/70 px-4 py-1.5 text-sm font-medium text-slate-700 backdrop-blur-sm md:text-base">
                <Calendar className="h-4 w-4 text-primary" aria-hidden="true" />
                Last updated: {lastUpdated}
              </span>
            </div>
          </div>
        </header>
        <div className="container mx-auto p-4 md:p-6 lg:p-8">
          {/* Content */}
          <article className="mt-8 rounded-2xl border border-slate-200 bg-white px-6 py-8 shadow-sm 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 md:px-10 md:py-10">
            <section>
              <p className="text-lg leading-relaxed">
                At Ameera Holidays, 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 85059 99770 or
                  info@ameeraholidays.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> info@ameeraholidays.com
                </li>
                <li>
                  <strong>Phone:</strong> +91 85059 99770 (Available 24/7)
                </li>
                <li>
                  <strong>Live Chat:</strong> Available on our website during
                  business hours
                </li>
              </ul>
            </section>
          </article>
        </div>
      </div>
    </main>
  );
}
