<main class="contact-section">
    <div class="container">
        <div class="content-wrapper">
            <h2 class="page-title">CONTACT</h2>
            
            <?php if ($this->session->flashdata('success')): ?>
            <div class="alert alert-success">
                <?php echo $this->session->flashdata('success'); ?>
            </div>
            <?php endif; ?>
            
            <?php if ($this->session->flashdata('error')): ?>
            <div class="alert alert-error">
                <?php echo $this->session->flashdata('error'); ?>
            </div>
            <?php endif; ?>
            
            <div class="contact-form">
                <?php echo form_open('contact', array('id' => 'contactForm')); ?>
                    <div class="form-group">
                        <label class="form-label">Name</label>
                        <input type="text" name="name" class="form-control" required 
                               value="<?php echo set_value('name'); ?>">
                        <?php echo form_error('name'); ?>
                    </div>
                    
                    <div class="form-group">
                        <label class="form-label">Email</label>
                        <input type="email" name="email" class="form-control" required
                               value="<?php echo set_value('email'); ?>">
                        <?php echo form_error('email'); ?>
                    </div>
                    
                    <div class="form-group">
                        <label class="form-label">Phone</label>
                        <input type="tel" name="phone" class="form-control"
                               value="<?php echo set_value('phone'); ?>">
                    </div>
                    
                    <div class="form-group">
                        <label class="form-label">Company</label>
                        <input type="text" name="company" class="form-control"
                               value="<?php echo set_value('company'); ?>">
                    </div>
                    
                    <div class="form-group">
                        <label class="form-label">Message</label>
                        <textarea name="message" class="form-control" required rows="5"><?php echo set_value('message'); ?></textarea>
                        <?php echo form_error('message'); ?>
                    </div>
                    
                    <button type="submit" class="btn-primary">SEND MESSAGE</button>
                <?php echo form_close(); ?>
            </div>
        </div>
    </div>
</main>