combine these both codes as second code have charges
 add_action('init', 'add_journey_type_after_waiting');
function add_journey_type_after_waiting() {
    add_action('wp_footer', 'add_journey_type_script');
    function add_journey_type_script() {
        ?>
        <script>
        jQuery(document).ready(function($) {
            // Add journey type after waiting time dropdown
            var journeyTypeHtml = `
                <div class="inputList mp_input_select">
                    <label class="fdColumn">
                        <span>Journey Type</span>
                        <select class="formControl" name="mptbm_journey_type" id="mptbm_journey_type">
                            <option value="">Select Journey Type</option>
                            <option value="airport_trip">Airport Trip</option>
                            <option value="business_trip">Business Trip</option>
                            <option value="casual_trip">Casual Trip</option>
                        </select>
                        <i id="journey_type_icon" class="fas fa-plane mptbm_left_icon allCenter"></i>
                    </label>
                    <div class="flight-number" style="display:none;">
                        <label class="fdColumn">
                            <span>Flight Number</span>
                            <input type="text" class="formControl" name="mptbm_flight_number" id="mptbm_flight_number" placeholder="Enter Flight Number">
                            <i class="fas fa-ticket-alt mptbm_left_icon allCenter"></i>
                        </label>
                    </div>
                    <div id="charge_display" style="display:none;"></div>
                </div>
            `;
            
            $('#mptbm_waiting_time').closest('.inputList').after(journeyTypeHtml);

            function calculateCharges() {
                // Your existing charge calculation code remains the same
            }

            // Function to add journey type and charges to summary
            function addToSummary(journeyType, flightNumber, charges) {
                // Find the location where we want to insert our new content
                var $transportSummary = $('.mptbm_transport_summary');
                
                // Remove any existing journey type sections
                $('.journey-type-section').remove();
                
                if(journeyType === 'airport_trip') {
                    // Create journey type section HTML
                    var journeyHtml = `
                        <div class="journey-type-section">
                            <div class="dividerL"></div>
                            <h6 class="_mB_xs">Journey Type</h6>
                            <p class="_textLight_1">Airport Trip</p>
                    `;
                    
                    // Add flight number if exists
                    if(flightNumber) {
                        journeyHtml += `
                            <div class="dividerL"></div>
                            <h6 class="_mB_xs">Flight Number</h6>
                            <p class="_textLight_1">${flightNumber}</p>
                        `;
                    }
                    
                    // Add charges if any
                    if(charges && charges.length > 0) {
                        journeyHtml += `
                            <div class="dividerL"></div>
                            <h6 class="_mB_xs">Airport Charges</h6>
                        `;
                        charges.forEach(function(charge) {
                            journeyHtml += `<p class="_textLight_1">${charge}</p>`;
                        });
                    }
                    
                    journeyHtml += '</div>';
                    
                    // Insert before transport summary
                    $transportSummary.before(journeyHtml);
                    
                    // Update total price if charges exist
                    if(charges && charges.length > 0) {
                        var currentTotal = parseFloat($('.mptbm_product_total_price').text().replace('£', '')) || 0;
                        var chargeTotal = charges.reduce(function(total, charge) {
                            var amount = parseFloat(charge.split('£')[1]);
                            return total + (isNaN(amount) ? 0 : amount);
                        }, 0);
                        $('.mptbm_product_total_price').text('£' + (currentTotal + chargeTotal).toFixed(2));
                    }
                }
            }

            // Handle journey type change
            $('#mptbm_journey_type').change(function() {
                var selectedValue = $(this).val();
                var icon = $('#journey_type_icon');
                
                // Your existing icon change code remains the same
                switch(selectedValue) {
                    case 'airport_trip':
                        icon.removeClass().addClass('fas fa-plane mptbm_left_icon allCenter');
                        break;
                    case 'business_trip':
                        icon.removeClass().addClass('fas fa-briefcase mptbm_left_icon allCenter');
                        break;
                    case 'casual_trip':
                        icon.removeClass().addClass('fas fa-car mptbm_left_icon allCenter');
                        break;
                    default:
                        icon.removeClass().addClass('fas fa-plane mptbm_left_icon allCenter');
                }

                if(selectedValue === 'airport_trip') {
                    $('.flight-number').show();
                    $('#mptbm_flight_number').prop('required', true);
                    calculateCharges();
                } else {
                    $('.flight-number').hide();
                    $('#mptbm_flight_number').prop('required', false).val('');
                    $('#charge_display').html('').hide();
                }
            });

            // Monitor location changes
            $('#mptbm_map_start_place, #mptbm_map_end_place').on('change keyup', function() {
                if($('#mptbm_journey_type').val() === 'airport_trip') {
                    calculateCharges();
                }
            });

            // Handle car selection
            $(document).on('click', '.mptbm_transport_select', function() {
                var journeyType = $('#mptbm_journey_type').val();
                var flightNumber = $('#mptbm_flight_number').val();
                var charges = calculateCharges();
                addToSummary(journeyType, flightNumber, charges);
            });

            // Initial calculation
            calculateCharges();
        });
        </script>
        <?php
    }

    // Your existing cart calculation code remains the same
}
add_action('init', 'add_journey_type_after_waiting');
function add_journey_type_after_waiting() {
    add_action('wp_footer', 'add_journey_type_script');
    function add_journey_type_script() {
        ?>
        <script>
        jQuery(document).ready(function($) {
            // Add journey type after waiting time dropdown
            var journeyTypeHtml = `
                <div class="inputList mp_input_select">
                    <label class="fdColumn">
                        <span>Journey Type</span>
                        <select class="formControl" name="mptbm_journey_type" id="mptbm_journey_type">
                            <option value="">Select Journey Type</option>
                            <option value="airport_trip">Airport Trip</option>
                            <option value="business_trip">Business Trip</option>
                            <option value="casual_trip">Casual Trip</option>
                        </select>
                        <i id="journey_type_icon" class="fas fa-plane mptbm_left_icon allCenter"></i>
                    </label>
                    <div class="flight-number" style="display:none;">
                        <label class="fdColumn">
                            <span>Flight Number</span>
                            <input type="text" class="formControl" name="mptbm_flight_number" id="mptbm_flight_number" placeholder="Enter Flight Number">
                            <i class="fas fa-ticket-alt mptbm_left_icon allCenter"></i>
                        </label>
                    </div>
                    <div id="charge_display" style="display:none;"></div>
                </div>
            `;
            
            $('#mptbm_waiting_time').closest('.inputList').after(journeyTypeHtml);

            function calculateCharges() {
                // Your existing charge calculation code remains the same
            }

            // Function to add journey type and charges to summary
            function addToSummary(journeyType, flightNumber, charges) {
                // Find the location where we want to insert our new content
                var $transportSummary = $('.mptbm_transport_summary');
                
                // Remove any existing journey type sections
                $('.journey-type-section').remove();
                
                if(journeyType === 'airport_trip') {
                    // Create journey type section HTML
                    var journeyHtml = `
                        <div class="journey-type-section">
                            <div class="dividerL"></div>
                            <h6 class="_mB_xs">Journey Type</h6>
                            <p class="_textLight_1">Airport Trip</p>
                    `;
                    
                    // Add flight number if exists
                    if(flightNumber) {
                        journeyHtml += `
                            <div class="dividerL"></div>
                            <h6 class="_mB_xs">Flight Number</h6>
                            <p class="_textLight_1">${flightNumber}</p>
                        `;
                    }
                    
                    // Add charges if any
                    if(charges && charges.length > 0) {
                        journeyHtml += `
                            <div class="dividerL"></div>
                            <h6 class="_mB_xs">Airport Charges</h6>
                        `;
                        charges.forEach(function(charge) {
                            journeyHtml += `<p class="_textLight_1">${charge}</p>`;
                        });
                    }
                    
                    journeyHtml += '</div>';
                    
                    // Insert before transport summary
                    $transportSummary.before(journeyHtml);
                    
                    // Update total price if charges exist
                    if(charges && charges.length > 0) {
                        var currentTotal = parseFloat($('.mptbm_product_total_price').text().replace('£', '')) || 0;
                        var chargeTotal = charges.reduce(function(total, charge) {
                            var amount = parseFloat(charge.split('£')[1]);
                            return total + (isNaN(amount) ? 0 : amount);
                        }, 0);
                        $('.mptbm_product_total_price').text('£' + (currentTotal + chargeTotal).toFixed(2));
                    }
                }
            }

            // Handle journey type change
            $('#mptbm_journey_type').change(function() {
                var selectedValue = $(this).val();
                var icon = $('#journey_type_icon');
                
                // Your existing icon change code remains the same
                switch(selectedValue) {
                    case 'airport_trip':
                        icon.removeClass().addClass('fas fa-plane mptbm_left_icon allCenter');
                        break;
                    case 'business_trip':
                        icon.removeClass().addClass('fas fa-briefcase mptbm_left_icon allCenter');
                        break;
                    case 'casual_trip':
                        icon.removeClass().addClass('fas fa-car mptbm_left_icon allCenter');
                        break;
                    default:
                        icon.removeClass().addClass('fas fa-plane mptbm_left_icon allCenter');
                }

                if(selectedValue === 'airport_trip') {
                    $('.flight-number').show();
                    $('#mptbm_flight_number').prop('required', true);
                    calculateCharges();
                } else {
                    $('.flight-number').hide();
                    $('#mptbm_flight_number').prop('required', false).val('');
                    $('#charge_display').html('').hide();
                }
            });

            // Monitor location changes
            $('#mptbm_map_start_place, #mptbm_map_end_place').on('change keyup', function() {
                if($('#mptbm_journey_type').val() === 'airport_trip') {
                    calculateCharges();
                }
            });

            // Handle car selection
            $(document).on('click', '.mptbm_transport_select', function() {
                var journeyType = $('#mptbm_journey_type').val();
                var flightNumber = $('#mptbm_flight_number').val();
                var charges = calculateCharges();
                addToSummary(journeyType, flightNumber, charges);
            });

            // Initial calculation
            calculateCharges();
        });
        </script>
        <?php
    }

    // Your existing cart calculation code remains the same
}