SECTION A – APPLICANT INFORMATION

    SECTION B – EMPLOYMENT DETAILS

    SECTION C – DEVICE AND PAYMENT PLAN DETAILS

    document.addEventListener('DOMContentLoaded', function() { // Wait until CF7 has fully initialized setTimeout(function() { const field = document.getElementById('application-number'); if (field && field.value === "Generating...") { const randomNum = Math.floor(10000000 + Math.random() * 90000000); field.value = randomNum; field.readOnly = true; field.style.backgroundColor = '#f5f5f5'; field.style.cursor = 'not-allowed'; // Prevent CF7 from overwriting the value field.addEventListener('change', function(e) { e.preventDefault(); e.stopPropagation(); }); } }, 500); // Half-second delay to let CF7 initialize });document.addEventListener('DOMContentLoaded', function() { const productSelect = document.getElementById('cf7-product'); const totalPriceField = document.getElementById('cf7-total-price'); const initialPaymentField = document.getElementById('cf7-initial-payment'); const installmentsSelect = document.getElementById('cf7-installments'); const monthlyInstallmentField = document.getElementById('cf7-monthly-installment');const productPrices = { "N95 Laptop": 75000, "N95 24 Inch AIO": 95400, };productSelect.addEventListener('change', function () { const selectedOption = productSelect.options[productSelect.selectedIndex]; const productName = selectedOption.text; document.getElementById('cf7-product-name').value = productName; updateCalculations(); });productSelect.addEventListener('change', updateCalculations); initialPaymentField.addEventListener('input', updateCalculations); installmentsSelect.addEventListener('change', updateCalculations);function updateCalculations() { const productLabel = productSelect.value; const productPrice = productPrices[productLabel] || 0; totalPriceField.value = productPrice > 0 ? productPrice.toLocaleString('en-LK') : "0";const initialPayment = parseInt(initialPaymentField.value) || 0; const installments = parseInt(installmentsSelect.value) || 0;const balance = productPrice - initialPayment; const monthly = (balance > 0 && installments > 0) ? Math.ceil(balance / installments) : 0;monthlyInstallmentField.value = monthly.toLocaleString('en-LK'); } });document.addEventListener('wpcf7mailsent', function(event) { alert("Thank you for contacting us! We'll get back to you soon."); }, false);

    Required Documents (You must have these documents with you):

    • NIC Copy of the Applicant
    • Recent Payslip (Last 3 months if available)
    • Letter from Employer confirming employment (optional)
    • Utility Bill (for address verification)
    • Any other relevant supporting documents