@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 {
  /* PRIMARY COLOR */

  --Blue-950: hsl(213, 96%, 18%);
  --Purple-600: hsl(243, 100%, 62%);
  --Blue-300: hsl(228, 100%, 84%);
  --Blue-200: hsl(206, 94%, 87%);
  --Red-500: hsl(354, 84%, 57%);

  /* Neutral COLOR */
  --Grey-500: hsl(231, 11%, 63%);
  --Purple-200: hsl(229, 24%, 87%);
  --Blue-100: hsl(218, 100%, 97%);
  --Blue-50: hsl(231, 100%, 99%);
  --White: hsl(0, 100%, 100%);

  /* FONT WEIGHTS */
  --sm: 400;
  --md: 500;
  --big: 700;
}

/* RESET  */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Ubuntu', sans-serif;
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  min-height: 100vh;
}

::-webkit-scrollbar {
  background-color: rgb(218, 218, 218);
  max-width: 0.3rem;
}
::-webkit-scrollbar-thumb {
  margin: 0 5px;
  border: 50%;
  background-color: rgb(172, 166, 166);
}

.container {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

#sidebar {
  background-image: url(../images/bg-sidebar-mobile.svg);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 4rem 1rem;
  width: 100%;
  min-height: 20.375rem;
}

#sidebar > .sidebar-content-container {
  display: flex;
  align-items: start;
}

.step-counter {
  color: var(--White);
  font-weight: var(--md);
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--White);
  border-radius: 50%;
  text-align: center;
}

.step-counter.active {
  background-color: var(--Blue-200);
  border: none;
  color: var(--Blue-950);
}

.step-txt-container {
  display: none;
}

main {
  background-color: var(--Blue-100);
  flex: 1;
}

.screen {
  display: none;
  background-color: var(--White);
  position: relative;
  width: 90%;
  max-width: 50rem;
  top: -7.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 3.5rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 0 5px rgb(216, 216, 216);
}

.screen.active {
  display: block;
}

.header {
  color: var(--Blue-950);
  margin-bottom: 0.6rem;
  font-weight: var(--big);
  font-size: 3rem;
}

.header-txt {
  color: var(--Grey-500);
  line-height: 1.4;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* FOR PERSONAL INFO SCREEN */

.input-container {
  width: 100%;
  margin-bottom: 2rem;
}

.input-container:last-of-type {
  margin-bottom: 0;
}

.label-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  font-weight: var(--md);
}

.label-container label {
  color: var(--Blue-950);
  font-size: 1.4rem;
}

.label-container .error {
  color: var(--Red-500);
}

input.formvalidate {
  width: 100%;
  padding: 1.5rem;
  border-radius: 10px;
  border: 2px solid var(--Purple-200);
  outline: none;
  cursor: pointer;
}

input.formvalidate:focus {
  border-color: var(--Purple-600);
}

input.formvalidate.invalid {
  border: 2px solid var(--Red-500);
  background-color: #fdd;
}

input.formvalidate:focus.invalid {
  outline: none;
  border-style: dashed;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#btn-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.btn-content-con {
  width: 90%;
  max-width: 50rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#back-btn {
  border: none;
  background: none;
  color: var(--Grey-500);
  font-weight: var(--md);
  visibility: hidden;
  cursor: pointer;
  transition: color 0.2s ease;
}

#next-btn {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 5px;
  background-color: var(--Blue-950);
  color: var(--White);
  font-weight: var(--md);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

/* FOR SELECT PLAN SCREEN */

#plan-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.plan-txt-container {
  border: 1px solid var(--Purple-200);
  display: flex;
  align-items: start;
  padding: 1.5rem;
  gap: 1rem;
  border-radius: 7px;
  box-shadow: 0 0 2px rgba(216, 216, 216, 0.6);
  cursor: pointer;
  flex: 1;
  transition: border 0.2s ease;
}

.plan-txt-container.choose {
  border: 1px solid var(--Purple-600);
  background-color: var(--Blue-50);
}

.plan-txt {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-name {
  color: var(--Blue-950);
  font-weight: var(--big);
}

.plan-amt {
  color: var(--Grey-500);
}

.plan-year {
  color: var(--Blue-950);
  font-weight: var(--md);
  font-size: 1.4rem;
  text-wrap: nowrap;
  display: none;
  transition: display 0.2s ease;
}

#mon-year-container {
  background-color: var(--Blue-100);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  border-radius: 7px;
  box-shadow: 0 0 2px var(--Blue-50);
}

.time {
  color: var(--Grey-500);
  font-weight: var(--md);
}

.time.picked {
  color: var(--Blue-950);
}

.toggle {
  padding: 0.9rem 1.7rem;
  background-color: var(--Blue-950);
  border-radius: 1rem;
  position: relative;
  margin: 0 2.5rem;
  cursor: pointer;
}

.toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0.2rem;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: var(--White);
  transition: left 0.3s ease;
}

.toggle.year::before {
  left: 2rem;
}

/* FOR SELECT PLAN SCREEN */

.add-ons-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--Purple-200);
  padding: 1.5rem;
  border-radius: 7px;
  box-shadow: 0 0 2px rgba(216, 216, 216, 0.6);
  cursor: pointer;
  flex: 1;
  margin-bottom: 1.5rem;
  transition: border 0.2 ease;
}

.add-ons-container:last-of-type {
  margin-bottom: 0;
}

.add-ons-container.checked {
  border: 1px solid var(--Purple-600);
  background-color: var(--Blue-50);
}

.add-ons-txt-container {
  display: flex;
  gap: 2rem;
}

input[type='checkbox'] {
  width: 1.8rem;
  cursor: pointer;
}

.add-ons-txt {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.add-ons-name {
  font-weight: var(--md);
  color: var(--Blue-950);
  font-size: 1.8rem;
}

.add-ons-details {
  color: var(--Grey-500);
}

.add-ons-price {
  color: var(--Purple-600);
}

/* FOR FINISH UP SCREEN */

#calculate-container {
  background-color: var(--Blue-50);
  padding: 1.5rem;
  border-radius: 7px;
  box-shadow: 0 0 2px var(--Blue-100);
}

#plan-chose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--Purple-200);
  padding-bottom: 2rem;
}

#plan-chose-name,
#plan-chose-price {
  font-weight: var(--big);
  color: var(--Blue-950);
}

#change-plan-chose {
  font-weight: 400;
  color: var(--Grey-500);
  text-decoration: underline;
  font-size: 1.4rem;
  margin-top: 0.4rem;
  cursor: pointer;
  transition: color 0.2 ease;
}

.add-ons-chose,
#total-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.add-ons-chose-name {
  color: var(--Grey-500);
  font-weight: 400;
}

.add-ons-chose-price {
  color: var(--Blue-950);
  font-weight: var(--sm);
}

#total-container {
  padding: 0 1.5rem;
  color: var(--Grey-500);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

#total-price {
  color: var(--Purple-600);
  font-weight: var(--big);
}

/* FOR THANK YOU SCREEN */

main.thankyou {
  display: flex;
  align-items: center;
}

#thankyou-screen {
  padding: 4.8rem 3rem;
}

#thankyou-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#thankyou-container img {
  margin-bottom: 3rem;
}

#thankyou-txt {
  text-align: center;
  margin-top: 2rem;
  color: var(--Grey-500);
  font-size: 1.8rem;
  font-weight: 400;
}

/* RESPONSIVENESS MEDIA QUERIES*/

@media screen and (max-width: 43.99rem) {
  .container {
    min-height: 100vh;
  }
}

@media screen and (min-width: 44rem) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--Blue-100);
    padding: 1rem;
  }

  .container {
    display: grid;
    max-width: 90rem;
    width: 100%;
    min-height: 50rem;
    grid-template-columns: minmax(22rem, 25rem) 1fr;
    grid-template-rows: 1fr auto;
    padding: 1rem;
    background-color: var(--White);
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(216, 216, 216, 0.6);
  }

  #sidebar {
    grid-row: 1/3;
    background-image: url(../images/bg-sidebar-desktop.svg);
    border-radius: 10px;
    flex-direction: column;
    justify-content: start;
    padding: 3.5rem;
    gap: 2rem;
  }

  #sidebar > .sidebar-content-container {
    align-items: center;
  }

  .step-txt-container {
    display: block;
    margin-left: 1.2rem;
    font-weight: var(--md);
  }

  .step-txt-container .step-num {
    color: var(--Grey-500);
    font-size: 1.4rem;
    margin-bottom: 1px;
  }

  .step-txt-container .step-txt {
    color: var(--White);
    margin-top: 1px;
    font-size: 1.6rem;
  }

  main {
    background-color: var(--White);
  }

  .screen {
    background-color: none;
    top: 0rem;
    padding: 3.5rem 2.5rem;
    border-radius: 0px;
    box-shadow: none;
    width: 100%;
  }

  .btn-content-con {
    padding: 0 2.5rem;
    width: 100%;
  }

  /* FOR SELECT PLAN SCREEN */

  #plan-container {
    flex-direction: row;
    gap: 2.5rem;
  }

  .plan-txt-container {
    flex-direction: column;
    gap: 6rem;
  }
}

@media (hover: hover) {
  #next-btn:hover {
    opacity: 0.8;
  }

  #back-btn:hover {
    color: var(--Blue-950);
  }

  .plan-txt-container:hover,
  .add-ons-container:hover {
    border: 1px solid var(--Purple-600);
  }

  #change-plan-chose:hover {
    color: var(--Purple-600);
  }
}
