*{box-sizing:border-box}
:root{
  --brand:#c5161d;
  --brand-dark:#911116;
  --text:#121826;
  --muted:#677285;
  --line:#e5e9f0;
  --bg:#f5f7fb;
  --surface:#ffffff;
  --soft:#fafbfe;
  --success:#1e8b59;
  --warn-bg:#fff7f7;
  --tip-bg:#f7fbff;
  --shadow:0 16px 40px rgba(18,24,38,.07);
}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(197,22,29,.07), transparent 24%),
    var(--bg);
}
.app-shell{
  width:min(860px, calc(100% - 20px));
  margin:0 auto;
  padding:26px 0 30px;
}
.hero{
  text-align:center;
  margin-bottom:18px;
}
.badge{
  display:inline-flex;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(197,22,29,.1);
  color:var(--brand);
  font-weight:800;
  font-size:.85rem;
}
h1{
  margin:14px 0 10px;
  font-size:clamp(2rem, 6vw, 3.2rem);
  line-height:1.04;
  letter-spacing:-.03em;
}
.hero p{
  max-width:680px;
  margin:0 auto;
  color:var(--muted);
  line-height:1.75;
}
.card{
  background:var(--surface);
  border:1px solid rgba(255,255,255,.9);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.wizard,.result-card{padding:24px}
.wizard-top,.result-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.eyebrow{
  margin:0 0 6px;
  color:var(--brand);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.78rem;
  font-weight:900;
}
.eyebrow.success{color:var(--success)}
h2{margin:0;font-size:1.45rem}
.soft-pill,.result-chip{
  border-radius:999px;
  padding:8px 12px;
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
}
.soft-pill{background:var(--soft);color:#506078}
.result-chip{background:#eef9f3;color:var(--success)}
.stepper{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:18px 0 22px;
}
.step{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:16px;
  background:var(--soft);
  border:1px solid var(--line);
  color:var(--muted);
}
.step span{
  width:28px;height:28px;border-radius:50%;
  display:grid;place-items:center;
  background:#e8edf5;color:#445068;font-weight:900;
}
.step small{font-size:.88rem;font-weight:800}
.step.active{
  background:#fff7f7;
  border-color:#ffd7d9;
  color:var(--text);
}
.step.active span{background:var(--brand);color:#fff}
.step-panel{display:none;gap:14px}
.step-panel.active{display:grid}
.question-card{
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
label{
  display:grid;
  gap:10px;
  font-weight:760;
}
.label-head{
  line-height:1.45;
  font-size:1rem;
}
.label-head small{
  color:#8a94a8;
  font-weight:700;
}
select,textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  padding:15px 16px;
  font:inherit;
  color:var(--text);
  background:linear-gradient(180deg,#fff,#fcfdff);
  outline:none;
  transition:.18s ease;
}
select{appearance:none;background-image:
  linear-gradient(180deg,#fff,#fcfdff),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23677285' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat,no-repeat;
  background-position:0 0, calc(100% - 16px) 50%;
  padding-right:42px;
}
textarea{min-height:110px;resize:vertical}
select:focus,textarea:focus{
  border-color:rgba(197,22,29,.35);
  box-shadow:0 0 0 4px rgba(197,22,29,.09);
}
.helper-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:8px;
}
.helper-text,.counter{font-size:.8rem;color:#8490a5}
.wizard-actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:20px;
}
button{
  border:0;
  border-radius:16px;
  padding:15px 18px;
  font:inherit;
  font-weight:850;
  cursor:pointer;
  transition:.2s ease;
}
#nextBtn,#submitBtn{
  background:linear-gradient(180deg,#d21c24,#bb141b);
  color:white;
  box-shadow:0 12px 22px rgba(197,22,29,.22);
}
#nextBtn:hover,#submitBtn:hover{transform:translateY(-1px)}
.secondary{
  background:#eef2f8;
  color:#273247;
}
.hidden-btn{display:none}
.hidden{display:none}
.result-card{margin-top:22px}
.summary{
  color:#435065;
  line-height:1.75;
  margin:20px 0;
}
.specs{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.spec-card{
  padding:16px;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--soft);
}
.spec-card span{
  display:block;
  color:var(--muted);
  font-size:.84rem;
  margin-bottom:7px;
}
.spec-card strong{line-height:1.45}
.info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:16px;
}
.info-box{
  padding:18px;
  border-radius:18px;
  border:1px solid var(--line);
}
.info-box h3{margin:0 0 8px}
.info-box p{
  margin:0;
  color:#455267;
  line-height:1.7;
}
.info-box.warn{background:var(--warn-bg);border-color:#ffe1e1}
.info-box.tip{background:var(--tip-bg);border-color:#dfebf9}
.stores{
  margin-top:16px;
  padding:18px;
  border-radius:20px;
  background:#fbfcff;
  border:1px solid var(--line);
}
.stores h3{margin:0 0 8px}
.stores p{
  margin:0;
  color:#556277;
  line-height:1.65;
}
.store-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:14px;
}
.store-card{
  text-decoration:none;
  color:var(--text);
  padding:14px;
  border-radius:15px;
  background:#fff;
  border:1px solid var(--line);
  transition:.18s ease;
}
.store-card:hover{
  transform:translateY(-1px);
  border-color:#ffd0d2;
}
.store-card strong{display:block;margin-bottom:6px}
.store-card span{color:var(--muted);font-size:.86rem}
footer{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
  color:var(--muted);
  font-size:.92rem;
}
footer strong{color:var(--brand)}
@media (max-width:700px){
  .app-shell{width:min(100% - 14px, 860px);padding-top:18px}
  .wizard,.result-card{padding:18px}
  .wizard-top,.result-top{flex-direction:column;align-items:flex-start}
  .stepper,.specs,.info-grid,.store-grid{grid-template-columns:1fr}
  .wizard-actions{flex-direction:column}
  #nextBtn,#submitBtn,.secondary{width:100%}
  .soft-pill,.result-chip{white-space:normal}
}
