/* ===================================================================
   RESPONSEIQ PRICING CALCULATOR - GLASSMORPHIC DESIGN
   =================================================================== */

:root {
  --primary: #00b7ff;
  --primary-glow: rgba(0, 183, 255, 0.4);
  --secondary: #0077cc;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.08);

  --dark-bg: rgba(0, 0, 0, 0.6);
  --darker-bg: rgba(0, 0, 0, 0.8);

  --text-primary: #e1e5eb;
  --text-secondary: #a0aec0;
  --text-muted: #718096;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px var(--primary-glow);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================================================
   RESET & BASE STYLES
   =================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  height: 100dvh; /* iOS Safari dynamic viewport fix */
  overflow-x: hidden;
}

html {
  /* Prevent iOS text size adjustment */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: #000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================================================
   BACKGROUND VIDEO
   =================================================================== */

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh; /* iOS Safari fix */
  object-fit: cover;
  z-index: -1;
  /* Darken to hide AI artifacts while keeping ambient motion */
  filter: brightness(8%) blur(2px);
  /* iOS video rendering fix */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ===================================================================
   HEADER
   =================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--darker-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  /* iOS safe area support */
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-left: max(2rem, env(safe-area-inset-left));
  padding-right: max(2rem, env(safe-area-inset-right));
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 16px var(--primary-glow));
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(1.1);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1rem;
  min-height: 44px; /* iOS minimum tap target */
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--glass-bg);
}

/* ===================================================================
   PROGRESS BAR
   =================================================================== */

.progress-container {
  position: fixed;
  top: 77px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--dark-bg);
  backdrop-filter: blur(12px);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.progress-bar {
  max-width: 1400px;
  margin: 0 auto 1rem;
  height: 4px;
  background: var(--glass-bg);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 33.33%;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px var(--primary-glow);
}

.progress-steps {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.step.active {
  background: var(--glass-hover);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(0, 183, 255, 0.2);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.step.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  box-shadow: var(--shadow-glow);
}

.step-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.step.active .step-label {
  color: var(--primary);
}

/* ===================================================================
   MAIN CONTENT
   =================================================================== */

.main-content {
  margin-top: 220px;
  padding: 2rem;
  min-height: calc(100vh - 300px);
}

.wizard-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.wizard-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.step-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.step-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.step-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
}

/* ===================================================================
   FORM ELEMENTS
   =================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  font-size: 16px; /* Prevents iOS zoom on focus - must be 16px, not 1rem */
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
  min-height: 48px; /* iOS tap target */
  -webkit-appearance: none; /* iOS styling override */
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 183, 255, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===================================================================
   PERSONNEL SLIDER
   =================================================================== */

.personnel-section {
  background: var(--glass-hover);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.personnel-display {
  text-align: center;
  margin-bottom: 1.5rem;
}

.personnel-display #personnelCount {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
  display: block;
  line-height: 1;
}

.personnel-label {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 12px; /* Slightly taller track for easier tapping */
  border-radius: 999px;
  background: var(--glass-bg);
  outline: none;
  margin: 1rem 0;
  touch-action: manipulation;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px; /* iOS minimum tap target */
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  /* Larger visible area for easier dragging */
  border: 4px solid rgba(0, 183, 255, 0.3);
}

.slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
  border-color: var(--primary);
}

.slider::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  border: 4px solid rgba(0, 183, 255, 0.3);
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.slider::-moz-range-thumb:active {
  transform: scale(1.1);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===================================================================
   RADIO CARDS
   =================================================================== */

.radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.radio-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.radio-card input[type="radio"] {
  display: none;
}

.radio-content {
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.radio-card input:checked + .radio-content {
  background: var(--glass-hover);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 183, 255, 0.2);
}

.radio-icon {
  font-size: 2.5rem;
  display: block;
}

.radio-text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

/* ===================================================================
   BILLING TOGGLE
   =================================================================== */

.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  background: var(--glass-bg);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.toggle-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 2rem;
  min-height: 48px; /* iOS minimum tap target */
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.toggle-btn.active {
  background: var(--primary);
  color: #000;
  box-shadow: var(--shadow-glow);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 30px var(--primary-glow), 0 0 40px var(--primary-glow);
  }
}

.badge {
  background: var(--success);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  font-weight: 700;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===================================================================
   MODULE CARDS
   =================================================================== */

.module-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.module-card.required {
  border-color: var(--primary);
  background: rgba(0, 183, 255, 0.05);
  cursor: default;
}

.module-card.selectable:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 183, 255, 0.2);
}

.module-card.selectable .module-checkbox {
  display: none;
}

.module-card.selectable .module-checkbox:checked ~ .module-header {
  opacity: 1;
}

.module-card.selectable .module-checkbox:checked ~ .checkmark {
  opacity: 1;
  transform: scale(1);
}

.module-card.selectable .checkmark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.module-info {
  display: flex;
  gap: 1rem;
  flex: 1;
}

.module-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.module-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.module-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.module-pricing {
  text-align: right;
  flex-shrink: 0;
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  transition: all 0.4s ease;
  position: relative;
}

.price::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  opacity: 0;
  border-radius: 4px;
  filter: blur(8px);
  z-index: -1;
  transition: opacity 0.3s ease;
}

.price.price-updated::after {
  animation: priceFlash 0.6s ease;
}

@keyframes priceFlash {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.required-badge {
  background: var(--primary);
  color: #000;
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ===================================================================
   SETUP OPTIONS
   =================================================================== */

.setup-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.setup-card {
  cursor: pointer;
}

.setup-card input[type="radio"] {
  display: none;
}

.setup-content {
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}

.setup-card input:checked + .setup-content {
  background: var(--glass-hover);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 183, 255, 0.2);
}

.setup-content h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.setup-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.setup-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

/* ===================================================================
   REVIEW GRID
   =================================================================== */

.review-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.review-panel,
.pricing-summary {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.summary-section {
  margin-bottom: 2rem;
}

.summary-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.summary-row span:first-child {
  color: var(--text-secondary);
}

.summary-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===================================================================
   PRICING DETAILS
   =================================================================== */

.pricing-details {
  margin-bottom: 1.5rem;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.pricing-row span:first-child {
  color: var(--text-secondary);
}

.pricing-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.pricing-row.subtotal {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-row.discount span:last-child {
  color: var(--success);
}

.pricing-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.pricing-row.setup {
  color: var(--warning);
}

.pricing-row.grand-total {
  background: var(--glass-hover);
  margin: 0 -2rem;
  padding: 1.5rem 2rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 12px var(--primary-glow);
}

.pricing-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 1rem 0;
}

.pricing-note {
  background: rgba(0, 183, 255, 0.05);
  border-left: 3px solid var(--primary);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.pricing-note p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===================================================================
   BUTTONS
   =================================================================== */

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 1rem 2rem;
  min-height: 48px; /* iOS minimum tap target */
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 183, 255, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--primary);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn-icon {
  font-size: 1.25rem;
}

/* ===================================================================
   STICKY SUMMARY SIDEBAR
   =================================================================== */

.summary-sidebar {
  position: fixed;
  right: 2rem;
  top: 240px;
  width: 300px;
  z-index: 100;
}

.sidebar-content {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.sidebar-stat {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 16px var(--primary-glow);
}

.sidebar-pricing {
  margin-bottom: 1.5rem;
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.sidebar-row.highlight {
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
}

.sidebar-row.highlight .sidebar-price {
  color: var(--success);
}

.sidebar-price {
  font-weight: 700;
  color: var(--primary);
}

.sidebar-modules {
  background: var(--glass-hover);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.modules-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.sidebar-cta {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  box-shadow: var(--shadow-glow);
}

.sidebar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 183, 255, 0.4);
}

/* ===================================================================
   FOOTER
   =================================================================== */

.footer {
  background: var(--darker-bg);
  border-top: 1px solid var(--glass-border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4rem;
}

.footer-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  filter: brightness(1.1);
  opacity: 0.9;
  transition: var(--transition);
}

.footer-logo-img:hover {
  opacity: 1;
  filter: brightness(1.2) drop-shadow(0 0 12px var(--primary-glow));
}

.legal-note {
  background: rgba(0, 183, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2rem;
  line-height: 1.6;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 1400px) {
  .summary-sidebar {
    display: none;
  }
}

@media (max-width: 1024px) {
  .review-grid {
    grid-template-columns: 1fr;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* iOS Safari safe area support - mobile only */
  body {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  /* COMPLETELY HIDE the progress container on mobile */
  .progress-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Main content starts right after header on mobile */
  .main-content {
    margin-top: 70px;
    padding: 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .step-container {
    padding: 1.5rem;
  }

  .step-title {
    font-size: 1.75rem;
  }

  .step-subtitle {
    font-size: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .radio-content {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .setup-options {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .billing-toggle {
    flex-direction: row;
    width: 100%;
    gap: 0.5rem;
  }

  .toggle-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .toggle-btn .badge {
    display: block;
    font-size: 0.65rem;
    margin-top: 2px;
  }

  /* Module card layout for mobile */
  .module-section {
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .module-card {
    padding: 1rem;
  }

  .module-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .module-info {
    gap: 0.75rem;
  }

  .module-pricing {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .module-pricing .price {
    font-size: 1.1rem;
  }

  .module-pricing .price-label {
    font-size: 0.75rem;
  }

  /* Setup cards mobile */
  .setup-card {
    padding: 1rem;
  }

  .setup-content h4 {
    font-size: 1rem;
  }

  .setup-content p {
    font-size: 0.85rem;
  }

  .setup-price {
    font-size: 1.25rem;
  }

  /* Footer safe area */
  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

/* ─── Desktop explicit rules (min-width 769px) ───────────────── */
@media only screen and (min-width: 769px) {
  body {
    padding: 0; /* No safe area padding on desktop */
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.75rem 1rem;
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  .logo-img {
    height: 40px;
  }

  /* Main content closer to header on small phones */
  .main-content {
    margin-top: 60px;
  }

  .step-container {
    padding: 1rem;
  }

  .step-title {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }

  .step-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .footer-logo-img {
    height: 60px;
  }

  .personnel-display #personnelCount {
    font-size: 2.5rem;
  }

  .personnel-section {
    padding: 1rem;
  }

  .module-icon {
    font-size: 1.75rem;
  }

  .module-name {
    font-size: 0.95rem;
  }

  .module-desc {
    font-size: 0.8rem;
  }

  .module-pricing .price {
    font-size: 0.95rem;
  }

  .radio-content {
    padding: 0.75rem 1rem;
  }

  .radio-icon {
    font-size: 1.5rem;
  }

  .radio-text {
    font-size: 0.9rem;
  }

  /* Tighter form spacing */
  .form-grid {
    gap: 1rem;
  }

  .form-group {
    gap: 0.35rem;
  }

  label {
    font-size: 0.8rem;
  }

  /* Compact slider labels */
  .slider-labels {
    font-size: 0.65rem;
  }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
  .main-content {
    margin-top: 55px;
  }

  .step-title {
    font-size: 1.2rem;
  }

  .step-subtitle {
    font-size: 0.8rem;
  }

  .personnel-display #personnelCount {
    font-size: 2rem;
  }

  .module-icon {
    font-size: 1.5rem;
  }

  .module-name {
    font-size: 0.9rem;
  }
}

/* ===================================================================
   ANIMATIONS
   =================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.wizard-step.active {
  animation: fadeInUp 0.4s ease;
}

/* ===================================================================
   UTILITIES
   =================================================================== */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-danger {
  color: var(--danger);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ═══════════════════════════════════════════════════════════════════════
   HAMBURGER MENU - Mobile Navigation (Production)
   ═══════════════════════════════════════════════════════════════════════ */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 183, 255, 0.1);
  border: 1px solid rgba(0, 183, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  z-index: 10001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.hamburger-btn:active {
  background: rgba(0, 183, 255, 0.25);
  transform: scale(0.95);
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  margin: 2.5px 0;
}

.hamburger-btn.active {
  background: rgba(0, 183, 255, 0.2);
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 10, 20, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  padding-top: max(2rem, env(safe-area-inset-top));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.mobile-nav-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 10000;
}

.mobile-nav-close:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.9);
}

.mobile-nav-menu .nav-item {
  width: 100%;
  max-width: 280px;
  padding: 1rem 1.5rem;
  margin: 0.4rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 183, 255, 0.08) 0%, rgba(0, 119, 204, 0.05) 100%);
  border: 1px solid rgba(0, 183, 255, 0.2);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-menu .nav-item:active {
  background: linear-gradient(135deg, rgba(0, 183, 255, 0.2) 0%, rgba(0, 119, 204, 0.15) 100%);
  border-color: rgba(0, 183, 255, 0.4);
  transform: scale(0.98);
}

.mobile-nav-menu .nav-item.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
  color: #000;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .mobile-nav-menu {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .nav-links {
    display: none;
  }
}

/* Desktop: hide hamburger */
@media only screen and (min-width: 769px) {
  .hamburger-btn,
  .mobile-nav-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}
