<?php
require_once 'includes/functions.php';
initSession();
require_once 'config/config.php';
$seo = getSEO('refunds');
?>
<!DOCTYPE html>
<html lang="en">

<head>
  <!-- Google Tag Manager -->
  <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  })(window,document,'script','dataLayer','GTM-N8NQFC4Z');</script>
  <!-- End Google Tag Manager -->
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><?php echo htmlspecialchars($seo['title']); ?></title>
  <meta name="description" content="<?php echo htmlspecialchars($seo['description']); ?>">
  <meta name="keywords" content="<?php echo htmlspecialchars($seo['keywords']); ?>">
  <link rel="canonical" href="https://gobotad.com/refunds" />
  
  <!-- Open Graph / Facebook -->
  <meta property="og:type" content="website">
  <meta property="og:url" content="https://gobotad.com/refunds">
  <meta property="og:title" content="<?php echo htmlspecialchars($seo['title']); ?>">
  <meta property="og:description" content="<?php echo htmlspecialchars($seo['description']); ?>">
  <meta property="og:image" content="https://gobotad.com/uploads/banners/69d16da394dd8_1775332771.png">

  <!-- Twitter -->
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="https://gobotad.com/refunds">
  <meta name="twitter:title" content="<?php echo htmlspecialchars($seo['title']); ?>">
  <meta name="twitter:description" content="<?php echo htmlspecialchars($seo['description']); ?>">
  <meta name="twitter:image" content="https://gobotad.com/uploads/banners/69d16da394dd8_1775332771.png">

  <!-- Structured Data (JSON-LD) FAQPage for Cancellation & Refunds -->
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "How do I cancel my order on GoBotad?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "You can cancel your order on GoBotad without penalty within 2 minutes of placing it. After the 2-minute grace period has passed, cancellations are generally not permitted because the restaurant starts preparing the food, and you may be charged in full."
        }
      },
      {
        "@type": "Question",
        "name": "Under what conditions can I get a refund from GoBotad?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "You are eligible for a refund in case of missing items, wrong items delivered, poor food quality (with photographic proof submitted within 30 minutes of delivery), or failed payment transactions."
        }
      },
      {
        "@type": "Question",
        "name": "How long does it take for a refund to process?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Refunds to your GoBotad Wallet are instantaneous. Refunds to your original payment method (Credit/Debit Card, Net Banking, or UPI) typically take 5 to 7 business days to reflect in your account depending on your bank."
        }
      }
    ]
  }
  </script>

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <style>
    :root { --primary: #f97316; --primary-dark: #ea580c; --dark: #0f172a; --gray: #64748b; --light-gray: #f8fafc; --border: #e2e8f0; }
    * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
    body { background-color: var(--light-gray); color: #334155; line-height: 1.7; }
    header { background: white; padding: 20px 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
    .container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
    .header-content { display: flex; align-items: center; justify-content: space-between; }
    .logo { font-size: 1.5rem; font-weight: 900; color: var(--dark); text-decoration: none; display: flex; align-items: center; gap: 10px; }
    .logo i { color: var(--primary); }
    .back-btn { padding: 8px 16px; background: var(--light-gray); color: var(--dark); border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; }
    .back-btn:hover { background: #e2e8f0; }
    .main-content { padding: 60px 0; }
    .page-title { font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; text-align: center; }
    .last-updated { text-align: center; color: var(--gray); font-size: 0.95rem; margin-bottom: 40px; }
    .policy-card { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05); border: 1px solid var(--border); }
    .section-title { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 30px 0 15px; display: flex; align-items: center; gap: 12px; }
    .section-title i { color: var(--primary); font-size: 1.2rem; background: #fff7ed; padding: 10px; border-radius: 10px; }
    p { color: #475569; margin-bottom: 15px; font-size: 1.05rem; }
    ul { margin-bottom: 20px; padding-left: 20px; }
    li { margin-bottom: 10px; color: #475569; font-size: 1.05rem; position: relative; list-style-type: disc; }
    .footer { text-align: center; padding: 40px 0; color: var(--gray); font-size: 0.9rem; }
    @media (max-width: 768px) { .main-content { padding: 30px 0; } .policy-card { padding: 25px; } .page-title { font-size: 2rem; } }
  </style>
</head>
<body>
  <!-- Google Tag Manager (noscript) -->
  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N8NQFC4Z"
  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  <!-- End Google Tag Manager (noscript) -->
  <header>
    <div class="container header-content">
      <a href="/" class="logo"><i class="fas fa-utensils"></i> <?php echo htmlspecialchars(SITE_NAME); ?></a>
      <a href="/" class="back-btn"><i class="fas fa-arrow-left"></i> Back to Home</a>
    </div>
  </header>
  <main class="main-content container">
    <h1 class="page-title">Refund & Cancellation Policy</h1>
    <p class="last-updated">Last Updated: <?php echo date('F j, Y'); ?></p>
    <div class="policy-card">
      <p>At GoBotad, we strive to ensure that every order reaches you in perfect condition and exactly as you requested. However, we understand that issues may occasionally arise. This Refund and Cancellation Policy outlines the conditions under which you can cancel an order or request a refund.</p>

      <h2 class="section-title"><i class="fas fa-ban"></i> 1. Order Cancellation by User</h2>
      <ul>
        <li><strong>Grace Period:</strong> You may cancel your order without any penalty within <strong>2 minutes</strong> of placing it. During this short window, the restaurant has typically not yet started preparing your food.</li>
        <li><strong>Late Cancellations:</strong> After the 2-minute grace period has passed, the restaurant partner is likely already preparing your meal. Therefore, cancellations are generally not permitted, and you may be charged the full amount of the order.</li>
        <li><strong>How to Cancel:</strong> You can cancel your order directly from the "Active Orders" section in your GoBotad app or website. If you encounter issues, immediately contact our support team.</li>
      </ul>

      <h2 class="section-title"><i class="fas fa-store-slash"></i> 2. Cancellation by GoBotad or Restaurant</h2>
      <p>GoBotad or our restaurant partners reserve the right to cancel an order under specific circumstances, including but not limited to:</p>
      <ul>
        <li>Unavailability of the ordered items at the restaurant.</li>
        <li>Inability to reach your delivery location due to extreme weather, road closures, or other unforeseen logistical challenges.</li>
        <li>Failure to contact you for address verification or entry instructions.</li>
      </ul>
      <p>If we cancel your order, you will not be charged, and any prepaid amount will be refunded in full.</p>

      <h2 class="section-title"><i class="fas fa-arrow-rotate-left"></i> 3. Refund Policy & Eligibility</h2>
      <p>You may be eligible for a partial or full refund in the following situations:</p>
      <ul>
        <li><strong>Missing Items:</strong> If an item from your order is missing, we will refund the value of that specific item.</li>
        <li><strong>Wrong Items Delivered:</strong> If you receive an entirely different order or wrong items, we will offer a replacement or a full/partial refund.</li>
        <li><strong>Poor Food Quality:</strong> If the food delivered is spoiled, stale, or severely compromised (e.g., completely spilled), please provide photographic evidence within 30 minutes of delivery to be eligible for a refund assessment.</li>
        <li><strong>Failed Transactions:</strong> If your payment is deducted from your bank account but the order fails to register on our system, an automatic refund is initiated.</li>
      </ul>

      <h2 class="section-title"><i class="fas fa-triangle-exclamation"></i> 4. Non-Refundable Cases</h2>
      <p>We cannot offer refunds or accept cancellations in the following scenarios:</p>
      <ul>
        <li>You provided an incorrect or incomplete delivery address.</li>
        <li>The delivery partner arrived at your location, but you were unresponsive to calls or messages for more than 10 minutes.</li>
        <li>You did not report the issue (e.g., missing item, quality concern) within 1 hour of the delivery time.</li>
        <li>Subjective dissatisfaction with the taste or portion size, provided the food matches the restaurant's description.</li>
      </ul>

      <h2 class="section-title"><i class="fas fa-money-bill-transfer"></i> 5. Refund Processing Timeline</h2>
      <p>Once a refund is approved by our customer support team, it will be processed according to the following timelines:</p>
      <ul>
        <li><strong>GoBotad Wallet:</strong> Refunds to your GoBotad wallet are typically instantaneous and can be used immediately for your next order.</li>
        <li><strong>Credit/Debit Cards, UPI, Net Banking:</strong> Refunds to the original payment method usually take <strong>5-7 business days</strong> to reflect in your account, depending on your bank's processing times.</li>
      </ul>

      <h2 class="section-title"><i class="fas fa-envelope"></i> 6. Contact Support for Refunds</h2>
      <p>To raise a dispute or request a refund, please navigate to the 'Help & Support' section in your app, select the specific order, and describe your issue. Alternatively, you can email us directly with your Order ID and photographic evidence at: <strong>gobotad@gmail.com</strong>.</p>
    </div>
  </main>
  <footer class="footer">
    <div class="container">&copy; <?php echo date('Y'); ?> <?php echo htmlspecialchars(SITE_NAME); ?>. All rights reserved.</div>
  </footer>
</body>
</html>
