/**
 * Multi-Step Registration Form Styles
 * Styling for the multi-step candidate registration form
 */

/* Multi-step container */
.multistep-registration {
  position: relative;
}

/* Progress indicator */
.multistep-progress {
  margin-bottom: 30px;
  padding: 0;
  margin-top: -10px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}

.progress-step {
  flex: 1;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  z-index: -1;
}

.progress-step.completed:not(:last-child)::after {
  background: var(--e-global-color-0caa3bd);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 8px;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: var(--e-global-color-0caa3bd);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(25, 103, 210, 0.2);
}

.progress-step.completed .step-number {
  background: var(--e-global-color-0caa3bd);
  color: #fff;
}

.progress-step.completed .step-number::before {
  content: "✓";
}

.step-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.progress-step.active .step-label {
  color: var(--e-global-color-0caa3bd);
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--e-global-color-0caa3bd);
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* Form steps */
.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-step.active {
  display: block;
  /* Added from inline styles */
  position: relative;
  /* z-index: 5; */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 8px;
}

.step-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.step-fields {
  margin-bottom: 30px;
}
/* Clearfix added from inline styles */
.step-fields:after {
  content: "";
  display: table;
  clear: both;
}

/* Form navigation */
.form-navigation {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.form-navigation .btn {
  min-width: 140px;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-navigation .btn-next,
.form-navigation .btn-submit {
  margin-left: auto;
}

.form-navigation .btn-theme {
  background: var(--e-global-color-0caa3bd);
  color: #fff;
  border: none;
}

.form-navigation .btn-theme:hover {
  background: #1557b0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 103, 210, 0.3);
}

.form-navigation .btn-secondary {
  background: #f1f3f4;
  color: #202124;
  border: 1px solid #dadce0;
}

.form-navigation .btn-secondary:hover {
  background: #e8eaed;
}

.form-navigation .flaticon-right-arrow,
.form-navigation .flaticon-left-arrow {
  margin-left: 8px;
  font-size: 12px;
}

.form-navigation .btn-prev .flaticon-left-arrow {
  margin-left: 0;
  margin-right: 8px;
}

/* Validation errors */
.validation-errors {
  background: #fef7f7;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.validation-errors ul {
  margin: 0;
  padding-left: 20px;
}

.validation-errors li {
  color: #721c24;
  margin-bottom: 5px;
}

.validation-errors li:last-child {
  margin-bottom: 0;
}

/* Error field styling */
.cmb-row input.error,
.cmb-row select.error,
.cmb-row textarea.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* No fields message */
.no-fields-message {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 4px;
  text-align: center;
  color: #666;
  font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
  .step-label {
    font-size: 11px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .step-title {
    font-size: 20px;
  }

  /* .form-navigation {
    flex-direction: column;
  } */

  .form-navigation .btn {
    width: 100%;
  }

  .form-navigation .btn-next,
  .form-navigation .btn-submit {
    margin-left: 0;
    order: -1;
  }
}

@media (max-width: 480px) {
  .progress-step:not(:last-child)::after {
    display: none;
  }

  .step-label {
    display: none;
  }

  .multistep-progress {
    margin-bottom: 30px;
  }
}

/* Integration with Superio theme */
.multistep-registration .cmb-row {
  position: relative;
  margin-bottom: 30px;
  clear: both;
}

.multistep-registration .cmb-th {
  margin-top: 10px !important;
}

.multistep-registration .cmb-th label,
.multistep-registration .cmb2-metabox-description {
  font-weight: 500 !important;
  margin-bottom: 8px;
  display: block;
}

.multistep-registration .cmb2-wrap > .cmb-row:last-child {
  margin-bottom: 0;
}

/* Modal adjustments */
.modal .multistep-registration {
  max-height: 70vh;
  overflow-y: auto;
}

.modal .multistep-progress {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding-top: 0;
}
