/* ====== Demo Page Styles ====== */
body {
  font-family: "Inter", sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 40px;
  color: #111;
}

.demo-container {
  max-width: 1100px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  animation: fadeInUp 0.8s ease both; /* container animation */
}

h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  animation: fadeInDown 0.8s ease both;
}

.subtitle {
  text-align: center;
  color: #666;
  font-size: 15px;
  margin-bottom: 30px;
  animation: fadeInDown 1s ease both;
}

/* Animations */
@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  gap: 40px;
  position: relative;
}

.progress-bar .step {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #000;
  font-weight: bold;
}

/* Completed step = green circle with tick */
.progress-bar .step.completed {
  background: #C9FF2D;
  border-color: #C9FF2D;
}
.progress-bar .step.completed::before {
  content: "✔"; /* replace with your tick icon if needed */
  font-size: 12px;
  color: #000;
}

/* Current step = centered dot */
.progress-bar .step.current::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Connecting Lines */
.progress-bar .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 40px; /* matches your gap */
  height: 2px;
  background: #160101;
  transform: translateY(-50%);
  z-index: -1;
}

/* Completed line */
.progress-bar .step.completed:not(:last-child)::after {
  background: #C9FF2D;
}

/* Form Layout */
.form-wrapper {
  display: flex;
  gap: 30px;
}

/* Sidebar */
.form-sidebar {
  display: flex;
  margin-top: 15px;
  flex-direction: column;
  gap: 40px;
  width: 260px;
}
.step-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: #f2f2f2;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Step button active */
.step-btn.active {
  background: #000;
  color: #fff;
  animation: bounceOnce 0.6s ease; /* run only once */
}

/* Bounce keyframes */
@keyframes bounceOnce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.1); }
  60%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}


/* Form Content */
.form-content {
  flex: 1;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 20px;
  animation: fadeInUp 0.7s ease;
}
form label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}
form input, form select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}
form input:focus, form select:focus {
  border-color: #C9FF2D;
  box-shadow: 0 0 4px rgba(201,255,45,0.6);
  transform: scale(1.02);
}

h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  font-weight: 700;
}

/* Proceed Button */
.proceed-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #C9FF2D;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s ease, transform 0.2s ease;
}
.proceed-btn:hover {
  background: #b3f017;
  transform: scale(1.05);
}

/* Back Button */
.back-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #f2f2f2;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  text-align: center;
  text-decoration: none;
  color: #111;
  transition: background 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}
.back-btn:hover {
  background: #ddd;
  transform: scale(1.05);
}


