/* Font and reset */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Ubuntu', sans-serif;
}

body {
  background-color: hsl(217, 100%, 97%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
    background: white;
    display: flex;
    width: 950px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 80vh; /* match height to sidebar */
  }
  

/* Sidebar */
/* Sidebar */
.sidebar {
    background: url('./assets/images/bg-sidebar-desktop.svg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 35px 25px;
    width: 280px;
    height: 80vh; /* 👈 full viewport height */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
  
  
  

.steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.step {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.step span {
  width: 35px;
  height: 35px;
  border: 1px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.step.active span {
  background: hsl(206, 94%, 87%);
  color: black;
}

.step p {
  color: hsl(231, 11%, 63%);
  font-size: 12px;
  letter-spacing: 1px;
}

.step h4 {
  font-size: 14px;
  color: white;
  font-weight: 700;
}

/* Form Area */
.form-area {
  flex: 1;
  padding: 40px 70px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

h1 {
  color: hsl(213, 96%, 18%);
  margin-bottom: 10px;
}

p {
  color: hsl(231, 11%, 63%);
  font-size: 16px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 500;
  color: hsl(213, 96%, 18%);
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid hsl(229, 24%, 87%);
  border-radius: 5px;
  font-size: 15px;
}

input:focus {
  border-color: hsl(243, 100%, 62%);
  outline: none;
}

.error {
  color: red;
  font-size: 13px;
  display: none;
}

/* Step 2: Plans */
.plans {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.plan {
  border: 1px solid hsl(229, 24%, 87%);
  border-radius: 10px;
  padding: 15px;
  flex: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan.active,
.plan:hover {
  border-color: hsl(243, 100%, 62%);
  background-color: hsl(217, 100%, 97%);
}

.plan h3 {
  color: hsl(213, 96%, 18%);
  margin-bottom: 5px;
}

.plan .price {
  color: hsl(231, 11%, 63%);
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: hsl(217, 100%, 97%);
  padding: 10px;
  border-radius: 10px;
}

.toggle span {
  font-weight: 700;
  color: hsl(231, 11%, 63%);
}

.toggle span.active {
  color: hsl(213, 96%, 18%);
}

.switch {
  width: 40px;
  height: 20px;
  background: hsl(213, 96%, 18%);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}

.switch::before {
  content: '';
  width: 15px;
  height: 15px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2.5px;
  left: 3px;
  transition: all 0.3s ease;
}

.switch.active::before {
  left: 22px;
}

/* Step 3: Add-ons */
.addon {
  border: 1px solid hsl(229, 24%, 87%);
  border-radius: 10px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.addon label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
  padding: 15px;
}

.addon input {
  transform: scale(1.3);
}

.addon:hover,
.addon input:checked + .info {
  border-color: hsl(243, 100%, 62%);
}

.info h4 {
  margin: 0;
  color: hsl(213, 96%, 18%);
}

.info p {
  margin: 0;
  font-size: 13px;
}

.price {
  color: hsl(243, 100%, 62%);
  font-weight: 500;
}

/* Step 4 Summary */
.summary {
  background: hsl(217, 100%, 97%);
  padding: 20px;
  border-radius: 10px;
}

/* Step 5 Thank You */
.thankyou {
  text-align: center;
  padding: 60px 20px;
}

.thankyou img {
  width: 70px;
  margin-bottom: 20px;
}

.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

#backBtn {
  background: none;
  border: none;
  color: hsl(231, 11%, 63%);
  font-weight: 500;
  cursor: pointer;
}

#nextBtn {
  background: hsl(213, 96%, 18%);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 25px;
  font-weight: 500;
  cursor: pointer;
}

#nextBtn:hover {
  background: hsl(243, 100%, 62%);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    background-color: hsl(217, 100%, 97%);
    padding: 20px;
  }

  .container {
    flex-direction: column;
    width: 100%;
  }

  .sidebar {
    background: url('./assets/images/bg-sidebar-mobile.svg') no-repeat center center/cover;
    width: 100%;
    height: 150px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .steps {
    flex-direction: row;
    gap: 15px;
  }

  .form-area {
    padding: 30px 20px;
  }

  .plans {
    flex-direction: column;
  }
}
