.ei-estimator{
  --ei-bg:#0f172a;
  --ei-card:#ffffff;
  --ei-text:#0f172a;
  --ei-muted:#64748b;
  --ei-border:#dbe4f0;
  --ei-accent:#0f766e;
  --ei-accent-strong:#115e59;
  --ei-soft:#f8fafc;
  --ei-warn:#b45309;
  --ei-warn-bg:#fff7ed;
  max-width:1100px;
  margin:0 auto;
  padding:clamp(16px,3vw,32px);
  color:var(--ei-text);
}

.ei-estimator__shell{
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  border:1px solid var(--ei-border);
  border-radius:24px;
  box-shadow:0 20px 60px rgba(15,23,42,.08);
  padding:clamp(18px,4vw,32px);
}

.ei-estimator__header{margin-bottom:20px}
.ei-estimator__eyebrow{
  display:inline-flex;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:700;
  color:var(--ei-accent);
  margin:0 0 8px;
}

.ei-estimator__title{
  margin:0;
  font-size:clamp(1.6rem,3vw,2.7rem);
  line-height:1.06;
}

.ei-estimator__lead{
  margin:10px 0 0;
  color:var(--ei-muted);
  max-width:70ch;
}

.ei-estimator__progress{
  height:10px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
  margin:18px 0 28px;
}

.ei-estimator__progress-bar{
  display:block;
  width:33.333%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--ei-accent),#14b8a6);
  transition:width .25s ease;
}

.ei-estimator__form{
  display:grid;
  gap:18px;
}

.ei-estimator__step{
  background:var(--ei-card);
  border:1px solid var(--ei-border);
  border-radius:20px;
  padding:clamp(16px,3vw,24px);
}

.ei-estimator__step-head{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:18px;
}

.ei-estimator__step-head h3{
  margin:0;
  font-size:1.25rem;
}

.ei-estimator__step-head p,
.ei-estimator__warning,
.ei-estimator__status{
  margin:6px 0 0;
  color:var(--ei-muted);
}

.ei-estimator__step-index{
  width:36px;
  height:36px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--ei-soft);
  color:var(--ei-accent-strong);
  font-weight:700;
  flex:0 0 auto;
}

.ei-estimator__cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.ei-estimator__cards--stack{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.ei-estimator__card{
  position:relative;
  display:flex;
  min-height:64px;
  align-items:center;
  border:1px solid var(--ei-border);
  border-radius:16px;
  background:#fff;
  cursor:pointer;
  overflow:hidden;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}

.ei-estimator__card:hover{
  transform:translateY(-1px);
  border-color:#94a3b8;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}

.ei-estimator__card input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}

.ei-estimator__card span{
  display:block;
  width:100%;
  padding:18px 16px;
  font-weight:600;
}

.ei-estimator__card input:checked + span{
  background:linear-gradient(180deg,rgba(20,184,166,.12),rgba(15,118,110,.08));
  color:var(--ei-accent-strong);
}

.ei-estimator__field{
  display:grid;
  gap:8px;
}

.ei-estimator__field span{
  font-size:.95rem;
  font-weight:600;
}

.ei-estimator__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.ei-estimator__field--full{
  grid-column:1/-1;
}

.ei-estimator__field input,
.ei-estimator__field select{
  width:100%;
  padding:14px 16px;
  border:1px solid var(--ei-border);
  border-radius:14px;
  background:#fff;
  color:var(--ei-text);
  font:inherit;
}

.ei-estimator__field input:focus,
.ei-estimator__field select:focus{
  outline:none;
  border-color:var(--ei-accent);
  box-shadow:0 0 0 4px rgba(15,118,110,.12);
}

.ei-estimator__field input.is-invalid,
.ei-estimator__field select.is-invalid{
  border-color:#dc2626;
  box-shadow:0 0 0 4px rgba(220,38,38,.1);
}

.ei-estimator__actions{
  display:flex;
  justify-content:flex-end;
  margin-top:18px;
}

.ei-estimator__actions--split{
  justify-content:space-between;
  gap:12px;
}

.ei-estimator__button{
  appearance:none;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,var(--ei-accent),#14b8a6);
  color:#fff;
  font-weight:700;
  padding:14px 18px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow:0 10px 24px rgba(15,118,110,.18);
}

.ei-estimator__button:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(15,118,110,.24);
}

.ei-estimator__button--ghost{
  background:#fff;
  color:var(--ei-accent-strong);
  border:1px solid var(--ei-border);
  box-shadow:none;
}

.ei-estimator__button--ghost:hover{
  background:#f8fafc;
}

.ei-estimator__result{
  margin-top:20px;
  background:#0b1220;
  color:#fff;
  border-radius:24px;
  padding:clamp(18px,4vw,28px);
}

.ei-estimator__result-head h3{
  margin:0;
  font-size:1.35rem;
}

.ei-estimator__metrics{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin-top:18px;
}

.ei-estimator__metric{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:16px;
}

.ei-estimator__metric span{
  display:block;
  color:#cbd5e1;
  font-size:.92rem;
  margin-bottom:8px;
}

.ei-estimator__metric strong{
  display:block;
  font-size:1.3rem;
}

.ei-estimator__warning{
  margin-top:16px;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:#e2e8f0;
}

.ei-estimator__warning.is-warning{
  background:var(--ei-warn-bg);
  color:var(--ei-warn);
}

.ei-estimator__warning.is-ok{
  color:#d1fae5;
}

.ei-estimator__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.ei-estimator__status{
  min-height:1.4em;
  margin-top:12px;
}

.ei-estimator__hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
}

@media (max-width: 900px){
  .ei-estimator__metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 720px){
  .ei-estimator__cards,
  .ei-estimator__cards--stack,
  .ei-estimator__grid,
  .ei-estimator__metrics{
    grid-template-columns:1fr;
  }

  .ei-estimator__actions,
  .ei-estimator__actions--split,
  .ei-estimator__cta{
    flex-direction:column;
  }

  .ei-estimator__button{
    width:100%;
  }
}
