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: "Frequently Asked Questions | Teertham",
  description:
    "Find answers to common questions about Teertham's services, bookings, payments, cancellations, and more. Get help with vehicle bookings, hotels, and travel packages.",
  openGraph: {
    title: "Frequently Asked Questions | Teertham",
    description:
      "Find answers to common questions about Teertham's services, bookings, payments, cancellations, and more. Get help with vehicle bookings, hotels, and travel packages.",
    type: "website",
  },
  twitter: {
    card: "summary_large_image",
    title: "Frequently Asked Questions | Teertham",
    description:
      "Find answers to common questions about Teertham's services, bookings, payments, cancellations, and more. Get help with vehicle bookings, hotels, and travel packages.",
  },
}

export default function FAQPage() {
  const readTime = "12 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">
        <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 with gradient background */}
          <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">
              Frequently Asked Questions
            </h1>

            <div className="flex flex-wrap items-center gap-4 text-sm text-muted-foreground mb-4">
              <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>

            <p className="text-lg text-foreground/80 leading-relaxed">
              Find answers to the most common questions about using Teertham. If you can&apos;t find what you&apos;re
              looking for, feel free to contact our support team.
            </p>
          </header>

          <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>
              <h2>General Questions</h2>

              <h3>What is Teertham?</h3>
              <p>
                Teertham is a comprehensive travel platform that offers vehicle bookings, hotel reservations, spiritual
                packages, and custom travel services across India. We connect travelers with trusted service providers
                to create seamless and memorable travel experiences.
              </p>

              <h3>How do I create an account?</h3>
              <p>
                Click on the &quot;Create Account&quot; button on the homepage, fill in your details (name, email, phone
                number, password), and verify your email or phone number. You can also sign up using your Google or
                Facebook account for faster registration.
              </p>

              <h3>Is Teertham available across India?</h3>
              <p>
                Yes, Teertham operates across major cities and tourist destinations in India. Our services are
                continually expanding to cover more locations. Check our platform for availability in your desired
                destination.
              </p>

              <h3>How do I contact customer support?</h3>
              <p>
                You can reach our 24/7 customer support team via email at support@teertham.com, phone at +91 123 456
                7890, or through the live chat feature on our website. We typically respond within 2-4 hours.
              </p>
            </section>

            <section>
              <h2>Booking & Reservations</h2>

              <h3>How do I make a booking?</h3>
              <p>
                Select the service you need (vehicle, hotel, or package), enter your travel details, browse available
                options, choose your preferred service, review the booking details, and proceed to payment. You&apos;ll
                receive a confirmation email once the booking is successful.
              </p>

              <h3>Can I modify my booking after confirmation?</h3>
              <p>
                Yes, most bookings can be modified subject to availability and provider policies. Log in to your
                account, go to &quot;My Bookings,&quot; select the booking you wish to modify, and contact customer
                support. Modification fees may apply depending on the timing and nature of changes.
              </p>

              <h3>What payment methods do you accept?</h3>
              <p>
                We accept credit cards (Visa, Mastercard, American Express), debit cards, UPI, net banking, and popular
                digital wallets (Paytm, PhonePe, Google Pay). All payments are processed through secure, PCI-compliant
                payment gateways.
              </p>

              <h3>Will I receive a booking confirmation?</h3>
              <p>
                Yes, you&apos;ll receive an immediate booking confirmation via email and SMS with all the details
                including booking reference number, service provider information, and booking specifics. Save this
                confirmation for your records.
              </p>

              <h3>Can I book for someone else?</h3>
              <p>
                Yes, you can make bookings on behalf of others. During the booking process, enter the traveler&apos;s
                details instead of your own. Ensure all information is accurate as modifications may incur additional
                charges.
              </p>
            </section>

            <section>
              <h2>Vehicle Booking</h2>

              <h3>What types of vehicles are available?</h3>
              <p>
                We offer a wide range of vehicles including sedans, SUVs, tempo travelers, luxury cars, mini buses, and
                coaches. Each vehicle type is suited for different group sizes and travel needs. Detailed specifications
                and seating capacities are provided during booking.
              </p>

              <h3>Are drivers included with vehicle bookings?</h3>
              <p>
                Yes, all vehicle bookings include experienced, licensed drivers familiar with local routes. Driver
                expenses (accommodation and meals for multi-day trips) are included in the booking price unless
                otherwise specified.
              </p>

              <h3>What is included in the vehicle rental price?</h3>
              <p>
                The price typically includes vehicle rental, driver charges, standard fuel (for fixed packages), and
                applicable taxes. Additional costs may include toll fees, parking charges, interstate permits, and extra
                kilometers beyond the package limit.
              </p>

              <h3>Can I extend my vehicle rental duration?</h3>
              <p>
                Yes, you can request an extension subject to vehicle availability. Contact the driver or our customer
                support team to arrange an extension. Additional charges will apply based on the extended duration and
                distance.
              </p>
            </section>

            <section>
              <h2>Hotel Reservations</h2>

              <h3>How do I choose the right hotel?</h3>
              <p>
                Use our filters to narrow down hotels by location, price range, amenities, and guest ratings. Read
                reviews from verified guests, view photos, and check room details before booking. Our customer support
                team can also provide personalized recommendations.
              </p>

              <h3>What is included in the hotel booking price?</h3>
              <p>
                Hotel prices typically include room accommodation and applicable taxes. Breakfast inclusion varies by
                hotel and is clearly indicated during booking. Additional services like meals, spa, laundry, and minibar
                are usually charged separately.
              </p>

              <h3>Can I request early check-in or late check-out?</h3>
              <p>
                Yes, you can request early check-in or late check-out, but it&apos;s subject to hotel availability and
                may incur additional charges. Contact the hotel directly or through our customer support after booking
                to make such requests.
              </p>

              <h3>What if I have special requirements?</h3>
              <p>
                Special requests such as accessible rooms, dietary preferences, extra bedding, or specific floor
                preferences can be noted during booking. While we forward these requests to hotels, we cannot guarantee
                fulfillment as they depend on availability.
              </p>
            </section>

            <section>
              <h2>Cancellation & Refunds</h2>

              <h3>How do I cancel my booking?</h3>
              <p>
                Log in to your account, navigate to &quot;My Bookings,&quot; select the booking you wish to cancel, and
                click the &quot;Cancel Booking&quot; button. Follow the prompts to confirm cancellation. You can also
                contact customer support for assistance. Review our{" "}
                <Link href="/cancellation-policy" className="text-primary hover:underline">
                  Cancellation Policy
                </Link>{" "}
                for applicable charges.
              </p>

              <h3>When will I receive my refund?</h3>
              <p>
                Refunds are initiated within 2-3 business days of cancellation confirmation. The time it takes to
                reflect in your account depends on your payment method and bank, typically 5-10 business days. Check our{" "}
                <Link href="/refund-policy" className="text-primary hover:underline">
                  Refund Policy
                </Link>{" "}
                for detailed timelines.
              </p>

              <h3>Are there any cancellation charges?</h3>
              <p>
                Yes, cancellation charges vary based on the service type and timing of cancellation. Generally, the
                closer to the service date you cancel, the higher the charges. Refer to our{" "}
                <Link href="/cancellation-policy" className="text-primary hover:underline">
                  Cancellation Policy
                </Link>{" "}
                for specific details.
              </p>

              <h3>Can I get a full refund?</h3>
              <p>
                Full refunds are possible if you cancel within the free cancellation period (usually 48-72 hours before
                service date for most bookings) or if the service provider cancels the booking. Convenience fees and
                payment gateway charges are typically non-refundable.
              </p>
            </section>

            <section>
              <h2>Payment & Security</h2>

              <h3>Is my payment information secure?</h3>
              <p>
                Yes, we use industry-standard SSL encryption and PCI-DSS compliant payment gateways to protect your
                payment information. We do not store your complete card details on our servers. All transactions are
                secured with multiple layers of protection.
              </p>

              <h3>What if my payment fails?</h3>
              <p>
                If your payment fails but the amount is debited, it will be automatically refunded within 7-10 business
                days. You can retry the booking with a different payment method. If the issue persists, contact your
                bank or our customer support team.
              </p>

              <h3>Can I pay in installments?</h3>
              <p>
                Currently, full payment is required at the time of booking. However, we are working on introducing
                installment payment options for certain high-value packages. Check our platform for updates on this
                feature.
              </p>

              <h3>Do you offer any discounts or promo codes?</h3>
              <p>
                Yes, we regularly offer discounts, seasonal promotions, and promo codes. Subscribe to our newsletter and
                follow us on social media to stay updated on the latest offers. Promo codes can be applied during the
                checkout process.
              </p>
            </section>

            <section className="mt-12 rounded-2xl border-2 border-primary/20 bg-gradient-to-br from-primary/5 to-primary/10 p-8 shadow-lg">
              <h2 className="text-2xl font-bold mb-4 tracking-tight">Still Have Questions?</h2>
              <p className="mb-6">
                If you couldn&apos;t find the answer you were looking for, our support team is here to help you 24/7.
              </p>
              <div className="flex flex-wrap gap-4">
                <Link href="/contact-us">
                  <Button size="lg" className="frontend-btn shadow-lg hover:shadow-xl transition-all">
                    Contact Support
                  </Button>
                </Link>
                <Link href="/">
                  <Button size="lg" variant="outline">
                    Back to Home
                  </Button>
                </Link>
              </div>
            </section>
          </article>
        </div>
      </div>
    </main>
  )
}
