{% extends 'base.html.twig' %}
{% block title %}Contact | CogniEdu{% endblock %}
{% block body %}
<div class="container" style="max-width: 720px; margin: 30px auto; padding: 0 16px;">
<h1>Contact</h1>
<p>Send us a message and we’ll get back to you.</p>
{% for label, messages in app.flashes %}
{% for message in messages %}
<div style="padding:10px 12px; margin:12px 0; border:1px solid #ddd; border-radius:8px;">
{{ message }}
</div>
{% endfor %}
{% endfor %}
{{ form_start(form) }}
<div style="margin-bottom:14px;">
{{ form_label(form.name) }}
{{ form_widget(form.name, { attr: { class: 'form-control' } }) }}
{{ form_errors(form.name) }}
</div>
<div style="margin-bottom:14px;">
{{ form_label(form.email) }}
{{ form_widget(form.email, { attr: { class: 'form-control' } }) }}
{{ form_errors(form.email) }}
</div>
<div style="margin-bottom:14px;">
{{ form_label(form.message) }}
{{ form_widget(form.message, { attr: { class: 'form-control' } }) }}
{{ form_errors(form.message) }}
</div>
<button class="btn btn-primary" type="submit">Send</button>
{{ form_end(form) }}
</div>
{% endblock %}