/**
 * VEHYLY - Registration Wizard Styles
 */

.registration-wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

.registration-wizard {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Progress */
.wizard-progress {
  margin-bottom: 32px;
}

.progress-bar {
  height: 8px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2979FF, #1e5fd6);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

/* Header */
.wizard-header {
  text-align: center;
  margin-bottom: 32px;
}

.wizard-header h2 {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-weight: 900;
  color: #1a1a1a;
}

.wizard-header p {
  margin: 0;
  font-size: 16px;
  color: #666;
}

/* Account Type Selection */
.account-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.account-type-card {
  position: relative;
  border: 3px solid #e5e5e5;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.account-type-card:hover {
  border-color: #2979FF;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(41, 121, 255, 0.15);
}

.account-type-card.featured {
  border-color: #2979FF;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: #2979FF;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.account-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.account-type-card h3 {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 800;
}

.account-type-card p {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.account-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.account-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #444;
}

.select-type-btn {
  width: 100%;
  padding: 14px;
  background: #2979FF;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
}

.select-type-btn:hover {
  background: #1e5fd6;
  transform: scale(1.02);
}

/* Forms */
.wizard-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2979FF;
  box-shadow: 0 0 0 4px rgba(41, 121, 255, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.form-section-title {
  font-size: 18px;
  font-weight: 800;
  margin: 32px 0 16px 0;
  color: #1a1a1a;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e5e5;
}

/* Interests & Specialties */
.interests-grid,
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.interest-card,
.specialty-card {
  position: relative;
  border: 3px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.interest-card input[type="checkbox"],
.specialty-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.interest-card:hover,
.specialty-card:hover {
  border-color: #2979FF;
  background: #f0f9ff;
}

.interest-card.selected,
.specialty-card.selected {
  border-color: #2979FF;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-width: 4px;
}

.interest-icon,
.specialty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.interest-name,
.specialty-name {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
}

/* Plans */
.plans-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.plan-selection-card {
  position: relative;
  border: 3px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.plan-selection-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-selection-card:hover {
  border-color: #2979FF;
  transform: translateY(-4px);
}

.plan-selection-card.selected {
  border-color: #2979FF;
  border-width: 4px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.plan-selection-card.featured {
  border-color: #2979FF;
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #2979FF;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.plan-badge.recommended {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.plan-selection-card h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 800;
}

.plan-price {
  font-size: 36px;
  font-weight: 900;
  color: #2979FF;
  margin: 16px 0;
}

.plan-price span {
  font-size: 16px;
  color: #666;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  text-align: left;
}

.plan-features-list li {
  padding: 8px 0;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
  border-bottom: 1px solid #f0f0f0;
}

.plan-features-list li:last-child {
  border-bottom: none;
}

.trial-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  margin: 24px 0;
}

.trial-icon {
  font-size: 32px;
}

.trial-text {
  font-size: 14px;
  line-height: 1.5;
}

/* Vendor Review */
.vendor-review-info {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.review-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.vendor-review-info h3 {
  margin: 0 0 16px 0;
  font-size: 22px;
  font-weight: 800;
}

.vendor-review-info p {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.vendor-benefits {
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
  border-radius: 12px;
  text-align: left;
}

.vendor-benefits h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
}

.vendor-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vendor-benefits li {
  padding: 6px 0;
  font-size: 14px;
}

.bank-info-note {
  padding: 16px;
  background: #fff7ed;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 24px;
}

/* Actions */
.wizard-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: space-between;
}

.wizard-btn {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-btn.primary {
  background: #2979FF;
  color: white;
}

.wizard-btn.primary:hover {
  background: #1e5fd6;
  transform: scale(1.02);
}

.wizard-btn.secondary {
  background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
  color: #1a1a1a;
}

.wizard-btn.secondary:hover {
  background: #e5e5e5;
}

.wizard-back-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: all 0.2s;
}

.wizard-back-btn:hover {
  border-color: #2979FF;
  color: #2979FF;
}

/* Loading */
.loading-modal {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e5e5;
  border-top-color: #2979FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

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

.loading-modal p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #666;
}

/* Success */
.success-modal {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  max-width: 400px;
}

.success-icon {
  font-size: 72px;
  margin-bottom: 24px;
}

.success-modal h2 {
  margin: 0 0 16px 0;
  font-size: 28px;
  font-weight: 900;
}

.success-modal p {
  margin: 0 0 32px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .registration-wizard {
    padding: 24px;
    border-radius: 20px 20px 0 0;
    max-height: 100vh;
  }
  
  .account-type-grid,
  .plans-selection-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .wizard-actions {
    flex-direction: column-reverse;
  }
  
  .wizard-btn {
    width: 100%;
  }
}

/**********************************
 * ESTILOS METÁLICOS - REGISTRATION
 **********************************/

/* Wizard container metálico */
.wizard-container, .registration-container {
  background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,1) !important;
}

/* Steps metálicos */
.wizard-step, .registration-step {
  background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.wizard-step.active {
  border-color: #2979FF !important;
  box-shadow: 0 4px 12px rgba(41,121,255,0.3), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.wizard-step.completed {
  background: linear-gradient(145deg, #e8f4ff, #d0e7ff) !important;
}

/* Form inputs metálicos */
.registration-input, .wizard-input {
  background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.registration-input:focus, .wizard-input:focus {
  box-shadow: 0 0 0 3px rgba(41,121,255,0.2), 0 2px 6px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1) !important;
}

/* Botones registro metálicos */
.registration-btn-primary, .wizard-btn-primary {
  background: linear-gradient(145deg, #5ab0ff, #2979ff) !important;
  box-shadow: 0 4px 12px rgba(41,121,255,0.3), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}

.registration-btn-secondary, .wizard-btn-secondary {
  background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1) !important;
}

/* Cards de selección metálicas */
.selection-card, .type-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.selection-card:hover, .type-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,1) !important;
  transform: translateY(-2px);
}

.selection-card.selected, .type-card.selected {
  background: linear-gradient(145deg, #e8f4ff, #d0e7ff) !important;
  border-color: #2979FF !important;
}
