@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

:root {
  --marine-blue: hsl(213, 96%, 18%);
  --purplish-blue: hsl(243, 100%, 62%);
  --pastel-blue: hsl(228, 100%, 84%);
  --light-blue: hsl(206, 94%, 87%);
  --straberry-red: hsl(354, 84%, 57%);
  --light-gray: hsl(229, 24%, 87%);
  --cool-gray: hsl(231, 11%, 63%);
  --magnolia: hsl(217, 100%, 97%);
  --alabaster: hsl(231, 100%, 99%);
}
* {
  font-family: "constantia", sans-serif;
  margin: 0;
  padding: 0;
}

main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--alabaster);
}

.container {
  width: 950px;
  display: flex;
  border-radius: 20px;
  justify-content: space-between;
  background-color: rgba(217, 218, 236, 0.231);
  padding: 1rem;
}

.navigation {
  justify-content: flex-start;
  background-image: url("./assets/images/bg-sidebar-desktop.svg");
  height: 568px;
  width: 274px;
}

.steps-and-buttons {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  margin-right: 4rem;
}

.flex {
  display: flex;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-end {
  justify-content: flex-end;
}

.spaceBetween {
  justify-content: space-between;
}
.spaceAround {
  justify-content: space-around;
}

.align-items-center {
  align-items: center;
}

.justifyContentCenter {
  justify-content: center;
}

section.steps {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

section.step {
  display: flex;
  flex-direction: column;
  min-width: 450px;
  max-width: 450px;
}

.description {
  margin-bottom: 40px;
}

.description .title {
  color: var(--marine-blue);
  font-size: 40px;
  margin-bottom: 11px;
}

.description .p-description {
  color: var(--cool-gray);
  font-size: 16px;
}

.center {
  text-align: center;
}

.v-align-center {
  align-content: center;
}

label {
  margin-bottom: 8px;
  color: var(--marine-blue);
  font-size: 12px;
}

.personal-info input {
  padding: 12px;
  border: 0.5px solid var(--light-gray);
  border-radius: 6px;
  margin-bottom: 24px;
  font-weight: bold;
}

::placeholder {
  color: var(--light-gray);
}

.required {
  font-size: 13px;
  font-weight: bold;
  color: red;
}

input.required {
  border: 1px solid red;
}

input.form:hover,
input.form:focus,
input.form:focus-visible {
  border: 1px solid var(--purplish-blue);
  cursor: pointer;
}

.buttons {
  margin-bottom: 2rem;
  display: flex;
}

.go-back {
  border: 0;
  background-color: transparent;
  color: var(--cool-gray);
  cursor: pointer;
}

.next-step {
  color: white;
  background-color: var(--marine-blue);
  bottom: 10px;
  text-align: right;
  padding: 12px 20px;
  border-radius: 5px;
  border: 0;
  cursor: pointer;
}

.next-step:hover {
  opacity: 85%;
}

.confirm {
  color: white;
  background-color: var(--purplish-blue);
  bottom: 10px;
  text-align: right;
  padding: 12px 20px;
  border-radius: 5px;
  border: 0;
  cursor: pointer;
}

.cards {
  display: flex;
  flex-direction: row;
  text-align: left;
  justify-content: space-between;
  gap: 18px;
}

.cards h2,
.add-on h2,
.plan-selected h2 {
  font-size: 15px;
  text-transform: capitalize;
}

.card .plan,
.add-on .plan,
.plan-selected .plan {
  color: var(--marine-blue);
}

.price .plan,
.price .secondary,
.card .price {
  text-transform: lowercase;
}

.card .price,
.add-on .add-on-description {
  margin-top: 6px;
  color: var(--cool-gray);
  font-weight: 100;
  font-size: 13px;
}

.card {
  border: 0.5px solid var(--light-gray);
  padding: 15px 0 15px 15px;
  border-radius: 5px;
  min-width: 123px;
}

.card:hover {
  cursor: pointer;
  border: 1px solid var(--purplish-blue);
}

.card img {
  margin-bottom: 35px;
}

.radio-plan {
  display: none;
}

.radio-plan:checked + .card-input {
  border-color: var(--purplish-blue);
  background-color: var(--magnolia);
}

.subscription {
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 3rem;
  background-color: var(--alabaster);
}

section.add-on-plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.add-on {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0.5px solid var(--cool-gray);
  padding: 10px 18px 15px 18px;
  border-radius: 8px;
}

.add-on-group {
  display: flex;
  align-items: center;
  gap: 18px;
}
.add-on-price {
  font-size: 12px;
  color: var(--purplish-blue);
}

input[type="checkbox"] {
  accent-color: var(--purplish-blue);
}

.checkSelected,
.add-on:hover {
  border: 0.5px solid var(--purplish-blue);
  background-color: var(--magnolia);
}

label.add-on {
  cursor: pointer;
}

.plan-selected {
  background-color: var(--magnolia);
  padding: 16px 24px 24px 24px;
}

.plan-selected .plan-group {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--light-gray);
}

.plan-description .secondary {
  color: var(--cool-gray);
  font-size: 12px;
  font-weight: lighter;
}

.hover:hover {
  color: var(--purplish-blue);
  cursor: pointer;
}

.price .secondary {
  color: var(--marine-blue);
  font-weight: lighter;
  font-size: 14px;
}

.underline {
  text-decoration: underline;
}

h2.price {
  font-size: 18px;
  color: var(--purplish-blue);
}

.pt-16 {
  padding-top: 16px;
}
.m-24 {
  margin: 24px;
}

.mt-7 {
  margin-top: 7px;
}

.nav {
  list-style: none;
  margin-top: 40px;
  margin-left: 32px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.nav__step {
  margin-bottom: 32px;
}

.number.selected {
  background-color: var(--light-blue);
  color: var(--marine-blue);
  font-weight: bold;
}

.number {
  padding: 6px 11px;
  border: 1px solid white;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  margin-right: 16px;
}

.step-number {
  color: white;
  font-size: 13px;
  opacity: 60%;
}

.step-name {
  margin-top: 4px;
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 25px;
  margin-top: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--marine-blue);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--marine-blue);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--marine-blue);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

/* MEDIA QUERIES */
@media only screen and (max-width: 420px) {
  .wrapper {
    max-width: 375px;
    height: 100%;
  }

  .container {
    max-width: 375px;
    flex-direction: column;
    padding: 0px;
  }

  .steps-and-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0rem;
    margin-right: 0rem;
  }

  .navigation {
    background-image: url("./assets/images/bg-sidebar-mobile.svg");
    background-repeat: no-repeat;
    width: 375px;
    height: 172px;
  }

  .nav {
    flex-direction: row;
    align-items: start;
    justify-content: center;
    margin-top: 32px;
    margin-left: 0;
    gap: 16px;
    width: 375px;
    height: 172px;
  }

  .number {
    margin-right: 0;
  }

  .nav .step {
    display: none;
  }

  section.steps {
    margin-top: 0rem;
    background-color: var(--magnolia);
    padding: 0 16px;
    height: 100%;
    display: flex;
    justify-content: space-around;
  }

  section.step {
    background-color: white;
    max-width: 295px;
    min-width: 295px;
    margin-top: -75px;
    margin-right: 0px;
    margin-bottom: 3rem;
    padding: 32px 24px 32px 24px;
    border-radius: 10px;
  }

  .personal-info input:last-child {
    margin-bottom: 0;
  }

  .step .title {
    font-size: 25px;
  }

  .cards {
    flex-direction: column;
  }

  .card {
    display: flex;
    flex-direction: row;
  }

  .cards img {
    margin: 0 14px 0 0;
  }

  .buttons {
    padding: 16px;
    margin: 0;
    background-color: white;
  }
}
