<script>
document.addEventListener('DOMContentLoaded', function() {
    const withdrawalMethodSelect = document.querySelector('.withdrawal-method-container select');
    const paypalDetailsContainer = document.querySelector('.paypal-details');
    const upiDetailsContainer = document.querySelector('.upi-details');
    
    withdrawalMethodSelect.addEventListener('change', function() {
        if (this.value === 'PayPal') {
            paypalDetailsContainer.style.display = 'block';
            upiDetailsContainer.style.display = 'none';
        } else if (this.value === 'UPI') {
            paypalDetailsContainer.style.display = 'none';
            upiDetailsContainer.style.display = 'block';
        }
    });
});
</script>

<style>
.withdrawal-request-form input,
.withdrawal-request-form select,
.withdrawal-request-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.withdrawal-method-container,
.payment-details-container {
    margin-bottom: 15px;
}

.withdrawal-request-form .wpcf7-submit {
    background-color: #6A1E55;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.withdrawal-request-form .wpcf7-submit:hover {
    background-color: #4a1439;
}
</style>