<div style="border:2px solid #5a2d82; padding:20px; border-radius:10px; max-width:420px;">
<h3 style="margin-top:0;">Rent-to-Own Payment Options</h3>
<label for="term">Choose Term:</label>
<select id="term" onchange="updatePayment()" style="width:100%; padding:8px; margin-top:6px;">
<option value="24">24 Months</option>
<option value="36">36 Months</option>
<option value="48" selected>48 Months</option>
</select>
<p style="margin-top:15px;">
<strong>Monthly Payment:</strong><br>
<span id="payment" style="font-size:26px; color:#5a2d82;">$0.00</span>
</p>
<p style="font-size:12px;">
✔ No credit check<br>
✔ Early payoff available<br>
✔ Free delivery within 50 miles
</p>
<p style="font-size:11px; color:#666;">
*Rent-to-own pricing subject to approval. Taxes not included.
</p>
</div>
<script>
const payments = {
24: 372.84, // ← CHANGE THESE
36: 289.98,
48: 260.98
};
function updatePayment() {
const term = document.getElementById("term").value;
document.getElementById("payment").innerText =
"$" + payments[term].toFixed(2);
}
updatePayment();
</script>