:root {
  /* Primary colors */
  --white: #ffffff;
  --marine-blue: #02295a;
  --purple-blue: #473dff;
  --pastel-blue: #abbcff;
  --light-blue: #bfe2fd;
  --strawberry-red: #ee374a;

  /* Neutral colors */
  --cool-gray: #9699ab;
  --light-gray: #d6d9e6;
  --magnolia: #f0f6ff;
  --alabaster: #fafbff;
  --White: #ffffff;

  --body-bg-color: var(--light-blue);
  --container-bg-color: var(--White);
  --heading-color: var(--marine-blue);
  --placeholder-color: var(--cool-gray);

  --form-background: #eff5ff;
  --tile-background: #eff5ff;
  --default-border-color: var(--light-gray);
  --highlighted-border-color: var(--purple-blue);
  --error-color: var(--strawberry-red);
  --user-input-font-color: var(--marine-blue);
}

html {
  font-size: 62.5%;
}

@font-face {
  font-family: "ubuntu";
  src: url("../assets/fonts/Ubuntu-Regular.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "ubuntu";
  src: url("../assets/fonts/Ubuntu-Medium.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "ubuntu";
  src: url("../assets/fonts/Ubuntu-Bold.ttf");
  font-weight: bold;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "ubuntu", sans-serif;
  line-height: 1.5;
  background-color: var(--body-bg-color);
}

li {
  list-style: none;
}

main {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

p {
  font-size: 1.2rem;
}

.container {
  max-width: 950px;
  height: 100%;
  border-radius: 1rem;
  position: relative;
  display: flex;
  background-color: var(--white);
}

.section-container {
  width: 100%;
  margin: 1rem;
  border-radius: 1rem;
}

.hidden {
  display: none;
}

.attribution {
  padding: 1rem 0;
  margin: 1rem 0;
}

#step-1-container,
#step-2-container,
#step-3-container,
#step-4-container,
#step-5-container {
  height: 100%;
  width: 600px;
}

/* ----------------------------------------------*/
/* Sidebar */
/* ----------------------------------------------*/
.sidebar {
  background: url("../assets/images/bg-sidebar-desktop.svg") no-repeat center
    center/cover;
  width: 400px;
  height: 600px;
  border-radius: 1rem;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  list-style: none;
  margin: 1rem;
  padding-top: 2rem;
}

.sidebar ul li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 1rem 2rem;
}

.sidebar ul li .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--white);
  background-color: transparent;
  color: var(--white);
  font-size: 1.5rem;
}

/* Highlight step number when active */
.sidebar ul li .step-number.active {
  border: none;
  background-color: var(--light-blue);
  color: var(--purple-blue);
}

.sidebar ul li .step-heading {
  margin-left: 1rem;
  text-transform: uppercase;
}

/* Select first child */
.sidebar ul li .step-heading div:first-child {
  color: var(--light-gray);
  font-size: 1.2rem;
}

.sidebar ul li .step-heading div:last-child {
  color: var(--white);
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 0.1rem;
}

/* ----------------------------------------------*/
/* Section Data
/*    This is where UI is rendered for all steps. */
/* -----------------------------------------------*/
.section-data {
  height: 100%;
  width: 100%;
  padding: 2rem 6rem;
  position: relative;
}

.section-data .section-heading {
  font-size: 3rem;
  font-weight: bold;
  color: var(--heading-color);
}

.section-data .section-lead {
  font-size: 1.3rem;
  color: var(--cool-gray);
  margin-bottom: 4rem;
}

.section-data label {
  font-size: 1.5rem;
  color: var(--heading-color);
}

.section-data .form-field {
  width: 100%;
  height: 4rem;
  border-radius: 0.5rem;
  border: 1px solid var(--default-border-color);
  padding: 1rem;
  font-size: 1.5rem;
  color: var(--cool-gray);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-family: "ubuntu", sans-serif;
  outline: none;
  color: var(--user-input-font-color);
}

.section-data .form-field::placeholder {
  color: var(--placeholder-color);
}

.section-data .form-field:focus {
  border: 1px solid var(--highlighted-border-color);
}

.section-data .form-field.error {
  border: 1px solid var(--error-color);
}

.error-msg {
  color: var(--error-color);
  height: 1.5rem;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: end;
}

/* .button-holder {
  position: absolute;
  bottom: 2rem;
  right: 6rem;
  width: 80%;
  height: 4rem;
  background-color: red;
  display: flex;
  align-items: center;
  justify-content: space-between;
} */

.section-data button {
  padding: 1rem 2rem;
  border: none;
  outline: none;
  font-family: "ubuntu", sans-serif;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

.section-data .prev-btn {
  position: absolute;
  bottom: 3rem;
  left: 6rem;
  width: 120px;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--cool-gray);
}

.section-data .prev-btn:hover {
  color: var(--marine-blue);
}

.next-btn {
  border-radius: 0.6rem;
  background-color: var(--marine-blue);
  text-align: right;
  position: absolute;
  bottom: 3rem;
  right: 8rem;
  width: 120px;
}

/* ----------------------------------------------*/
/* Step 2 */
/* ----------------------------------------------*/
#step-2 .plans ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

#step-2 .plans ul li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 150px;
  height: 175px;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--light-gray);
  cursor: pointer;
}

#step-2 .plans ul li:hover {
  border: 1px solid var(--highlighted-border-color);
}

#step-2 .plans ul .selected {
  background-color: var(--tile-background);
  border: 1px solid var(--highlighted-border-color);
}

#step-2 img {
  width: 35px;
  height: 35px;
}

#step-2 .plans ul li .plan {
  font-size: 1.6rem;
}

#step-2 .plans ul li .price {
  color: var(--cool-gray);
}

#step-2 .plans ul li .freebie {
  color: var(--purple-blue);
}

#step-2 .plan-type {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--magnolia);
  border-radius: 0.8rem;
  margin: 2rem 0;
  margin-right: 1.5rem;
}

#step-2 .plan-type p {
  padding: 1.5rem;
}

/* ----------------------------------------------- */
/* Switch */
/* ----------------------------------------------- */
/* Hide the default checkbox */
#step-2 input[type="checkbox"] {
  display: none;
}

/* Style for the Switch (lever) */
.lever {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  background-color: var(--cool-gray);
  border-radius: 12px;
  cursor: pointer;
  transition: all 1s;
}

/* Style for the Circle inside the Switch */
.lever::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 13px;
  height: 13px;
  background-color: white;
  border-radius: 50%;
  transition: all 1s;
}

/* Change styles when the Checkbox is Checked */
#step-2 input[type="checkbox"]:checked + .lever {
  background-color: var(--marine-blue);
}

#step-2 input[type="checkbox"]:checked + .lever::before {
  transform: translateX(20px); /* Move the circle to the right */
  transition: all 0.5s;
}

/* Align the switch and labels */
#step-2 .switch label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.unselected {
  color: var(--cool-gray);
}

/* ----------------------------------------------- */
/* Step 3 - Add ons*/
/* ----------------------------------------------- */
.addon-item-container.checked {
  border: 1px solid var(--highlighted-border-color);
}

#step-3 ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 1rem;
  margin: 1rem 0;
  border: 1px solid var(--magnolia);
  border-radius: 0.5rem;
  background-color: var(--magnolia);
}

#step-3 ul li .addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#step-3 ul .checked {
  border: 1px solid var(--purple-blue);
}

#step-3 ul li input {
  margin-right: 2rem;
}

#step-3 ul li .addon-item-type {
  color: var(--heading-color);
  font-size: 1.4rem;
}

#step-3 ul li .addon-item-summary {
  color: var(--cool-gray);
}

#step-3 ul li .addon-item-price {
  color: var(--purple-blue);
}

/* ----------------------------------------------- */
/* Step 4 - Final price */
/* ----------------------------------------------- */
#step-4 .summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  margin: 1rem 0;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--form-background);
}

#step-4 .summary .summary-base-price-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

#step-4 .separator {
  width: 100%;
  height: 1px;
  background-color: var(--light-gray);
  margin: 2rem 0;
}

#step-4 .summary .addon-items {
  width: 100%;
}

#step-4 .summary .addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--cool-gray);
  padding: 0.7rem 0;
}

#step-4 .total-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0;
}

#step-4 .total-price .total-price-amt {
  color: var(--purple-blue);
}

/* ----------------- */
/* step 5 - Feedback */
/* ----------------- */
#step-5 {
  height: 100%;
}

.feedback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem;
}

.feedback p {
  width: 75%;
}

/* All children of this element will have a margin */
.feedback > * {
  margin: 1rem 0;
}
