/* Multi-step Registration Styles */

/* Step Progress Bar */
.step-progress {
  margin-bottom: 2rem;
}

.step-progress__header {
  text-align: center;
}

.step-description {
  font-size: 14px;
  color: var(--body-color);
  opacity: 0.8;
}

.step-progress__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 0 20px;
}

.step-progress__bar::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #e9ecef;
  z-index: 1;
  border-radius: 2px;
}

.step-progress__bar::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--main-color, #007bff), #0056b3);
  z-index: 2;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}

.step-progress__bar.step-1::after { width: 0%; }
.step-progress__bar.step-2::after { width: 30%; }
.step-progress__bar.step-3::after { width: 60%; }
.step-progress__bar.step-4::after { width: 80%; }

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  flex: 1;
  text-align: center;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 3px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step-item.active .step-circle {
  background: linear-gradient(135deg, var(--main-color, #007bff), #0056b3);
  border-color: var(--main-color, #007bff);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
}

.step-item.completed .step-circle {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  border-color: #28a745;
  color: white;
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
}

.step-item.completed .step-circle i {
  font-size: 20px;
  animation: checkmark 0.6s ease;
}

@keyframes checkmark {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s ease;
  max-width: 90px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-item.active .step-label {
  color: var(--main-color, #007bff);
  font-weight: 700;
  transform: translateY(-2px);
}

.step-item.completed .step-label {
  color: #28a745;
  font-weight: 700;
}

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

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

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

/* Navigation Buttons - Fixed Layout */
.form-navigation {
  border-top: 1px solid #e9ecef;
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.form-navigation .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-navigation .col-6 {
  display: flex;
  flex: 1;
}

.form-navigation .col-6:first-child {
  justify-content: flex-start;
}

.form-navigation .col-6:last-child {
  justify-content: flex-end;
}

/* Button Styles */
.form-navigation .btn {
  min-width: 140px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.form-navigation .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.form-navigation .btn:active {
  transform: translateY(0);
}

/* Previous Button */
.form-navigation .btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  background: transparent;
}

.form-navigation .btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

/* Next/Submit Button */
.form-navigation .btn-main {
  background: linear-gradient(135deg, var(--main-color, #007bff), #0056b3);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.form-navigation .btn-main:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Hide/Show Logic */
.form-navigation .btn[style*="display: none"] {
  display: none !important;
}

/* Loading State */
.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-loading .la-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-fill.weak {
  width: 25%;
  background: #dc3545;
}

.strength-fill.fair {
  width: 50%;
  background: #ffc107;
}

.strength-fill.good {
  width: 75%;
  background: #17a2b8;
}

.strength-fill.strong {
  width: 100%;
  background: #28a745;
}

.strength-text {
  font-size: 12px;
}

/* Password Requirements */
.password-requirements {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #7a7a7a;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.requirement i {
  width: 16px;
  text-align: center;
}

.requirement.valid i {
  color: #28a745 !important;
}

.requirement.valid i::before {
  content: "\f00c"; /* check icon */
}

/* Company Type Capabilities Sections */
#manufacturingCapabilitiesSection,
#distributionCapabilitiesSection {
  transition: opacity 0.3s ease-in-out;
}

#manufacturingCapabilitiesSection.show,
#distributionCapabilitiesSection.show {
  animation: fadeInSlide 0.4s ease-out;
}

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

/* Registration Summary */
.registration-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #7a7a7a;
}

.summary-grid {
  display: grid;
  gap: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item strong {
  color: var(--heading-color);
  font-weight: 600;
}

.summary-item span {
  color: var(--body-color);
  text-align: right;
  max-width: 200px;
  word-break: break-word;
}

/* Logo Preview */
.logo-preview {
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.logo-preview img {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Alert Styles */
.alert {
  padding: 16px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert i {
  font-size: 18px;
  margin-top: 2px;
}

.alert div {
  flex: 1;
}

[data-theme="dark"] .step-label,
.dark-version .step-label {
  color: #adb5bd;
}

[data-theme="light"] .password-requirements,
.dark-version .password-requirements {
  background: #031129;
  border-color: #4a5568;
}

[data-theme="light"] .registration-summary,
.dark-version .registration-summary {
  background: #031129;
  border-color: #4a5568;
}

[data-theme="dark"] .summary-item,
.dark-version .summary-item {
  border-color: #4a5568;
}

[data-theme="light"] .logo-preview,
.dark-version .logo-preview {
  background: #2d3748;
  border-color: #4a5568;
}

[data-theme="dark"] .form-navigation,
.dark-version .form-navigation {
  border-color: #4a5568;
}

[data-theme="light"] .alert-info,
.dark-version .alert-info {
  background: rgba(13, 202, 240, 0.1);
  border-color: rgba(13, 202, 240, 0.2);
  color: #9ce2f0;
}

/* Mobile Responsive - Enhanced */
@media (max-width: 768px) {
  .step-progress__bar {
    margin: 0 10px;
  }
  
  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .step-label {
    font-size: 12px;
    max-width: 70px;
  }
  
  .summary-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .summary-item span {
    text-align: left;
    max-width: 100%;
  }
  
  /* Fixed Navigation for Mobile */
  .form-navigation {
    padding: 1.5rem 0;
    margin-top: 1.5rem;
  }
  
  .form-navigation .row {
    gap: 12px;
    align-items: center;
  }
  
  .form-navigation .col-6 {
    flex: 1;
  }
  
  .form-navigation .btn {
    min-width: 120px;
    height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .step-progress__bar {
    justify-content: space-around;
    margin: 0 5px;
  }
  
  .step-item {
    flex: 1;
    min-width: 70px;
    max-width: 80px;
  }
  
  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .step-label {
    font-size: 11px;
    max-width: 65px;
    line-height: 1.2;
  }
  
  /* Mobile Button Layout */
  .form-navigation .btn {
    min-width: 100px;
    height: 42px;
    font-size: 13px;
    padding: 0 16px;
  }
  
  .form-navigation .row {
    gap: 8px;
  }
}