<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Form Kirim Pesan</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .container {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
            width: 100%;
            max-width: 400px;
        }

        h1 {
            margin-bottom: 20px;
            color: #333;
        }

        textarea {
            width: 100%;
            height: 150px;
            padding: 10px;
            border: 2px solid #ddd;
            border-radius: 8px;
            resize: none;
            font-size: 16px;
        }

        button {
            margin-top: 20px;
            background-color: #25D366; /* Warna WhatsApp */
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
        }

        button:hover {
            background-color: #128C7E;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Kirim Pesan Anonim</h1>
        <textarea id="message" placeholder="Tulis pesanmu..."></textarea>
        <button onclick="sendMessage()">Kirim Pesan</button>
    </div>

    <script>
        function sendMessage() {
            const message = document.getElementById("message").value.trim();
            if (message !== "") {
                const url = `https://wa.me/6282293836391?text=${encodeURIComponent(message)}`;
                window.open(url, "_blank");
            } else {
                alert("Tolong tulis pesan terlebih dahulu.");
            }
        }
    </script>
</body>
</html>