/* Stepper Registration Styles */

/* Progress Indicator */
.stepper-progress {
  margin-bottom: 2rem;
}

.progress-container {
  position: relative;
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--foreground);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color) 0%, var(--color-alt) 100%);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 25%;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Progress Tooltip */
.progress-tooltip {
  position: absolute;
  top: -50px;
  left: 0;
  transform: translateX(-50%);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.tooltip-content {
  background: var(--color);
  color: var(--background);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.tooltip-step {
  font-weight: 600;
  font-size: 0.625rem;
  opacity: 0.9;
}

.tooltip-label {
  font-size: 0.75rem;
  font-weight: 500;
}

.tooltip-arrow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--color);
}

.step-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* Stepper Container */
.stepper-container {
  position: relative;
  min-height: 400px;
  overflow: visible;
}

.step-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.step-content:not(.active):not(.prev) {
  transform: translateX(100%);
  opacity: 0;
}

.step-content.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  z-index: 2;
}

.step-content.prev {
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 0;
}

.step-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Google Sign-in Button */
.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 0.5rem;
  color: #3c4043;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-signin-btn:hover {
  background: #f8f9fa;
  border-color: #c4c7c5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.google-signin-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-icon {
  flex-shrink: 0;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  position: relative;
}

.divider::before {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--foreground);
}

.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--foreground);
}

.divider span {
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--foreground);
}

/* Step Navigation */
.step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--color-rgb, 254, 172, 26), 0.1);
}

.step-navigation .nav-left, .step-navigation .nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-navigation .button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
  justify-content: center;
}

.step-navigation .button i {
  font-size: 1rem;
}

.step-navigation .button.link {
  min-width: auto;
  padding: 0.75rem 1rem;
}

/* Account Type Selection */
.account-type-selection {
  margin-top: 1rem;
}

.account-type-selection h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bold);
  margin-bottom: 1rem;
  text-align: center;
}

.account-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.account-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--foreground);
  border: 2px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.account-type:hover {
  border-color: rgba(var(--color-rgb, 254, 172, 26), 0.3);
  transform: translateY(-2px);
}

.account-type.selected {
  border-color: var(--color);
  background: rgba(var(--color-rgb, 254, 172, 26), 0.05);
}

.type-icon {
  width: 36px;
  height: 36px;
  background: var(--color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background);
  font-size: 1.25rem;
}

.account-type.selected .type-icon {
  background: var(--color-alt);
}

.type-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bold);
  margin-bottom: 0.25rem;
}

.type-content p {
  font-size: 0.625rem;
  color: var(--text-muted);
  margin: 0;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 0.5rem;
  height: 4px;
  background: var(--foreground);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.password-strength::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.password-strength.weak::after {
  width: 33%;
  background: var(--error-color);
}

.password-strength.medium::after {
  width: 66%;
  background: var(--warning-color);
}

.password-strength.strong::after {
  width: 100%;
  background: var(--success-color);
}

/* Security Features */
.security-features {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--foreground);
  border-radius: 0.75rem;
  border: 1px solid rgba(var(--color-rgb, 254, 172, 26), 0.1);
}

.security-features h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bold);
  margin-bottom: 1rem;
  text-align: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature-item i {
  color: var(--success-color);
  font-size: 1rem;
}

/* Completion Step */
.completion-step {
  text-align: center;
  padding: 1rem 0;
}

.completion-icon {
  width: 60px;
  height: 60px;
  background: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  animation: checkmark 0.6s ease-in-out;
}

.completion-icon i {
  color: white;
  font-size: 1.5rem;
}

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

.completion-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bold);
  margin-bottom: 0.5rem;
}

.completion-step p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.review-info {
  background: var(--foreground);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(var(--color-rgb, 254, 172, 26), 0.1);
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(var(--color-rgb, 254, 172, 26), 0.05);
}

.review-item:last-child {
  border-bottom: none;
}

.review-label {
  font-weight: 500;
  color: var(--text-muted);
}

.review-value {
  font-weight: 600;
  color: var(--bold);
}

/* Terms Agreement */
.terms-agreement {
  margin-top: 1.5rem;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}

.checkbox-container input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color);
}

.checkbox-container label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

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

.checkbox-container a:hover {
  color: var(--color-alt);
}

/* Mobile Style Layout */
.mobile-style {
  /* Fix overflow issues */
  .card-container {
    max-height: none;
    overflow: hidden;
    position: relative;
  }
  
  /* Stepper wrapper for absolute positioning */
  .stepper-wrapper {
    position: relative;
    overflow: visible;
    width: 100%;
  }
  
  .stepper-container {
    max-height: none;
    overflow: visible;
    position: relative;
  }
  
  /* Mobile header */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(var(--color-rgb, 254, 172, 26), 0.1);
  }

  .header-left, .header-center, .header-right {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .header-center {
    justify-content: center;
  }

  .header-right {
    justify-content: flex-end;
  }

  .back-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
  }

  .back-btn:hover {
    background: rgba(var(--color-rgb, 254, 172, 26), 0.1);
    color: var(--color);
  }

  .step-indicator {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
  }

  .login-link {
    color: var(--color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
  }

  .login-link:hover {
    color: var(--color-alt);
  }
  
  /* Small button style for header login */
  .button.small {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-width: auto;
  }
  
  .button.small i {
    font-size: 0.875rem;
  }

  /* Step content wrapper */
  .step-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem 0;
    min-height: auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  /* Step title */
  .step-title {
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .step-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
  }

  .step-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
  }

  /* Use login input styles instead of mobile-style */
  .step-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  /* Continue button */
  .continue-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--color);
    color: var(--background);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    box-sizing: border-box;
    max-width: 100%;
  }

  .continue-btn:hover:not(:disabled) {
    background: var(--color-alt);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--color-rgb, 254, 172, 26), 0.3);
  }

  .continue-btn:active {
    transform: translateY(0);
  }

  .continue-btn:disabled {
    background: var(--foreground);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  /* Account type selection mobile style */
  .account-type-selection.mobile-style {
    margin: 0;
  }

  .account-type-selection.mobile-style .account-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .account-type-selection.mobile-style .account-type {
    padding: 1rem 0.75rem;
    border: 2px solid var(--foreground);
    border-radius: 0.5rem;
    background: var(--background);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
  }

  .account-type-selection.mobile-style .account-type:hover {
    border-color: var(--color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--color-rgb, 254, 172, 26), 0.1);
  }

  .account-type-selection.mobile-style .account-type.selected {
    border-color: var(--color);
    background: rgba(var(--color-rgb, 254, 172, 26), 0.05);
  }

  .account-type-selection.mobile-style .type-icon {
    margin-bottom: 0.5rem;
  }

  .account-type-selection.mobile-style .type-icon i {
    font-size: 1.25rem;
    color: var(--color);
  }

  .account-type-selection.mobile-style .type-content h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.25rem 0;
  }

  .account-type-selection.mobile-style .type-content p {
    font-size: 0.625rem;
    color: var(--text-muted);
    margin: 0;
  }

  /* Security features mobile style */
  .security-features.mobile-style {
    margin-top: 0.5rem;
  }

  .security-features.mobile-style .feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .security-features.mobile-style .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(var(--color-rgb, 254, 172, 26), 0.05);
    border-radius: 0.375rem;
    border: 1px solid rgba(var(--color-rgb, 254, 172, 26), 0.1);
  }

  .security-features.mobile-style .feature-item i {
    color: var(--color);
    font-size: 0.875rem;
  }

  .security-features.mobile-style .feature-item span {
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 500;
  }
}

/* Remove footer styles since we're using the card layout */

/* Responsive Design */
@media (max-width: 768px) {
  .progress-tooltip {
    top: -45px;
  }
  
  .tooltip-content {
    padding: 0.375rem 0.625rem;
    font-size: 0.625rem;
  }
  
  .tooltip-step {
    font-size: 0.5rem;
  }
  
  .tooltip-label {
    font-size: 0.625rem;
  }
  
  .account-types {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .account-type {
    padding: 0.75rem 0.5rem;
  }
  
  .type-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .step-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .step-navigation .nav-left, .step-navigation .nav-right {
    width: 100%;
    justify-content: center;
  }
  
  .step-navigation .button {
    width: 100%;
  }
  
  .completion-icon {
    width: 50px;
    height: 50px;
  }
  
  .completion-icon i {
    font-size: 1.25rem;
  }
  
  /* Mobile style responsive adjustments */
  .mobile-style .step-title h2 {
    font-size: 1.5rem;
  }
  
  .mobile-style .step-subtitle {
    font-size: 0.875rem;
  }
  
  .mobile-style .account-type-selection .account-types {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .mobile-style .account-type-selection .account-type {
    padding: 1rem;
  }
  
  .mobile-style .continue-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .progress-bar {
    height: 6px;
  }
  
  .progress-tooltip {
    top: -40px;
  }
  
  .tooltip-content {
    padding: 0.25rem 0.5rem;
    font-size: 0.5rem;
  }
  
  .step-navigation .nav-left, .step-navigation .nav-right {
    flex-direction: column;
    gap: 0.5rem;
  }
}
