/**
 * Adept Quality Services (Adequs)
 * CE Marking Cost Calculator - Dedicated Stylesheet
 */

/* ==========================================================================
   1. ROOT VARIABLES & TYPOGRAPHIC RULES
   ========================================================================== */
:root {
  --aq-primary: #0A2540;
  --aq-secondary: #635BFF;
  --aq-accent: #00AEEF;
  --aq-dark: #0F172A;
  --aq-light: #F8FAFC;
  --aq-border: #E2E8F0;
  --aq-border-dark: rgba(255, 255, 255, 0.1);
  --aq-success: #10B981;
  --aq-warning: #F59E0B;
}

/* Base resets & typography */
.ce-calc-wrapper {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ==========================================================================
   2. STEP WIZARD & PROGRESS BAR
   ========================================================================== */
.step-indicator-pill {
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-indicator-pill.active {
  background-color: #0A2540;
  color: #FFFFFF;
  border-color: #0A2540;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
}

.step-indicator-pill.completed {
  background-color: #EEF2FF;
  color: #4F46E5;
  border-color: #C7D2FE;
}

.step-progress-track {
  background: #E2E8F0;
  height: 4px;
  border-radius: 9999px;
  overflow: hidden;
}

.step-progress-fill {
  background: linear-gradient(90deg, #635BFF, #00AEEF);
  height: 100%;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   3. SELECTION CARDS & ACCENT INTERACTIONS
   ========================================================================== */
.selection-card {
  position: relative;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.selection-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.selection-card.selected {
  border-color: #635BFF;
  background-color: #F8FAFC;
  box-shadow: 0 0 0 1px #635BFF, 0 8px 20px rgba(99, 91, 255, 0.08);
}

.selection-card.selected .selection-check {
  background-color: #635BFF;
  border-color: #635BFF;
  color: #FFFFFF;
}

.selection-check {
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  border: 1.5px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Category Grid Card */
.category-card {
  min-height: 100px;
  border: 1.5px solid #E2E8F0;
  background-color: #FFFFFF;
  border-radius: 0.875rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-card:hover {
  border-color: #94A3B8;
  transform: translateY(-2px);
}

.category-card.selected {
  border-color: #0A2540;
  background: #F8FAFC;
  box-shadow: 0 0 0 1.5px #0A2540, 0 8px 20px rgba(10, 37, 64, 0.08);
}

.category-card.selected .category-icon-box {
  background-color: #0A2540;
  color: #FFFFFF;
}

/* Directive Selection Checkbox */
.directive-row {
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.directive-row:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
}

.directive-row.selected {
  border-color: #635BFF;
  background-color: #F5F3FF;
}

/* Service Item Toggle */
.service-toggle-card {
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
}

.service-toggle-card.active {
  border-color: #635BFF;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.06);
}

/* Test Card */
.test-card {
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  border-radius: 0.875rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.test-card:hover {
  border-color: #94A3B8;
  transform: translateY(-2px);
}

.test-card.selected {
  border-color: #00AEEF;
  background-color: #F0F9FF;
  box-shadow: 0 0 0 1px #00AEEF;
}

/* ==========================================================================
   4. STICKY SIDEBAR & FLOATING METRIC CARDS
   ========================================================================== */
.sticky-summary-box {
  position: sticky;
  top: 6.5rem;
  border-radius: 1.25rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

.stat-metric-pill {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
}

/* ==========================================================================
   5. MOBILE FLOATING ESTIMATE BAR
   ========================================================================== */
.mobile-estimate-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding: 0.75rem 1rem;
  z-index: 45;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .mobile-estimate-bar {
    display: none !important;
  }
}

/* ==========================================================================
   6. PACKAGES & RESULT GRIDS
   ========================================================================== */
.pricing-package-card {
  border-radius: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
}

.pricing-package-card.highlight {
  border: 2px solid #635BFF;
  position: relative;
  box-shadow: 0 12px 28px -6px rgba(99, 91, 255, 0.15);
}

/* ==========================================================================
   7. FORM CONTROLS & TOGGLES
   ========================================================================== */
.aq-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.aq-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.aq-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 34px;
}

.aq-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .aq-slider {
  background-color: #635BFF;
}

input:checked + .aq-slider:before {
  transform: translateX(18px);
}

/* ==========================================================================
   8. PRINT & MEDIA QUERIES
   ========================================================================== */
@media print {
  header, footer, .mobile-estimate-bar, .no-print, #leadModal {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .selection-card, .sticky-summary-box {
    border: 1px solid #CCCCCC !important;
    box-shadow: none !important;
  }
}
