{% load i18n %}
{% load static %}
<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE|default:'en' }}" dir="{% if LANGUAGE_CODE == 'ar' %}rtl{% else %}ltr{% endif %}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% trans "Already Submitted" %} - PX360</title>
    <link rel="stylesheet" href="{% static 'dist/css/tailwind.css' %}">
    <link rel="stylesheet" href="{% static 'vendor/fonts/noto-kufi-arabic/arabic.css' %}">
    <style>
        body { font-family: 'Inter', 'Noto Kufi Arabic', sans-serif; }
        [dir="rtl"] body,
        [dir="rtl"] input,
        [dir="rtl"] textarea,
        [dir="rtl"] select,
        [dir="rtl"] button {
            font-family: 'Noto Kufi Arabic', sans-serif;
        }
    </style>
</head>
<body class="bg-light min-h-screen flex items-center py-8 px-4">
    <div class="w-full max-w-lg mx-auto text-center">
        <div class="bg-white rounded-2xl shadow-lg p-10 border-2 border-slate-200">
            <div class="w-20 h-20 bg-amber-100 rounded-full flex items-center justify-center mx-auto mb-6">
                <i data-lucide="check" class="w-10 h-10 text-amber-600"></i>
            </div>
            <h1 class="text-2xl font-bold text-navy mb-2">{% trans "Response Already Submitted" %}</h1>
            <p class="text-slate mb-4">{% trans "A response has already been submitted using this link." %}</p>
            {% if explanation.responded_at %}
            <p class="text-sm text-slate-400">{% trans "Submitted on:" %} {{ explanation.responded_at|date:"M d, Y H:i" }}</p>
            {% endif %}
        </div>
    </div>
    <script src="{% static 'vendor/lucide/lucide.min.js' %}"></script>
    <script>lucide.createIcons();</script>
</body>
</html>
