<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Submission Received Confirmation</title>
    <style>
        /* A reset for better email client compatibility */
        body,
        table,
        td,
        a {
            -webkit-text-size-adjust: 100%;
            -ms-text-size-adjust: 100%;
        }

        table,
        td {
            mso-table-lspace: 0pt;
            mso-table-rspace: 0pt;
        }

        img {
            -ms-interpolation-mode: bicubic;
            border: 0;
            height: auto;
            line-height: 100%;
            outline: none;
            text-decoration: none;
        }

        a[x-apple-data-detectors] {
            color: inherit !important;
            text-decoration: none !important;
            font-size: inherit !important;
            font-family: inherit !important;
            font-weight: inherit !important;
            line-height: inherit !important;
        }

        /* General styles */
        body {
            margin: 0;
            padding: 0;
            background-color: #f6f8fa;
            font-family: Arial, sans-serif;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }

        .card {
            background-color: #ffffff;
            border-radius: 6px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
            padding: 30px;
            border-top: 4px solid #28a745;
            /* Changed color to success green */
        }

        .header-title {
            font-size: 24px;
            color: #343a40;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .lead-text {
            font-size: 16px;
            color: #495057;
            margin-bottom: 30px;
            line-height: 1.5;
        }

        .data-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        .data-row {
            padding: 12px 0;
            border-bottom: 1px solid #e9ecef;
        }

        .data-label {
            width: 35%;
            font-weight: bold;
            color: #6c757d;
            padding-right: 10px;
            font-size: 14px;
        }

        .data-value {
            width: 65%;
            color: #343a40;
            font-size: 16px;
        }

        .info-box {
            background-color: #e9f7ee;
            border: 1px solid #c3e6cb;
            border-left: 5px solid #28a745;
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 4px;
            color: #155724;
            font-size: 14px;
        }

        .footer-text {
            text-align: center;
            font-size: 12px;
            color: #adb5bd;
            margin-top: 20px;
        }

        /* Media Queries for Responsiveness */
        @media only screen and (max-width: 600px) {
            .container {
                padding: 10px !important;
            }

            .card {
                padding: 20px !important;
            }

            .header-title {
                font-size: 20px !important;
            }

            .lead-text {
                font-size: 14px !important;
            }

            .data-row {
                display: block !important;
                border-bottom: none !important;
                margin-bottom: 10px;
            }

            .data-label,
            .data-value {
                display: block !important;
                width: 100% !important;
                padding: 0 !important;
            }

            .data-label {
                margin-bottom: 2px !important;
            }
        }
    </style>
</head>

<body style="margin: 0; padding: 0; background-color: #f6f8fa;">
    <table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0"
        style="background-color: #f6f8fa;">
        <tr>
            <td align="center">
                <div class="container" style="max-width: 600px; margin: 0 auto; padding: 20px;">
                    <table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" class="card"
                        style="background-color: #ffffff; border-radius: 6px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); padding: 30px; border-top: 4px solid #28a745;">
                        <tr>
                            <td style="padding: 0;">
                                <p class="header-title"
                                    style="font-size: 24px; color: #343a40; font-weight: bold; margin-top: 0; margin-bottom: 20px;">
                                    ✅ Submission Confirmed!
                                </p>

                                <p class="lead-text"
                                    style="font-size: 16px; color: #495057; margin-bottom: 15px; line-height: 1.5;">
                                    Hi **{name}**,
                                </p>
                                <p class="lead-text"
                                    style="font-size: 16px; color: #495057; margin-bottom: 30px; line-height: 1.5;">
                                    We've successfully received your submission. Thank you for using our platform!
                                </p>

                                <div class="info-box"
                                    style="background-color: #e9f7ee; border: 1px solid #c3e6cb; border-left: 5px solid #28a745; padding: 15px; margin-bottom: 20px; border-radius: 4px; color: #155724; font-size: 14px;">
                                    We will review your entry and get back to you within **24 hours**.
                                </div>

                                <p style="font-size: 18px; font-weight: bold; color: #343a40; margin-bottom: 15px;">
                                    Your Submission Details:
                                </p>
                                <table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0"
                                    class="data-table"
                                    style="width: 100%; border-collapse: separate; border-spacing: 0;">
                                    <tr>
                                        <td class="data-row" colspan="2"
                                            style="padding: 12px 0; border-bottom: 1px solid #e9ecef;">
                                            <table role="presentation" width="100%" cellspacing="0" cellpadding="0"
                                                border="0">
                                                <tr>
                                                    <td class="data-label"
                                                        style="width: 35%; font-weight: bold; color: #6c757d; padding-right: 10px; font-size: 14px;">
                                                        Your Name:
                                                    </td>
                                                    <td class="data-value"
                                                        style="width: 65%; color: #343a40; font-size: 16px;">
                                                        **{{@$body['name']}}**
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td class="data-row" colspan="2"
                                            style="padding: 12px 0; border-bottom: 1px solid #e9ecef;">
                                            <table role="presentation" width="100%" cellspacing="0" cellpadding="0"
                                                border="0">
                                                <tr>
                                                    <td class="data-label"
                                                        style="width: 35%; font-weight: bold; color: #6c757d; padding-right: 10px; font-size: 14px;">
                                                        Email Used:
                                                    </td>
                                                    <td class="data-value"
                                                        style="width: 65%; color: #343a40; font-size: 16px;">
                                                       {{@$body['email']}}
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
 
                                </table>
                            </td>
                        </tr>
                    </table>
                    <p class="footer-text"
                        style="text-align: center; font-size: 12px; color: #adb5bd; margin-top: 20px;">
                        If you did not make this submission, please contact us immediately.
                    </p>
                </div>
            </td>
        </tr>
    </table>
</body>

</html>