<!-- Modal HTML (include this where needed) -->
<div id="messageModal" style="display:none;">
    <form action="pages/shared/messaging/send_message.php" method="POST">
        <input type="hidden" name="receiver_id" value="<?= $result['id'] ?>">
        <label>Subject:</label><br>
        <input type="text" name="subject" required><br>
        <label>Message:</label><br>
        <textarea name="message" required></textarea><br>
        <button type="submit">Send</button>
    </form>
</div>
