/* Registration with Payment Styles */

.register-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 2rem;
}

/* Progress Steps */
.progress-steps {
  max-width: 800px;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.step.completed .step-number {
  background: #10b981;
  color: white;
}

.step-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.step.active .step-label {
  color: #6366f1;
  font-weight: 600;
}

/* Step Content */
.step-content {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

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

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

.step-header {
  text-align: center;
  margin-bottom: 3rem;
}

.step-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.step-header p {
  font-size: 1.125rem;
  color: #64748b;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.toggle-label {
  font-weight: 600;
  color: #64748b;
  transition: color 0.3s ease;
}

.toggle-label.active {
  color: #6366f1;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.4s;
  border-radius: 30px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

input:checked + .toggle-slider:before {
  transform: translateX(30px);
}

.save-badge {
  background: #10b981;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.plan-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: #6366f1;
}

.plan-card.popular {
  border-color: #6366f1;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
}

.plan-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.plan-header p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.plan-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.plan-price > div:first-child {
  display: flex;
  align-items: baseline;
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #64748b;
}

.amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0.25rem;
}

.period {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
}

.plan-features li {
  padding: 0.75rem 0;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.check {
  color: #10b981;
  font-weight: 700;
  font-size: 1.25rem;
}

.btn-select-plan {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-select-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.plan-card.selected {
  border-color: #6366f1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.plan-card.selected .btn-select-plan {
  background: #10b981;
}

/* Selected Plan Summary */
.selected-plan-summary {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 2px solid #6366f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.summary-plan {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-plan strong {
  font-size: 1.25rem;
  color: #0f172a;
}

.summary-plan span {
  color: #64748b;
  font-size: 0.875rem;
}

.summary-price strong {
  font-size: 1.5rem;
  color: #6366f1;
}

.trial-info {
  display: block;
  font-size: 0.875rem;
  color: #10b981;
  font-weight: 600;
  margin-top: 0.25rem;
}

.btn-change-plan {
  background: transparent;
  border: 2px solid #e2e8f0;
  color: #64748b;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.btn-change-plan:hover {
  border-color: #6366f1;
  color: #6366f1;
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

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

.form-control:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.form-error.show {
  display: block;
}

/* Stripe Element */
#card-element {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#card-element.StripeElement--focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#card-element.StripeElement--invalid {
  border-color: #ef4444;
}

#card-element.StripeElement--complete {
  border-color: #10b981;
}

/* Ensure Stripe iframe is properly sized */
.StripeElement {
  width: 100%;
  height: auto;
}

.StripeElement iframe {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  border: none !important;
}

.__PrivateStripeElement {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-label a {
  color: #6366f1;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-secondary {
  flex: 1;
  background: white;
  border: 2px solid #e2e8f0;
  color: #64748b;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: #6366f1;
  color: #6366f1;
}

.btn-primary {
  flex: 2;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Payment Info Box */
.payment-info-box {
  background: #eff6ff;
  border: 2px solid #93c5fd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}

.info-icon {
  font-size: 1.5rem;
}

.info-content strong {
  display: block;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.info-content p {
  color: #3b82f6;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Security Badges */
.security-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  pointer-events: all;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-overlay p {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .step-header h1 {
    font-size: 2rem;
  }

  .selected-plan-summary {
    flex-direction: column;
    gap: 1rem;
  }

  .summary-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .btn-change-plan {
    width: 100%;
    margin-left: 0;
  }

  .form-actions {
    flex-direction: column;
  }

  .security-badges {
    flex-direction: column;
    align-items: center;
  }
}


/* Card Info Note */
.card-info-note {
  margin-top: 0.5rem;
}

.card-info-note small {
  color: #64748b;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-info-note small:before {
  content: "🔒";
  font-size: 0.875rem;
}
