<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{{CAMPAIGN_TITLE}} - Campaign Message</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .container {
            background-color: #f9f9f9;
            border-radius: 8px;
            padding: 30px;
            border: 1px solid #e0e0e0;
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #e74c3c;
            padding-bottom: 20px;
        }
        .logo {
            color: #e74c3c;
            font-size: 24px;
            font-weight: bold;
        }
        .campaign-badge {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: bold;
            display: inline-block;
            margin-top: 10px;
        }
        .content {
            background-color: white;
            padding: 25px;
            border-radius: 6px;
            margin-bottom: 20px;
            border-left: 4px solid #e74c3c;
        }
        .message-body {
            font-size: 16px;
            line-height: 1.7;
            margin: 20px 0;
            color: #2c3e50;
        }
        .sender-info {
            background-color: #fff5f5;
            padding: 15px;
            border-radius: 4px;
            margin: 20px 0;
            border: 1px solid #fecaca;
        }
        .info-item {
            margin: 8px 0;
            display: flex;
            align-items: center;
        }
        .info-label {
            font-weight: bold;
            display: inline-block;
            width: 120px;
            color: #7f1d1d;
        }
        .info-value {
            color: #2c3e50;
        }
        .footer {
            text-align: center;
            font-size: 12px;
            color: #6c757d;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }
        .app-branding {
            color: #e74c3c;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="logo">{{ORGANIZATION_NAME}}</div>
            <div class="campaign-badge">{{CAMPAIGN_TITLE}}</div>
            <p style="margin: 10px 0 0 0; color: #6c757d;">Constituent Advocacy Campaign</p>
        </div>

        <div class="content">
            <div class="message-body">
                {{MESSAGE}}
            </div>

            <div class="sender-info">
                <h4 style="margin: 0 0 10px 0; color: #7f1d1d;">Campaign Participant Information:</h4>
                <div class="info-item">
                    <span class="info-label">Name:</span>
                    <span class="info-value">{{USER_NAME}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">Email:</span>
                    <span class="info-value">{{USER_EMAIL}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">Postal Code:</span>
                    <span class="info-value">{{POSTAL_CODE}}</span>
                </div>
                {{#if RECIPIENT_NAME}}
                <div class="info-item">
                    <span class="info-label">To:</span>
                    <span class="info-value">{{RECIPIENT_NAME}} ({{RECIPIENT_LEVEL}})</span>
                </div>
                {{/if}}
            </div>
        </div>

        <div class="footer">
            <p>This message was sent via <span class="app-branding">{{ORGANIZATION_NAME}}</span> as part of the "<strong>{{CAMPAIGN_TITLE}}</strong>" campaign at {{TIMESTAMP}}</p>
            <p>This platform enables constituents to participate in organized advocacy campaigns to communicate with their elected representatives.</p>
        </div>
    </div>
</body>
</html>
