/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px rgb(248, 248, 248) inset !important;
  -webkit-text-fill-color: hsl(213, 96%, 18%);
}
@font-face {
  font-family: Ubuntu-400;
  src: url(/assets/fonts/Ubuntu-Regular.ttf);
}
@font-face {
  font-family: Ubuntu-500;
  src: url(/assets/fonts/Ubuntu-Medium.ttf);
}
@font-face {
  font-family: Ubuntu-700;
  src: url(/assets/fonts/Ubuntu-Bold.ttf);
}

body {
  max-height: 100vh;
  background-color: hsl(206, 94%, 87%);
}

/* General */

.form-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 920px;
  height: 600px;
  margin: 80px auto;
  background-color: rgb(248, 248, 248);
  padding: 15px;
  border-radius: 1.5%;
}

.button-btm {
  display: flex;
}

.button-blue {
  background-color: hsl(213, 96%, 18%);
  color: white;
  font-family: Ubuntu-400;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  height: 50px;
  width: 125px;
  margin-left: auto;
  display: none;
}

.button-blue:hover {
  background-color: hsla(213, 72%, 32%, 1);
  cursor: pointer;
}

.button-blue-active {
  display: block;
}

.button-clear {
  background-color: transparent;
  color: hsl(0, 0%, 56%);
  font-family: Ubuntu-400;
  font-size: 16px;
  border: none;
  height: 50px;
  margin: 0 260px 0 0;
  display: none;
}
.button-clear-active {
  display: block;
}
.button-clear:hover {
  color: hsl(213, 96%, 18%);
  font-weight: bolder;
  cursor: pointer;
}

/* Sidebar */

.sidebar {
  min-width: 275px;
  background-image: url(/assets/images/bg-sidebar-desktop.svg);
  background-size: cover;
  height: 570px;
}

.sidebar-list {
  padding: 40px 30px;
  text-transform: uppercase;
}

.sidebar-step {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.sidebar-step-number {
  font-size: 16px;
  font-family: Ubuntu-400;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  color: hsl(0, 0%, 100%);
  height: 30px;
  width: 30px;
  border: 1px solid white;
  border-radius: 50%;
  margin: 10px;
  padding: 17px;
}

.sidebar-active {
  color: hsl(213, 96%, 18%);
  background-color: hsl(206, 94%, 87%);
  border: 1px solid hsl(206, 94%, 87%);
}

.sidebar-step-content {
  height: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 10px;
}

.sidebar-step-title {
  font-family: Ubuntu-400;
  color: hsl(240, 1%, 81%);
  font-size: 12px;
}

.sidebar-step-text {
  font-family: Ubuntu-500;
  font-size: 14px;
  letter-spacing: 1px;
  color: white;
}

/* Form Main */

.form-content {
  height: 450px;
  margin: 20px auto 90px auto;
}
.form-step {
  display: none;
}
.form-step-active {
  display: block;
  align-items: start;
  width: 450px;
}
.form-step-content {
  height: 450px;
  margin-bottom: 30px;
}
.form-step h1 {
  font-family: Ubuntu-500;
  letter-spacing: 1px;
  color: hsl(213, 96%, 18%);
  margin-bottom: 10px;
}

.form-step h2 {
  font-family: Ubuntu-400;
  font-weight: lighter;
  margin: 10px 0 10px 0;
  font-size: 16px;
  color: hsl(231, 11%, 63%);
}

.plan-title,
.add-title {
  font-family: Ubuntu-500;
  font-size: 14px;
  color: hsl(213, 96%, 18%);
}

.plan-price,
.add-desc {
  font-family: Ubuntu-400;
  font-weight: lighter;
  font-size: 14px;
  color: hsl(235, 9%, 74%);
}

/* Form: Step 1  */
.form-step form {
  display: flex;
  flex-direction: column;
}
.label-container {
  display: flex;
  margin: 25px 0 10px 0;
  justify-content: space-between;
}
label {
  font-family: Ubuntu-400;
  color: hsl(213, 96%, 18%);
  font-size: 14px;
  font-weight: bold;
  display: inline;
}

#warning-name,
#warning-email,
#warning-phone {
  font-family: Ubuntu-400;
  font-weight: bolder;
  color: red;
  font-size: 14px;
  display: none;
}

#name,
#email,
#phone {
  outline: none;
  height: 50px;
  width: 100%;
  border: 1px solid hsl(229, 24%, 87%);
  border-radius: 10px;
  padding: 0 15px;
  font-family: Ubuntu-400;
  font-weight: bolder;
  font-size: 16px;
  color: hsl(213, 96%, 18%);
  background-color: rgb(248, 248, 248);
  cursor: pointer;
}
#name:focus,
#email:focus,
#phone:focus {
  border: 1px solid hsl(213, 96%, 18%);
}
.input-invalid {
  border: 1px solid red !important;
}

/* Form: step 2 */

.plan-container {
  display: flex;
  margin: 40px 0 20px 0;
  justify-content: space-between;
  width: 450px;
}
.plan-item {
  /* margin: 0 15px 0 0; */
  padding: 20px 0 5px 10px;
  width: 135px;
  height: 170px;
  border: 1px solid hsl(0, 0%, 86%);
  border-radius: 8px;
  cursor: pointer;
}
.plan-item:hover {
  border: 1px solid hsl(228, 45%, 44%);
}
.plan-item-active {
  border: 1px solid hsl(228, 45%, 44%);
  background-color: hsla(206, 94%, 87%, 0.235);
}

.plan-item img {
  padding-bottom: 40px;
}

.plan-title {
  font-family: Ubuntu-500;
  font-weight: bold;
  margin-bottom: 5px;
}
.plan-price {
  font-family: Ubuntu-400;
  margin-bottom: 5px;
}
.plan-billing {
  background-color: hsla(206, 94%, 87%, 0.235);
  padding: 10px 125px 10px 125px;
  width: 450px;
  display: flex;
  justify-content: space-around;
  font-family: Ubuntu-400;
  color: hsl(180, 1%, 71%);
  font-size: 14px;
  align-items: center;
}
.plan-time {
  font-family: Ubuntu-400;
}
.plan-time-active {
  color: hsl(213, 96%, 18%);
  font-weight: bold;
}

.plan-offer {
  font-family: Ubuntu-400;
  color: hsl(213, 96%, 18%);
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  visibility: hidden;
}

/* Slider Billing*/
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(213, 96%, 18%);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: hsl(213, 96%, 18%);
}
input:focus + .slider {
  box-shadow: 0 0 1px hsl(213, 96%, 18%);
}
input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/* Form: Step 3 */
.add-container {
  margin-top: 35px;
}
.add-item {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 75px;
  width: 450px;
  border: 1px solid hsl(0, 0%, 56%);
  border-radius: 8px;
  margin: 20px 0 10px 0;
}
.add-item:hover {
  border: 1px solid hsl(228, 45%, 44%);
}
.add-item input {
  margin-right: 20px;
  scale: 1.5;
}

.add-item-active {
  background-color: hsla(206, 94%, 87%, 0.235);
  border: 1px solid hsl(228, 45%, 44%);
}

.add-content {
  line-height: 22px;
}
.add-price {
  margin-left: auto;
  font-family: Ubuntu-500;
  font-size: 14px;
  color: hsl(213, 96%, 18%);
}

/* Step 4 */
.selections-list-container {
  background-color: hsla(206, 94%, 87%, 0.235);
  border-radius: 5px;
  padding: 20px;
}
.selections-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

hr {
  margin: 25px auto;
  border: 1px solid hsl(0, 0%, 86%);
}
.selections-plan-title {
  font-family: Ubuntu-500;
  font-size: 16px;
  color: hsl(213, 96%, 18%);
  margin-bottom: 5px;
}
#change {
  font-family: Ubuntu-400;
  font-size: 12px;
  text-decoration: underline;
  color: hsl(0, 0%, 56%);
}
#change:hover {
  cursor: pointer;
}

.selections-plan-price {
  font-family: Ubuntu-500;
  font-weight: bolder;
  color: hsl(213, 96%, 18%);
}

.selections-add-item {
  display: none;
  margin: 20px 0;
}

.selections-add-title {
  font-family: Ubuntu-400;
  font-size: 14px;
  color: hsl(0, 0%, 56%);
}
.selections-add-price {
  font-family: Ubuntu-400;
  font-size: 14px;
  color: hsl(213, 96%, 18%);
}

.selections-add-item-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.selections-total {
  display: flex;
  justify-content: space-between;
  margin: 20px 30px;
}
.selections-total-title {
  font-family: Ubuntu-500;
  font-weight: bolder;
  font-size: 18px;
  color: hsl(213, 96%, 18%);
}
.selections-total-price {
  font-family: Ubuntu-500;
  font-size: 18px;
  font-weight: bolder;
  color: hsl(213, 96%, 18%);
}

/* Step 5 */

.form-end-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-end-step img {
  max-width: 100px;
  margin: 60px 0 20px 0;
}

.end-step-desc {
  font-family: Ubuntu-400;
  color: hsl(0, 0%, 56%);
  text-align: center;
  margin-top: 10px;
}
/* Footer */

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}
