<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Streamline Payment Corrections Seamlessly</title>
    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        .container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            padding: 20px;
        }

        .column {
            flex: 1;
            min-width: 300px; /* Ensures it stacks when screen is smaller */
            padding: 20px;
            background-color: #f4f4f4;
            text-align: center;
            border-radius: 8px;
        }

        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
        }
    </style>
    <div class="container">
        <div class="column">
    <style>
        /* General Styles */
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f7fa;
            margin: 0;
            padding: 0;
            color: #555;
        }

        .payment-form-container {
            max-width: 450px;
            margin: 20px auto;
            background-color: #fff;
            padding: 15px 10px;  /* Reduced padding */
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            font-size: 14px;
        }

        h1 {
            text-align: center;
            font-size: 28px;
            color: #333;
            margin-bottom: 20px;  /* Reduced margin */
            font-weight: 600;
        }

        .input-group {
            margin-bottom: 15px;  /* Reduced margin */
        }

        label {
            font-size: 13px;
            font-weight: 500;
            color: #333;
            display: block;
            margin-bottom: 6px;
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="number"],
        input[type="readonly"],
        select {
            width: 100%;
            padding: 10px;  /* Reduced padding */
            font-size: 16px;
            border: 1px solid #ccc;
            border-radius: 6px;
            box-sizing: border-box;
            transition: border-color 0.3s ease;
            outline: none;
        }

        input[type="text"]:focus,
        input[type="email"]:focus,
        input[type="tel"]:focus,
        input[type="number"]:focus,
        select:focus {
            border-color: #fd0303;
        }

        .input-group .error-message {
            color: #fd0303;
            font-size: 12px;
            margin-top: 5px;
        }

        button.submit-btn {
            width: 100%;
            padding: 12px;  /* Reduced padding */
            font-size: 16px;
            background-color: #fd0303;
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            font-weight: 600;
        }

        button.submit-btn:hover {
            background-color: #d00202;
        }

        button.submit-btn:active {
            background-color: #a30000;
        }

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

        .footer-text a {
            color: #fd0303;
            text-decoration: none;
        }

        /* Powered by Text */
        .powered-by {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            color: #555;
            font-style: italic;
        }

        /* Payment Partner Logos */
        .payment-logos {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 10px;
            margin-top: 20px;
        }

        .payment-logos img {
            max-width: 80px;
            height: auto;
            object-fit: contain;
            max-height: 70px;
        }

        /* Ensure logos display clearly on smaller screens */
        @media (max-width: 480px) {
            .payment-logos img {
                max-width: 60px;
                flex: 1 1 25%; /* More space on smaller screens */
            }
        }

        .don_image {
        width: 100%;
        padding-top: 65px;
        }
    </style>
</head>
<body>
    <div class="payment-form-container">
        <h1>Payment Information</h1>

        <form action="PHP_VPC_3Party_Order_DO.php" method="POST" accept-charset="UTF-8">
            <!-- Order ID Field -->
            <div class="input-group">
                <input type="hidden" name="GTPayURL" size="65" value="https://gtpay.gtbank.co.ug/gtpay/gtpay/GTPay.aspx" maxlength="250"/>
            </div>

            <div class="input-group">
                <input type="hidden" id="amount" name="gtp_CustomerCode" value="694277" required>
                <div class="error-message" id="amount-error"></div>
            </div>

            <div class="input-group">
                <label for="amount">Amount</label>
                <input type="number" id="amount" name="gtp_Amount" placeholder="Enter amount" required>
                <div class="error-message" id="amount-error"></div>
            </div>

            <div class="input-group">
                <label for="currency">Currency</label>
                <select id="currency" name="gtp_Currency" required>
                   <option value="USD" selected>USD (United States Dollar)</option>
                    <option value="UGX">UGX (Ugandan Shilling)</option>
                </select>
            </div>

            <div class="input-group">
                <label for="name">Full Name</label>
                <input type="text" id="name" name="gtp_PayerName" placeholder="Enter full names" required>
                <div class="error-message" id="name-error"></div>
            </div>

            <div class="input-group">
                <input type="hidden" id="order-id" name="gtp_OrderId" readonly>
            </div>  

            <div class="input-group">
                <label for="reason">Reason for Payment</label>
                    <select id="reason" name="gtp_TransDetails" required>
                        <option value="" disabled selected>Reason for Payment</option>
                        <option value="Child sponsorship">Child sponsorship</option>
                        <option value="Feeding program">Feeding program</option>
                        <option value="Mission Administration fee">Mission Administration fee</option>
                        <option value="Mission Program Fee">Mission Program Fee</option>
                        <option value="The village project/Building Hope campaign">The village project/Building Hope campaign</option>
                        <option value="community partnership">Community partnership</option>
                        <option value="street children project">Street children project</option>
                        <option value="Medical program">Medical program</option>
                        <option value="other">Other</option>
                    </select>
                <div class="error-message" id="reason-error"></div>
            </div>

            <div class="footer-text">
                <p><input type="checkbox" required> By submitting, you agree to our <a href="tos.php">Terms & Conditions</a>.</p>
            </div>
            <button type="submit" class="submit-btn">Make Payment</button>
        </form>

        <!-- Payment Partner Logos -->
        <div class="payment-logos">
            <img src="https://banner2.cleanpng.com/20180802/xri/5c06c331d802e115c4f41577cf477ba0.webp" alt="Payment Partner 1">
            <img src="https://logolook.net/wp-content/uploads/2023/09/Visa-Logo-2006.png" alt="Payment Partner 2">
            <img src="https://banner2.cleanpng.com/20180806/abh/214804bdb00cf45a63d678843ac10207.webp" alt="Payment Partner 3">
            <img src="https://banner2.cleanpng.com/20180825/pob/kisspng-logo-bharti-airtel-airtel-africa-mobile-phones-air-airtel-blackberry-bis-plans-prices-amp-subscr-1713948518315.webp" alt="Payment Partner 3">
        </div>

        <div class="powered-by">
            <p>Powered by <strong>Rainscript LLC</strong></p>
        </div>
    </div>

    <script>
        // Function to generate a random order ID
        function generateOrderID() {
            return 'ORD-(MISSION TRIPS UGANDA) ' + Math.floor(Math.random() * 1000000);
        }

        // Set Order ID on page load
        document.addEventListener("DOMContentLoaded", function() {
            document.getElementById("order-id").value = generateOrderID();
        });
    </script>
</body>
</html>
</div>
        <div class="column">
        <img class="don_image" src="donate.jpeg">
        </div>
    </div>

</body>
</html>
