{% load i18n %}
{% load static %}
<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE|default:'en' }}">
<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' %}">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        body { font-family: 'Inter', sans-serif; }
    </style>
</head>
<body class="bg-gray-50 min-h-screen flex items-center py-8 px-4">
    <div class="w-full max-w-xl mx-auto">
        <div class="bg-white rounded-2xl shadow-lg border border-gray-200 p-8 text-center">
            <div class="w-20 h-20 mx-auto bg-amber-100 rounded-full flex items-center justify-center mb-6">
                <svg class="w-10 h-10 text-amber-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"></path>
                </svg>
            </div>
            <h1 class="text-2xl font-bold text-gray-800 mb-2">{% trans "Already Submitted" %}</h1>
            <p class="text-gray-500">
                {% if investigation %}
                    {% trans "The investigation for this complaint has already been completed." %}
                {% elif inv_response %}
                    {% trans "You have already submitted your answers for this investigation." %}
                {% else %}
                    {% trans "This link has already been used." %}
                {% endif %}
            </p>
            {% if complaint %}
            <div class="text-left bg-gray-50 rounded-xl p-4 mt-6">
                <p class="text-sm text-gray-500">{% trans "Complaint Reference" %}</p>
                <p class="font-bold text-gray-800">#{{ complaint.reference_number }}</p>
            </div>
            {% endif %}
        </div>
        <p class="text-center text-gray-400 text-xs mt-6">{% trans "PX360 Complaint Management System" %}</p>
    </div>
</body>
</html>
