/* Multi-Step Form Styles */
.multistep-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.multistep-form-overlay.show {
  display: flex;
}

.multistep-form-container {
  background: #ffffff;
  border-radius: 0;
  max-width: 100%;
  width: 100%;
  min-height: calc(100vh - 200px);
  overflow-y: visible;
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Standalone form specific styles */
#standaloneFormContainer .multistep-form-container {
  min-height: auto;
  height: auto;
  overflow-y: visible;
}

.multistep-form-header {
  padding: 30px 40px 20px;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
}

.multistep-form-title {
  font-size: 28px;
  font-weight: bold;
  color: #303030;
  margin-bottom: 8px;
}

.multistep-form-subtitle {
  font-size: 16px;
  color: #7a7a7a;
  margin-bottom: 20px;
}

.multistep-progress {
  margin-bottom: 20px;
}

.multistep-progress-text {
  font-size: 14px;
  color: #7a7a7a;
  margin-bottom: 10px;
}

.multistep-progress-bar {
  width: 100%;
  height: 8px;
  background-color: #f1f1f1;
  border-radius: 4px;
  overflow: hidden;
}

.multistep-progress-fill {
  height: 100%;
  background: linear-gradient(to right, #f17920 0%, #fdb528 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 17%;
}

.multistep-navigation-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #e9ecef transparent;
}

.multistep-navigation-tabs::-webkit-scrollbar {
  height: 4px;
}

.multistep-navigation-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.multistep-navigation-tabs::-webkit-scrollbar-thumb {
  background-color: #e9ecef;
  border-radius: 2px;
}

.multistep-tab {
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  color: #7a7a7a;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}

.multistep-tab.active {
  border-color: #303030;
  color: #303030;
  background: #f8f9fa;
}

.multistep-form-body {
  padding: 40px;
  flex: 1;
  overflow-y: auto;
}

.multistep-step {
  display: none !important;
}

.multistep-step.active {
  display: block !important;
}

.multistep-step-title {
  font-size: 24px;
  font-weight: bold;
  color: #303030;
  margin-bottom: 15px;
}

.multistep-step-description {
  font-size: 16px;
  color: #7a7a7a;
  margin-bottom: 30px;
}

/* Form Elements */
.multistep-form-group {
  margin-bottom: 25px;
}

.multistep-form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #303030;
  margin-bottom: 8px;
}

.multistep-form-label.required::after {
  content: " *";
  color: #f17920;
}

.multistep-form-input,
.multistep-form-select,
.multistep-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  color: #303030;
  background: #ffffff;
  transition: all 0.3s ease;
}

.multistep-form-input:focus,
.multistep-form-select:focus,
.multistep-form-textarea:focus {
  outline: none;
  border-color: #f17920;
  box-shadow: 0 0 0 3px rgba(241, 121, 32, 0.1);
}

.multistep-form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Patient Category Selection */
.patient-category-options {
  margin-bottom: 30px;
}

.patient-category-options .row {
  margin-bottom: 15px;
}

.patient-category-options .row:last-child {
  margin-bottom: 0;
}

.patient-category-option {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.patient-category-option:hover {
  border-color: #f17920;
  background: rgba(241, 121, 32, 0.05);
}

.patient-category-option.selected {
  border-color: #f17920;
  background: rgba(241, 121, 32, 0.1);
}

.patient-category-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.patient-category-title {
  font-size: 18px;
  font-weight: 600;
  color: #303030;
  margin-bottom: 8px;
}

.patient-category-pricing {
  font-size: 14px;
  color: #7a7a7a;
}

.patient-category-pricing .price {
  font-weight: 600;
  color: #f17920;
}

.pricing-display {
  margin-bottom: 5px;
}

.pricing-display:last-child {
  margin-bottom: 0;
}

.pricing-label {
  font-weight: 600;
  color: #303030;
}

/* Turnaround Toggle */
.turnaround-toggle {
  display: flex;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 15px;
}

.turnaround-option {
  flex: 1;
  padding: 12px 20px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
}

.turnaround-option:not(.active) {
  color: #7a7a7a;
  background: transparent;
}

.turnaround-option.active {
  color: #ffffff;
  background: #303030;
}

.turnaround-description {
  font-size: 14px;
  color: #7a7a7a;
  text-align: center;
}

/* Upload Section */
.upload-section {
  margin-top: 20px;
}

.upload-title {
  font-size: 18px;
  font-weight: 600;
  color: #303030;
  margin-bottom: 20px;
  text-align: center;
}

/* File Upload */
.file-upload-area {
  border: 2px dashed #e9ecef;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: #f8f9fa;
  margin-bottom: 20px;
}

.file-upload-area:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.05);
}

.file-upload-area.dragover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.file-upload-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.file-upload-icon svg {
  color: #8b5cf6;
}

.file-upload-text {
  font-size: 16px;
  color: #495057;
  margin-bottom: 15px;
  font-weight: 500;
}

.file-upload-separator {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 15px;
  font-weight: 500;
}

.browse-files-btn {
  background: linear-gradient(to right, #f17920 0%, #fdb528 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.browse-files-btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.file-upload-input {
  display: none;
}

/* Uploaded Files Section */
.uploaded-files-section {
  margin-top: 20px;
}

.uploaded-files-title {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f17920;
  display: inline-block;
}

.uploaded-files {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uploaded-file-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.uploaded-file-item:hover {
  background: #f8f9fa;
  border-color: #f17920;
  box-shadow: 0 4px 12px rgba(241, 121, 32, 0.15);
  transform: translateY(-2px);
}

.file-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f17920, #e06a1a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(241, 121, 32, 0.3);
}

.file-icon.pdf {
  background: linear-gradient(135deg, #dc3545, #c82333);
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.file-icon.jpg,
.file-icon.png,
.file-icon.jpeg,
.file-icon.webp,
.file-icon.heic {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.file-icon.doc,
.file-icon.docx {
  background: linear-gradient(135deg, #2b579a, #1e3d6f);
  box-shadow: 0 2px 6px rgba(43, 87, 154, 0.35);
}

.file-icon.xls,
.file-icon.xlsx,
.file-icon.csv {
  background: linear-gradient(135deg, #217346, #185c37);
  box-shadow: 0 2px 6px rgba(33, 115, 70, 0.35);
}

.file-icon.txt {
  background: linear-gradient(135deg, #6c757d, #545b62);
  box-shadow: 0 2px 6px rgba(108, 117, 125, 0.35);
}

.file-icon.dcm {
  background: linear-gradient(135deg, #17a2b8, #117a8b);
  box-shadow: 0 2px 6px rgba(23, 162, 184, 0.35);
}

.file-icon-text {
  color: white;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 15px;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 6px;
  word-break: break-word;
  line-height: 1.3;
}

.file-size {
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 500;
}

.file-actions {
  display: flex;
  gap: 10px;
  margin-left: 16px;
  flex-shrink: 0;
}

.file-action-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
  background: transparent;
  color: #6c757d;
}

.file-action-btn:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
}

.preview-btn {
  background: transparent;
  color: #6c757d;
}

.preview-btn:hover {
  background: #f8f9fa;
  color: #495057;
}

.remove-btn {
  background: transparent;
  color: #6c757d;
}

.remove-btn:hover {
  background: #f8f9fa;
  color: #dc3545;
}

.file-status {
  margin-left: 12px;
  flex-shrink: 0;
}

.status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-icon.success {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
}

.status-icon.error {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.status-icon.uploading {
  background: linear-gradient(135deg, #f17920, #e06a1a);
  color: white;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Progress Bar */
.file-progress {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.file-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f17920 0%, #fdb528 50%, #f17920 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
  box-shadow: 0 1px 3px rgba(241, 121, 32, 0.3);
}

.file-progress-bar.completed {
  width: 100%;
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

/* File Preview Modal */
.file-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.preview-content {
  background: white;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.preview-header h4 {
  margin: 0;
  color: #303030;
  font-size: 18px;
}

.close-preview {
  width: 30px;
  height: 30px;
  border: none;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-preview:hover {
  background: #c82333;
}

/* File Preview Modal Enhancements */
.file-preview-modal {
  animation: fadeIn 0.3s ease-in-out;
}

.file-preview-modal .preview-content {
  animation: slideIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive modal */
@media (max-width: 768px) {
  .file-preview-modal .preview-content {
    max-width: 95%;
    max-height: 95%;
    margin: 10px;
  }

  .file-preview-modal .preview-header {
    padding: 15px;
  }

  .file-preview-modal .preview-body {
    padding: 15px;
  }

  .file-preview-modal .preview-header h4 {
    font-size: 16px;
  }
}

.preview-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

/* File Messages */
.file-message {
  padding: 12px 16px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

.file-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.file-message.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Consent & Review Styling */
.consent-description {
  font-size: 16px;
  line-height: 1.6;
  color: #303030;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-left: 4px solid #f17920;
  border-radius: 4px;
}

.checkbox-description {
  font-size: 14px;
  line-height: 1.5;
  color: #6c757d;
  margin-top: 8px;
  margin-left: 32px;
  font-style: italic;
}

.terms-link {
  color: #f17920;
  text-decoration: none;
  font-weight: 600;
}

.terms-link:hover {
  color: #e06a1a;
  text-decoration: underline;
}

/* Checkbox Styling */
.multistep-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.multistep-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  background-color: #ffffff;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.multistep-checkbox input[type="checkbox"]:checked {
  background-color: #f17920;
  border-color: #f17920;
}

.multistep-checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.multistep-checkbox input[type="checkbox"]:hover {
  border-color: #f17920;
}

.multistep-checkbox input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 121, 32, 0.1);
}

.multistep-checkbox-label {
  font-size: 14px;
  color: #303030;
  line-height: 1.5;
  cursor: pointer;
  flex: 1;
}

.multistep-checkbox-label a {
  color: #f17920;
  text-decoration: underline;
}

/* Language Requirements Section */
.language-requirements {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #f17920;
}

.requirements-title {
  font-size: 16px;
  font-weight: 600;
  color: #303030;
  margin-bottom: 15px;
}

.requirements-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.requirements-text:last-child {
  margin-bottom: 0;
}

/* Upload Requirements */
.upload-requirements {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
  line-height: 1.5;
  font-style: italic;
}

/* OHIP Fields Styling */
.ohip-fields {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  border-left: 4px solid #f17920;
}

.ohip-fields .multistep-form-group {
  margin-bottom: 20px;
}

.ohip-fields .multistep-form-group:last-child {
  margin-bottom: 0;
}

.ohip-fields input[name="ohipExpiry"] {
  margin-top: 5px;
}

/* Summary Section */
.summary-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}

.summary-title {
  font-size: 18px;
  font-weight: 600;
  color: #303030;
  margin-bottom: 20px;
}

.summary-section-header {
  font-size: 16px;
  font-weight: 600;
  color: #f17920;
  margin: 20px 0 12px 0;
  padding: 8px 12px;
  background: #fff3e0;
  border-left: 4px solid #f17920;
  border-radius: 4px;
}

.summary-section-header:first-child {
  margin-top: 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 600;
  color: #303030;
  flex: 1;
}

.summary-value {
  color: #7a7a7a;
  flex: 2;
  text-align: right;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.file-list li {
  padding: 4px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
}

.file-list li:last-child {
  border-bottom: none;
}

/* Payment & Submit Styling */
.step-header-centered {
  text-align: center;
  margin-bottom: 32px;
}

.step-header-centered .multistep-step-title {
  margin-bottom: 12px;
}

.step-header-centered .multistep-step-description {
  margin-bottom: 0;
}

.payment-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.payment-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.payment-item:last-child {
  margin-bottom: 0;
}

.payment-label {
  font-weight: 600;
  color: #303030;
  flex: 1;
}

.payment-value {
  color: #7a7a7a;
  flex: 1;
  text-align: right;
}

.addon-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.addon-title {
  font-size: 16px;
  font-weight: 600;
  color: #303030;
  margin-bottom: 16px;
}

.addon-description {
  font-size: 14px;
  line-height: 1.5;
  color: #6c757d;
  margin-top: 12px;
  font-style: italic;
}

.pricing-breakdown {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
}

.pricing-item:last-child {
  margin-bottom: 0;
}

.pricing-item.total {
  border-top: 2px solid #f17920;
  padding-top: 16px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 18px;
}

.pricing-label {
  font-weight: 500;
  color: #303030;
  flex: 1;
}

.pricing-value {
  color: #303030;
  flex: 1;
  text-align: right;
  font-weight: 500;
}

.pricing-item.total .pricing-label,
.pricing-item.total .pricing-value {
  color: #f17920;
  font-weight: 600;
}

/* Navigation Buttons */
.multistep-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 0 0 20px 20px;
  gap: 16px;
}

.multistep-btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
}

.multistep-btn-secondary {
  background: #e9ecef;
  color: #7a7a7a;
}

.multistep-btn-secondary:hover {
  background: #dee2e6;
  color: #303030;
}

.multistep-btn-primary {
  background: linear-gradient(to right, #f17920 0%, #fdb528 100%);
  color: #ffffff;
}

.multistep-btn-primary:hover {
  opacity: 0.8;
}

.multistep-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Close Button */
.multistep-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f8f9fa;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #7a7a7a;
  transition: all 0.3s ease;
  z-index: 10;
}

.multistep-close:hover {
  background: #e9ecef;
  color: #303030;
}

/* Responsive Design */
@media (max-width: 991px) {
  .multistep-form-container {
    margin: 0;
    height: 100vh;
  }

  .multistep-form-header {
    padding: 25px 30px 15px;
  }

  .multistep-form-title {
    font-size: 24px;
  }

  .multistep-form-body {
    padding: 30px;
  }

  .multistep-navigation {
    padding: 25px 30px;
  }

  .multistep-navigation-tabs {
    gap: 8px;
    overflow-x: auto;
    padding: 0 10px;
  }

  .multistep-tab {
    padding: 10px 16px;
    font-size: 12px;
    flex-shrink: 0;
    min-width: 100px;
  }
}

@media (max-width: 767px) {
  .multistep-form-overlay {
    padding: 0;
  }

  .multistep-form-container {
    border-radius: 0;
    height: 100vh;
  }

  .multistep-form-header {
    padding: 20px 25px 15px;
  }

  .multistep-form-title {
    font-size: 22px;
  }

  .multistep-form-body {
    padding: 25px;
  }

  .multistep-step-title {
    font-size: 20px;
  }

  .multistep-navigation {
    padding: 20px 25px;
    flex-direction: column;
    gap: 15px;
  }

  .multistep-btn {
    width: 100%;
    min-width: unset;
  }

  .multistep-navigation-tabs {
    gap: 6px;
    overflow-x: auto;
    padding: 0 5px;
    justify-content: flex-start;
  }

  .multistep-tab {
    padding: 8px 12px;
    font-size: 11px;
    flex-shrink: 0;
    min-width: 80px;
  }

  .patient-category-options {
    gap: 12px;
  }

  .patient-category-option {
    padding: 15px;
  }

  /* Stack patient categories on mobile */
  .patient-category-options .col-md-6 {
    margin-bottom: 15px;
  }

  .patient-category-options .row:last-child .col-md-6:last-child {
    margin-bottom: 0;
  }

  .summary-item {
    flex-direction: column;
    gap: 5px;
  }

  .summary-value {
    text-align: left;
  }
}

@media (max-width: 575px) {
  .multistep-form-container {
    height: 100vh;
  }

  .multistep-form-header {
    padding: 15px 20px 10px;
  }

  .multistep-form-title {
    font-size: 20px;
  }

  .multistep-form-body {
    padding: 20px;
  }

  .multistep-step-title {
    font-size: 18px;
  }

  .multistep-navigation {
    padding: 15px 20px;
  }

  .patient-category-option {
    padding: 12px;
  }

  .patient-category-title {
    font-size: 16px;
  }

  .turnaround-option {
    padding: 10px 15px;
    font-size: 13px;
  }

  /* Stack patient categories on mobile */
  .patient-category-options .col-md-6 {
    margin-bottom: 15px;
  }

  .patient-category-options .row:last-child .col-md-6:last-child {
    margin-bottom: 0;
  }
}

/* Animation for step transitions */
.multistep-step {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state */
.multistep-loading {
  display: none;
  text-align: center;
  padding: 40px;
}

.multistep-loading.show {
  display: block;
}

.multistep-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #f17920;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Small spinner for buttons */
.spinner-small {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

/* API Error Messages */
.api-error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  max-width: 400px;
  font-size: 14px;
  line-height: 1.4;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: slideInRight 0.3s ease-out;
}

.api-error-message:hover {
  transform: translateX(-5px);
}

.api-error-message.error {
  background: #dc3545;
}

.api-error-message.warning {
  background: #ffc107;
  color: #212529;
}

.api-error-message.info {
  background: #17a2b8;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive error messages */
@media (max-width: 768px) {
  .api-error-message {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    font-size: 13px;
  }
}

/* Error states */
.multistep-form-input.error,
.multistep-form-select.error,
.multistep-form-textarea.error {
  border-color: #dc3545;
}

.multistep-error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.multistep-error-message.show {
  display: block;
}
