@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #212529;
}

* {
  font-family: 'Nunito', 'Open Sans', sans-serif;
  margin: 0;
  border: 0;
  padding: 0;
  box-sizing: border-box;
  outline: 0;
}

.container {
  min-height: 100vh;
  display: flex;
  justify-content: baseline;
}

.right-side,
.left-side {
  width: 50vw;
}

/* regirstation part ***** */

/* classes */

/* parent div of form element */
.personal-info {
  place-items: center;
  margin: 0;
  min-height: 100vh;
  width: 50vw;
  display: none;
  align-items: flex-start;
}

.personal-info * {
  font-family: 'Open Sans';
}

/* small header text above steps */
.form-part-header {
  position: absolute;
  top: 30px;
  left: calc(50% + 48px);
}
.form-part-header::after {
  content: '';
  position: absolute;
  top: 50px;
  left: -48px;
  height: 1px;
  width: 50vw;
  background: rgba(185, 180, 196, 0.3);
}

.form-part-header h3 {
  font-weight: 600;
  font-size: 16px;
  text-transform: capitalize;
  color: var(--primary-color);
}

/* progress bar */
.progress-bar {
  display: grid;
  position: relative;
  grid-template-columns: repeat(2, 40px);
  column-gap: 182px;
  margin-top: 60px;
  margin-left: 59px;
  counter-reset: step;
}

.progress-bar::before,
.progress {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  /* width: 100%; */
  width: 260px;
  background: rgba(185, 180, 196, 0.3);
  z-index: -1;
}

.progress-step {
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border: 1px solid #e5e6e8;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #95939a;
}

.progress-step::before {
  counter-increment: step;
  content: counter(step);
  font-weight: 700;
  font-size: 18px;
}

.progress-step::after {
  content: attr(data-title);
  position: absolute;
  top: 50px;
  width: max-content;
  font-weight: 400;
  font-size: 16px;
  color: #000;
  z-index: 2;
}
/* class that will display checked box */
.checked::before {
  content: '';
  background-image: url('../images/checked.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: local;
  position: absolute;
  top: 13px;
  left: 8px;
  z-index: 3;
  width: 23px;
  height: 13px;
}

.progress-step-active {
  /* background: #e9faf1; */
  color: var(--primary-color);
}
.green {
  background: #e9faf1;
  color: var(--primary-color);
}

/* form */
.registerForm {
  width: 775px;
  height: 729px;
  margin: 84px auto 0 48px;
  position: relative;
  /* border: 1px solid black; */
}

.step {
  display: none;
  transform-origin: right;
  animation: animate 0.3s;
}

.active {
  display: block;
}

@keyframes animate {
  from {
    transform: scale(0, 1);
    opacity: 0;
  }
  to {
    transform: scale(1, 1);
    opacity: 1;
  }
}

.head-group {
  margin-bottom: 85px;
}
.head-group > h1 {
  font-weight: 600;
  font-size: 32px;
  line-height: 48px;
}

.head-group > h3 {
  font-weight: 600;
  font-size: 14px;
  color: #95939a;
  text-transform: capitalize;
}

.input-group,
#step2 {
  position: relative;
  margin: 0px;
  margin-top: 140px;
  margin-bottom: 0px;
}

.input-group input {
  /* styling form inputs globally*/
  display: block;
  width: 100%;
  padding: 0.75rem;
  box-shadow: inset 0px -1px 0px rgba(0, 0, 0, 0.212);
  border-radius: 4px;
  padding: 10px 16px;
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 40px;
}

/* succsess */
/* .input-success */

.input-success {
  background-image: url('../images/input-checked.svg');
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: calc(100% - 13px) 13px;
  background-attachment: local;
}

.input-invalid {
  background: #ffefef;
  color: #dc3545;
}

/* hover */
.input-group input:hover {
  background: #f8f9fa;
  color: rgba(33, 37, 41, 0.5);
}

/* active */
.input-group input:active,
.input-group input:focus {
  background: #e9ecef;
  color: var(--primary-color);
}

.input-group input::placeholder {
  color: var(--primary-color);
  font-weight: 400;
  font-size: 20px;
}

.width-50 {
  width: 50%;
}

.ml-auto {
  margin-left: auto;
}

/* buttons part */

.buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 88px;
}

.btn {
  display: block;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  height: fit-content;
  padding: 13px 24px;
  border-radius: 8px;
}

.btn-prev {
  width: 93px;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  transition: 0.3s;
}
.btn-prev:hover {
  background: rgba(185, 180, 196, 0.3);
  border: 1px solid rgba(194, 165, 249, 0.8);
}

.btn-next {
  width: 128px;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 12px;
  transition: 0.3s;
  margin-left: auto;
}

.btn-next:hover {
  background: var(--primary-color);
  outline: 4px solid #c2a5f9cc;
}

.hide-btn {
  display: none;
}
