/* CSS font family rules to specify:
H1, special titles only: font-family: 'Michroma', sans-serif;
H2, main headers and most titles: font-family: 'Poppins', sans-serif;
H3, subhead to Poppins: font-family: 'Arimo', sans-serif;
P: font-family: 'Montserrat', sans-serif;

font-family: 'IBM Plex Sans', sans-serif;
*/

/* Page-wide styling */
* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  outline: none;
  padding: 0;
}

body {
  align-items: center;
  background: url(../img/black-jet-ski.png);
  background-color: #141414;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: scroll;
}

/* When something's selected */
::selection {
  background: gray;
  color: #fff;
}

/* Page-wide container and how it displays the form */

.container {
  background: #fff;
  border-radius: 5px;
  padding: 50px 35px 10px 35px;
  text-align: center;
  width: 330px;
}

.container .form-outer {
  overflow: hidden;
  width: 100%;
}

.container .form-outer form {
  display: flex;
  width: 400%
}

/* Progress Bar */
.container .progress-bar {
  display: flex;
  margin: 40px 0;
  user-select: none;
}

.container .progress-bar .step {
  position: relative;
  text-align: center;
  width: 100%;
}

.container .progress-bar .step p {
  color: black;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.progress-bar .step .bullet {
  border: 2px solid #000;
  border-radius: 50%;
  display: inline-block;
  font-size: 17px;
  font-weight: 500px;
  height: 25px;
  line-height: 25px;
  position: relative;
  transition: 0.2s;
  width: 25px;
}

.progress-bar .step .bullet.active {
  background: lightgray;
  border-color: lightgray;
}

.progress-bar .step .bullet span {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.progress-bar .step .bullet.active span {
  display: none;
}

.progress-bar .step .bullet:before, .progress-bar .step .bullet:after {
  background: #262626;
  bottom: 11px;
  content: '';
  height: 3px;
  position: absolute;
  right: -51px;
  width: 44px;
}

.progress-bar .step .bullet.active:after {
  animation: animate 0.3s linear forwards;
  background: lightgray;
  transition: scaleX(0);
  transform-origin: left;
}

/* Progress Bar animation */
@keyframes animate {
  100% {
    transform: scaleX(1);
  }
}

.progress-bar .step:last-child .bullet:before, .progress-bar .step:last-child .bullet:after {
  display: none;
}

.progress-bar .step p.active {
  color: gray;
  transition: 0.2s linear;
}

.progress-bar .step .check {
  display: none;
  font-size: 15px;
  left: 50%;
  position: absolute;
  top: 70%;
  transform: translate(-50%, -50%);
}

.progress-bar .step .check.active {
  color: #fff;
  display: block;
}

/* Form Heading */

.container header {
  font-size: 35px;
  font-weight: 600;
  margin: 0 0 30px 0;
}

/* Page for each section of the form */
.form-outer form .page {
  transition: margin-left 0.3s ease-in-out;
  width: 25%;
}

/* Title for each page of the form */
.form-outer form .page .title {
  font-size: 25px;
  font-weight: 500;
  text-align: left;
}

/* Field on each page of the form */
.form-outer form .page .field {
  display: flex;
  height: 45px;
  margin: 45px 0;
  position: relative;
  width: 330px;
}

/* Label for each field of the form */
form .page .field .label {
  font-weight: 500;
  position: absolute;
  top: -30px;
}

/* Input fields on each page of the form */
form .page .field input {
  border: 1px solid lightgrey;
  border-radius: 5px;
  font-size: 18px;
  height: 100%;
  padding-left: 15px;
  width: 100%;
}

/* Drop-down menus */
form .page .field select {
  font-size: 17px;
  font-weight: 500;
  padding-left: 10px;
  width: 100%;
}

/* "Previous" and "Next" buttons */
form .page .field button {
  background: black;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500px;
  height: calc(100% + 5px);
  letter-spacing: 1px;
  margin-top: -20px;
  text-transform: uppercase;
  transition: 0.5s ease;
  width: 100%;
}

form .page .field button:hover {
  background: #858585;
}

form .page .btns button {
  margin-top: -20px;
}

form .page .btns button.prev {
  font-size: 17px;
  margin-right: 3px;
}

form .page .btns button.next {
  margin-left: 3px;
}

/* "Same Address" checkbox */
.same-address {
  font-family: 'Arimo', sans-serif;
  margin-left: -70px;
}

/* Cart Review page items: heading and link styling */
h4 {
  color: white
  margin-left: -260px;
}

.cart-item a {
  color: black;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}

.cart-item a:hover {
  font-weight: bold;
}

/* Cart: number of items */
span.price-cart {
  float: right;
}

/* Individual cart items */
.cart-item-one {
  margin-left: -180px;
}

.cart-item-two {
  margin-left: -81px;
}

.cart-item-three {
  margin-left: -155px;
}

/* Prices of cart items */
span .price-item {
  color: black;
  float: right;
  font-family: 'Poppins', sans-serif;
}

/* Cart Review page total */
.total {
  font-family: 'Poppins', sans-serif;
}

.total-word {
  margin-left: -287px;
}

.total-number {
  float: right;
  font-weight: bold;
  margin-top: -23px;
}
