:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f5f6fb;
  color: #222;
}

body {
  margin: 0;
  padding: 1rem;
  min-height: 100vh;
  min-height: 100dvh;
}

.signup-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.signup-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 16px 50px -30px rgba(0, 0, 0, 0.35);
  max-width: 1000px;
  width: 100%;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

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

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #3365ff;
  color: #fff;
}

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

.step.completed .step-number::after {
  content: '✓';
}

.step-label {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
}

.step.active .step-label {
  color: #3365ff;
  font-weight: 600;
}

/* Step Content */
.step-content {
  display: none;
}

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

h1 {
  margin-top: 0;
  text-align: center;
  font-size: 1.75rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: #55596d;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Form Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.field label {
  font-weight: 500;
  color: #222;
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid #d7d7dc;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #222;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #3365ff;
  box-shadow: 0 0 0 3px rgba(51, 101, 255, 0.15);
}

.field input.disabled-field,
.field select.disabled-field,
.field textarea.disabled-field,
.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f6fb;
  pointer-events: none;
}

.checkbox-label input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.field small {
  font-size: 0.8rem;
  color: #666;
  margin-top: -0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

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

.discount-settings {
  margin-left: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid #e0e0e0;
  margin-bottom: 1rem;
}

/* Password Strength */
.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 0.25rem;
  transition: all 0.3s ease;
}

.password-strength.weak {
  background: #ef4444;
  width: 33%;
}

.password-strength.medium {
  background: #f59e0b;
  width: 66%;
}

.password-strength.strong {
  background: #10b981;
  width: 100%;
}

/* Buttons */
.primary,
.secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.primary {
  background: #3365ff;
  color: #fff;
  width: 100%;
}

.primary:hover {
  background: #2551e6;
}

.primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.secondary {
  background: transparent;
  color: #666;
  border: 1px solid #d7d7dc;
}

.secondary:hover {
  background: #f5f6fb;
  border-color: #bbb;
}

.buttons-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.buttons-row .primary,
.buttons-row .secondary {
  flex: 1;
}

.btn-loader {
  display: inline-block;
}

.btn-loader.hidden {
  display: none;
}

/* Error Messages */
.error-message {
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}

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

/* Upgrade Notice */
.upgrade-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #856404;
  font-size: 0.9rem;
  text-align: center;
}

.upgrade-notice strong {
  color: #856404;
  font-weight: 600;
}

.upgrade-notice.hidden {
  display: none;
}

/* Business Preview */
.business-preview {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.business-preview.hidden {
  display: none;
}

.preview-card {
  background: #f5f6fb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.preview-hero {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.preview-hero.hidden {
  display: none;
}

.preview-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-content {
  padding: 1.5rem;
}

.preview-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: #222;
}

.preview-category {
  color: #666;
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
}

.preview-address {
  color: #999;
  margin: 0;
  font-size: 0.85rem;
}

/* Pricing Plans */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.plan-card {
  background: #f5f6fb;
  border-radius: 12px;
  padding: 1.75rem;
  padding-top: 2.5rem;
  text-align: left;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan-card.featured {
  border-color: #3365ff;
  background: #fff;
}

.plan-card:hover {
  border-color: #cfd8ff;
  transform: translateY(-2px);
}

.plan-subline {
  margin: 0.25rem 0 1rem 0;
  color: #6f7287;
  font-size: 0.95rem;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3365ff;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.plan-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #222;
  text-align: left;
}

.plan-price-top {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  text-align: right;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  text-align: left;
  flex: 1;
}

.plan-features li {
  padding: 0.45rem 0;
  color: #444;
  position: relative;
  padding-left: 1.5rem;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 600;
}

.plan-features li.unavailable {
  color: #999;
}

.plan-features li.unavailable::before {
  content: '—';
  color: #999;
}

.plan-features li.muted {
  color: #6f7287;
  padding-left: 0;
}

.plan-features li.muted::before {
  content: '';
}

.plan-top-price {
  font-size: 0.85rem;
  color: #8a8fa3;
  margin-bottom: 0.25rem;
}

.plan-top-price s {
  color: #999;
}

.plan-discount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #222;
}

.plan-card button,
.plan-card .primary {
  width: 100%;
}

.plan-card .primary {
  margin-top: auto;
}

.plan-card button {
  width: 100%;
}

/* Success Page */
.success-icon {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1rem;
}

.success-content {
  margin: 2rem 0;
}

.success-card {
  background: #f5f6fb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.success-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.review-url-display {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.review-url-display input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #d7d7dc;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.9rem;
}

.review-url-display button {
  white-space: nowrap;
}

.qr-section {
  text-align: center;
  padding: 1.5rem;
  background: #f5f6fb;
  border-radius: 12px;
}

.qr-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

#qr-canvas {
  max-width: 256px;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 640px) {
  .signup-card {
    padding: 1.5rem;
  }

  .step-label {
    font-size: 0.65rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .pricing-plans {
    grid-template-columns: 1fr;
  }
}

