/* Signup Page Styles */

.signup-section {
  padding: 4rem 0;
  min-height: 80vh;
}

.signup-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}

.signup-form-container {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2.5rem;
}

.signup-form-container h2 {
  margin-bottom: 0.5rem;
}

.plan-info {
  margin-bottom: 2rem;
  color: var(--text-light);
}

#selected-plan, #selected-billing {
  font-weight: 600;
  color: var(--primary-color);
}

/* Form Progress */
.form-progress {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--gray-medium);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
  background-color: var(--primary-color);
  color: var(--white);
}

.step-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}

.progress-step.active .step-label {
  color: var(--primary-color);
  font-weight: 600;
}

.progress-bar {
  flex: 1;
  height: 3px;
  background-color: var(--gray-medium);
  transition: var(--transition);
}

.progress-bar.completed {
  background-color: var(--primary-color);
}

/* Form Steps */
.form-step {
  display: none;
}

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

/* Form Styles */
.signup-form {
  margin-bottom: 1rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-dark);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

.checkbox-group a {
  color: var(--primary-color);
  text-decoration: underline;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
}

.form-actions.centered {
  justify-content: center;
}

/* Payment Summary */
.payment-summary {
  background-color: var(--gray-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.payment-summary h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-medium);
}

.summary-row.total {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

/* Payment Form */
.payment-form h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.payment-form p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

#card-element {
  border: 1px solid var(--gray-dark);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.payment-error {
  color: var(--danger-color);
  margin-bottom: 1.5rem;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  font-size: 3.5rem;
  color: #22c55e;
  margin-bottom: 1.5rem;
  animation: scaleIn 0.5s ease-out;
}

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

.success-message h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #111827;
}

.success-message p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.success-message #confirmation-email {
  font-weight: 600;
  color: #4f46e5;
}

.form-actions.centered {
  justify-content: center;
  margin-top: 2rem;
}

.form-actions.centered .btn-primary {
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Trial-specific styling */
.trial-signup .progress-step[data-step="2"] .step-label {
  color: #4f46e5;
  font-weight: 600;
}

.trial-signup .form-step[data-step="1"] .next-step {
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  transition: all 0.3s ease;
}

.trial-signup .form-step[data-step="1"] .next-step:hover {
  background: linear-gradient(135deg, #3730a3, #4f46e5);
  transform: translateY(-2px);
}

/* Loading state for buttons */
button.next-step:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

button.next-step .fa-spinner {
  margin-right: 6px;
}

/* Loading animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

/* Footer */
.signup-footer {
  background-color: var(--gray-light);
  padding: 1.5rem 0;
  text-align: center;
}

.signup-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.signup-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* Form validation styling */
.error-message {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
  display: block;
  animation: fadeIn 0.3s ease-in;
}

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

.form-group input.error {
  border-color: #dc2626;
  background-color: rgba(220, 38, 38, 0.05);
}

.form-group input.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.checkbox-group.error label {
  color: #dc2626;
}

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

  .signup-info {
    position: static;
  }
}

@media (max-width: 600px) {
  .signup-section {
    padding: 2rem 0;
  }

  .signup-form-container {
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .form-actions button, 
  .form-actions a {
    width: 100%;
    text-align: center;
  }
  
  .form-progress {
    margin-bottom: 2rem;
  }
  
  .step-label {
    display: none;
  }
  
  .signup-footer .container {
    flex-direction: column;
    gap: 1rem;
  }
}
