<?php include 'includes/header.php'; ?>

<div class="container content-box mt-5">

  <div class="text-center mb-5">
    <h1>Contact Us</h1>
    <p class="subtext">We’d love to hear from you—drop us a message below</p>
  </div>

  <?php if (!empty($_GET['sent'])): ?><div class="alert alert-success">Thanks — your message has been sent.</div><?php endif; ?>

  <div class="bg-light p-4 rounded mb-5">
    <form method="POST" action="api/send-contact.php">
      <div class="mb-3">
        <label for="name">Your Name</label>
        <input type="text" name="name" id="name" class="form-control" required>
      </div>

      <div class="mb-3">
        <label for="email">Your Email</label>
        <input type="email" name="email" id="email" class="form-control" required>
      </div>

      <div class="mb-3">
        <label for="message">Message</label>
        <textarea name="message" id="message" class="form-control" rows="5" placeholder="Type your message here..." required></textarea>
      </div>

      <button type="submit" class="btn btn-dark">Send Message</button>
    </form>
  </div>

</div>

<?php include 'includes/footer.php'; ?>

