<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Me</title>
<style>
    body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f4f4f7; color: #333; margin: 0; padding: 0; }
    .container { max-width: 600px; margin: 80px auto; padding: 30px; background: #fff; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
    h1 { text-align: center; color: #222; }
    p { text-align: center; font-size: 1.1em; color: #555; }
    form { display: flex; flex-direction: column; gap: 15px; }
    input, textarea { padding: 12px; border-radius: 6px; border: 1px solid #ccc; font-size: 1em; width: 100%; box-sizing: border-box; }
    button { padding: 12px; border: none; border-radius: 6px; background-color: #007BFF; color: #fff; font-size: 1.1em; cursor: pointer; transition: background 0.3s; }
    button:hover { background-color: #0056b3; }
    footer { text-align: center; margin-top: 20px; font-size: 0.9em; color: #888; }
    .back-link { display: block; margin-bottom: 20px; text-align: center; font-size: 1em; text-decoration: none; color: #007BFF; }
    .back-link:hover { text-decoration: underline; }
</style>
</head>
<body>

<div class="container">
    <a href="index.php" class="back-link">&larr; Back to Home</a>

    <h1>Contact Me</h1>
    <p>Have a question or want to get in touch? Fill out the form below, and your email client will open ready to send me a message.</p>
    
    <form onsubmit="sendEmail(event)">
        <input type="text" id="name" placeholder="Your Name" required>
        <input type="email" id="email" placeholder="Your Email" required>
        <textarea id="message" rows="6" placeholder="Your Message" required></textarea>
        <button type="submit">Send Message</button>
    </form>
</div>

<footer>© 2025 bookz.media</footer>

<script>
function sendEmail(event) {
    event.preventDefault();
    const name = document.getElementById('name').value.trim();
    const email = document.getElementById('email').value.trim();
    const message = document.getElementById('message').value.trim();

    const subject = encodeURIComponent(`Message from ${name}`);
    const body = encodeURIComponent(`Name: ${name}\nEmail: ${email}\n\n${message}`);
    
    window.location.href = `mailto:bookz.media@yahoo.com?subject=${subject}&body=${body}`;
}
</script>

</body>
</html>
