<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>New Contact Message</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            border-radius: 8px 8px 0 0;
            text-align: center;
        }
        .header h1 {
            margin: 0;
            font-size: 24px;
        }
        .content {
            background: #f9f9f9;
            padding: 30px;
            border-radius: 0 0 8px 8px;
        }
        .field {
            margin-bottom: 20px;
        }
        .field-label {
            font-weight: 600;
            color: #666;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 5px;
        }
        .field-value {
            background: white;
            padding: 12px;
            border-radius: 4px;
            border-left: 3px solid #667eea;
        }
        .message-content {
            white-space: pre-wrap;
            word-wrap: break-word;
        }
        .footer {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #ddd;
            font-size: 12px;
            color: #999;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>📬 New Contact Message</h1>
    </div>
    <div class="content">
        <div class="field">
            <div class="field-label">From</div>
            <div class="field-value">
                <strong>{{ message.name }}</strong><br>
                <a href="mailto:{{ message.email }}">{{ message.email }}</a>
            </div>
        </div>

        <div class="field">
            <div class="field-label">Message</div>
            <div class="field-value message-content">{{ message.content }}</div>
        </div>

        <div class="field">
            <div class="field-label">Details</div>
            <div class="field-value">
                <strong>Submitted:</strong> {{ message.createdAt|date('Y-m-d H:i:s') }}<br>
                {% if message.ipAddress %}
                    <strong>IP Address:</strong> {{ message.ipAddress }}<br>
                {% endif %}
                <strong>Consent:</strong> {% if message.consent %}✓ Given{% else %}✗ Not given{% endif %}
            </div>
        </div>

        <div class="footer">
            This message was sent via the MineSeeker contact form.<br>
            You can reply directly to this email to respond to {{ message.name }}.
        </div>
    </div>
</body>
</html>

