<?php include __DIR__ . '/includes/header.php'; $sent=!empty($_GET['sent']); ?>
<div class="container content-box mt-5">
  <div class="text-center mb-5">
    <h1>Join the Team</h1>
    <p class="subtext">Apply to become part of Home Time Radio.</p>
  </div>

  <?php if($sent): ?>
    <div class="alert alert-success">Your application has been sent.</div>
  <?php endif; ?>

  <div class="bg-light p-4 rounded">
    <form method="post" action="send_join.php" enctype="multipart/form-data">
      <div class="row g-3">
        <div class="col-md-6"><input class="form-control" name="name" placeholder="Your name" required></div>
        <div class="col-md-6"><input class="form-control" name="email" type="email" placeholder="Your email" required></div>
        <div class="col-md-6"><input class="form-control" name="role" placeholder="Role you are interested in" required></div>
        <div class="col-md-6"><input class="form-control" name="experience" placeholder="Your experience level" required></div>
        <div class="col-12"><textarea class="form-control" name="why" rows="6" placeholder="Why do you want to join?" required></textarea></div>
        <div class="col-12"><input class="form-control" type="file" name="demo" accept="audio/*"></div>
      </div>
      <button class="btn btn-dark mt-3">Send Application</button>
    </form>
  </div>
</div>
<?php include __DIR__ . '/includes/footer.php'; ?>
