<!-- src/views/unsubscribe.ejs -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Unsubscribe from The Hyve</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        body { font-family: 'Inter', sans-serif; background-color: #f7fafc; }
    </style>
</head>
<body class="min-h-screen flex flex-col items-center justify-center p-4">
    <div class="max-w-4xl w-full">
        <header class="flex justify-between items-center mb-10">
            <div class="flex items-center space-x-2">
                <span class="text-2xl font-bold text-gray-800">the-hyve</span>
            </div>
        </header>

        <main class="p-8 md:p-16 rounded-3xl shadow-xl" style="background-color: #FFDA4D;">
            <div class="max-w-2xl">
                <h1 class="text-4xl font-extrabold mb-6 text-gray-900">
                    Confirm you want to unsubscribe?
                </h1>
                <p class="text-lg font-medium text-gray-700 mb-8">
                    We hate to see you leave! 😔
                </p>
                <form action="/unsubscribe/confirm" method="POST">
                    <input type="hidden" name="email" value="<%= email %>">
                    <div class="flex space-x-4">
                        <button type="submit" name="choice" value="yes" class="bg-red-600 text-white px-6 py-3 rounded-lg font-bold hover:bg-red-700">
                            Yes, Unsubscribe
                        </button>
                        <button type="submit" name="choice" value="no" class="bg-green-600 text-white px-6 py-3 rounded-lg font-bold hover:bg-green-700">
                            No, Stay with Us
                        </button>
                    </div>
                </form>
            </div>
        </main>
    </div>
</body>
</html>