/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F1F5F9;
  color: #0F172A;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── TOKENS ── */
:root {
  --primary:        #2563EB;
  --primary-dark:   #1D4ED8;
  --primary-light:  #EFF6FF;
  --primary-border: #BFDBFE;
  --accent:         #F59E0B;
  --success:        #10B981;
  --danger:         #EF4444;
  --surface:        #FFFFFF;
  --bg:             #F1F5F9;
  --border:         #E2E8F0;
  --border-hover:   #CBD5E1;
  --text:           #0F172A;
  --text-2:         #334155;
  --text-3:         #64748B;
  --text-4:         #94A3B8;
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.06);
  --shadow:         0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:      0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
  --r:              12px;
  --r-sm:           8px;
  --r-lg:           16px;
  --anim:           350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── HEADER ── */
.header {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 50%, #2563EB 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.625rem; }
.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  display: block;
}
.logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.logo-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.header-right { display: flex; align-items: center; gap: 0.75rem; }
.badge-free {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.header-call {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  transition: background var(--anim);
}
.header-call:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── PROGRESS ── */
.progress-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 61px;
  z-index: 40;
}
.progress-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 0.875rem;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}
.progress-step {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
}
.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #60A5FA);
  border-radius: 99px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── MAIN ── */
.main {
  padding: 1.75rem 0 4rem;
}
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── SLIDES WRAPPER ── */
.slides-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

/* ── SLIDE ── */
.slide {
  width: 100%;
}
.slide--exit-left  { position: absolute; top: 0; left: 0; width: 100%; }
.slide--exit-right { position: absolute; top: 0; left: 0; width: 100%; }

/* ── STEP HEADER ── */
.step-header {
  margin-bottom: 1.75rem;
  text-align: center;
}
.step-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.step-subtitle {
  font-size: 0.875rem;
  color: var(--text-3);
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ── LARGE PRODUCT CARDS (Step 1) ── */
.product-cards {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.product-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.product-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.product-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}
.product-card:active { transform: scale(0.99); }
.pc-icon {
  width: 56px; height: 56px;
  border-radius: var(--r);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.product-card:hover .pc-icon   { background: var(--primary-light); }
.product-card.selected .pc-icon { background: rgba(37,99,235,0.12); }
.pc-icon svg { color: var(--text-3); transition: color 0.2s; }
.product-card:hover .pc-icon svg   { color: var(--primary); }
.product-card.selected .pc-icon svg { color: var(--primary); }
.pc-body { flex: 1; min-width: 0; }
.pc-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.pc-desc {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 400;
}
.product-card.selected .pc-label { color: var(--primary-dark); }
.pc-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.product-card.selected .pc-check {
  background: var(--primary);
  border-color: var(--primary);
}
.pc-check svg { opacity: 0; transition: opacity 0.2s; }
.product-card.selected .pc-check svg { opacity: 1; }
.pc-arrow {
  flex-shrink: 0;
  color: var(--text-4);
  transition: color 0.2s, transform 0.2s;
}
.product-card:hover .pc-arrow { color: var(--primary); transform: translateX(3px); }

/* ── GRID OPTION CARDS (capacity, backup time) ── */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.option-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1rem;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.option-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.option-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}
.option-card:active { transform: scale(0.98); }
.oc-check {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  width: 18px; height: 18px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}
.option-card.selected .oc-check { opacity: 1; transform: scale(1); }
.oc-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.oc-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.option-card.selected .oc-label { color: var(--primary-dark); }
.oc-desc {
  font-size: 0.73rem;
  color: var(--text-3);
  margin-top: 0.25rem;
}

/* ── BRAND CARDS ── */
.brand-cards {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.brand-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 0.875rem 1.25rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.brand-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.brand-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
  transform: none;
}
.brand-card:active { transform: scale(0.99); }
.bc-main-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.bc-dot {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  transition: background 0.2s;
}
.brand-card.selected .bc-dot { background: rgba(37,99,235,0.12); }
.bc-body { flex: 1; min-width: 0; }
.bc-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
}
.brand-card.selected .bc-label { color: var(--primary-dark); }
.bc-desc {
  font-size: 0.75rem;
  color: var(--text-3);
}
.bc-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.brand-card.selected .bc-check {
  background: var(--primary);
  border-color: var(--primary);
}

/* ── INLINE CAPACITY DROPDOWN ── */
.brand-cap-wrap {
  margin-top: 0.125rem;
}
.cap-divider {
  height: 1px;
  background: var(--primary-border);
  margin: 0.875rem 0 0.875rem;
  opacity: 0.6;
}
.cap-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.cap-select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--primary-border);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cap-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* ── SECONDARY CAPACITY (input / select after type pick) ── */
.cap-secondary {
  margin-top: 0.75rem;
}
.cap-label--sm {
  font-size: 0.7rem;
  margin-bottom: 0.4rem;
  color: var(--text-3);
}

/* ── BATTERY COUNT NOTE ── */
.battery-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}
.bn-icon { font-size: 1.35rem; flex-shrink: 0; line-height: 1; }
.bn-body { display: flex; flex-direction: column; gap: 0.1rem; }
.bn-body strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: #92400E;
  letter-spacing: -0.01em;
}
.bn-body span { font-size: 0.75rem; color: #B45309; }

/* ── CONTINUE BUTTON WRAP ── */
#brand-continue-wrap,
#batt-continue-wrap {
  margin-top: 1.25rem;
}

/* ── BATTERY BUYBACK INLINE ── */
.batt-buyback-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.buyback-btn {
  padding: 0.625rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.buyback-btn:hover {
  border-color: var(--primary-border);
  background: var(--primary-light);
}
.buyback-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

/* ── TWO CARDS (buyback Y/N) ── */
.two-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.two-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.two-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.two-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}
.two-card:active { transform: scale(0.98); }
.tc-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  margin: 0 auto 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.2s;
}
.tc-icon.yes { background: #DCFCE7; }
.tc-icon.no  { background: #FEF2F2; }
.two-card.selected .tc-icon { transform: scale(1.05); }
.tc-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.two-card.selected .tc-label { color: var(--primary-dark); }
.tc-desc {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── PILL GRID (AH capacity) ── */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
}
.pill-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.pill-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.pill-card.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.35);
}
.pill-card:active { transform: scale(0.96); }

/* ── QUANTITY SECTION (after AH pill selection) ── */
.qty-section {
  margin-top: 1.25rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
}

/* ── CONTACT FORM ── */
.contact-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.quote-summary {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.qs-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--primary-dark);
  font-weight: 500;
}
.qs-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.form-fields { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-group { display: flex; flex-direction: column; gap: 0.35rem; }
.field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.field-label span { color: var(--danger); margin-left: 2px; }
.field-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.field-input::placeholder { color: var(--text-4); }
.field-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.field-input.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.field-error { font-size: 0.72rem; color: var(--danger); margin-top: 0.15rem; display: none; }
.field-error.show { display: block; }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.45);
}
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-submit .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }

.form-note {
  text-align: center;
  font-size: 0.73rem;
  color: var(--text-4);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.submit-error-msg {
  text-align: center;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.625rem;
  padding: 0.625rem 1rem;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--r-sm);
  line-height: 1.4;
}

/* ── BACK NAV ── */
.back-nav {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-back {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-3);
  font-size: 0.825rem;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.btn-back:hover { color: var(--text); }
.back-hint {
  font-size: 0.73rem;
  color: var(--text-4);
}

/* ── SUCCESS ── */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: opacity 0.35s;
}
.success-overlay.show { opacity: 1; pointer-events: all; }
.success-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-overlay.show .success-card { transform: translateY(0) scale(1); }
.success-ring {
  width: 68px; height: 68px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 10px rgba(16,185,129,0.12);
}
.success-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.success-body {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.success-summary {
  background: var(--bg);
  border-radius: var(--r);
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.7;
}
.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); }

/* ── BATTERY TYPE CARDS ── */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.feature-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.feature-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}
.feature-card:active { transform: scale(0.99); }
.fc-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: background 0.2s;
}
.feature-card.selected .fc-icon { background: rgba(37,99,235,0.12); }
.fc-body { flex: 1; }
.fc-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.feature-card.selected .fc-label { color: var(--primary-dark); }
.fc-desc { font-size: 0.78rem; color: var(--text-3); }
.fc-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.feature-card.selected .fc-check {
  background: var(--primary);
  border-color: var(--primary);
}
.fc-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── PRICE BOX ── */
.price-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid #93C5FD;
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin-top: 0.875rem;
}
.pb-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.pb-amount {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1E3A8A;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.pb-note {
  font-size: 0.75rem;
  color: #1D4ED8;
  margin-bottom: 0.2rem;
  line-height: 1.4;
}
.pb-line {
  font-size: 0.78rem;
  color: #1D4ED8;
  margin-bottom: 0.2rem;
}
.pb-deduct { color: #059669; }
.pb-gst {
  font-size: 0.68rem;
  color: #64748B;
  margin-top: 0.4rem;
}

/* ── UNIT PRICE HINT ── */
.unit-price-hint {
  font-size: 0.75rem;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/* ── QUOTE SUMMARY PRICE ROW ── */
.qs-key {
  font-weight: 600;
  color: var(--primary-dark);
  margin-right: 0.2rem;
}
.qs-price-row {
  width: 100%;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid #93C5FD;
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.625rem;
}
.qs-price-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.qs-price-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1E3A8A;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.qs-price-note {
  font-size: 0.72rem;
  color: #1D4ED8;
  display: block;
  margin-bottom: 0.15rem;
}
.qs-price-gst {
  font-size: 0.65rem;
  color: #64748B;
}

/* ── KEYFRAMES ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide { animation: fadeUp 0.3s ease; }

/* ── QUOTATION OVERLAY ── */
.quot-overlay {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: #dce2ec;
  z-index: 300;
  overflow-y: auto;
}
.quot-overlay.show { display: flex; }

/* Action bar */
.quot-action-bar {
  background: #0B3D91;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
.qab-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.qab-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
}
.qab-btns { display: flex; gap: 0.625rem; }
.btn-dl-pdf {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: #FFFFFF;
  color: #0B3D91;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.btn-dl-pdf:hover { background: #EFF6FF; transform: translateY(-1px); }
.btn-new-quote {
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.btn-new-quote:hover { background: rgba(255,255,255,0.2); }

/* Document wrapper */
.quot-doc-wrap {
  flex: 1;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  justify-content: center;
}

/* The document page */
.quot-page {
  background: #ffffff;
  width: 100%;
  max-width: 760px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.08);
  border-left: 4px solid #0B3D91;
  font-size: 0.85rem;
  color: #1a1a1a;
  line-height: 1.5;
  overflow: hidden;
}

/* ── COMPANY HEADER ── */
.qp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.75rem 2rem 1rem;
  gap: 1.5rem;
}
.qp-logo-col { flex-shrink: 0; }
.qp-logo { height: 90px; width: auto; object-fit: contain; display: block; }
.qp-co-col { text-align: right; }
.qp-co-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0B3D91;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}
.qp-co-line { font-size: 0.74rem; color: #333; line-height: 1.65; }
.qp-co-spacer { height: 0.45rem; }

/* ── QUOTATION BANNER ── */
.qp-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 2rem 1.25rem;
}
.qp-banner-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.qp-banner-lines span {
  display: block;
  height: 2px;
  background: #0B3D91;
  border-radius: 1px;
}
.qp-banner-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 2.1rem;
  font-weight: 400;
  color: #0B3D91;
  white-space: nowrap;
  padding: 0.25rem 1.75rem;
  border: 2px solid #b8ccee;
  border-radius: 60px;
  background: #f8f5ee;
  letter-spacing: 0.02em;
}

/* ── BILL TO + REFERENCE ── */
.qp-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 0.25rem 2rem 1.25rem;
}
.qp-bill { flex: 1; }
.qp-bill-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #777;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.qp-bill-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
}
.qp-bill-sub { font-size: 0.8rem; color: #444; line-height: 1.6; }

.qp-ref { flex-shrink: 0; min-width: 255px; }
.qp-ref-row {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.81rem;
  padding: 0.2rem 0;
}
.qp-ref-k { font-weight: 600; color: #333; white-space: nowrap; }
.qp-ref-v { color: #1a1a1a; font-weight: 500; text-align: right; }
.qp-ref-grand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #EBF0FB;
  border: 1px solid #aec3e8;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}
.qp-ref-grand-k { font-size: 0.82rem; font-weight: 600; color: #0B3D91; white-space: nowrap; }
.qp-ref-grand-v { font-size: 1rem; font-weight: 800; color: #0B3D91; }

/* ── ITEMS TABLE ── */
.qp-items { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.qp-items thead tr {
  border-top: 2px dashed #0B3D91;
  border-bottom: 2px dashed #0B3D91;
}
.qit-h-desc {
  padding: 0.65rem 2rem 0.65rem 2rem;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.88rem;
  text-align: left;
  width: 58%;
}
.qit-h-num {
  padding: 0.65rem 2rem 0.65rem 0;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.88rem;
  text-align: right;
}
.qp-items tbody tr { border-bottom: 1px solid #e8ecf0; }
.qit-td-desc {
  padding: 1rem 1rem 1rem 2rem;
  vertical-align: top;
}
.qit-item-title {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
  line-height: 1.45;
}
.qit-item-desc {
  font-size: 0.77rem;
  color: #555;
  line-height: 1.7;
}
.qit-td-num {
  padding: 1rem 2rem 1rem 0;
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
  color: #1a1a1a;
}

/* ── DASHED SEPARATOR ── */
.qp-dash-sep {
  border: none;
  border-top: 2px dashed #0B3D91;
  margin: 0 2rem;
}

/* ── TOTALS ── */
.qp-totals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.875rem 2rem 1rem;
  gap: 0.3rem;
}
.qp-tot-row {
  display: flex;
  gap: 2.5rem;
  font-size: 0.85rem;
  justify-content: flex-end;
  min-width: 240px;
}
.qp-tot-row > span:first-child { color: #444; flex: 1; text-align: right; padding-right: 1.5rem; }
.qp-tot-row > span:last-child,
.qp-tot-row > strong { min-width: 110px; text-align: right; }
.qp-tot-divider {
  width: 240px;
  height: 1px;
  background: #ccc;
  margin: 0.25rem 0;
}
.qp-tot-grand { margin-top: 0.1rem; }
.qp-tot-grand > span:first-child { font-weight: 700; color: #0B3D91; }
.qp-tot-grand > strong { font-size: 1rem; font-weight: 800; color: #0B3D91; }

/* Free item cells */
.qit-free {
  color: #2E7D32;
  font-weight: 700;
}

/* Price note */
.qp-price-note {
  font-size: 0.72rem;
  color: #666;
  padding: 0.5rem 2rem 0;
  line-height: 1.5;
  font-style: italic;
}

/* ── NOTES ── */
.qp-notes {
  padding: 1.25rem 2rem 1rem;
  border-top: 1px solid #e8ecf0;
  margin-top: 0.5rem;
}
.qp-notes-hd {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}
.qp-note-line { font-size: 0.78rem; color: #333; line-height: 1.85; }

/* ── FOOTER BAR ── */
.qp-foot-bar {
  background: #4CAF50;
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  letter-spacing: 0.02em;
  margin-top: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 540px) {
  .header-inner { padding: 0.75rem 1rem; }
  .header-call span { display: none; }
  .two-cards { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .pill-grid { grid-template-columns: repeat(3, 1fr); }
  .option-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 1.5rem 1.25rem; }
  .step-title { font-size: 1.2rem; }
  .main { padding: 1.25rem 0 3rem; }
  .progress-inner { padding: 0.625rem 1rem 0.75rem; }
  .container { padding: 0 1rem; }

  .qp-head { flex-direction: column-reverse; padding: 1.25rem 1rem 0.75rem; }
  .qp-co-col { text-align: left; }
  .qp-banner { padding: 0.5rem 1rem 1rem; gap: 0.5rem; }
  .qp-banner-title { font-size: 1.45rem; padding: 0.2rem 1rem; }
  .qp-meta { flex-direction: column; padding: 0.5rem 1rem 1rem; gap: 1rem; }
  .qp-ref { min-width: unset; width: 100%; }
  .qit-h-desc, .qit-td-desc { padding-left: 1rem; }
  .qit-h-num, .qit-td-num { padding-right: 1rem; }
  .qp-dash-sep { margin: 0 1rem; }
  .qp-totals { padding: 0.75rem 1rem; }
  .qp-notes { padding: 1rem; }
}
@media (max-width: 400px) {
  .pill-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-sub { display: none; }
}

/* ── PRINT / PDF ── */
@media print {
  @page { size: A4; margin: 10mm; }
  body > * { display: none !important; }
  .quot-overlay { display: flex !important; position: static !important; background: white !important; overflow: visible !important; }
  .no-print { display: none !important; }
  .quot-doc-wrap { padding: 0 !important; background: white !important; }
  .quot-page { box-shadow: none !important; max-width: 100% !important; border-left: 4px solid #0B3D91 !important; }
  .qp-foot-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; background: #4CAF50 !important; }
  .qp-ref-grand { -webkit-print-color-adjust: exact; print-color-adjust: exact; background: #EBF0FB !important; }
}
