* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  background: linear-gradient(to bottom right, #0f2027, #203a43, #2c5364);
}

body {
  font-family: sans-serif;
}

#msform {
  width: 400px;
  margin: 50px auto;
  text-align: center;
  position: relative;
}

#msform fieldset {
  background: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 20px 30px;
  width: 80%;
  margin: 0 10%;
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

#msform fieldset.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.fadeInUp {
  animation-name: fadeInUp;
}

.fadeOutDown {
  animation-name: fadeOutDown;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.input-icon-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.input-icon-wrapper i {
  position: absolute;
  top: 0;
  left: 0;
  width: 45px;
  height: 100%;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 3px 0 0 3px;
}

.input-icon-wrapper input {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 1px solid #ccc;
  border-radius: 0 3px 3px 0;
  font-size: 13px;
}

#msform .action-button {
  width: 100px;
  background: #27ae60;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  padding: 10px;
  margin: 10px 5px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s ease;
}

#msform .action-button:hover {
  background-color: #219150;
  box-shadow: 0 0 0 2px white, 0 0 0 3px #27ae60;
}

.fs-title {
  font-size: 15px;
  text-transform: uppercase;
  color: #2c3e50;
  margin-bottom: 10px;
}

.fs-subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

#progressbar {
  margin-bottom: 30px;
  counter-reset: step;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  position: relative;
  z-index: 10;
}

#progressbar li {
  text-transform: uppercase;
  font-size: 9px;
  color: white;
  width: 33.33%;
  position: relative;
  text-align: center;
}

#progressbar li::before {
  content: counter(step);
  counter-increment: step;
  width: 20px;
  height: 20px;
  line-height: 20px;
  display: block;
  margin: 0 auto 5px;
  background: white;
  color: #333;
  border-radius: 3px;
}

#progressbar li::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: white;
  top: 9px;
  left: -50%;
  z-index: -1;
}

#progressbar li:first-child::after {
  content: none;
}

#progressbar li.active::before,
#progressbar li.active::after {
  background: #27ae60;
  color: white;
}
