/* ============================================
   BOOK PUBLISHING COST CALCULATOR — STYLE.CSS
   Modern SaaS Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Primary Palette */
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --primary-glow: rgba(79, 70, 229, 0.25);

  /* Accent */
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;

  /* Success / Info / Danger */
  --success: #10b981;
  --success-light: #34d399;
  --info: #06b6d4;
  --danger: #ef4444;

  /* Neutrals */
  --dark: #0f172a;
  --dark-card: #1e293b;
  --dark-border: #334155;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px var(--primary-glow);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease);
  --transition-base: 0.35s var(--ease);
  --transition-slow: 0.5s var(--ease);
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Global Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--transition-base), color var(--transition-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Utility Classes ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
}

[data-theme="dark"] .glass-card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .bi-sun-fill {
  color: white;
}

/* ---------- Dark Mode Toggle ---------- */
.dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.2rem;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.main-hero-section {
  position: relative;
  padding: 40px 0 40px;
  background: #f9a21b;
  overflow: hidden;
  color: #fff;
}

.hero-section {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(160deg, var(--dark) 0%, #1a1a3e 40%, var(--primary-dark) 100%);
  overflow: hidden;
  color: #fff;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
  color: #fff;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition-fast);
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.trust-badge i {
  color: var(--accent-light);
  font-size: 1rem;
}

/* Hero illustration placeholder */
.hero-illustration {
  position: relative;
}

.hero-illustration .mockup-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-illustration .mockup-card .price-display {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-light);
}

.hero-illustration .mockup-card .price-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.hero-illustration .mockup-line {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.hero-illustration .mockup-line.short {
  width: 60%;
}

.hero-illustration .mockup-line.medium {
  width: 80%;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.wizard-progress-wrapper {
  padding: 30px 0 10px;
  background: var(--bg-body);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition-base);
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  cursor: pointer;
}

.progress-step .step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all var(--transition-base);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.progress-step .step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
  text-align: center;
  transition: color var(--transition-base);
}

/* Progress connector line */
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
  transition: background var(--transition-base);
}

/* Active step */
.progress-step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.progress-step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

/* Completed step */
.progress-step.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.progress-step.completed .step-label {
  color: var(--success);
}

.progress-step.completed:not(:last-child)::after {
  background: var(--success);
}

/* ============================================
   CALCULATOR AREA
   ============================================ */
.calculator-section {
  padding: 40px 0 80px;
}

/* Step Cards */
.step-panel {
  display: none;
  animation: fadeSlideUp 0.45s var(--ease) forwards;
}

.step-panel.active {
  display: block;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.calc-card:hover {
  box-shadow: var(--shadow-lg);
}

.calc-card .card-header-custom {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.calc-card .card-header-custom .step-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.calc-card .card-header-custom h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.calc-card .card-header-custom p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
}

/* Form Controls */
.form-group-custom {
  margin-bottom: 22px;
}

.form-group-custom label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group-custom label .label-icon {
  color: var(--primary-light);
}

.form-control-custom,
.form-select-custom {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control-custom:focus,
.form-select-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

/* Radio / Checkbox Cards */
.option-cards {
  /* display: flex;
  flex-wrap: wrap;
  gap: 12px; */

  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.option-card {
  position: relative;
  cursor: pointer;
  width: 130px;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card .option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 130px;
  height: 130px;
  padding: 14px 10px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: all var(--transition-fast);
  text-align: center;
}

.option-card .option-content i {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.option-card .option-content .option-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.option-card .option-content .option-price {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.option-card:hover .option-content {
  border-color: var(--primary-light);
  background: rgba(79, 70, 229, 0.03);
}

.option-card input:checked~.option-content {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.option-card input:checked~.option-content i {
  color: var(--primary);
}

/* Toggle Switch */
.toggle-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-switch:hover {
  border-color: var(--primary-light);
}

.toggle-switch .toggle-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch .toggle-info .toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(79, 70, 229, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.toggle-switch .toggle-label {
  font-weight: 600;
  font-size: 0.88rem;
}

.toggle-switch .toggle-price {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Custom switch */
.custom-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

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

.custom-switch .slider {
  position: absolute;
  inset: 0;
  background: var(--border-color);
  border-radius: 26px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.custom-switch .slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.custom-switch input:checked+.slider {
  background: var(--primary);
}

.custom-switch input:checked+.slider::before {
  transform: translateX(22px);
}

/* Quantity Slider */
.quantity-slider-container {
  padding: 20px 0;
}

.quantity-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.quantity-display .qty-value {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.quantity-display .qty-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--primary) 0%, var(--border-color) 0%);
  outline: none;
  transition: background var(--transition-fast);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.4);
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.4);
}

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

/* Discount badge */
.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 12px;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* ============================================
   SUMMARY SIDEBAR
   ============================================ */
.summary-card {
  position: sticky;
  top: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.summary-header {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  color: #fff;
  padding: 24px 28px;
}

.summary-header h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.summary-header p {
  font-size: 0.82rem;
  opacity: 0.7;
  margin: 0;
}

.summary-body {
  padding: 24px 28px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.summary-line:last-child {
  border-bottom: none;
}

.summary-line .line-label {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-line .line-label i {
  font-size: 1rem;
  color: var(--primary-light);
  width: 20px;
  text-align: center;
}

.summary-line .line-value {
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.summary-line.discount .line-value {
  color: var(--success);
}

.summary-line.discount .line-label {
  color: var(--success);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}

.summary-total .total-label {
  font-weight: 600;
  font-size: 1rem;
}

.summary-total .total-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.summary-actions {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-per-unit {
  text-align: center;
  padding: 0 28px 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.summary-per-unit span {
  font-weight: 700;
  color: var(--primary);
}

/* Savings */
.savings-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: rgba(16, 185, 129, 0.06);
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
}

.savings-banner i {
  font-size: 1.1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px var(--primary-glow);
  width: 100%;
}

.btn-primary-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.btn-outline-custom:hover {
  background: rgba(79, 70, 229, 0.06);
}

.btn-success-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--success), var(--success-light));
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-success-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

/* Navigation Buttons */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.step-nav .btn-next {
  padding: 12px 32px;
}

.step-nav .btn-prev {
  padding: 12px 24px;
}

/* ============================================
   SHIPPING COMPARE CARDS
   ============================================ */
.shipping-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.shipping-card {
  position: relative;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-card);
}

.shipping-card:hover {
  border-color: var(--primary-light);
}

.shipping-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.shipping-card .ship-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.shipping-card .ship-time {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.shipping-card .ship-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.shipping-card .ship-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 3px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.shipping-card .urgent-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 3px 12px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  animation: pulse-badge 1.5s infinite;
}

/* ============================================
   LEAD CAPTURE MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 95%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 30px 32px;
  text-align: center;
}

.modal-header-custom h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.modal-header-custom p {
  opacity: 0.8;
  font-size: 0.9rem;
  margin: 0;
}

.modal-body-custom {
  padding: 32px;
}

.modal-body-custom .form-group-custom {
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   SUCCESS / FINAL QUOTE
   ============================================ */
.quote-success {
  text-align: center;
  padding: 50px 30px;
  animation: fadeSlideUp 0.5s var(--ease);
}

.quote-success .success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), var(--success-light));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.quote-success h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.quote-success .quote-id {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.quote-success .quote-id strong {
  color: var(--primary);
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
}

/* ============================================
   COST BREAKDOWN (Expandable)
   ============================================ */
.breakdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  cursor: pointer;
  background: rgba(79, 70, 229, 0.04);
  border-top: 1px solid var(--border-color);
  transition: background var(--transition-fast);
  user-select: none;
}

.breakdown-toggle:hover {
  background: rgba(79, 70, 229, 0.08);
}

.breakdown-toggle span {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary);
}

.breakdown-toggle i {
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.breakdown-toggle.open i {
  transform: rotate(180deg);
}

.breakdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.breakdown-content.open {
  max-height: 500px;
}

.breakdown-content .summary-line {
  padding: 8px 28px;
  font-size: 0.82rem;
}

/* ============================================
   TOOLTIPS
   ============================================ */
.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
}

.info-tooltip i {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.info-tooltip:hover i {
  color: var(--primary);
}

.info-tooltip .tooltip-text {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 8px 14px;
  background: var(--dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 400;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.info-tooltip .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--dark);
}

.info-tooltip:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

/* ============================================
   MOBILE STICKY BOTTOM BAR
   ============================================ */
.mobile-summary-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 14px 20px;
}

.mobile-summary-bar .bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-summary-bar .bar-total {
  font-family: 'Outfit', sans-serif;
}

.mobile-summary-bar .bar-total .bar-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mobile-summary-bar .bar-total .bar-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .summary-card {
    position: static;
    margin-top: 30px;
  }

  .mobile-summary-bar {
    display: block;
  }

  body {
    padding-bottom: 80px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .hero-illustration {
    margin-top: 30px;
  }

  .trust-badges {
    gap: 10px;
  }

  .trust-badge {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .calc-card {
    padding: 24px 20px;
  }

  .progress-step .step-label {
    font-size: 0.65rem;
  }

  .progress-step .step-circle {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .progress-step:not(:last-child)::after {
    top: 18px;
  }

  .option-cards {
    justify-content: center;
  }

  .shipping-compare {
    grid-template-columns: 1fr;
  }

  .step-nav {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .step-nav .btn-next,
  .step-nav .btn-prev {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 50px 0 40px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .option-cards {
    justify-content: center;
  }

  .quantity-display .qty-value {
    font-size: 2.4rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.value-animate {
  animation: countUp 0.3s var(--ease);
}

/* Fade in for services */
.service-check {
  transition: all var(--transition-fast);
}

.service-check:hover {
  transform: translateX(4px);
}

/* Print preview placeholder */
.print-preview {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  border: 2px dashed var(--border-color);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .print-preview {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.print-preview:hover {
  border-color: var(--primary-light);
}

.print-preview i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary-light);
}

.print-preview p {
  font-size: 0.88rem;
  font-weight: 500;
}

/* Quick quote id */
.quote-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(79, 70, 229, 0.06);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  font-family: 'Outfit', monospace;
}

/* Footer area */
.footer-section {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.footer-section a {
  color: var(--primary);
  font-weight: 500;
}