/**
 * 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: 900px;
  margin: 0 auto;
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  animation: ssf-fade-in 0.4s ease-out;
}

/* ============================================
   Header with Gradient
   ============================================ */
.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 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: 8px;
}

.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: 48px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 12px;
  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;
  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: center;
  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;
}

.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;
}

.expand-icon {
  color: var(--ssf-muted-foreground);
  transition: transform 0.3s ease;
}

.sample-card.expanded .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;
  opacity: 0;
  border-top: 1px solid var(--ssf-border);
}

.sample-card.expanded .sample-card-body {
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
}

.sample-card-content {
  padding: 24px;
}

/* ============================================
   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 textarea,
.sample-form-container select,
.sample-content input[type="text"],
.sample-content input[type="number"],
.sample-content input[type="email"],
.sample-content textarea,
.sample-content select {
  width: 100% !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 {
  border-color: var(--ssf-destructive) !important;
  background: hsl(0 70% 99%) !important;
}

.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);
  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;
}

.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: var(--ssf-primary-foreground);
}

.total-section p {
  margin: 0;
  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;
  }
}

/* ============================================
   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);
}