<?php
session_start();
$pageTitle = "Thank You - Gate Enquiry";
include_once "_header.php";
?>

<div class="container vh-100 d-flex align-items-center justify-content-center">
  <div class="card shadow-lg p-4 text-center" style="max-width: 500px; width:100%;">
    <div class="mb-3">
      <i class="fas fa-check-circle text-success" style="font-size: 4rem;"></i>
    </div>
    <h3 class="mb-3">Thank You!</h3>
    <p class="text-muted">
      Your gate enquiry has been successfully submitted and verified.
      <br>
      You will be redirected shortly...
    </p>
    <a href="gate_enquiry.php" class="btn btn-primary mt-3">
      <i class="fas fa-arrow-left"></i> Back to Enquiry Form
    </a>
  </div>
</div>

<script>
  // Auto redirect after 5 seconds
  setTimeout(() => {
    window.location.href = "gate_enquiry.php";
  }, 5000);
</script>

<?php include_once "footer.php"; ?>
