<div class="container py-5">
    <h1 class="mb-4">Form Order Layanan</h1>
    
    <?php if (isset($validation)): ?>
        <div class="alert alert-danger">
            <?= $validation->listErrors() ?>
        </div>
    <?php endif; ?>

    <?= form_open('order') ?>
        <div class="mb-3">
            <label for="customer_name" class="form-label">Nama Lengkap</label>
            <input type="text" class="form-control" name="customer_name" id="customer_name" value="<?= set_value('customer_name') ?>" required>
        </div>
        
        <div class="mb-3">
            <label for="customer_email" class="form-label">Email</label>
            <input type="email" class="form-control" name="customer_email" id="customer_email" value="<?= set_value('customer_email') ?>" required>
        </div>
        
        <div class="mb-3">
            <label for="customer_phone" class="form-label">Nomor Telepon/WhatsApp</label>
            <input type="tel" class="form-control" name="customer_phone" id="customer_phone" value="<?= set_value('customer_phone') ?>" required>
        </div>
        
        <div class="mb-3">
            <label for="service_type" class="form-label">Jenis Layanan</label>
            <select class="form-select" name="service_type" id="service_type" required>
                <option value="">Pilih Layanan...</option>
                <option value="Web Development" <?= set_select('service_type', 'Web Development') ?>>Web Development</option>
                <option value="Mobile Apps" <?= set_select('service_type', 'Mobile Apps') ?>>Mobile Apps</option>
                <option value="Digital Marketing" <?= set_select('service_type', 'Digital Marketing') ?>>Digital Marketing</option>
                <option value="UI/UX Design" <?= set_select('service_type', 'UI/UX Design') ?>>UI/UX Design</option>
                <option value="Lainnya" <?= set_select('service_type', 'Lainnya') ?>>Lainnya</option>
            </select>
        </div>
        
        <div class="mb-3">
            <label for="description" class="form-label">Deskripsi Kebutuhan (Opsional)</label>
            <textarea class="form-control" name="description" id="description" rows="4"><?= set_value('description') ?></textarea>
        </div>
        
        <button type="submit" class="btn btn-primary btn-lg">Kirim Pesanan</button>
    </form>
</div>