/**
 * CJ's Brew & BBQ - Progress Indicator Styles
 * Horizontal progress bar with brand colors
 * UPDATED: Jan 8, 2026 - Consolidated with brand-colors.css
 */

@import url('brand-colors.css');

.recipe-form-wrapper {
  margin: 20px 0;
}

/* =======================================
   PROGRESS BAR CONTAINER
   ======================================= */

.form-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  padding: 20px 0;
}

/* Connection line between steps */
.form-progress::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 5%;
  right: 5%;
  height: 2px;
  background-color: var(--cjbb-border);
  z-index: 0;
}

/* =======================================
   INDIVIDUAL STEP BOXES
   ======================================= */

.form-progress .step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  cursor: default;
  transition: all 0.3s ease;
}

/* Step circle styling */
.form-progress .step::before {
  content: attr(data-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 8px;
  background-color: var(--cjbb-bg-light);
  border: 2px solid #d0d0d0;
  border-radius: 50%;
  font-weight: 600;
  font-size: 16px;
  color: #666;
  transition: all 0.3s ease;
}

/* Step label text */
.form-progress .step {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* =======================================
   ACTIVE STEP (CJS BRAND RED)
   ======================================= */

.form-progress .step.active::before {
  background-color: var(--cjbb-primary); /* CJS Brand Red */
  border-color: var(--cjbb-primary);
  color: white;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
  transform: scale(1.1);
}

.form-progress .step.active {
  color: var(--cjbb-primary);
  font-weight: 700;
}

/* =======================================
   COMPLETED STEPS (CHECKMARK)
   ======================================= */

.form-progress .step.completed::before {
  content: '✓';
  background-color: var(--cjbb-success);
  border-color: var(--cjbb-success);
  color: white;
  font-size: 22px;
}

.form-progress .step.completed {
  color: var(--cjbb-success);
}

/* =======================================
   STEP COUNTER
   ======================================= */

.step-counter {
  text-align: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.step-counter span {
  color: var(--cjbb-primary);
  font-weight: 700;
}

/* =======================================
   RESPONSIVE DESIGN
   ======================================= */

@media (max-width: 768px) {
  .form-progress {
    margin-bottom: 30px;
    padding: 15px 0;
  }

  .form-progress .step::before {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .form-progress .step {
    font-size: 12px;
  }

  .form-progress::before {
    top: 25px;
  }
}

@media (max-width: 480px) {
  .form-progress {
    margin-bottom: 25px;
    padding: 10px 0;
  }

  .form-progress .step::before {
    width: 36px;
    height: 36px;
    margin: 0 auto 6px;
    font-size: 12px;
  }

  .form-progress .step {
    font-size: 11px;
  }

  .form-progress::before {
    top: 22px;
  }
}
