{% extends 'base.html' %}

{% block title %}Defamation Assist - Your Expert Legal Partner{% endblock %}

{% block content %}
<div class="hero">
    <h1>Defamation Assist</h1>
    <p class="lead">Expert legal support for barristers specializing in defamation law.</p>
    <a href="#intake-form" class="btn btn-primary btn-lg">Submit a New Case</a>
</div>

<div class="container intake-section" id="intake-form">
    <div class="row justify-content-center">
        <div class="col-lg-8">
            <div class="intake-form">
                <h2 class="text-center mb-4">Client Intake Form</h2>
                <p class="text-center text-muted mb-4">Submit the details of a potential new case for review.</p>
                <form method="post" novalidate>
                    {% csrf_token %}
                    <div class="mb-3">
                        {{ form.full_name.label_tag }}
                        {{ form.full_name }}
                    </div>
                    <div class="row mb-3">
                        <div class="col-md-6">
                            {{ form.email.label_tag }}
                            {{ form.email }}
                        </div>
                        <div class="col-md-6">
                            {{ form.phone_number.label_tag }}
                            {{ form.phone_number }}
                        </div>
                    </div>
                    <div class="mb-3">
                        {{ form.description.label_tag }}
                        {{ form.description }}
                    </div>
                    {% if form.errors %}
                        <div class="alert alert-danger">
                            Please correct the errors below.
                        </div>
                    {% endif %}
                    <div class="d-grid">
                        <button type="submit" class="btn btn-primary btn-lg">Submit for Review</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}
