:root {
  --primary: #00416b;
  --yellow: #f8bd49;
  --green: #00a496;
  --muted: #52606a;
  --bg: #f3f7ff;
}

.form-wrapper {
  width: 100%;
  max-width: 880px;
  margin: 24px auto;
  position: relative;
}
h2.title {
  text-align: center;
  margin: 6px 0 14px;
  font-size: 22px;
  font-weight: 800;
}
.progress-wrapper {
  width: 100%;
  margin: 10px 0 26px;
  padding: 10px 18px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 6px 18px rgba(15, 40, 80, 0.03);
  position: relative;
}

.progress-track {
  position: relative;
  height: 10px;
  background: #eaf4ff;
  border-radius: 12px;
  overflow: visible;
  z-index: 2;
  margin-top: 8px;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2b8cff, #2b6bff);
  border-radius: 12px;
  transition: width 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 6px 18px rgba(43, 138, 255, 0.12) inset;
  z-index: 3;
}

.progress-knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 0%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: auto;
  z-index: 6;
}
.knob-bubble {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(6, 24, 44, 0.12);
  border: 1px solid rgba(10, 20, 40, 0.04);
  color: #0b2540;
  font-size: 14px;
  min-width: 28px;
  text-align: center;
  white-space: nowrap;
  z-index: 7;
}
.knob-circle {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(10, 30, 60, 0.12);
  display: inline-block;
  z-index: 7;
}
.progress-ticks {
  position: relative;
  height: 48px;
  margin-top: 10px;
  width: 100%;
  z-index: 4;
  padding: 0 6px;
}
.tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.tick-line {
  width: 2px;
  height: 8px;
  background: #cfe6ff;
  margin: 0 auto;
  border-radius: 2px;
}
.tick-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  display: inline-block;
  padding: 0 6px;
  background: transparent;
}
.tick-first {
  transform: translateX(0%);
  left: 0%;
}
.tick-last {
  transform: translateX(-100%);
  left: 100%;
}
.form-step {
  display: none;
  padding: 8px;
  min-height: 140px;
  transition: all 0.32s ease;
}
.form-step.active {
  display: block;
}
.step-body {
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid rgba(6, 12, 32, 0.03);
  margin-bottom: 12px;
}
.controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
}
.btn-prev {
  background: #0284e0;
  border: none;
  border-radius: 6px;
  font-size: 19px;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 65, 107, 0.12);
  padding: 10px 20px;
  transition: all 0.2s ease;
}
.btn-prev:hover {
  background-color: #059bff !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.btn-next {
  background-color: var(--primary) !important;
  color: white !important;
  border: none;
  border-radius: 6px;
  font-size: 19px;
  font-weight: bold;
  padding: 10px 20px;
  transition: all 0.2s ease;
}
.btn-next:hover {
  background-color: var(--yellow) !important;
  color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.btn-finish {
  background: var(--green);
  border: none;
  border-radius: 6px;
  font-size: 19px;
  font-weight: bold;
  padding: 10px 20px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 164, 150, 0.12);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 600px) {
  .progress-knob {
    width: 56px;
    height: 56px;
  }
  .knob-circle {
    width: 34px;
    height: 34px;
  }
  .knob-bubble {
    top: -30px;
    padding: 5px 8px;
    font-size: 13px;
  }
  .controls {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }
  .tick-label {
    font-size: 12px;
  }
  .btn-prev {
    margin-top: 10px;
  }
}
