<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>New Contact Form Submission - IHICL</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            margin: 0;
            padding: 20px;
            background-color: #f9f9f9;
        }
        .container {
            max-width: 600px;
            margin: 0 auto;
            background: #fff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        .header {
            background: linear-gradient(135deg, #085e2b, #0a7e3a);
            color: white;
            padding: 20px;
            text-align: center;
            border-radius: 10px 10px 0 0;
            margin: -30px -30px 30px -30px;
        }
        .header h1 {
            margin: 0;
            font-size: 24px;
            font-weight: bold;
        }
        .content {
            margin-bottom: 30px;
        }
        .details {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #085e2b;
        }
        .detail-item {
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        .detail-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        .label {
            font-weight: bold;
            color: #085e2b;
            display: inline-block;
            width: 120px;
        }
        .message {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #085e2b;
            margin-top: 20px;
        }
        .footer {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #eee;
            color: #666;
            font-size: 14px;
        }
        .urgent {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
        }
        .priority-high {
            color: #dc3545;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>📧 New Contact Form Submission</h1>
        </div>
        
        <div class="content">
            <div class="urgent">
                <strong>⚠️ New message received from website contact form</strong>
            </div>
            
            <div class="details">
                <div class="detail-item">
                    <span class="label">From:</span>
                    {{ name }} &lt;{{ email }}&gt;
                </div>
                <div class="detail-item">
                    <span class="label">Phone:</span>
                    {{ phone|default:"Not provided" }}
                </div>
                <div class="detail-item">
                    <span class="label">Subject:</span>
                    <span class="{% if subject == 'Investment Opportunities' or subject == 'Partnership' %}priority-high{% endif %}">
                        {{ subject }}
                    </span>
                </div>
                <div class="detail-item">
                    <span class="label">Received:</span>
                    {{ timestamp|date:"F j, Y, g:i a" }}
                </div>
            </div>
            
            <div class="message">
                <h3 style="margin-top: 0; color: #085e2b;">Message Content:</h3>
                <p style="white-space: pre-wrap; margin: 0;">{{ message }}</p>
            </div>
            
            {% if subject == 'Investment Opportunities' or subject == 'Partnership' %}
            <div class="urgent">
                <strong>💼 High Priority:</strong> This inquiry may require prompt follow-up as it relates to {% if subject == 'Investment Opportunities' %}investment opportunities{% else %}partnership proposals{% endif %}.
            </div>
            {% endif %}
        </div>
        
        <div class="footer">
            <p>This email was automatically generated from the IHICL Investment website contact form.</p>
            <p>© {% now "Y" %} IHICL Investment. All rights reserved.</p>
        </div>
    </div>
</body>
</html>