/* CLAUDE: All UI control styles.
   Sections (in order):
   1. Progress bar (.progress-row / .progress-seg)
   2. Step wizard cards (.step, .eyebrow, @keyframes fadeUp)
   3. Option cards (.opt-grid, .opt, .opt.selected, .check badge)
   4. Sliders (.slider-block, .slider-readout, .dual-slider, input[type=range])
   5. Input fields (.field, .field-row)
   6. Navigation buttons (.nav-row, .btn, .btn-primary, .btn-ghost)
   7. Result/offer card (.offer-card, .spec-list, .disclaimer, .restart) */

/* ═══ 1. PROGRESS BAR ═══ */
.progress-row { display: flex; gap: 6px; margin: 22px 0 26px; }
.progress-seg { height: 3px; flex: 1; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress-seg .fill { height: 100%; width: 0%; background: var(--accent); transition: width 0.4s ease; }

/* ═══ 2. STEP WIZARD CARDS ═══ */
.step { display: none; }
.step.active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  letter-spacing: 0.06em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 8px; display: block;
}
.step h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 21px;
  font-weight: 600; margin: 0 0 6px; letter-spacing: -0.2px;
}
.step .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; line-height: 1.45; }

/* ═══ 3. OPTION CARDS ═══ */
.opt-grid { display: grid; gap: 10px; }
.opt-grid.two { grid-template-columns: 1fr 1fr; }

.opt {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 14px; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.opt:active { transform: scale(0.98); }
.opt.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0,224,198,0.10), rgba(0,224,198,0.03));
}
.opt .ic { font-size: 22px; flex-shrink: 0; width: 30px; text-align: center; }
.opt .lbl { font-size: 14.5px; font-weight: 500; }
.opt .desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.opt-grid.two .opt { flex-direction: column; text-align: center; padding: 18px 10px; }
.opt-grid.two .opt .ic { width: auto; font-size: 26px; margin-bottom: 4px; }

/* Selected check badge */
.check {
  margin-left: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: transparent;
}
.opt.selected .check { background: var(--accent); border-color: var(--accent); color: #06231f; }

/* ═══ 4. SLIDERS ═══ */
.slider-block { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; }

.slider-readout {
  font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 600;
  color: var(--accent); text-align: center; margin-bottom: 4px;
}
.slider-readout small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.slider-caption { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

input[type=range] {
  width: 100%; height: 4px; border-radius: 2px; background: var(--line);
  -webkit-appearance: none; appearance: none; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent), 0 2px 10px rgba(0,224,198,0.5);
  cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--bg); cursor: pointer;
}
.range-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.dual-slider { margin-top: 18px; }
.dual-slider + .dual-slider { margin-top: 22px; }
.dual-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.dual-label b { color: var(--text); font-family: 'JetBrains Mono', monospace; font-weight: 500; }

/* ═══ 5. INPUT FIELDS ═══ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 13px 14px; font-size: 15px; font-family: inherit;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

/* ═══ 6. NAV BUTTONS ═══ */
.nav-row { display: flex; gap: 10px; margin-top: 26px; }
.btn {
  flex: 1; border: none; border-radius: 14px; padding: 15px 18px;
  font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #06231f; }
.btn-primary:disabled { opacity: 0.35; pointer-events: none; }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); flex: 0 0 52px; }

/* Footer spacer */
.fixed-bottom-spacer { height: 0; }

/* ═══ 7. RESULT / OFFER CARD ═══ */
.offer-card {
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; margin-top: 6px;
  position: relative; overflow: hidden;
}
.offer-card::before {
  content: ""; position: absolute; top: -40%; right: -30%; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,224,198,0.18), transparent 70%);
}
.offer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 18px; position: relative; z-index: 1;
}
.offer-top .tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.05em; }
.offer-price { font-family: 'Space Grotesk', sans-serif; font-size: 38px; font-weight: 700; margin: 2px 0 0; }
.offer-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.offer-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.spec-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 4px; position: relative; z-index: 1; }
.spec-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.spec-row .k { color: var(--muted); }
.spec-row .v { font-weight: 500; text-align: right; }

.disclaimer {
  font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 16px;
  padding: 12px 14px; background: rgba(255,255,255,0.02);
  border-radius: 10px; border: 1px solid var(--line);
}
.disclaimer b { color: var(--accent2); }

.restart {
  display: block; text-align: center; margin: 18px auto 0;
  font-size: 13px; color: var(--muted); text-decoration: underline;
  cursor: pointer; background: none; border: none; font-family: inherit;
}
