<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/** BRAND COLLABORATION — Expects: $services. */
$budgets = array('Under GHS 5,000', 'GHS 5,000 – 15,000', 'GHS 15,000 – 50,000', 'GHS 50,000+', 'Not sure yet');
$timelines = array('As soon as possible', 'Within 1 month', '1–3 months', '3+ months', 'Just exploring');
?>
<section class="page-hero">
	<div class="container">
		<div class="page-hero-inner" data-reveal>
			<div class="breadcrumb"><a href="<?= base_url() ?>">Home</a> / <span>Brand Collaboration</span></div>
			<span class="eyebrow">For Brands</span>
			<h1>Start a <span class="serif-italic text-iris">collaboration</span></h1>
			<p>Tell us about your brand and your project — we'll craft the creative path forward.</p>
		</div>
	</div>
</section>

<section class="section">
	<div class="container" style="max-width:780px;">
		<div class="form-card" data-reveal>
			<?= flash() ?>
			<form action="<?= base_url('apply/brand/submit') ?>" method="post" enctype="multipart/form-data">
				<?= form_hidden($this->security->get_csrf_token_name(), $this->security->get_csrf_hash()) ?>
				<div style="position:absolute;left:-9999px;" aria-hidden="true"><input type="text" name="website" tabindex="-1"></div>

				<span class="eyebrow">Brand &amp; Contact</span>
				<div class="field-row" style="margin-top:16px;">
					<div class="field"><label>Your Name <span class="req">*</span></label><input type="text" name="name" value="<?= set_value('name') ?>" required></div>
					<div class="field"><label>Company / Brand <span class="req">*</span></label><input type="text" name="company" value="<?= set_value('company') ?>" required></div>
				</div>
				<div class="field-row">
					<div class="field"><label>Email <span class="req">*</span></label><input type="email" name="email" value="<?= set_value('email') ?>" required></div>
					<div class="field"><label>Phone</label><input type="text" name="phone" value="<?= set_value('phone') ?>"></div>
				</div>

				<span class="eyebrow" style="display:block;margin-top:10px;">Project</span>
				<div class="field" style="margin-top:16px;"><label>Service of Interest</label>
					<select name="service_id">
						<option value="">Select a service…</option>
						<?php foreach ($services as $svc): ?>
							<option value="<?= $svc['id'] ?>" <?= set_select('service_id', $svc['id']) ?>><?= html_escape($svc['title']) ?></option>
						<?php endforeach; ?>
					</select>
				</div>
				<div class="field-row">
					<div class="field"><label>Estimated Budget</label>
						<select name="budget_range">
							<option value="">Select…</option>
							<?php foreach ($budgets as $b): ?><option value="<?= $b ?>" <?= set_select('budget_range', $b) ?>><?= $b ?></option><?php endforeach; ?>
						</select>
					</div>
					<div class="field"><label>Timeline</label>
						<select name="timeline">
							<option value="">Select…</option>
							<?php foreach ($timelines as $t): ?><option value="<?= $t ?>" <?= set_select('timeline', $t) ?>><?= $t ?></option><?php endforeach; ?>
						</select>
					</div>
				</div>

				<div class="field"><label>Project Details <span class="req">*</span></label>
					<textarea name="message" required placeholder="Describe your project, goals and any creative direction you have in mind…"><?= set_value('message') ?></textarea>
				</div>

				<div class="field"><label>Upload a Brief</label>
					<input type="file" name="brief" accept=".pdf,image/*">
					<span class="field-hint">Optional. PDF or image — up to 8MB.</span>
				</div>

				<button type="submit" class="btn btn-primary btn-block btn-lg"><?= bloom_icon('handshake', 18) ?> Submit Inquiry</button>
			</form>
		</div>
	</div>
</section>
