* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ubuntu", sans-serif;
}
html {
  font-size: 62.5%;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: hsl(217, 100%, 97%);
  height: 100vh;
}
main {
  width: 60%;
  height: 75%;
  /* gap: 3.2rem; */
  display: flex;
  justify-content: space-between;
  box-shadow: 5px 5px 2rem 1px hsla(229, 57%, 11%, 0.123);
  background-color: white;
  border-radius: 1.2rem;
}
/* ------------------------------------------- */
/* ------------------------------------------- */
/* Step Number */
/* ------------------------------------------- */
/* ------------------------------------------- */
aside {
  display: flex;
  border-radius: 1.6rem;
  flex-direction: column;
  gap: 2.4rem;
  color: hsl(231, 100%, 99%);
  background-image: url("./assets/images/bg-sidebar-desktop.svg");
  background-size: cover;
  width: 35%;
  /* height: 80%; */
  margin: 1rem;
  /* align-items: center; */
}

.element {
  display: flex;
  gap: 1.2rem;
  font-size: 1.6rem;
  align-items: center;
  padding-left: 3.2rem;
}
#one {
  padding-top: 3.2rem;
}
.content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stepNumber {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid white;
  color: hsl(231, 100%, 99%);
  font-size: 1.2rem;
  font-weight: 700;
  justify-items: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.step {
  font-size: 1.2rem;
  font-weight: 300;
  color: hsl(231, 11%, 63%);
}
.stepDetail {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.loginForm {
  width: 60%;
}
.active {
  background-color: hsl(206, 94%, 87%);
  color: hsl(243, 100%, 62%);
}

/* ------------------------------------------- */
/* ------------------------------------------- */
/* Step Number 1*/
/* ------------------------------------------- */
/* ------------------------------------------- */
header {
  font-size: 3.2rem;
  font-weight: 600;
  color: hsl(213, 96%, 18%);
}
.forPageone {
  visibility: hidden;
}
.loginSteps {
  display: flex;
  width: fit-content;
  flex-direction: column;
  gap: 1.6rem;
  padding: 3.2rem;
  /* padding: 1.6rem; */
  /* padding-right: 0rem; */
  /* padding-left: 6.4rem; */
}
.detail {
  font-size: 1.6rem;
  color: hsl(231, 11%, 63%);
  margin-bottom: 3.2rem;
}
form {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.formElements {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
label {
  font-size: 1.2rem;
  font-weight: 600;
  color: hsl(213, 96%, 18%);
}
input {
  height: 4.4rem;
  font-size: 1.6rem;
  font-weight: 500;
  padding: 1.2rem;
  border-radius: 0.6rem;
  border: 1.5px solid hsl(229, 24%, 87%);
}
input:focus-visible {
  border: 1.5px solid hsl(228, 100%, 84%);
  outline: 0px;
}
input:invalid {
  outline: 0px;
  border: 1.5px solid hsl(354, 84%, 57%);
}
#one:invalid::placeholder {
  color: hsl(354, 84%, 57%);
  width: 10rem;
  height: 1rem;
}
.firstBtn {
  width: 30%;
  align-self: flex-end;
  justify-self: flex-end;
  color: white;
  background-color: hsl(213, 96%, 18%);
  transition: all;
  transition-duration: 0.5s;
  /* margin-top: 4.8rem; */
  text-align: center;
  justify-items: center;
}
.firstBtn:hover {
  background-color: hsl(243, 100%, 62%);
  cursor: pointer;
}
.firstBtn:active {
  background-color: hsl(243, 100%, 62%);
  transform: scale(0.9);
}
.error {
  padding: 0 1.2rem;
  display: flex;
  justify-content: space-between;
}
.errorMessage {
  color: hsl(354, 84%, 57%);
  font-size: 1.2rem;
  font-weight: 500;
  /* height: min-content; */
}
.test {
  max-height: 0;
  overflow: hidden;
  transition: all;
  transition-duration: 0.3s;
}

.errorMessageShow {
  max-height: 1.2rem;
}
.valid {
  border: 1.5px solid hsl(149, 73%, 44%);
}
/* ------------------------------------------- */
/* ------------------------------------------- */
/* Step Number 2*/
/* ------------------------------------------- */
/* ------------------------------------------- */
.secondStep {
  width: 100%;
  /* gap: 1.6rem; */
}
.pageTwo {
  display: flex;
  flex-direction: row;
  height: fit-content;
  width: 100%;
  justify-content: space-between;
}
.plan {
  height: 4rem;
  margin-top: 1rem;
  width: 100%;
  background-color: hsl(228, 100%, 98%);
  border-radius: 1.2rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  color: hsl(231, 11%, 63%);
  font-weight: 500;
  font-size: 1.4rem;
}
.currentlySelectedPlan {
  color: hsl(213, 96%, 18%);
}
.pageTwoBtn {
  width: 30%;
  height: 16rem;
  margin-right: 1.6rem;
  border-radius: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem;
  border: 1px solid hsl(229, 24%, 87%);
  background-color: white;
  transition: all;
  transition-duration: 0.1s;
}
.pageTwoDetails {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  justify-content: flex-start;
}
.pageTwoButtonTextMain {
  font-size: 1.6rem;
  font-weight: 600;
  color: hsl(213, 96%, 18%);
}
.pageTwoBtn:hover {
  cursor: pointer;
  outline: 1px solid hsl(228, 100%, 84%);
  border: 1px solid hsl(228, 100%, 84%);
}
.selected {
  border: 1.5px solid hsl(228, 100%, 84%);
  background-color: hsl(228, 100%, 95%);
}
.pageTwoButtonPrice {
  color: hsl(231, 11%, 63%);
}
.back {
  display: flex;
  align-items: center;
  height: fit-content;
  justify-content: center;
  padding: 0.6rem;
  gap: 50%;
}
.backButton {
  height: 4.4rem;
  background-color: white;
  border: 0px solid;
  font-size: 1.2rem;
  font-weight: 500;
  color: hsl(231, 11%, 63%);
  text-align: center;
  align-items: center;
}
.backButton:hover {
  cursor: pointer;
  color: hsl(213, 96%, 18%);
}
.divider {
  display: flex;
  min-height: 90%;
  flex-direction: column;
  justify-content: space-between;
}
.forPageTwo {
  margin: 0px;
  padding: 0 1.8rem;
  width: fit-content;
}

.hide {
  display: none;
}
.yearlyMessage {
  color: hsl(213, 96%, 38%);
  font-size: 1.2rem;
  font-weight: 700;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s;
}
.hiddenNot {
  max-height: 1.2rem;
}
/* ------------------------------------------- */
/* ------------------------------------------- */
/* Step Number 3*/
/* ------------------------------------------- */
/* ------------------------------------------- */
.toggleSwitch {
  position: relative;
  display: flex;
  width: 3.6rem;
  background-color: hsl(213, 96%, 18%);
  height: 2rem;
  border-radius: 1.6rem;
  align-items: center;
  justify-content: center;
}
.circle {
  position: absolute;
  left: 0;
  transform: translateX(10%);
  height: 1.6rem;
  width: 1.6rem;
  background-color: white;
  border-radius: 1.6rem;
  transition: all;
  transition-duration: 0.5s;
}
.checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 1.6rem;
  width: 3.2rem;
  border-radius: 1.2rem;
  z-index: 1;
}
/* --------------------------------------------- */
.thirdStep {
  width: 90%;
}
.pageTwoBtn.invalid {
  border: 1px solid hsl(354, 84%, 57%);
  background-color: hsl(354, 84%, 99%);
}
.firstElementThirdPage {
  width: 100%;
  height: fit-content;
  display: flex;
  border: 1px solid hsl(231, 11%, 63%);
  border-radius: 0.6rem;
  padding: 0.8rem 2rem;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
  transition: all;
  transition-duration: 0.5s;
}
.elementDetails {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}
.elementOneCheck {
  width: 1.8rem;
  font-size: 1.2rem;
  transition: all;
  transition-duration: 0.5s;
}
.elementOneCheck:hover {
  cursor: pointer;
}
.elementOneCheck:checked {
  background-color: hsl(243, 100%, 62%);
}
.thirdPageElementHead {
  font-size: 1.6rem;
  font-weight: 500;
  color: hsl(213, 96%, 18%);
}
.thirdPageElementDetail {
  font-size: 1.2rem;
  font-weight: 500;
  color: hsl(231, 11%, 63%);
}
.checked {
  background-color: hsl(228, 100%, 95%);
  border: 1px solid hsl(228, 100%, 84%);
}
.price {
  justify-self: flex-end;
  color: hsl(243, 100%, 62%);
  font-size: 1.4rem;
}
.elementThirdpage {
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
}
.pageThree {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* ------------------------------------------- */
/* ------------------------------------------- */
/* Step Number 4*/
/* ------------------------------------------- */
/* ------------------------------------------- */

.finalizing {
  background-color: hsl(228, 100%, 95%);
  border-radius: 0.6rem;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}
.topFinal {
  display: grid;
  height: fit-content;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid hsla(229, 11%, 70%, 0.551);
}
.item:nth-child(2) {
  grid-column: 2/3;
  grid-row: 1/3;
  align-self: center;
  justify-self: flex-end;
}
.finalHead {
  font-size: 1.4rem;
  font-weight: 700;
  color: hsl(213, 96%, 18%);
}
.link {
  font-size: 1.2rem;
  color: hsl(230, 30%, 64%);
  text-decoration: underline;
}
.link:hover {
  cursor: pointer;
}
.finalPrice {
  font-size: 1.4rem;
  font-weight: 700;
  color: hsl(213, 96%, 18%);
}
.firstLine {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.bottomFinal {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.firstLineText {
  font-size: 1.2rem;
  font-weight: 500;
  color: hsl(231, 11%, 63%);
}
.lastPrice {
  font-weight: 700;
  font-size: 1.4rem;
  color: hsl(231, 11%, 63%);
}
.lastRate {
  background-color: white;
}

.finalRate {
  font-size: 1.6rem;
  font-weight: 700;
  color: hsl(243, 100%, 62%);
}
.last {
  font-size: 1.2rem;
  font-weight: 500;
  color: hsl(231, 11%, 63%);
}
.confirm {
  background-color: hsl(243, 100%, 62%);
  border: 0px solid;
  border-radius: 0.6rem;
  padding: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  text-align: center;
  align-items: center;
  justify-content: center;
  transition: all;
  transition-duration: 0.5s;
}

.confirm:hover {
  cursor: pointer;
  background-color: hsl(243, 100%, 72%);
}
.confirm:active {
  background-color: hsl(243, 100%, 52%);
}

/* ------------------------------------------- */
/* ------------------------------------------- */
/* Step Number 5*/
/* ------------------------------------------- */
/* ------------------------------------------- */
.thanks {
  align-self: center;
  height: 100%;
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  align-items: center;
  justify-content: center;
}
.thankYou {
  font-size: 3.2rem;
  font-weight: 700;
  color: hsl(213, 96%, 18%);
}
.thanksMessage {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 2rem;
  color: hsl(231, 11%, 63%);
  text-align: center;
}
.divider.thank {
  flex-direction: row;
  justify-content: center;
}
/* media querries */
@media (max-width: 600px) {
  main {
    display: grid;
    grid-template-rows: 1fr 4fr 2fr;
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: 0;
    height: 100vh;
    overflow: hidden;
    align-items: center;
    box-shadow: 0px 0px 0px 0px;
    background-color: hsl(217, 100%, 97%);
  }
  aside {
    background-image: url("./assets/images/bg-sidebar-mobile.svg");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 15rem;
    border-radius: 0;
    margin: 0%;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
  }
  body {
    background-color: hsl(217, 100%, 97%);

    display: inline;
    /* position: absolute; */
    /* overflow: hidden; */
  }

  .stepNumber {
    padding: 0%;
  }
  #one {
    margin: 0;
    padding: 0;
  }
  .loginForm {
    width: 90%;
    grid-column: 1/2;
    align-self: center;
    justify-self: center;
    background-color: hsl(228, 100%, 95%);
    box-shadow: 0 5px 10px 2px hsla(0, 0%, 0%, 0.1);
    border-radius: 1.2rem;
    position: relative;
    top: -15%;
  }
  .divider {
    border-radius: 1.2rem;
    /* position: relative; */
  }
  .special {
    align-self: flex-end;
    background-color: white;
    width: 100vw;
    position: fixed;
    left: 0;
    bottom: 0;
    padding: 1.6rem 0;
  }
  .detail {
    padding: 0;
  }
  .element {
    padding: 2.4rem 0 0 0;
  }
  #two {
    margin: 0;
    padding: 0;
  }
  #three {
    margin: 0;
    padding: 0;
  }
  #four {
    margin: 0;
    padding: 0;
  }

  .divider {
    flex-direction: column;
    background-color: white;
    width: 100%;
  }
  .loginSteps {
    flex-direction: column;
    width: 100%;
    gap: 1.6rem;
  }
  .back {
    position: fixed;
    width: 100%;
    padding: 1.2rem 0;
    background-color: white;
    bottom: 0;
    left: 0;
  }
  .pageTwo {
    flex-direction: column;
    width: 100%;
    gap: 1.6rem;
  }
  .pageTwoBtn {
    width: 100%;
    height: fit-content;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.6rem;
  }
  .thank {
    height: 50rem;
  }
  .thanks {
    width: 100%;
    gap: 1.6rem;
    min-height: 50rem;
  }
}
