/**
 * Sample Submission Form Styles
 * Redesigned based on lab-sample-streamline project
 * Accumark Labs Design System - Professional Scientific Aesthetic
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Core palette - Deep professional blues */
  --ssf-background: hsl(210 40% 98%);
  --ssf-foreground: hsl(220 30% 15%);
  --ssf-card: hsl(0 0% 100%);
  --ssf-card-foreground: hsl(220 30% 15%);

  /* Primary - Rich scientific blue */
  --ssf-primary: hsl(220 70% 45%);
  --ssf-primary-foreground: hsl(0 0% 100%);

  /* Secondary - Soft blue-gray */
  --ssf-secondary: hsl(210 30% 95%);
  --ssf-secondary-foreground: hsl(220 30% 25%);

  /* Muted surfaces */
  --ssf-muted: hsl(210 25% 93%);
  --ssf-muted-foreground: hsl(220 15% 45%);

  /* Accent - Cyan highlight */
  --ssf-accent: hsl(195 85% 45%);
  --ssf-accent-foreground: hsl(0 0% 100%);

  /* Success state */
  --ssf-success: hsl(160 60% 45%);
  --ssf-success-foreground: hsl(0 0% 100%);

  /* Destructive */
  --ssf-destructive: hsl(0 70% 55%);
  --ssf-destructive-foreground: hsl(0 0% 100%);

  /* Border and input */
  --ssf-border: hsl(210 25% 88%);
  --ssf-input: hsl(210 25% 88%);
  --ssf-ring: hsl(220 70% 45%);

  /* Border radius */
  --ssf-radius: 0.75rem;
  --ssf-radius-sm: calc(var(--ssf-radius) - 4px);
  --ssf-radius-lg: calc(var(--ssf-radius) + 4px);

  /* Gradients */
  --ssf-gradient-primary: linear-gradient(
    135deg,
    hsl(220 70% 45%) 0%,
    hsl(195 85% 45%) 100%
  );

  /* Shadows */
  --ssf-shadow-sm: 0 1px 2px 0 hsl(220 30% 15% / 0.05);
  --ssf-shadow-card:
    0 4px 6px -1px hsl(220 30% 15% / 0.08),
    0 2px 4px -2px hsl(220 30% 15% / 0.05);
  --ssf-shadow-lg:
    0 10px 15px -3px hsl(220 30% 15% / 0.1),
    0 4px 6px -4px hsl(220 30% 15% / 0.05);
  --ssf-shadow-glow: 0 0 20px hsl(220 70% 45% / 0.2);
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes ssf-fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ssf-scale-in {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes ssf-slide-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ssf-slide-left {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ssf-slide-right {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ssf-expand {
  0% {
    max-height: 0;
    opacity: 0;
  }

  100% {
    max-height: 2000px;
    opacity: 1;
  }
}

@keyframes ssf-collapse {
  0% {
    max-height: 2000px;
    opacity: 1;
  }

  100% {
    max-height: 0;
    opacity: 0;
  }
}

/* ============================================
   Main Container
   ============================================ */
.sample-form-container {
  max-width: 1000px;
  margin: 0 auto;
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  animation: ssf-fade-in 0.4s ease-out;
}

/* ============================================
   Header with Gradient
   ============================================ */
/* Title Bar (above steps) */
.sample-title-bar {
  padding: 16px 0 8px 0;
}

.sample-title-bar h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--ssf-foreground);
  letter-spacing: -0.02em;
}

.sample-title-bar p {
  margin: 0;
  color: var(--ssf-muted-foreground);
  font-size: 0.9rem;
}

/* Steps Header */
.sample-header {
  background: var(--ssf-gradient-primary);
  color: var(--ssf-primary-foreground);
  padding: 24px 32px;
  border-radius: var(--ssf-radius-lg) var(--ssf-radius-lg) var(--ssf-radius-lg)
    var(--ssf-radius-lg);
  box-shadow: var(--ssf-shadow-lg);
}

.sample-header.sample-header-compact {
  padding: 16px 32px;
}

.sample-header.sample-header-compact .sample-steps {
  width: 100%;
  justify-content: center;
}

/* Stacked header layout: title on top, steps below */
.sample-header-content.sample-header-stacked {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sample-header-title {
  text-align: center;
}

.sample-header-title h1 {
  font-size: 1.25rem !important;
  margin: 0 0 4px 0;
}

.sample-header-title p {
  margin: 0;
  font-size: 0.85rem;
}

.sample-header h1 {
  font-size: 1.75rem !important;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--ssf-primary-foreground) !important;
  letter-spacing: -0.02em;
  line-height: 2.25rem !important;
}

.sample-header p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.95rem;
}

.sample-header-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .sample-header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================
   Step Indicator
   ============================================ */
.sample-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sample-step {
  display: flex;
  align-items: center;
}

.step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ssf-primary-foreground);
  transition: all 0.3s ease;
}

.sample-step.active .step-number {
  background: var(--ssf-primary-foreground);
  color: var(--ssf-primary);
  border-color: var(--ssf-primary-foreground);
  box-shadow: var(--ssf-shadow-glow);
}

.sample-step.completed .step-number {
  background: var(--ssf-success);
  border-color: var(--ssf-success);
  color: var(--ssf-success-foreground);
}

.sample-step.completed .step-number::after {
  content: "✓";
  font-weight: bold;
}

.sample-step.completed .step-number span {
  display: none;
}

.step-title {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 8px;
  color: var(--ssf-primary-foreground);
  opacity: 0.7;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.sample-step.active .step-title,
.sample-step.completed .step-title {
  opacity: 1;
}

.step-line {
  width: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 4px;
  margin-bottom: 24px;
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.sample-step.completed + .sample-step .step-line::before,
.sample-step.completed .step-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--ssf-success);
  animation: ssf-fade-in 0.4s ease-out;
}

@media (min-width: 768px) {
  .step-line {
    width: 80px;
  }
}

/* ============================================
   Content Area
   ============================================ */
.sample-content {
  background: var(--ssf-background);
  padding: 32px;
  border-radius: 0 0 var(--ssf-radius-lg) var(--ssf-radius-lg);
}

.sample-page {
  display: none;
  animation: ssf-slide-left 0.4s ease-out;
}

.sample-page.active {
  display: block;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ssf-foreground);
  margin: 0;
}

.section-header p {
  font-size: 0.875rem;
  color: var(--ssf-muted-foreground);
  margin: 4px 0 0 0;
}

.section-summary {
  text-align: right;
}

.section-summary .count {
  font-size: 0.875rem;
  color: var(--ssf-muted-foreground);
}

.section-summary .total {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ssf-primary);
}

/* ============================================
   Sample Cards (Collapsible Accordion)
   ============================================ */
.sample-card {
  background: var(--ssf-card);
  border: 1px solid var(--ssf-border);
  border-radius: var(--ssf-radius);
  margin-bottom: 16px;
  box-shadow: var(--ssf-shadow-card);
  /* overflow: hidden; -- Removed to allow dropdowns to overflow */
  animation: ssf-scale-in 0.3s ease-out;
}

.sample-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sample-card-header:hover {
  background: var(--ssf-secondary);
}

.sample-card-header-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}

.sample-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--ssf-radius);
  background: var(--ssf-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ssf-primary-foreground);
}

.sample-icon svg {
  width: 20px;
  height: 20px;
}

.sample-card-info h3 {
  font-size: 0.95rem !important;
  font-weight: 600;
  color: var(--ssf-foreground);
  margin: 0 !important;
  padding-top: 12px !important;
  line-height: 1.2 !important;
}

.sample-card-info p {
  font-size: 0.8rem !important;
  color: var(--ssf-muted-foreground) !important;
  margin: 2px 0 0 0;
  line-height: 1.2;
}

.sample-card-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sample-validation-badge {
  display: none;
}

.remove-sample {
  background: linear-gradient(
    135deg,
    hsl(200 85% 45%) 0%,
    hsl(220 70% 50%) 100%
  ) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px hsl(210 70% 45% / 0.3) !important;
  border-radius: 10px !important;
  border: none !important;
  padding: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.remove-sample:hover {
  box-shadow: 0 6px 20px hsl(210 70% 45% / 0.4) !important;
  transform: translateY(-2px) !important;
  background: linear-gradient(
    135deg,
    hsl(200 85% 45%) 0%,
    hsl(220 70% 50%) 100%
  ) !important;
  color: #fff !important;
}

.copy-sample {
  background: linear-gradient(
    135deg,
    hsl(168 60% 40%) 0%,
    hsl(190 55% 45%) 100%
  ) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px hsl(180 50% 40% / 0.3) !important;
  border-radius: 10px !important;
  border: none !important;
  padding: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.copy-sample:hover {
  box-shadow: 0 6px 20px hsl(180 50% 40% / 0.4) !important;
  transform: translateY(-2px) !important;
  background: linear-gradient(
    135deg,
    hsl(168 60% 35%) 0%,
    hsl(190 55% 40%) 100%
  ) !important;
  color: #fff !important;
}

.sample-delete-confirm {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: hsl(0 70% 97%);
  border: 1px solid hsl(0 70% 85%);
  border-radius: 8px;
  color: hsl(0 65% 40%);
  font-size: 14px;
  animation: fadeSlideIn 0.2s ease;
}

.sample-delete-confirm svg {
  flex-shrink: 0;
  color: hsl(38 92% 50%);
}

.sample-delete-confirm span {
  flex: 1;
}

.sample-delete-confirm-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-delete-cancel {
  padding: 5px 12px !important;
  border: 1px solid var(--ssf-border) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--ssf-foreground) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  min-width: auto !important;
  min-height: auto !important;
  max-height: 30px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.btn-delete-cancel:hover {
  background: var(--ssf-muted) !important;
}

.btn-delete-confirm {
  padding: 5px 12px !important;
  border: none !important;
  border-radius: 6px !important;
  background: hsl(0 72% 51%) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  min-width: auto !important;
  min-height: auto !important;
  max-height: 30px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.btn-delete-confirm:hover {
  background: hsl(0 72% 43%) !important;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.expand-icon {
  color: var(--ssf-muted-foreground);
  transition: transform 0.3s ease;
}

.sample-card.expanded > .sample-card-header .expand-icon {
  transform: rotate(180deg);
}

/* Sample Card Body */
.sample-card-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    opacity 0.3s ease-out,
    overflow 0s 0.3s;
  opacity: 0;
  border-top: 1px solid var(--ssf-border);
}

/* Note: overflow:visible is intentionally NOT restricted to direct child
   because the outer expanded sample card needs overflow:visible for its
   entire subtree (dropdowns, etc.). The collapse logic is handled by
   max-height on .sample-card-body via direct child selectors below. */
.sample-card.expanded {
  overflow: visible; /* Allow dropdown to overflow card bounds */
}

.sample-card.expanded > .sample-card-body {
  max-height: 4000px;
  opacity: 1;
  overflow: visible;
  transition:
    max-height 0.5s ease-in,
    opacity 0.3s ease-in,
    overflow 0s 0s;
}

/* ============================================
   Inner Section Accordion (within Sample Card)
   ============================================ */
.sample-sections-container {
  padding: 8px 16px 16px;
}

.sample-section {
  border: 1px solid var(--ssf-border);
  border-radius: calc(var(--ssf-radius) - 2px);
  margin-bottom: 8px;
  background: var(--ssf-background);
  overflow: hidden;
}

.sample-section:last-child {
  margin-bottom: 0;
}

.sample-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
}

.sample-section-header:hover {
  background: var(--ssf-secondary);
}

.sample-section .section-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sample-section .section-header-left svg {
  width: 18px;
  height: 18px;
  color: var(--ssf-primary);
  flex-shrink: 0;
}

.sample-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ssf-foreground);
}

.sample-section .section-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-status {
  font-size: 0.75rem;
  color: var(--ssf-muted-foreground);
}

.section-expand-icon {
  color: var(--ssf-muted-foreground);
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

.sample-section.expanded .section-expand-icon {
  transform: rotate(180deg);
}

/* Allow dropdown menus to overflow the section boundary when expanded */
.sample-section.expanded {
  overflow: visible;
}

/* Section Body — collapse/expand */
.sample-section-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.3s ease-out,
    opacity 0.2s ease-out;
  border-top: 1px solid transparent;
}

.sample-section.expanded .sample-section-body {
  max-height: 2000px;
  opacity: 1;
  overflow: visible;
  transition:
    max-height 0.5s ease-in,
    opacity 0.3s ease-in;
  padding: 16px;
  border-top-color: var(--ssf-border);
}

/* Placeholder text inside empty sections */
.section-placeholder {
  color: var(--ssf-muted-foreground);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
  margin: 0;
}

/* Per-Sample COA Form */
.coa-profile-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ssf-border);
  border-radius: var(--ssf-radius);
  font-size: 0.875rem;
  background: var(--ssf-background);
  color: var(--ssf-foreground);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.coa-profile-select:focus {
  outline: none;
  border-color: var(--ssf-primary);
  box-shadow: 0 0 0 3px rgba(var(--ssf-primary-rgb, 0, 82, 204), 0.1);
}

.coa-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.coa-upload-group > label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ssf-foreground);
  margin-bottom: 6px;
}

.coa-upload-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px dashed var(--ssf-border);
  border-radius: var(--ssf-radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-height: 60px;
}

.coa-upload-area:hover {
  border-color: var(--ssf-primary);
  background: rgba(var(--ssf-primary-rgb, 0, 82, 204), 0.04);
}

.coa-upload-preview img {
  border-radius: 6px;
  object-fit: contain;
}

.coa-upload-label {
  font-size: 0.8rem;
  color: var(--ssf-muted-foreground);
}

.coa-save-profile-row {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--ssf-border);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ssf-foreground);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--ssf-primary);
  width: 16px;
  height: 16px;
}

/* ============================================
   Form Elements
   ============================================ */
.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(220 25% 35%);
  margin-bottom: 6px;
}

.sample-form-container input[type="text"],
.sample-form-container input[type="number"],
.sample-form-container input[type="email"],
.sample-form-container input[type="url"],
.sample-form-container input[type="tel"],
.sample-form-container textarea,
.sample-form-container select,
.sample-content input[type="text"],
.sample-content input[type="number"],
.sample-content input[type="email"],
.sample-content input[type="url"],
.sample-content input[type="tel"],
.sample-content textarea,
.sample-content select {
  width: 100% !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;

  border: 1px solid hsl(210 20% 90%) !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  background: hsl(0 0% 100%) !important;
  color: var(--ssf-foreground) !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease !important;
}

.sample-form-container input::placeholder,
.sample-form-container textarea::placeholder,
.sample-content input::placeholder,
.sample-content textarea::placeholder {
  color: hsl(220 15% 60%) !important;
  opacity: 1 !important;
}

.sample-form-container input:hover,
.sample-form-container textarea:hover,
.sample-form-container select:hover,
.sample-content input:hover,
.sample-content textarea:hover,
.sample-content select:hover {
  border-color: hsl(210 25% 82%) !important;
}

.sample-form-container input:focus,
.sample-form-container textarea:focus,
.sample-form-container select:focus,
.sample-content input:focus,
.sample-content textarea:focus,
.sample-content select:focus {
  outline: none !important;
  border-color: var(--ssf-primary) !important;
  background: hsl(0 0% 100%) !important;
  box-shadow: 0 0 0 3px hsl(220 70% 45% / 0.08) !important;
}

.sample-form-container input.input-error,
.sample-form-container textarea.input-error,
.sample-form-container select.input-error,
.sample-content input.input-error,
.sample-content textarea.input-error,
.sample-content select.input-error,
.custom-select-container.input-error .custom-select-trigger {
  border-color: var(--ssf-destructive) !important;
  background: hsl(0 70% 99%) !important;
}

select.profile-selected {
  font-weight: 600;
}

.field-error {
  color: var(--ssf-destructive) !important;
  font-size: 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 4px !important;
}

.sample-form-container textarea,
.sample-content textarea {
  min-height: 100px !important;
  resize: vertical !important;
}

/* ============================================
   Service Cards (Interactive Selection)
   ============================================ */
.services-section {
  margin-top: 24px;
}

.services-section > label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ssf-foreground);
  margin-bottom: 12px;
}

.services-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border: 2px solid var(--ssf-border);
  border-radius: var(--ssf-radius);
  background: var(--ssf-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-card:hover {
  border-color: hsl(220 70% 45% / 0.3);
  background: var(--ssf-secondary);
  transform: translateY(-1px);
}

.service-card.selected {
  border-color: var(--ssf-primary);
  background: hsl(220 70% 45% / 0.05);
  box-shadow: var(--ssf-shadow-card);
}

.service-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--ssf-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ssf-card);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.service-card.selected .service-checkbox {
  background: var(--ssf-primary);
  border-color: var(--ssf-primary);
}

.service-checkbox svg {
  width: 14px;
  height: 14px;
  color: var(--ssf-primary-foreground);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.service-card.selected .service-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.service-name {
  font-weight: 500;
  color: var(--ssf-foreground);
  transition: color 0.2s ease;
}

.service-card.selected .service-name {
  color: var(--ssf-primary);
}

.service-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ssf-muted);
  color: var(--ssf-muted-foreground);
  font-size: 12px;
  cursor: help;
  margin-left: 6px;
  position: relative;
}

.service-tooltip:hover {
  background: var(--ssf-primary);
  color: var(--ssf-primary-foreground);
}

.service-tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  padding: 10px 14px;
  background: var(--ssf-primary);
  color: var(--ssf-primary-foreground) !important;
  border-radius: var(--ssf-radius-sm);
  font-size: 0.85rem;
  font-weight: 400;
  text-align: left;
  z-index: 100;
  box-shadow: var(--ssf-shadow-lg);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.service-tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ssf-primary);
}

.service-tooltip:hover .service-tooltip-content {
  visibility: visible;
  opacity: 1;
}

.service-price {
  font-weight: 600;
  color: var(--ssf-foreground);
  transition: color 0.2s ease;
}

.service-card.selected .service-price {
  color: var(--ssf-primary);
}

/* Variance dropdown */
.variance-select {
  display: none;
  width: auto;
  max-width: 70px;
  padding: 6px 10px;
  margin-left: 12px;
}

.service-card.selected .variance-select {
  display: inline-block;
}

/* ============================================
   Notes Section
   ============================================ */
.notes-section {
  margin-top: 24px;
}

.notes-section label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ssf-foreground);
  margin-bottom: 8px;
}

.notes-section label span {
  font-weight: 400;
  color: var(--ssf-muted-foreground);
}

/* ============================================
   Address Section (Step 2)
   ============================================ */
.address-section {
  background: var(--ssf-card);
  border: 1px solid var(--ssf-border);
  border-radius: var(--ssf-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--ssf-shadow-card);
}

.address-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ssf-primary);
  margin: 0 0 20px 0;
}

/* ============================================
   FAQ/Instructions Section
   ============================================ */
.faq-section {
  background: var(--ssf-secondary);
  border-left: 4px solid var(--ssf-primary);
  border-radius: var(--ssf-radius);
  padding: 20px 24px;
  margin-top: 24px;
}

.faq-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ssf-primary);
  margin: 0 0 12px 0;
}

.faq-section ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
  color: var(--ssf-foreground);
}

.faq-section ul li {
  margin-bottom: 8px;
}

.faq-section ul li strong {
  color: var(--ssf-foreground);
}

/* ============================================
   Review Section (Step 3)
   ============================================ */
.review-section {
  background: var(--ssf-card);
  border: 1px solid var(--ssf-border);
  border-radius: var(--ssf-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--ssf-shadow-card);
  animation: ssf-scale-in 0.3s ease-out;
}

.review-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ssf-primary);
  margin: 0 0 16px 0;
}

/* Package Summary Styles */
.package-summary {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--ssf-border);
  border-radius: 12px;
  padding: 16px;
}

.package-summary.package-badge-bundle {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: hsl(160 60% 70%);
}

.package-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.package-summary-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ssf-foreground);
}

.package-summary-badge {
  background: linear-gradient(
    135deg,
    hsl(160 60% 45%) 0%,
    hsl(160 60% 35%) 100%
  );
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.package-summary-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.package-included-item {
  font-size: 0.9rem;
  color: var(--ssf-foreground);
}

.package-included-item.package-included-bonus {
  color: hsl(160 60% 35%);
  font-weight: 500;
}

.included-label {
  background: hsl(160 60% 45%);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--ssf-border);
}

.review-item:last-child {
  border-bottom: none;
}

.review-label {
  font-weight: 500;
  color: var(--ssf-muted-foreground);
  font-size: 0.9rem;
}

.review-value {
  color: var(--ssf-foreground);
  font-size: 0.9rem;
  text-align: right;
  max-width: 60%;
}

/* Summary Card */
.summary-card {
  background: var(--ssf-card);
  border: 1px solid var(--ssf-border);
  border-radius: var(--ssf-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--ssf-shadow-sm);
}

.summary-card h4 {
  color: var(--ssf-primary);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px 0;
}

/* ============================================
   Coupon Section
   ============================================ */
.coupon-section {
  background: var(--ssf-card);
  border: 1px solid var(--ssf-border);
  border-radius: var(--ssf-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--ssf-shadow-card);
}

.coupon-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ssf-foreground);
  margin: 0 0 16px 0;
}

.coupon-group {
  display: flex;
  gap: 12px;
}

.coupon-group input {
  flex: 1;
}

/* ============================================
   Total Section
   ============================================ */
.total-section {
  background: var(--ssf-gradient-primary);
  color: var(--ssf-primary-foreground);
  border-radius: var(--ssf-radius);
  padding: 24px;
  text-align: center;
}

.total-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #fff !important;
}

.total-section p {
  margin: 0;
  color: #fff;
  opacity: 0.85;
}

/* Ready to submit icon */
.ready-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: hsl(160 60% 45% / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.ready-icon svg {
  width: 32px;
  height: 32px;
  color: var(--ssf-success);
}

/* ============================================
   Buttons
   ============================================ */
.button-group {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ssf-border);
}

.btn,
.sample-form-container .btn,
.sample-form-container button.btn,
.sample-content .btn,
.sample-content button.btn,
button.btn.btn-primary,
button.btn.btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-primary,
.sample-form-container .btn-primary,
.sample-form-container button.btn-primary,
.sample-content .btn-primary,
button.btn.btn-primary {
  background: linear-gradient(
    135deg,
    hsl(200 85% 45%) 0%,
    hsl(220 70% 50%) 100%
  ) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px hsl(210 70% 45% / 0.3) !important;
  border-radius: 10px !important;
}

.btn-primary:hover,
.sample-form-container .btn-primary:hover,
button.btn.btn-primary:hover {
  box-shadow: 0 6px 20px hsl(210 70% 45% / 0.4) !important;
  transform: translateY(-2px) !important;
}

.btn-primary:active,
.sample-form-container .btn-primary:active {
  transform: translateY(0) !important;
}

.btn-secondary,
.sample-form-container .btn-secondary,
.sample-form-container button.btn-secondary,
.sample-content .btn-secondary,
button.btn.btn-secondary {
  background: #fff !important;
  color: var(--ssf-foreground) !important;
  border: 1px solid var(--ssf-border) !important;
  border-radius: 10px !important;
}

.btn-secondary:hover,
.sample-form-container .btn-secondary:hover,
button.btn.btn-secondary:hover {
  background: var(--ssf-secondary) !important;
  border-color: var(--ssf-primary) !important;
}

.btn-add,
.sample-form-container .btn-add,
.sample-form-container button.btn-add,
.sample-content .btn-add,
.sample-content button.btn-add,
button.btn.btn-add {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 16px 24px !important;
  border: 2px dashed hsl(210 20% 85%) !important;
  background: transparent !important;
  color: hsl(220 15% 55%) !important;
  border-radius: 12px !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-add:hover,
.sample-form-container .btn-add:hover,
.sample-content .btn-add:hover,
button.btn.btn-add:hover {
  border-color: var(--ssf-primary) !important;
  border-style: dashed !important;
  color: var(--ssf-primary) !important;
  background: transparent !important;
  box-shadow: 0 0 0 3px hsl(220 70% 45% / 0.08) !important;
}

.btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 700px) {
  .sample-header {
    padding: 20px;
    border-radius: 0;
  }

  .sample-content {
    padding: 20px;
  }

  .button-group {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-summary {
    text-align: left;
  }

  /* Inner section accordion - mobile overrides */
  .sample-sections-container {
    padding: 4px 8px 8px;
  }

  .sample-section-header {
    padding: 10px 12px;
  }

  .sample-section-title {
    font-size: 0.8rem;
  }

  .sample-section.expanded .sample-section-body {
    padding: 12px;
  }

  .coa-upload-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Legacy Compatibility (for existing JS)
   ============================================ */
.sample-number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ssf-foreground);
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ssf-foreground);
  margin-bottom: 12px;
}

.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ssf-muted);
  color: var(--ssf-muted-foreground);
  font-size: 12px;
  font-weight: 600;
  cursor: help;
  transition: all 0.2s ease;
}

.tooltip-icon:hover {
  background: var(--ssf-primary);
  color: var(--ssf-primary-foreground);
}

.tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  padding: 10px 14px;
  background: var(--ssf-primary);
  color: var(--ssf-primary-foreground);
  border-radius: var(--ssf-radius-sm);
  font-size: 0.85rem;
  font-weight: 400;
  text-align: left;
  z-index: 100;
  box-shadow: var(--ssf-shadow-lg);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  pointer-events: none;
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ssf-primary);
}

.tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* Keep test-services-table for backwards compatibility during transition */
.test-services-table {
  width: 100%;
  border-collapse: collapse;
}

.test-services-table th,
.test-services-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--ssf-border);
}

.test-services-table th {
  background: var(--ssf-secondary);
  color: var(--ssf-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.test-services-table th:first-child {
  width: 60px;
  text-align: center;
}

.test-services-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--ssf-primary);
  cursor: pointer;
}

.price-cell {
  font-weight: 600;
  color: var(--ssf-primary);
}

/* Primary Test Card Styling */
.primary-test-card {
  background: linear-gradient(
    135deg,
    min(hsl(160 50% 98%), white) 0%,
    hsl(160 60% 95%) 100%
  ) !important;
  border: 1px solid hsl(160 40% 90%);
  border-left: 4px solid var(--ssf-success);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.primary-test-icon {
  color: var(--ssf-success);
  background: white;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.primary-test-icon svg {
  width: 20px;
  height: 20px;
}

.primary-test-info {
  flex: 1;
}

.primary-test-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.primary-test-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ssf-foreground);
}

.required-badge {
  background: hsl(160 50% 92%);
  color: var(--ssf-success);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.primary-test-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ssf-muted-foreground);
  line-height: 1.4;
}

.primary-test-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ssf-success);
}

.primary-test-icon {
  color: var(--ssf-primary);
  background: white;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.primary-test-icon svg {
  width: 20px;
  height: 20px;
}

.primary-test-info {
  flex: 1;
}

.primary-test-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.primary-test-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ssf-foreground);
}

.required-badge {
  background: var(--ssf-secondary);
  color: var(--ssf-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.primary-test-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ssf-muted-foreground);
  line-height: 1.4;
}

.primary-test-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ssf-primary);
}

/* ============================================
   Step 1: Package Selection Grid
   ============================================ */
.package-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.package-grid.package-grid-2col {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .package-grid.package-grid-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Addons Row (below main cards) */
.addons-row {
  margin-top: 24px;
  background: var(--ssf-card);
  border: 2px solid var(--ssf-border);
  border-radius: var(--ssf-radius-lg);
  padding: 24px;
  box-shadow: var(--ssf-shadow-card);
}

.addons-row-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ssf-foreground);
  margin: 0 0 4px 0;
}

.addons-row-desc {
  font-size: 0.875rem;
  color: var(--ssf-muted-foreground);
  margin: 0 0 16px 0;
}

.addons-row-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .addons-row-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Package Card Base */
.package-card {
  background: var(--ssf-card);
  border: 2px solid var(--ssf-border);
  border-radius: var(--ssf-radius-lg);
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--ssf-shadow-card);
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  border-color: hsl(220 70% 45% / 0.3);
  transform: translateY(-2px);
  box-shadow: var(--ssf-shadow-lg);
}

/* Core Card Selected State */
.core-card.selected {
  border-color: hsl(180 60% 45%);
  box-shadow:
    0 0 0 4px hsl(180 60% 45% / 0.15),
    var(--ssf-shadow-lg);
}

/* Package Badges */
.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.package-badge.starter {
  background: linear-gradient(
    135deg,
    hsl(180 60% 40%) 0%,
    hsl(195 70% 45%) 100%
  );
  color: white;
}

.package-badge.best-value {
  background: linear-gradient(
    135deg,
    hsl(220 70% 45%) 0%,
    hsl(195 85% 45%) 100%
  );
  color: white;
  box-shadow: 0 4px 15px hsl(220 70% 45% / 0.4);
}

/* Package Header */
.package-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ssf-border);
  margin-bottom: 20px;
}

.package-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ssf-foreground);
  margin: 0 0 4px 0;
}

.package-desc {
  font-size: 0.875rem;
  color: var(--ssf-muted-foreground);
  margin: 0 0 16px 0;
}

.package-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ssf-foreground);
  margin: 0;
  line-height: 1;
}

.package-price span {
  font-size: 1.25rem;
  vertical-align: super;
  margin-right: 2px;
}

.package-per {
  font-size: 0.875rem;
  color: var(--ssf-muted-foreground);
  margin: 8px 0 0 0;
}

.save-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    hsl(160 60% 45%) 0%,
    hsl(180 70% 40%) 100%
  );
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.package-price-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.package-price-original {
  font-size: 1.25rem;
  color: var(--ssf-muted-foreground);
  text-decoration: line-through;
}

/* Package Features List */
.package-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.package-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--ssf-foreground);
}

.package-features svg {
  width: 18px;
  height: 18px;
  color: hsl(160 60% 45%);
  flex-shrink: 0;
}

/* Package Included Note */
.package-included-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  margin-top: 16px;
  background: linear-gradient(
    135deg,
    hsl(160 60% 95%) 0%,
    hsl(180 70% 93%) 100%
  );
  border-radius: var(--ssf-radius);
  color: hsl(160 60% 35%);
  font-weight: 600;
  font-size: 0.875rem;
}

.package-included-note svg {
  width: 18px;
  height: 18px;
  color: hsl(160 60% 45%);
}

/* Package CTA */
.package-cta {
  margin-top: 16px;
}

.package-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Addons Card Specific */
.addons-card {
  border-color: hsl(210 25% 88%);
}

.addon-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ssf-muted-foreground);
  margin: 16px 0 0 0;
}

/* Addon Select Item (Clickable) */
.addon-select-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  margin-bottom: 0;
  border: 2px solid var(--ssf-border);
  border-radius: var(--ssf-radius);
  background: var(--ssf-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.addon-select-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.addon-select-item:hover {
  border-color: hsl(220 70% 45% / 0.3);
  background: var(--ssf-secondary);
}

.addon-select-item.selected {
  border-color: var(--ssf-primary);
  background: hsl(220 70% 45% / 0.05);
  box-shadow: var(--ssf-shadow-card);
}

.addon-select-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.addon-select-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    hsl(210 40% 96%) 0%,
    hsl(220 30% 94%) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.addon-select-icon svg {
  width: 18px;
  height: 18px;
  color: var(--ssf-primary);
}

.addon-select-item.selected .addon-select-icon {
  background: var(--ssf-gradient-primary);
}

.addon-select-item.selected .addon-select-icon svg {
  color: white;
}

.addon-select-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ssf-foreground);
  margin: 0;
  line-height: 1.3;
}

.addon-select-desc {
  font-size: 0.8rem;
  color: var(--ssf-muted-foreground);
  margin: 0;
}

.addon-select-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.addon-select-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ssf-primary);
}

/* Addon Checkbox */
.addon-checkbox {
  width: 28px;
  height: 28px;
  border: 2px solid var(--ssf-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ssf-card);
  transition: all 0.2s ease;
}

.addon-select-item.selected .addon-checkbox {
  background: var(--ssf-primary);
  border-color: var(--ssf-primary);
}

.addon-checkbox svg {
  width: 16px;
  height: 16px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.addon-select-item.selected .addon-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

/* Bundle Card (AccuShield) */
.bundle-card {
  border-color: hsl(220 70% 85%);
  background: linear-gradient(
    135deg,
    hsl(220 70% 99%) 0%,
    hsl(195 85% 98%) 100%
  );
}

.bundle-card.selected {
  border-color: var(--ssf-primary);
  box-shadow:
    0 0 0 4px hsl(220 70% 45% / 0.15),
    var(--ssf-shadow-lg);
  background: linear-gradient(
    135deg,
    hsl(220 70% 97%) 0%,
    hsl(160 60% 96%) 100%
  );
}

/* Bundle Included Addon Styles */
.addon-select-item.bundle-included {
  background: hsl(160 60% 97%);
  border-color: hsl(160 60% 70%);
}

/* Bundle Pricing - strikethrough original, $0 in blue */
.addon-select-price .price-original {
  text-decoration: line-through;
  color: var(--ssf-muted-foreground);
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 6px;
}

.addon-select-price .price-bundle {
  color: hsl(160 60% 35%);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Coming Soon Addon Styles */
.addon-select-item.addon-coming-soon {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
  background: hsl(220 20% 97%);
}

.addon-select-item.addon-coming-soon:hover {
  transform: none;
  border-color: var(--ssf-border);
  box-shadow: var(--ssf-shadow-card);
}

.addon-select-icon.coming-soon-icon {
  background: hsl(220 15% 92%);
}

.addon-select-icon.coming-soon-icon svg {
  color: hsl(220 15% 60%);
}

.addon-coming-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(
    135deg,
    hsl(180 60% 45%) 0%,
    hsl(210 70% 50%) 100%
  );
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.addon-select-item.addon-coming-soon {
  position: relative;
}

/* ============================================
   Coming Soon Section (below wizard)
   ============================================ */
.coming-soon-section {
  max-width: 1000px;
  margin: 32px auto 0;
  padding: 24px 0;
  opacity: 0.7;
}

.coming-soon-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ssf-muted-foreground);
  margin: 0 0 4px 0;
}

.coming-soon-desc {
  font-size: 0.8125rem;
  color: var(--ssf-muted-foreground);
  margin: 0 0 16px 0;
}

.coming-soon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coming-soon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--ssf-card);
  border: 1px solid var(--ssf-border);
  border-radius: var(--ssf-radius-sm);
  flex: 1 1 calc(50% - 5px);
  min-width: 200px;
}

.coming-soon-item-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ssf-foreground);
  margin: 0;
  line-height: 1.3;
}

.coming-soon-item-desc {
  font-size: 0.6875rem;
  color: var(--ssf-muted-foreground);
  margin: 2px 0 0;
  line-height: 1.3;
}

.coming-soon-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, hsl(180 60% 45%) 0%, hsl(210 70% 50%) 100%);
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   Wizard Promo Banner (Try Us Risk-Free)
   ============================================ */
.wizard-promo-banner {
  background: linear-gradient(
    135deg,
    hsl(220 70% 97%) 0%,
    hsl(195 85% 95%) 100%
  );
  border: 2px solid hsl(220 70% 85%);
  border-radius: var(--ssf-radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wizard-promo-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    hsl(220 70% 50%) 0%,
    hsl(195 85% 50%) 50%,
    hsl(160 60% 45%) 100%
  );
}

.wizard-promo-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    hsl(220 70% 50%) 0%,
    hsl(195 85% 45%) 100%
  );
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.wizard-promo-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wizard-promo-text {
  flex: 1;
  min-width: 280px;
}

.wizard-promo-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: hsl(220 60% 25%);
  margin: 0 0 8px 0;
}

.wizard-promo-desc {
  font-size: 0.9rem;
  color: hsl(220 30% 45%);
  margin: 0;
  line-height: 1.5;
}

.wizard-promo-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wizard-promo-cta .btn {
  white-space: nowrap;
  padding: 14px 28px !important;
  font-size: 1rem !important;
}

.wizard-promo-terms {
  font-size: 0.75rem;
  color: hsl(220 30% 55%);
  margin: 0;
  text-align: center;
}

/* Claimed State */
.wizard-promo-banner.claimed {
  background: linear-gradient(
    135deg,
    hsl(160 60% 97%) 0%,
    hsl(170 70% 95%) 100%
  );
  border-color: hsl(160 60% 70%);
}

.wizard-promo-banner.claimed::before {
  background: linear-gradient(
    90deg,
    hsl(160 60% 45%) 0%,
    hsl(170 70% 50%) 100%
  );
}

.wizard-promo-banner.claimed .wizard-promo-badge {
  background: linear-gradient(
    135deg,
    hsl(160 60% 45%) 0%,
    hsl(170 70% 40%) 100%
  );
}

.wizard-promo-banner.claimed .wizard-promo-title {
  color: hsl(160 60% 25%);
}

#claim-promo-btn.claimed {
  background: linear-gradient(
    135deg,
    hsl(160 60% 45%) 0%,
    hsl(170 70% 40%) 100%
  ) !important;
  box-shadow: 0 4px 15px hsl(160 60% 45% / 0.3) !important;
  cursor: default !important;
}

#claim-promo-btn.claimed:hover {
  transform: none !important;
}

/* Responsive */
@media (max-width: 640px) {
  .wizard-promo-content {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-promo-text {
    min-width: auto;
  }

  .wizard-promo-cta {
    align-items: stretch;
  }

  .wizard-promo-cta .btn {
    width: 100%;
  }
}

/* ============================================
   Test Tags (Sample Card Headers)
   ============================================ */
.sample-test-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.test-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.test-tag-core {
  background: linear-gradient(
    135deg,
    hsl(210 70% 50%) 0%,
    hsl(220 70% 45%) 100%
  );
  color: white;
}

.test-tag-addon {
  background: linear-gradient(
    135deg,
    hsl(160 60% 40%) 0%,
    hsl(180 60% 45%) 100%
  );
  color: white;
}

.test-tag-bundle {
  background: linear-gradient(135deg, hsl(45 90% 50%) 0%, hsl(35 90% 50%) 100%);
  color: hsl(30 80% 20%);
}

/* ============================================
   Bundle Pricing Display (Step 2 Header)
   ============================================ */
.price-original-strike {
  text-decoration: line-through;
  color: var(--ssf-muted-foreground);
  font-size: 0.9em;
  margin-right: 4px;
}

.price-bundle-total {
  color: hsl(160 60% 35%);
  font-weight: 700;
}

/* ============================================
   Sample Price Badge (Sample Card Headers)
   ============================================ */
.sample-price-badge {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ssf-primary);
  background: hsl(210 80% 96%);
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ============================================
   Mobile Responsive Styles
   ============================================ */
@media (max-width: 767px) {
  /* Prevent horizontal overflow at all levels */
  html,
  body {
    overflow-x: hidden;
  }

  .portal-layout {
    overflow-x: hidden;
  }

  .main-content {
    min-width: 0 !important;
    overflow-x: hidden;
  }

  .sample-form-container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Header - reduce padding and wrap title */
  .sample-header {
    padding: 12px 12px;
    margin: 0;
    width: 100%;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .sample-header.sample-header-compact {
    padding: 10px 12px;
  }

  .sample-header h1 {
    font-size: 1rem !important;
    line-height: 1.3rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .sample-header p {
    font-size: 0.75rem;
  }

  .sample-header-title h1 {
    font-size: 0.95rem !important;
  }

  /* Step indicators - much smaller on mobile */
  .sample-steps {
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .sample-step {
    padding: 4px 2px;
    min-width: auto;
    flex-shrink: 1;
  }

  .sample-step .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .sample-step .step-label {
    font-size: 0.55rem;
    max-width: 45px;
    text-align: center;
  }

  /* Fix the step line connector - correct class name */
  .step-line {
    width: 12px !important;
    min-width: 12px !important;
    flex-shrink: 1;
  }

  /* Section headers */
  .section-header h2 {
    font-size: 1.1rem;
  }

  .section-header p {
    font-size: 0.8rem;
  }

  /* Package cards - tighter on mobile */
  .package-card {
    padding: 14px;
    box-sizing: border-box;
  }

  .package-badge {
    font-size: 0.6rem;
    padding: 3px 10px;
  }

  .package-name {
    font-size: 1rem;
  }

  .package-desc {
    font-size: 0.8rem;
  }

  .package-price {
    font-size: 1.75rem;
  }

  .package-price span {
    font-size: 0.9rem;
  }

  .package-per {
    font-size: 0.75rem;
  }

  .package-features li {
    font-size: 0.75rem;
    padding: 5px 0;
  }

  .package-features svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .package-cta .btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* Addons row - tighter on mobile */
  .addons-row {
    padding: 14px;
    margin-top: 14px;
    box-sizing: border-box;
  }

  .addons-row-title {
    font-size: 0.95rem;
  }

  .addons-row-desc {
    font-size: 0.75rem;
  }

  .addon-select-item {
    padding: 10px;
  }

  .addon-select-name {
    font-size: 0.8rem;
  }

  .addon-select-desc {
    font-size: 0.65rem;
  }

  .addon-select-price {
    font-size: 0.75rem;
  }

  /* Button group - stack on mobile */
  .button-group {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .button-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Sample page padding */
  .sample-page {
    padding: 14px 0;
  }

  /* Grid fixes */
  .package-grid,
  .package-grid.package-grid-2col {
    grid-template-columns: 1fr !important;
  }

  /* Sample card header - stack on mobile */
  .sample-card-header {
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }

  .sample-card-header-left {
    gap: 8px;
  }

  .sample-icon {
    width: 32px;
    height: 32px;
  }

  .sample-icon svg {
    width: 16px;
    height: 16px;
  }

  .sample-card-info h3 {
    font-size: 0.85rem !important;
    padding-top: 8px !important;
  }

  .sample-card-header-right {
    flex-wrap: wrap;
    gap: 6px;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .sample-test-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .test-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .sample-price-badge {
    font-size: 0.8rem;
    padding: 3px 8px;
    margin-left: auto;
  }

  .expand-icon {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .sample-card {
    position: relative;
  }

  .remove-sample {
    padding: 6px !important;
  }

  .remove-sample svg {
    width: 14px;
    height: 14px;
  }

  .copy-sample {
    padding: 6px !important;
  }

  .copy-sample svg {
    width: 14px;
    height: 14px;
  }

  .sample-validation-badge svg {
    width: 16px;
    height: 16px;
  }

  .sample-delete-confirm {
    flex-wrap: wrap;
    font-size: 13px;
    padding: 10px 12px;
    gap: 8px;
  }

  .sample-delete-confirm-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* Sample card body - tighter on mobile */
  .sample-card-body {
    padding: 12px;
  }

  .sample-card-content {
    padding: 0;
  }

  .form-grid {
    gap: 12px;
  }

  /* Section summary - price total */
  .section-summary {
    font-size: 0.9rem;
  }

  .section-summary .total {
    font-size: 0.85rem;
  }

  /* Step 3 COA Info - mobile fixes */
  .coa-info-notice {
    padding: 14px !important;
  }

  .coa-info-notice p {
    font-size: 0.75rem !important;
  }

  /* Ensure all form inputs fit within viewport */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="file"],
  select,
  textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Checkbox label - allow text to wrap */
  #saveCoaProfileLabel {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  label[for="saveCoaProfile"],
  label:has(#saveCoaProfile) {
    flex-wrap: wrap;
  }

  /* COA profile dropdown/cards */
  .coa-profile-card {
    padding: 10px;
    font-size: 0.85rem;
  }

  /* File input styling */
  input[type="file"] {
    font-size: 0.75rem;
  }
}

/* ============================================
   Custom Dropdown (Analytical Test)
   ============================================ */
.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid hsl(210 20% 90%);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--ssf-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.custom-select-trigger:hover {
  border-color: hsl(210 25% 82%);
}

.custom-select-trigger.active {
  border-color: var(--ssf-primary);
  box-shadow: 0 0 0 3px hsl(220 70% 45% / 0.08);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--ssf-border);
  border-radius: 12px;
  box-shadow: var(--ssf-shadow-lg);
  z-index: 100;
  display: none;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.custom-select-container.open .custom-select-options {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.option-category {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ssf-muted-foreground);
  background: var(--ssf-secondary);
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
}

.option-item {
  padding: 8px 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--ssf-border);
}

.option-item:last-child {
  border-bottom: none;
}

.option-item:hover {
  background: var(--ssf-secondary);
}

.option-item.selected {
  background: hsl(220 70% 45% / 0.05);
  border-left: 3px solid var(--ssf-primary);
}

.option-title {
  font-weight: 600;
  color: var(--ssf-foreground);
  display: inline;
}

.option-desc {
  font-size: 0.8rem;
  color: var(--ssf-muted-foreground);
  display: block;
  line-height: 1.3;
}

/* Inline category label for peptide items */
.option-item .option-category {
  position: static;
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ssf-muted-foreground);
  background: transparent;
  padding: 0;
  margin-left: 0;
  margin-top: 2px;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
}

/* Mobile Responsiveness for Dropdown */
@media (max-width: 640px) {
  .custom-select-trigger {
    padding: 14px 16px; /* Larger touch target */
  }

  .option-item {
    padding: 16px; /* Larger touch target */
  }

  .custom-select-options {
    /* Using absolute positioning but ensuring it respects viewport constraints if needed */
    width: 100%;
    max-height: 50vh;
  }
}

/* ============================================
   Hide Payment Gateway Debug Output
   ============================================ */
/* Hide Clover/FirstData debug output that appears on checkout */
.wc-first-data-clover-credit-card-debug-message,
.sv-wc-payment-gateway-debug-message,
.wc-first-data-debug-message,
[class*="-debug-message"],
.checkout-page-refresh-wrapper > .woocommerce-error:first-child,
.checkout-page-refresh-wrapper > .woocommerce-message:first-child,
.checkout-page-refresh-wrapper > ul.woocommerce-error:first-child {
  display: none !important;
}

/* Style WooCommerce notices that appear at page top - hide default */
body.woocommerce-checkout .woocommerce-NoticeGroup {
  display: none !important;
}

/* ============================================
   Promo Discount Badge (AccuTry50)
   ============================================ */
.promo-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
  animation: promo-pulse 2s ease-in-out infinite;
}

@keyframes promo-pulse {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
  }
  50% {
    box-shadow: 0 2px 16px rgba(5, 150, 105, 0.5);
  }
}

.summary-card.has-promo-discount {
  border: 2px solid #10b981;
  background: linear-gradient(
    135deg,
    rgba(5, 150, 105, 0.03) 0%,
    rgba(16, 185, 129, 0.06) 100%
  );
}

.summary-card.has-promo-discount h4 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-savings-tag {
  display: inline-block;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: 12px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

/* Checkout page promo badge */
.checkout-sidebar .promo-badge,
.order-items-compact .promo-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
}

/* Promo badge inside service tag (AccuTry50 discount indicator) */
.service-tag .promo-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  margin-left: 8px;
  animation: none;
}

.service-line.has-promo-discount {
  background: linear-gradient(
    135deg,
    rgba(5, 150, 105, 0.05) 0%,
    rgba(16, 185, 129, 0.08) 100%
  );
  border-radius: 6px;
  padding: 6px 8px;
  margin: -6px -8px;
}

/* ============================================
   Additional COA Validation Error
   ============================================ */
.sample-card.additional-coa-error {
  border-color: var(--ssf-destructive) !important;
  box-shadow: 0 0 0 3px hsl(0 84% 60% / 0.12), var(--ssf-shadow-card) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================
   Additional COA — Section Wrapper
   ============================================ */
.additional-coa-section {
  border: 1px solid var(--ssf-border);
  border-radius: var(--ssf-radius);
  background: var(--ssf-card);
  margin-bottom: 16px;
  overflow: hidden;
}

.additional-coa-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, hsl(220 30% 97%) 0%, hsl(250 20% 97%) 100%);
  border-bottom: 1px solid var(--ssf-border);
}

.additional-coa-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ssf-foreground);
}

.additional-coa-section-title svg {
  color: var(--ssf-primary);
  flex-shrink: 0;
}

.additional-coa-section-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.additional-coa-section-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ssf-primary);
  font-family: 'JetBrains Mono', monospace;
}

.additional-coa-remove,
.additional-coa-remove:focus,
.additional-coa-remove:active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border: 1px solid var(--ssf-border) !important;
  border-radius: 8px !important;
  background: var(--ssf-card) !important;
  color: var(--ssf-muted-foreground) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
}

.additional-coa-remove:hover {
  color: var(--ssf-destructive) !important;
  border-color: var(--ssf-destructive) !important;
  background: hsl(0 70% 55% / 0.05) !important;
}

.additional-coa-section-body {
  padding: 20px;
}

/* ============================================
   Additional COA — Profile Overlay Modal
   ============================================ */
.acoa-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}

.acoa-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.acoa-overlay-panel {
  background: var(--ssf-background, #fff);
  width: 90vw;
  max-width: 560px;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.acoa-overlay.open .acoa-overlay-panel {
  transform: scale(1) translateY(0);
}

.acoa-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ssf-border);
  flex-shrink: 0;
}

.acoa-overlay-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ssf-foreground);
}

.acoa-overlay-close {
  background: none !important;
  border: none !important;
  padding: 6px !important;
  cursor: pointer !important;
  color: var(--ssf-muted-foreground) !important;
  border-radius: 8px !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: unset !important;
  min-height: unset !important;
  box-shadow: none !important;
}

.acoa-overlay-close:hover {
  background: var(--ssf-secondary) !important;
  color: var(--ssf-foreground) !important;
}

.acoa-overlay-close svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
}

.acoa-overlay-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.acoa-overlay-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--ssf-border);
  flex-shrink: 0;
}

.acoa-overlay-error {
  color: var(--ssf-destructive);
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.acoa-overlay-error.visible {
  display: block;
}

/* ============================================
   Per-Sample Test Options — Read-Only Summary
   ============================================ */
.test-summary {
  padding: 16px;
}

.test-summary-header {
  margin-bottom: 12px;
}

.test-summary-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.test-summary-badge-core {
  background: linear-gradient(135deg, hsl(210 70% 50%) 0%, hsl(220 70% 45%) 100%);
  color: white;
}

.test-summary-badge-accushield {
  background: linear-gradient(135deg, hsl(45 90% 50%) 0%, hsl(35 90% 50%) 100%);
  color: hsl(30 80% 20%);
}

.test-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.test-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--ssf-border);
}

.test-summary-row:last-child {
  border-bottom: none;
}

.test-summary-name {
  font-size: 0.875rem;
  color: var(--ssf-foreground);
  font-weight: 500;
}

.test-summary-bundled {
  font-size: 0.75rem;
  color: hsl(160 60% 35%);
  font-weight: 600;
  font-style: italic;
}

.test-summary-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ssf-foreground);
  font-family: 'JetBrains Mono', monospace;
}

.test-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 0;
  margin-top: 4px;
  border-top: 2px solid var(--ssf-border);
  font-weight: 600;
  color: var(--ssf-foreground);
}

.test-summary-total-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ssf-primary);
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   Per-Sample Test Options — Overlay Modal
   ============================================ */
.test-options-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.test-options-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.test-options-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.test-options-overlay-panel {
  position: relative;
  z-index: 1;
  background: var(--ssf-background, #fff);
  width: 90vw;
  max-width: 880px;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.test-options-overlay.open .test-options-overlay-panel {
  transform: scale(1) translateY(0);
}

.test-options-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ssf-border);
  flex-shrink: 0;
}

.test-options-overlay-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ssf-foreground);
}

.test-options-overlay-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.test-options-overlay-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--ssf-border);
  flex-shrink: 0;
}

/* Ensure overlay package cards work properly */
.test-options-overlay-body .package-grid {
  margin-bottom: 20px;
}

.test-options-overlay-body .addons-row {
  margin-top: 0;
}

.test-options-overlay-body .package-badge {
  padding: 5px 16px;
  font-size: 0.65rem;
  top: -10px;
  line-height: 1;
}

/* ============================================
   Test Options Overlay — Mobile Responsive
   ============================================ */
@media (max-width: 767px) {
  .test-options-overlay-panel {
    width: 95vw;
    max-height: 95vh;
    border-radius: 12px;
  }

  .test-options-overlay-header {
    padding: 16px;
  }

  .test-options-overlay-header h3 {
    font-size: 0.95rem;
  }

  .test-options-overlay-body {
    padding: 16px;
  }

  .test-options-overlay-footer {
    padding: 12px 16px;
  }

  .test-options-overlay-body .package-grid,
  .test-options-overlay-body .package-grid.package-grid-2col {
    grid-template-columns: 1fr !important;
  }

  .test-summary-name {
    font-size: 0.8rem;
  }

  .test-summary-price {
    font-size: 0.8rem;
  }
}

/* ============================================
   Cart Mode: Transition Page
   ============================================ */
.cart-transition-content {
  text-align: center;
  padding: 48px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.cart-transition-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: hsl(160 60% 45% / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  animation: cartTransitionPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-transition-icon svg {
  color: var(--ssf-success, hsl(160, 60%, 45%));
}

.cart-transition-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--ssf-foreground);
}

.cart-transition-desc {
  color: var(--ssf-muted-foreground);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.cart-transition-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.cart-transition-actions .btn-lg {
  min-width: 260px;
  padding: 14px 24px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Top action bar on transition page */
.cart-transition-top-action {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.cart-add-another-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
}

@keyframes cartTransitionPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   Cart Mode: Wizard Stepper
   ============================================ */

/* -------------------------------------------
   Wizard Header Bar
   ------------------------------------------- */
.cart-wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ssf-gradient-primary);
  padding: 14px 20px;
  border-radius: 12px 12px 0 0;
  min-height: 52px;
}

.cart-wizard-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-wizard-header-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--ssf-primary);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  flex-shrink: 0;
}

.cart-wizard-header-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  white-space: nowrap;
}

.cart-wizard-header-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cart-wizard-header-tags .service-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}

.cart-wizard-header-tags .service-tag.tag-core {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(4px);
}

.cart-wizard-header-tags .service-tag.tag-addon {
  background: linear-gradient(135deg, hsl(160 60% 40%) 0%, hsl(180 60% 45%) 100%);
  color: #fff;
}

.cart-wizard-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-wizard-header-price {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
}

.cart-wizard-header-price .price-original {
  text-decoration: line-through;
  opacity: 0.7;
  font-weight: 500;
  font-size: 0.9rem;
  margin-right: 4px;
}

/* Progress line below header */
.cart-wizard-progress-line {
  height: 3px;
  background: var(--ssf-gradient-primary);
  width: 100%;
}

/* -------------------------------------------
   Wizard Shell (card wrapper)
   ------------------------------------------- */
.cart-wizard-shell {
  background: var(--ssf-card);
  border: 1px solid var(--ssf-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--ssf-shadow-card);
  overflow: hidden;
}

/* -------------------------------------------
   Wizard Body: sidebar + content
   ------------------------------------------- */
.cart-wizard-body {
  display: flex;
  flex-direction: row;
  min-height: 400px;
}

/* -------------------------------------------
   Wizard Sidebar (right)
   ------------------------------------------- */
.cart-wizard-sidebar {
  order: 1;
  width: 210px;
  min-width: 210px;
  border-left: 1px solid var(--ssf-border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Sidebar step counter + progress bar */
.cart-wizard-sidebar-progress {
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-wizard-sidebar-progress .cart-wizard-footer-step-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ssf-muted-foreground);
  line-height: 1;
}

.cart-wizard-sidebar-progress .cart-wizard-footer-progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--ssf-muted);
  overflow: hidden;
}

.cart-wizard-sidebar-progress .cart-wizard-footer-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--ssf-gradient-primary);
  transition: width 0.35s ease;
}

/* Individual step item */
.cart-wizard-step {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 16px;
  border-right: 3px solid transparent;
  margin-right: 0;
  cursor: default;
  transition: background 0.15s ease, border-color 0.2s ease;
  position: relative;
}

.cart-wizard-step.completed {
  cursor: pointer;
  border-right-color: var(--ssf-success);
}

.cart-wizard-step.active:not(.completed) {
  cursor: pointer;
  border-right-color: var(--ssf-primary);
}

.cart-wizard-step.active.completed {
  cursor: pointer;
  border-right-color: var(--ssf-success);
}

.cart-wizard-step.upcoming {
  cursor: pointer;
}

.cart-wizard-step.completed:hover,
.cart-wizard-step.active:hover,
.cart-wizard-step.upcoming:hover {
  background: var(--ssf-secondary);
}

/* Step icon box */
.cart-wizard-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-wizard-step.active:not(.completed) .cart-wizard-step-icon {
  background: var(--ssf-primary);
  color: #fff;
}

.cart-wizard-step.completed .cart-wizard-step-icon {
  background: var(--ssf-success);
  color: #fff;
}

.cart-wizard-step.upcoming .cart-wizard-step-icon {
  background: var(--ssf-muted);
  color: var(--ssf-muted-foreground);
}

/* Step text label */
.cart-wizard-step-label {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 1px;
  min-width: 0;
}

.cart-wizard-step-name {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ssf-muted-foreground);
  transition: color 0.2s ease, font-weight 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-wizard-step.active .cart-wizard-step-name {
  color: var(--ssf-foreground);
  font-weight: 700;
}

.cart-wizard-step.completed .cart-wizard-step-name {
  color: var(--ssf-foreground);
  font-weight: 500;
}

.cart-wizard-step.upcoming .cart-wizard-step-name {
  color: var(--ssf-muted-foreground);
  font-weight: 400;
}

.cart-wizard-step-subtitle {
  font-size: 0.6875rem;
  color: var(--ssf-muted-foreground);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------------------------
   Wizard Main Content Area
   ------------------------------------------- */
.cart-wizard-main {
  flex: 1;
  padding: 32px;
  min-width: 0;
}

.cart-wizard-step-header {
  margin-bottom: 24px;
}

.cart-wizard-step-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ssf-foreground);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.cart-wizard-step-header p {
  font-size: 0.875rem;
  color: var(--ssf-muted-foreground);
  margin: 0;
  line-height: 1.5;
}

/* -------------------------------------------
   Wizard Footer
   ------------------------------------------- */
.cart-wizard-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--ssf-border);
  padding: 20px 24px;
}

/* (step counter + progress bar moved to sidebar) */

/* Right side: navigation buttons */
.cart-wizard-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Back button — ghost style (override theme .btn aggressively) */
.cart-wizard-footer .cart-wizard-back,
.cart-wizard-footer .cart-wizard-back:focus,
.cart-wizard-footer .cart-wizard-back:visited,
.cart-wizard-footer .cart-wizard-back:active {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 20px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--ssf-muted-foreground) !important;
  background: transparent !important;
  background-image: none !important;
  border: 1px solid var(--ssf-border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.cart-wizard-footer .cart-wizard-back:hover {
  background: var(--ssf-secondary) !important;
  color: var(--ssf-foreground) !important;
  border-color: var(--ssf-border) !important;
}

.cart-wizard-footer .cart-wizard-back.hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Continue button — primary gradient (override theme .btn aggressively) */
.cart-wizard-footer .cart-wizard-next,
.cart-wizard-footer .cart-wizard-next:focus,
.cart-wizard-footer .cart-wizard-next:visited,
.cart-wizard-footer .cart-wizard-next:active {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 24px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #fff !important;
  background: var(--ssf-gradient-primary) !important;
  background-image: var(--ssf-gradient-primary) !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: var(--ssf-shadow-sm) !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.cart-wizard-footer .cart-wizard-next:hover {
  opacity: 0.92 !important;
  box-shadow: var(--ssf-shadow-card) !important;
  transform: translateY(-1px);
}

.cart-wizard-footer .cart-wizard-next:active {
  transform: translateY(0) !important;
}

/* Final step: "Add Sample to Cart" success/teal variant */
.cart-wizard-footer .cart-wizard-next.cart-wizard-next--final,
.cart-wizard-footer .cart-wizard-next.cart-wizard-next--final:focus,
.cart-wizard-footer .cart-wizard-next.cart-wizard-next--final:visited,
.cart-wizard-footer .cart-wizard-next.cart-wizard-next--final:active {
  background: var(--ssf-success) !important;
  background-image: none !important;
}

/* ============================================
   Cart Mode: Layout Overrides
   ============================================ */

/* Hide original page header in cart mode */
[data-cart-mode="true"] .sample-header {
  display: none;
}

/* Hide step indicators in cart mode */
[data-cart-mode="true"] .sample-steps {
  display: none;
}

/* Hide accordion section headers — wizard sidebar replaces them */
[data-cart-mode="true"] .sample-section-header {
  display: none;
}

/* Remove accordion section chrome in cart mode */
[data-cart-mode="true"] .sample-section {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  background: transparent;
  overflow: visible;
}

[data-cart-mode="true"] .sample-sections-container {
  padding: 0;
}

/* Hide section bodies by default — wizard controls visibility */
[data-cart-mode="true"] .sample-section-body {
  display: none;
}

/* Active wizard step's section body is visible */
[data-cart-mode="true"] .sample-section.wizard-active .sample-section-body {
  display: block;
  max-height: none;
  opacity: 1;
  overflow: visible;
  padding: 16px 0;
}

/* Hide tab panel by default; show when wizard-active */
.cart-tab-panel {
  display: none;
}

.cart-tab-panel.wizard-active {
  display: block;
}

/* Card always expanded in cart mode — remove card chrome */
[data-cart-mode="true"] .sample-card {
  border: none;
  box-shadow: none;
  overflow: visible;
}

[data-cart-mode="true"] .sample-card-body {
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  border-top: none;
}

/* Hide the card header inside the card (moved to wizard header) */
[data-cart-mode="true"] .sample-card > .sample-card-header {
  display: none;
}

/* Hide sample card chevron in cart mode */
[data-cart-mode="true"] .sample-card-header .expand-icon {
  display: none;
}

/* Hide step 1 & 2 nav button groups in cart mode */
[data-cart-mode="true"] #sample-step-1 > .button-group,
[data-cart-mode="true"] #sample-step-2 > .button-group {
  display: none;
}

/* Hide step 1 & 2 section headers in cart mode */
[data-cart-mode="true"] #sample-step-1 > .section-header,
[data-cart-mode="true"] #sample-step-2 > .section-header {
  display: none;
}

/* Hide copy/remove buttons in cart mode (one sample at a time) */
[data-cart-mode="true"] .copy-sample,
[data-cart-mode="true"] .remove-sample {
  display: none;
}

/* -------------------------------------------
   Step content visibility via data attribute
   ------------------------------------------- */
.cart-wizard-main #sample-step-1,
.cart-wizard-main #sample-step-2 {
  display: none;
}

.cart-wizard-main[data-active-step="1"] #sample-step-1 {
  display: block;
}

.cart-wizard-main[data-active-step="2"] #sample-step-2,
.cart-wizard-main[data-active-step="3"] #sample-step-2 {
  display: block;
}

/* -------------------------------------------
   Transition active: hide wizard chrome
   ------------------------------------------- */
[data-cart-mode="true"].cart-transition-active .cart-wizard-header,
[data-cart-mode="true"].cart-transition-active .cart-wizard-progress-line,
[data-cart-mode="true"].cart-transition-active .cart-wizard-shell {
  display: none !important;
}

/* -------------------------------------------
   Review step cards (Step 4)
   ------------------------------------------- */
.review-card {
  border: 1px solid var(--ssf-border);
  border-radius: var(--ssf-radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  background: var(--ssf-card);
}

.review-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ssf-foreground);
  margin: 0 0 12px 0;
}

.review-card p {
  font-size: 0.875rem;
  color: var(--ssf-muted-foreground);
  margin: 0;
}

.review-table {
  width: 100%;
  border-collapse: collapse;
}

.review-table td {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--ssf-muted-foreground);
  border-bottom: 1px solid var(--ssf-border);
}

.review-table tr:last-child td {
  border-bottom: none;
}

.review-table .review-val {
  text-align: right;
  color: var(--ssf-foreground);
  font-weight: 500;
}

.review-table .review-total td {
  font-weight: 700;
  color: var(--ssf-primary);
  border-top: 2px solid var(--ssf-border);
  border-bottom: none;
  padding-top: 12px;
}

/* Step icon SVGs */
.cart-wizard-step-icon svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Responsive: Wizard Stepper
   ============================================ */

/* Tablet: sidebar stacks above content */
@media (max-width: 768px) {
  .cart-wizard-body {
    flex-direction: column;
  }

  .cart-wizard-sidebar {
    order: 0;
    width: 100%;
    min-width: 0;
    border-left: none;
    border-bottom: 1px solid var(--ssf-border);
    padding: 12px 0;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }

  .cart-wizard-step {
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
    border-right: none;
    border-bottom: 3px solid transparent;
    gap: 6px;
    min-width: 0;
    flex-shrink: 0;
  }

  .cart-wizard-step-label {
    align-items: center;
    text-align: center;
  }

  .cart-wizard-step.active:not(.completed) {
    border-right-color: transparent;
    border-bottom-color: var(--ssf-primary);
  }

  .cart-wizard-step.completed {
    border-right-color: transparent;
    border-bottom-color: var(--ssf-success);
  }

  .cart-wizard-step-icon {
    margin-left: 0;
  }

  .cart-wizard-step-name {
    font-size: 0.6875rem;
    text-align: center;
  }

  .cart-wizard-step-subtitle {
    display: none;
  }

  .cart-wizard-main {
    padding: 24px 16px;
  }

  .cart-wizard-footer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 16px;
  }

  .cart-wizard-footer-right {
    justify-content: space-between;
  }

  .cart-wizard-footer-progress {
    width: 100%;
  }
}

/* Small mobile: compact */
@media (max-width: 640px) {
  .cart-wizard-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cart-wizard-header-title {
    font-size: 0.875rem;
  }

  .cart-wizard-header-badge {
    font-size: 0.6875rem;
    padding: 2px 8px;
  }

  .cart-wizard-header-price {
    font-size: 1rem;
  }

  .cart-wizard-step-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.8125rem;
    border-radius: 6px;
  }

  .cart-wizard-step-name {
    font-size: 0.625rem;
  }

  .cart-wizard-main {
    padding: 20px 12px;
  }

  .cart-wizard-step-header h2 {
    font-size: 1.1rem;
  }

  .cart-wizard-footer .cart-wizard-back,
  .cart-wizard-footer .cart-wizard-back:focus,
  .cart-wizard-footer .cart-wizard-back:visited,
  .cart-wizard-footer .cart-wizard-back:active {
    padding: 8px 14px !important;
    font-size: 0.8125rem !important;
  }

  .cart-wizard-footer .cart-wizard-next,
  .cart-wizard-footer .cart-wizard-next:focus,
  .cart-wizard-footer .cart-wizard-next:visited,
  .cart-wizard-footer .cart-wizard-next:active {
    padding: 8px 18px !important;
    font-size: 0.8125rem !important;
  }
}

/* ── Blend analyte quantity inputs ── */
.blend-qty-input.blend-qty-input {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  padding: 7px 4px !important;
  font-size: 13px !important;
  text-align: center !important;
  border-radius: 8px !important;
}

