/**
 * Adept Quality Services (Adequs)
 * Android App Assets Cost Calculator - Dedicated Stylesheet
 */

:root {
  --aq-primary: #0A2540;
  --aq-secondary: #635BFF;
  --aq-accent: #00AEEF;
  --aq-android: #3DDC84;
  --aq-android-dark: #073042;
  --aq-dark: #0F172A;
  --aq-light: #F8FAFC;
  --aq-border: #E2E8F0;
  --aq-border-dark: rgba(255, 255, 255, 0.1);
  --aq-success: #10B981;
  --aq-warning: #F59E0B;
}

.android-calc-wrapper {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* 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.18);
}

.step-indicator-pill.completed {
  background-color: #ECFDF5;
  color: #059669;
  border-color: #A7F3D0;
}

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

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

/* Selection Cards */
.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 18px rgba(15, 23, 42, 0.06);
}

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

.selection-card.selected-android {
  border-color: #059669;
  background-color: #F0FDF4;
  box-shadow: 0 0 0 1.5px #059669, 0 8px 24px rgba(16, 185, 129, 0.12);
}

.selection-check {
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  border: 1.5px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

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

.selection-checkbox {
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 0.375rem;
  border: 1.5px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

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

/* Package Preset Cards */
.package-card {
  position: relative;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.package-card:hover {
  border-color: #635BFF;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.08);
}

.package-card.active-package {
  border-color: #635BFF;
  background: linear-gradient(180deg, #FAF5FF 0%, #FFFFFF 100%);
  box-shadow: 0 0 0 2px #635BFF, 0 12px 30px rgba(99, 91, 255, 0.14);
}

/* Custom Range Slider */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #E2E8F0;
  outline: none;
  transition: background 0.2s;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0A2540;
  border: 3px solid #3DDC84;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #635BFF;
}

.calc-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0A2540;
  border: 3px solid #3DDC84;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Sticky Estimate Sidebar */
.calc-sticky-sidebar {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.calc-sticky-sidebar::-webkit-scrollbar {
  width: 4px;
}

.calc-sticky-sidebar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

/* Quantity Counter Buttons */
.qty-btn {
  height: 2rem;
  width: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #334155;
  transition: all 0.15s ease;
}

.qty-btn:hover:not(:disabled) {
  background: #EEF2FF;
  border-color: #635BFF;
  color: #635BFF;
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Tooltips */
.calc-tooltip {
  position: relative;
  display: inline-flex;
  cursor: help;
}

.calc-tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  padding: 0.625rem 0.875rem;
  background-color: #0F172A;
  color: #F8FAFC;
  font-size: 0.75rem;
  line-height: 1.4;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.calc-tooltip:hover .calc-tooltip-bubble,
.calc-tooltip:focus .calc-tooltip-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
  pointer-events: auto;
}

/* Print Styles */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  header, footer, .top-trust-banner, .calc-nav-buttons, #leadModal {
    display: none !important;
  }
  .calc-sticky-sidebar {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
