{% extends 'emails/base_email_template.html' %}
{% load i18n %}

{% block title %}{% trans "Reminder - Department Response Required" %}{% endblock %}
{% block preheader %}{% trans "An inquiry is awaiting your department's response." %}{% endblock %}

{% block content %}
<p style="margin: 0 0 15px;">
    {% trans "Dear" %} <strong>{{ recipient_name|default:'Colleague' }}</strong>,
</p>

<p style="margin: 0 0 20px;">
    {% trans "This is a reminder that an inquiry is awaiting your department's response. Please submit your response before the deadline." %}
</p>

<p style="margin: 0 0 5px;"><strong>{% trans "Reference:" %}</strong> {{ inquiry.reference_number }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Subject:" %}</strong> {{ inquiry.subject }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Department:" %}</strong> {{ department_name }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Response Deadline:" %}</strong> {{ sla_due_at|date:"F d, Y H:i" }}</p>
<p style="margin: 0 0 20px;"><strong>{% trans "Time Remaining:" %}</strong> {{ hours_remaining }} {% trans "hours" %}</p>

{% if inquiry_url %}
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
    <tr>
        <td align="center">
            <a href="{{ inquiry_url }}"
               style="display: inline-block; padding: 12px 32px; font-size: 16px; font-weight: 600; color: #ffffff; text-decoration: none; border-radius: 6px; background-color: #005696;">
                {% trans "View Inquiry" %}
            </a>
        </td>
    </tr>
</table>
{% endif %}

<p style="margin: 25px 0 5px; font-size: 13px; color: #666666; direction: rtl; text-align: right;">
    تذكير - مطلوب رد القسم - {{ inquiry.reference_number }}
</p>
<p style="margin: 0; font-size: 12px; color: #999999; direction: rtl; text-align: right; line-height: 1.8;">
    موعد الاستحقاق: {{ sla_due_at|date:"Y F d H:i" }} - الوقت المتبقي: {{ hours_remaining }} ساعة
</p>
{% endblock %}
