/* Registration Page Styles */

.registration-form-container {
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
}

.step-indicator {
  position: relative;
  display: flex;
  background: #f8f9fa;
  padding: 0.7rem 1rem;
  justify-content: space-between;
  position: relative;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.step-indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3rem;
  right: 3rem;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}

.step-indicator .progress-line {
  position: absolute;
  top: 50%;
  left: 3rem;
  height: 2px;
  background: #6366f1;
  z-index: 2;
  transition: width 0.3s ease;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.step-number {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 0.3rem;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #6366f1;
  color: white;
}

.step.completed .step-number {
  background: #10b981;
  color: white;
}

.step-title {
  font-size: 15px;
  color: #6c757d;
  text-align: center;
  font-weight: 500;
  margin-top: 4rem;
}

.step.active .step-title {
  color: #6366f1;
  font-weight: 600;
}

.form-step {
  display: none;
  padding: 0;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step h3 {
  color: var(--theme-bg-primary);
  margin-bottom: 0.3rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.form-step .subtitle {
  color: var(--theme-bg-secondary) !important;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--theme-bg-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control.error {
  border-color: #ef4444;
}

.mobile-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: end;
}
.email-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: end;
}

.mobile-input-group .form-control {
  flex: 1;
}
.email-input-group .form-control {
    flex: 1;
}

.send-otp-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.9rem 0.9rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

    .send-otp-btn:hover {
        background: #059669;
    }

.send-otp-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.otp-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.otp-input {
  width: 35px;
  height: 35px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.otp-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.module-selection {
  display: grid;
  gap: 0.5rem;
}

.module-item {
  display: flex;
  align-items: center;
  padding: 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.module-item:hover {
  border-color: #6366f1;
  background: #f8faff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.module-item.selected {
  border-color: #6366f1;
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.module-checkbox {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
  accent-color: #6366f1;
}

.module-info {
  flex: 1;
}

.module-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.1rem;
  font-size: 1rem;
}

.module-description {
  font-size: 1rem;
  color: #6b7280;
}

.module-icon {
  font-size: 1.7rem;
  margin-right: 0.6rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1.2rem;
  gap: 0.8rem;
}

.btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  flex: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--theme-bg-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--theme-bg-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.success-message {
  color: #10b981;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Success Modal */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.success-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 380px;
  margin: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.error-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 380px;
    margin: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.success-icon {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 0.8rem;
}
.error-icon {
    font-size: 2rem;
    color: #eb2121;
    margin-bottom: 0.8rem;
}

.success-modal h3 {
  color: #1f2937;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.success-modal p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.error-modal h3 {
    color: #1f2937;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.error-modal p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.section-head {
  margin-top: 5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .step-indicator {
    padding: 1rem;
  }

  .step-indicator::before {
    left: 2rem;
    right: 2rem;
  }

  .step-indicator .progress-line {
    left: 2rem;
  }

  .form-step {
    padding: 0;
  }

  .step-title {
    font-size: 11px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .otp-container {
    justify-content: center;
  }

  .otp-input {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .mobile-input-group {
    flex-direction: column;
    gap: 0.5rem;
  }
    .email-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

  .send-otp-btn {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
  }

  .module-item {
    padding: 1rem;
  }

  .success-modal-content {
    padding: 2rem;
    margin: 0.5rem;
  }
    .error-modal-content {
        padding: 2rem;
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
  .step-indicator {
    padding: 0.75rem;
  }

  .form-step {
    padding: 1rem;
  }

  .step-title {
    font-size: 10px;
  }

  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}


/* Additional mobile optimizations */
@media (max-width: 576px) {
  .registration-form-container {
    padding: 0.5rem 0;
  }

  .form-step h3 {
    font-size: 1.2rem;
  }

  .form-step .subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
  }

  .module-selection {
    gap: 0.6rem;
  }

  .module-item {
    padding: 0.7rem;
  }

  .module-title {
    font-size: 0.9rem;
  }

  .module-description {
    font-size: 0.75rem;
  }
}
