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

/* Header Styles */
.form-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0.5rem 0 0 0;
}

.header-actions .btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transition: all 0.3s ease;
}

.header-actions .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Form Container */
.form-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.form-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Progress Indicator */
.progress-indicator {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.progress-step:hover {
  transform: translateY(-2px);
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 41%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
  transition: background-color 0.3s ease;
}

.progress-step.active:not(:last-child)::after {
  background: #3b82f6;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: #3b82f6;
  color: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.progress-step.active .step-label {
  color: #1e293b;
}

/* Completed step */
.progress-step.completed .step-number {
  background: #10b981;
  color: white;
}

.progress-step.completed .step-label {
  color: #10b981;
  font-weight: 600;
}

.progress-step.completed:not(:last-child)::after {
  background: #10b981;
}

/* Upcoming step */
.progress-step.upcoming .step-number {
  background: #f3f4f6;
  color: #9ca3af;
}

.progress-step.upcoming .step-label {
  color: #9ca3af;
}

.step-label {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.form-navigation .btn {
  min-width: 120px;
}

/* Form Sections */
.form-section {
  padding: 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.form-section:last-of-type {
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.section-description {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
}

/* Section Subheaders */
.section-subheader {
  display: flex;
  align-items: flex-start;
  margin: 2rem 0 1.5rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.section-subicon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.section-subdescription {
  color: #64748b;
  margin: 0;
  font-size: 0.875rem;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

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

.form-control, .form-select {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus, .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.form-help {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.form-warning {
  font-size: 0.875rem;
  color: #d97706;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
}

.form-info {
  font-size: 0.875rem;
  color: #2563eb;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
}

.invalid-feedback {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* File Upload */
.file-upload-wrapper {
  position: relative;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background: #f9fafb;
  transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-hint {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 1;
}

.file-name-display {
  color: #059669;
  font-size: 1rem;
  font-weight: 500;
  background: #d1fae5;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

/* Logo Preview */
.current-logo {
  margin-bottom: 1.5rem;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.logo-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.logo-placeholder {
  width: 80px;
  height: 80px;
  background: #e5e7eb;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.5rem;
}

.logo-info {
  flex: 1;
}

.logo-filename, .logo-url {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
}

.logo-size, .logo-type {
  font-size: 0.875rem;
  color: #6b7280;
}

.logo-actions {
  margin-top: 0.5rem;
}

/* POS Provider Selection */
.pos-provider-selection {
  margin-bottom: 2rem;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.provider-option {
  position: relative;
}

.provider-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.provider-label {
  display: block;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  background: white;
}

.provider-radio:checked + .provider-label {
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.provider-label:hover {
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.provider-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.provider-logo {
  width: 120px;
  height: 48px;
  object-fit: contain;
}

.provider-logo-placeholder {
  width: 120px;
  height: 48px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.5rem;
}

.provider-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.provider-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* POS Configuration */
.pos-config-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.pos-config-header {
  margin-bottom: 1.5rem;
}

.config-title {
  color: #1e293b;
  margin: 0;
}

.provider-config-header {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #3b82f6;
}

.pos-config-section {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Info Alert */
.info-alert {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.alert-icon {
  color: #2563eb;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-title {
  color: #1e40af;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.alert-text {
  color: #1e40af;
  margin: 0;
  font-size: 0.95rem;
}

/* Address Information Display */
.address-info {
  display: flex;
  align-items: flex-start;
  margin: 1rem 0;
  padding: 1rem;
  background: #f0fdf4;
  border-radius: 8px;
  border-left: 4px solid #10b981;
}

.address-icon {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.address-details {
  flex: 1;
}

.address-line {
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.address-city-state {
  font-weight: 600;
  color: #059669;
  margin-bottom: 0.25rem;
}

.address-country {
  font-size: 0.875rem;
  color: #64748b;
}

.address-warning {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  padding: 0.75rem;
  background: #fef3c7;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  font-size: 0.875rem;
}

/* Review Section */
.review-summary {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.review-label {
  font-weight: 500;
  color: #64748b;
}

.review-value {
  font-weight: 600;
  color: #1e293b;
}

/* Submit Section */
.submit-section {
  padding: 2rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.submit-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.submit-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .form-title {
    font-size: 2rem;
  }

  .progress-indicator {
    flex-direction: column;
    gap: 1rem;
  }

  .progress-step:not(:last-child)::after {
    display: none;
  }

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

  .provider-grid {
    grid-template-columns: 1fr;
  }

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

  .submit-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .form-header {
    padding: 2rem 0;
  }

  .header-content {
    padding: 0 1rem;
  }

  .form-container {
    padding: 0 1rem;
  }

  .form-section {
    padding: 1.5rem;
  }

  .progress-indicator {
    padding: 1.5rem;
  }
}

/* Step navigation */
.progress-step[data-step] {
  cursor: pointer;
}

.progress-step[data-step]:hover .step-number {
  transform: scale(1.1);
}

.progress-step[data-step]:hover .step-label {
  color: #3b82f6;
  font-weight: 600;
}

/* Disable navigation for future steps */
.progress-step.upcoming[data-step] {
  cursor: not-allowed;
  opacity: 0.6;
}

.progress-step.upcoming[data-step]:hover .step-number {
  transform: none;
}

  .progress-step.upcoming[data-step]:hover .step-label {
  color: #9ca3af;
  font-weight: 500;
}
