<?php
defined( 'ABSPATH' ) || exit;
do_action( 'woocommerce_before_checkout_form', $checkout );
?>

<div class="container my-5"><form name="checkout" method="post" class="checkout woocommerce-checkout" action="<?php echo esc_url( wc_get_checkout_url() ); ?>">

    <?php do_action( 'woocommerce_checkout_before_customer_details' ); ?>

    <div class="row">
        <div class="col-md-7">
            <?php do_action( 'woocommerce_checkout_billing' ); ?>
            <?php do_action( 'woocommerce_checkout_shipping' ); ?>
        </div>

        <div class="col-md-5">
            <?php do_action( 'woocommerce_checkout_order_review' ); ?>
        </div>
    </div>

    <?php do_action( 'woocommerce_checkout_after_customer_details' ); ?>

</form>

</div>

<?php do_action( 'woocommerce_after_checkout_form', $checkout ); ?>