.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: default;
  transition: all 0.3s ease;
}

.progress-step.clickable: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;
}

/* Clickable progress steps (edit mode only) */
.progress-step.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.progress-step.clickable:hover .step-number {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  transform: scale(1.1);
}

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

.progress-step.clickable:active {
  transform: translateY(-1px);
}

/* Service Type Checkboxes */
.service-type-checkbox {
  width: 20px !important;
  height: 20px !important;
  margin-right: 5px;
  cursor: pointer;
  accent-color: #3b82f6;
}

/* 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-item-full-width {
  grid-column: 1 / -1;
}

.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;
}

/* Operating Hours Styles */
.operating-hours-config {
  max-width: 100%;
}

.service-hours-tabs .nav-tabs {
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 2rem;
}

.service-hours-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.service-hours-tabs .nav-link:hover {
  border-bottom-color: #dee2e6;
  color: #495057;
}

.service-hours-tabs .nav-link.active {
  border-bottom-color: #0d6efd;
  color: #0d6efd;
  background: none;
}

.hours-config {
  padding: 1rem 0;
}

.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.day-hours-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  background: #f8f9fa;
}

.day-label {
  font-weight: 600;
  color: #495057;
}

.hours-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hours-controls .form-check {
  margin: 0;
  min-width: 80px;
}

.time-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.time-inputs .form-control {
  flex: 1;
  min-width: 100px;
}

.time-separator {
  font-weight: 500;
  color: #6c757d;
  white-space: nowrap;
}

.quick-setup {
  border-top: 1px solid #e9ecef;
  padding-top: 1.5rem;
}

.quick-setup-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quick-setup-options .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Responsive adjustments for operating hours */
@media (max-width: 768px) {
  .day-hours-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hours-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .time-inputs {
    min-width: auto;
  }

  .quick-setup-options {
    flex-direction: column;
  }

  .quick-setup-options .btn {
    width: 100%;
  }
}

/* Tab content animation */
.tab-content .tab-pane {
  transition: opacity 0.3s ease;
}

/* Form validation styles for operating hours */
.hours-controls .form-control:invalid {
  border-color: #dc3545;
}

.hours-controls .form-control:valid {
  border-color: #198754;
}

/* Info alert styling for operating hours */
.info-alert {
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.info-alert .alert-icon {
  color: #0066cc;
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.info-alert .alert-content {
  flex: 1;
}

.info-alert .alert-title {
  color: #0066cc;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-alert .alert-text {
  color: #495057;
  margin: 0;
  font-size: 0.875rem;
}

/* Operating Hour Exceptions Styles */
.exceptions-config {
  max-width: 100%;
}

.existing-exceptions {
  margin-bottom: 2rem;
}

.exception-item {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.exception-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.exception-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.exception-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.add-exception {
  margin-top: 2rem;
}

.add-exception .card {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
}

.add-exception .card-body {
  padding: 1.5rem;
}

.exception-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

#exception-hours {
  margin-top: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.quick-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.quick-actions .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Badge styles for exception status */
.badge.bg-danger {
  background-color: #dc3545 !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
}

/* Responsive adjustments for exceptions */
@media (max-width: 768px) {
  .exception-item .d-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .exception-actions {
    align-self: stretch;
    justify-content: center;
  }

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

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

  .quick-actions .d-flex {
    flex-direction: column;
  }

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

/* Operating Hours Review Styles */
.service-hours-item {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.service-hours-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.service-hours-item strong {
  color: #1e293b;
  font-weight: 600;
  display: inline-block;
  min-width: 80px;
  margin-right: 0.5rem;
}

.days-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.day-hours {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25;
}

.day-name {
  font-weight: 600;
  color: #475569;
  margin-right: 0.25rem;
}

.time-range {
  color: #059669;
  font-weight: 500;
}

.closed-text {
  color: #dc2626;
  font-weight: 500;
  font-style: italic;
}

/* Responsive adjustments for operating hours */
@media (max-width: 768px) {
  .days-container {
    flex-direction: column;
    gap: 0.25rem;
  }

  .day-hours {
    justify-content: space-between;
    width: 100%;
  }
}
