<div class="accordion stepper" id="stepperExample">
<div class="card">
<div class="card-header active-card-header" id="headingOne">
<div class="number-circle">1</div><div class="number-text">Location</div>
</div>
<div id="collapseOne" class="collapse show stepper-content" aria-labelledby="headingOne" data-parent="#stepperExample">
<div class="card-body">
<h2>Location</h2>
<p class="mb-36">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<button type="button" class="btn btn-primary mb-54" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">Next</button>
</div>
</div>
</div>
<div class="card">
<div class="card-header not-first-card" id="headingTwo">
<div class="number-circle">2</div><div class="number-text">Account</div>
</div>
<div id="collapseTwo" class="collapse stepper-content" aria-labelledby="headingTwo" data-parent="#stepperExample">
<div class="card-body">
<h2>Account</h2>
<p class="mb-36">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<div class="btn-group mb-54" role="group" aria-label="Controls">
<button type="button" class="btn btn-primary" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">Next</button>
<button type="button" class="btn btn-secondary" data-toggle="collapse" data-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne">Back</button>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header not-first-card" id="headingThree">
<div class="number-circle">3</div><div class="number-text">Customer</div>
</div>
<div id="collapseThree" class="collapse stepper-content" aria-labelledby="headingThree" data-parent="#stepperExample">
<div class="card-body">
<h2>Customer</h2>
<p class="mb-36">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<div class="btn-group mb-54" role="group" aria-label="Controls">
<button type="button" class="btn btn-primary" data-toggle="collapse" data-target="#collapseFour" aria-expanded="false" aria-controls="collapseFour">Next</button>
<button type="button" class="btn btn-secondary" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">Back</button>
</div>
</div>
</div>
</div>
<div class="card last-card">
<div class="card-header not-first-card" id="headingFour">
<div class="number-circle">4</div><div class="number-text">Decision</div>
</div>
<div id="collapseFour" class="collapse stepper-content" aria-labelledby="headingFour" data-parent="#stepperExample">
<div class="card-body">
<h2>Decision</h2>
<p class="mb-36">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<div class="btn-group mb-54" role="group" aria-label="Controls">
<button type="button" class="btn btn-primary" data-toggle="collapse" data-target="#collapseFour" aria-expanded="false" aria-controls="collapseFour">Complete</button>
<button type="button" class="btn btn-secondary" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">Back</button>
</div>
</div>
</div>
</div>
</div>
$(document).ready(function() {
$('.collapse').on('shown.bs.collapse', function () {
$(this).prev().addClass('active-card-header');
});
$('.collapse').on('hidden.bs.collapse', function () {
$(this).prev().removeClass('active-card-header');
});
});