/* Multi-step Signup Styles - Inspired by Sneat Bootstrap Admin Template */

/* Progress Indicator */
.progress-wrapper {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.progress-text {
  font-weight: 600;
  color: #566a7f;
  font-size: 0.875rem;
}

.progress-percentage {
  font-weight: 700;
  color: #696cff;
  font-size: 0.875rem;
}

.progress {
  background-color: #e7e7ff;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #696cff 0%, #5f62e6 100%);
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* Step Indicators */
.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

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

.step-indicator.active:not(:last-child)::after {
  background-color: #696cff;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e7e7ff;
  color: #a1acb8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step-indicator.active .step-number {
  background-color: #696cff;
  color: white;
  box-shadow: 0 4px 12px rgba(105, 108, 255, 0.3);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a1acb8;
  text-align: center;
  transition: color 0.3s ease;
}

.step-indicator.active .step-label {
  color: #696cff;
}

/* Step Content */
.step-content {
  animation: fadeInUp 0.5s ease;
}

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

/* Company Branding */
.company-branding {
  margin-bottom: 1.5rem;
}

.company-branding .badge {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Plan Cards */
.plan-card {
  border: 2px solid #e7e7ff;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(105, 108, 255, 0.15);
  border-color: #696cff;
}

.plan-card.border-primary {
  border-color: #696cff;
  background-color: #f8f9ff;
}

.plan-card .card-body {
  padding: 1.5rem;
}

.plan-card .card-title {
  color: #566a7f;
  font-weight: 700;
  margin-bottom: 1rem;
}

.plan-price {
  text-align: center;
}

.price-uf {
  font-size: 1.5rem;
  font-weight: 700;
  color: #696cff;
  display: block;
}

.price-clp {
  color: #a1acb8;
  font-size: 0.875rem;
}

.plan-features {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-limits {
  text-align: center;
  margin-bottom: 1rem;
}

/* Form Styling */
.form-label {
  font-weight: 600;
  color: #566a7f;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 2px solid #e7e7ff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #696cff;
  box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.15);
}

.form-control::placeholder {
  color: #a1acb8;
}

.form-text {
  font-size: 0.8125rem;
  color: #a1acb8;
  margin-top: 0.25rem;
}

.form-text.text-success {
  color: #28a745;
}

.form-text.text-danger {
  color: #dc3545;
}

.form-text.text-warning {
  color: #ffc107;
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 0.9375rem;
}

.btn-primary {
  background-color: #696cff;
  border-color: #696cff;
  color: white;
}

.btn-primary:hover {
  background-color: #5f62e6;
  border-color: #5f62e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(105, 108, 255, 0.3);
}

.btn-success {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-outline-secondary {
  color: #697a8d;
  border-color: #d9dee3;
  background-color: transparent;
}

.btn-outline-secondary:hover {
  color: #697a8d;
  background-color: #f5f5f9;
  border-color: #d9dee3;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Input Groups */
.input-group .btn {
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group .form-control {
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .form-control:focus {
  border-right: none;
}

/* File Inputs */
input[type="file"] {
  padding: 0.5rem;
}

input[type="file"]::-webkit-file-upload-button {
  background-color: #696cff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 1rem;
  transition: background-color 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #5f62e6;
}

/* Radio Buttons */
.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d9dee3;
  margin-top: 0.125rem;
}

.form-check-input:checked {
  background-color: #696cff;
  border-color: #696cff;
}

.form-check-input:focus {
  border-color: #696cff;
  box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.15);
}

.form-check-label {
  color: #566a7f;
  font-weight: 500;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d1f2eb;
  color: #0f5132;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Modals */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid #e7e7ff;
  padding: 1.5rem;
}

.modal-title {
  color: #566a7f;
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
  color: #566a7f;
}

.modal-footer {
  border-top: 1px solid #e7e7ff;
  padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .progress-wrapper {
    padding: 1rem;
  }
  
  .step-indicator .step-number {
    width: 35px;
    height: 35px;
    font-size: 0.75rem;
  }
  
  .step-label {
    font-size: 0.6875rem;
  }
  
  .plan-card {
    margin-bottom: 1rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .container-xxl {
    padding: 1rem;
  }
  
  .authentication-wrapper {
    padding-top: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .step-indicator:not(:last-child)::after {
    display: none;
  }
  
  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
}

/* Loading States */
.btn .bx-loader-alt {
  animation: spin 1s linear infinite;
}

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

/* Transitions */
.step-content,
.plan-card,
.btn,
.form-control {
  transition: all 0.3s ease;
}

/* Focus States */
.form-control:focus,
.btn:focus,
.form-check-input:focus {
  outline: none;
}

/* Hover Effects */
.plan-card:hover .card-title {
  color: #696cff;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #696cff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5f62e6;
}
