<?php require_once 'config.php'; ?>

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

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title><?php echo $_ENV['APP_NAME'] ?? 'Kaffaba' ?></title>
    <meta name="color-scheme" content="only">
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: "Open Sans", sans-serif;
            color: #333333;
            background-color: #e3eafb;
        }

        .critical {
            background: #FCE3E2;
            font-size: 12px;
            color: #EC413C;
            border-radius: 18px;
            text-align: center;
            width: 120px;
            padding: 10px 15px;
        }

        td table,
        td table th,
        td table td {
            border: 0;
            padding: 0;
            margin: 0;
        }

        p {
            font-size: 14px;
            color: #333;
        }

        .content-blocker td {
            border-bottom: 1px solid #e7e7e7;
            margin: 7px;
            padding: 7px;
        }

        b {
            font-weight: 300;
            font-size: 14px;
        }

        table {
            border-collapse: separate;
            white-space: normal;
            border-spacing: 0px !important;
        }

        ul.table-lst li {
            font-size: 14px;
            line-height: 30px;
            color: #646161;
            font-weight: 300;
        }

        ul.table-lst li::marker {
            color: #2196F3;
        }

        ul.table-lst {
            padding-left: 14px;
        }

        .contact-body {
            padding: 5px 0px;
        }

        @media only screen and (max-width: 639px) {
            table {
                width: 100% !important;
                padding: 20px !important;
            }

            table tr td table {
                padding: 10px !important;
            }

            table td {
                width: 100% !important;
                display: block;
            }

            td.deatils {
                width: auto !important;
            }

            .copywrite {
                font-size: 8px !important;
                white-space: nowrap;
            }

            /* .critical{background:#FCE3E2; font-size: 12px; color: #EC413C; border-radius: 18px; text-align: center; width: 120px; padding: 10px 15px; display: block;}
  .standard{background:#96dffa; font-size: 12px; color: #356b80; border-radius: 18px; text-align: center; width: 120px; padding: 10px 15px; display: block;}
  .low{background:#b8f7e4; font-size: 12px; color: #28ae86; border-radius: 18px; text-align: center; width: 120px; padding: 10px 15px; display: block;} */
            table.info td {
                padding-bottom: 0px;
            }

            .signin {
                display: block;
                margin-top: 10px;
            }

            .footer {
                padding: 10px 0px 15px 0px !important;
                font-size: 12px !important;
            }

            .blue-band {
                font-size: 11px !important;
            }

            .mobile-center-align {
                text-align: left !important;
                padding-top: 10px;
                padding-left: 20px;
                padding-bottom: 10px;
            }

            .contact-body {
                padding: 10px 0px;
            }

            .content-blocker td {
                border-bottom: none;
                padding: 0px;
            }

            /* .items{border-bottom: 2px solid grey !important; display: inline;} */


        }
    </style>
</head>

<body>

    <table style="width: 100%; background-color: #e2eafa; padding: 60px;">
        <tr>
            <td style="padding: 0px;">
                <table style="width: 640px; background-color: #fff; margin: auto; padding: 30px; border-bottom: 12px solid #1f50a2;">
                    <tr>
                        <td>
                            <table style="width: 100%;">
                                <tr>
                                    <td style="width: 100%; text-align: center;">
                                        <img style="width: 220px;" src="<?php echo url('img/logo.png'); ?>">
                                    </td>
                                    <td style="width: 20%;">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table style="width: 100%;">
                                <tr style=" border-collapse: collapse;">
                                    <td class="deatils" style=" padding: 10px; color: #000000; font-weight: 400; font-size: 18px;">Hi, <br>
                                        <p>You have received a new inquiry from the <?php echo $_ENV['APP_NAME'] ?? 'Kaffaba' ?> website.</p>
                                    </td>
                                </tr>
                                <br>
                                
                                <tr>
                                    <td class="contact-body">
                                        <table class="info content-blocker" style="border: 1px solid #cdcdcd; width: 100%; padding: 20px;border-radius: 10px; ">
                                            <tr>
                                                <td class="items" style="width: 55%;">
                                                    <b style="color: #646161;">Name</b>
                                                </td>
                                                <td>
                                                    <p style="font-size: 15px; color: #333; font-weight: 500; line-height:0px;"><?php echo $name; ?></p>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="items" style="width: 55%;">
                                                    <b style="color: #646161;">Email</b>
                                                </td>
                                                <td>
                                                    <p style="font-size: 15px; color: #333; font-weight: 500; line-height:0px;"><?php echo $email; ?></p>
                                                </td>
                                            </tr><tr>
                                                <td class="items" style="width: 55%;">
                                                    <b style="color: #646161;">Subject</b>
                                                </td>
                                                <td>
                                                    <p style="font-size: 15px; color: #333; font-weight: 500; line-height:0px;"><?php echo $subject; ?></p>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="items" style="width: 55%;border-bottom: none;vertical-align: baseline;">
                                                    <b style="color: #646161;">Message</b>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="border-bottom: none;">
                                                    <p style="font-size: 15px; color: #333; font-weight: 500; line-height:20px;margin: 0px;"> <?php echo nl2br($message); ?></p>
                                                </td>
                                            </tr>

                                        </table>
                                <tr>
                                    <td>
                                        <p style="text-align: center;">© <?php echo date('Y'); ?> <?php echo  $_ENV['APP_NAME'] ?? 'Kaffaba' ?> All rights reserved.</p>
                                    </td>
                                </tr>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </td>
    </tr>

    <tr>
        <td style="padding: 0px;">
            <table style="background-color: #BAAA62; width: 640px; margin-top:30px;  margin:auto; font-weight: 300; padding: 0px 0px 0px 0px; color: #fff;">
                <tr style="background: #BAAA62;">
                    <td style="background-color:#3276fe; ">
                        <p class="copywrite" style="font-size: 12px; color: #fff; font-weight: 300; line-height:0px; text-align: center; padding: 0px 0px 0px 0px;"></p>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    </table>
</body>

</html>