<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Health Directory Payment Failed</title>
    <style>
        body { font-family: Arial, sans-serif; background: #f4f4f4; margin: 0; padding: 0; }
        .container { max-width: 600px; margin: 30px auto; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
        .header { background: #dc3545; padding: 30px; text-align: center; }
        .header h1 { color: #fff; margin: 0; font-size: 22px; }
        .body { padding: 30px; color: #333; }
        .detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; }
        .detail-label { font-weight: bold; color: #555; }
        .detail-value { color: #333; }
        .alert { background: #fff3cd; border: 1px solid #ffc107; border-radius: 4px; padding: 15px; margin: 20px 0; color: #856404; }
        .footer { background: #f8f9fa; padding: 20px; text-align: center; font-size: 12px; color: #888; }
    </style>
</head>
<body>
<div class="container">
    <div class="header">
        <h1>Payment Failed</h1>
    </div>
    <div class="body">
        <p>Dear {{ $name }},</p>
        <p>Unfortunately, your payment for your <strong>{{ $listing_type }}</strong> listing on the Health Directory could not be processed.</p>

        <div class="detail-row">
            <span class="detail-label">Listing</span>
            <span class="detail-value">{{ $entity_name }}</span>
        </div>
        <div class="detail-row">
            <span class="detail-label">Listing Type</span>
            <span class="detail-value">{{ $listing_type }}</span>
        </div>
        <div class="detail-row">
            <span class="detail-label">Amount</span>
            <span class="detail-value">{{ $amount }}</span>
        </div>
        <div class="detail-row">
            <span class="detail-label">Reference</span>
            <span class="detail-value">{{ $reference }}</span>
        </div>
        <div class="detail-row">
            <span class="detail-label">Reason</span>
            <span class="detail-value">{{ $reason }}</span>
        </div>

        <div class="alert">
            <strong>What to do next:</strong> Please retry your payment from the Health Directory portal. If the problem persists, contact support at <a href="mailto:{{ $support_email }}">{{ $support_email }}</a>.
        </div>

        <p>We apologise for any inconvenience caused.</p>
        <p>Best regards,<br>{{ config('app.name') }} Team</p>
    </div>
    <div class="footer">
        &copy; {{ date('Y') }} {{ config('app.name') }}. All rights reserved.
    </div>
</div>
</body>
</html>
