<?php $alert = flash('ok'); ?>
<div class="container my-4">
  <h2 class="mb-3">Contact</h2>
  <?php if($alert): ?><div class="alert alert-success"><?php echo e($alert); ?></div><?php endif; ?>
  <form method="post" action="<?php echo e(base_url('contact_submit.php')) ?>" class="card p-3 shadow-sm border-0">
    <input type="hidden" name="csrf" value="<?php echo e(csrf_token()) ?>">
    <div class="row g-3">
      <div class="col-md-6">
        <label class="form-label">Nama</label>
        <input class="form-control" name="name" required>
      </div>
      <div class="col-md-6">
        <label class="form-label">Email</label>
        <input type="email" class="form-control" name="email" required>
      </div>
      <div class="col-12">
        <label class="form-label">Subjek</label>
        <input class="form-control" name="subject">
      </div>
      <div class="col-12">
        <label class="form-label">Pesan</label>
        <textarea class="form-control" name="message" rows="5" required></textarea>
      </div>
      <div class="col-12">
        <button class="btn btn-primary btn-lg">Kirim</button>
      </div>
    </div>
  </form>
</div>
