/* Simplified ("Quick") calculator, friendly, low-friction UI.
   Reuses .city-* classes from calculator.css; everything else is scoped here. */

.simple-calc {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.simple-hero {
  text-align: center;
  margin-bottom: 24px;
}
.simple-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 8px;
  color: #0f172a;
}
.simple-subtitle {
  color: #475569;
  font-size: 1.05rem;
  margin: 0;
}

.simple-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.simple-field { margin-bottom: 26px; }
.simple-field:last-of-type { margin-bottom: 20px; }

.simple-label {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1e293b;
  margin-bottom: 12px;
}
.simple-hint {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 8px;
}

/* Sliders */
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.simple-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f4f4f5, #18181b);
  outline: none;
}
.simple-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #18181b;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.5);
  cursor: pointer;
}
.simple-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #18181b;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.5);
  cursor: pointer;
}
.slider-out {
  min-width: 84px;
  text-align: right;
  font-weight: 600;
  font-size: 1.1rem;
  color: #18181b;
}
.slider-end {
  font-size: 0.85rem;
  color: #64748b;
  white-space: nowrap;
}

/* Pills (floors) */
.pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.pill-label {
  font-size: 0.9rem;
  color: #475569;
  margin-right: 4px;
}
.pill {
  min-width: 44px;
  padding: 8px 14px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}
.pill:hover { border-color: #d4d4d8; }
.pill.active {
  background: #18181b;
  border-color: #18181b;
  color: #fff;
}

/* Choice cards (wall / heating) */
.card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.choice-card:hover { border-color: #d4d4d8; transform: translateY(-1px); }
.choice-card.active {
  border-color: #18181b;
  background: #fafafa;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.15);
}
.choice-emoji { font-size: 1.6rem; line-height: 1; }
.choice-name { font-size: 0.9rem; font-weight: 600; color: #334155; }

/* Select */
.simple-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  color: #1e293b;
  background: #fff;
  cursor: pointer;
}
.simple-select:focus { outline: none; border-color: #18181b; }

/* CTA */
.simple-cta {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #18181b, #000000);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.simple-cta:hover { background: linear-gradient(135deg, #000000, #000000); }
.simple-cta:disabled { opacity: 0.6; cursor: default; }

/* Result */
.simple-result {
  margin-top: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  padding: 28px 24px;
  text-align: center;
}
.result-headline { margin-bottom: 20px; }
.result-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #18181b, #18181b);
  color: #fff;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 600;
}
.result-lead {
  margin: 12px 0 0;
  color: #475569;
  font-size: 1.05rem;
}
.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.metric {
  padding: 16px 8px;
  background: #f8fafc;
  border-radius: 12px;
}
.metric-value {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 600;
  color: #000000;
}
.metric:nth-child(2) .metric-value { color: #18181b; }
.metric:nth-child(3) .metric-value { color: #7c3aed; }
.metric-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 6px;
}
.result-disclaimer {
  font-size: 0.82rem;
  color: #94a3b8;
  font-style: italic;
  margin: 12px 0 18px;
}
.result-advanced-link {
  display: inline-block;
  padding: 12px 22px;
  border: 1.5px solid #18181b;
  border-radius: 10px;
  color: #18181b;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.result-advanced-link:hover { background: #18181b; color: #fff; }

.simple-error {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  text-align: center;
}

@media (max-width: 480px) {
  .simple-card { padding: 18px 14px; }
  .result-metrics { grid-template-columns: 1fr; }
}

/* Wall layer builder */
.wall-presets { margin-bottom: 16px; }
.wall-presets-label {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 8px;
}
.wall-presets .pill-group { flex-wrap: wrap; margin-top: 0; }
.wall-layers-head {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
}
.wall-layers { display: flex; flex-direction: column; gap: 10px; }
.wall-layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.layer-material {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #1e293b;
  background: #fff;
  cursor: pointer;
}
.layer-material:focus { outline: none; border-color: #18181b; }
.layer-thickness { display: flex; align-items: center; gap: 8px; }
.layer-thickness-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f4f4f5, #18181b);
  outline: none;
}
.layer-thickness-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #18181b; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(24, 24, 27, 0.5); cursor: pointer;
}
.layer-thickness-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #18181b; border: 2px solid #fff; cursor: pointer;
}
.layer-thickness-out {
  min-width: 52px;
  text-align: right;
  font-weight: 600;
  font-size: 0.92rem;
  color: #18181b;
}
.layer-remove {
  width: 30px; height: 30px;
  border: none; border-radius: 8px;
  background: #fee2e2; color: #b91c1c;
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.layer-remove:hover { background: #fecaca; }
.add-layer-btn {
  margin-top: 12px;
  padding: 10px 16px;
  border: 1.5px dashed #d4d4d8;
  border-radius: 10px;
  background: #fff;
  color: #18181b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.add-layer-btn:hover { background: #fafafa; border-color: #18181b; }

@media (max-width: 480px) {
  .wall-layer-row { grid-template-columns: 1fr auto; }
  .wall-layer-row .layer-material { grid-column: 1 / -1; }
}

/* Result conversion actions */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.result-consult-btn {
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #18181b, #000000);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.result-consult-btn:hover { background: linear-gradient(135deg, #000000, #000000); }

/* Live-estimate states */
.simple-live-hint {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  font-style: italic;
}
.simple-result { transition: opacity 0.15s; }
.simple-result.updating { opacity: 0.55; }
.result-tariff-note {
  font-size: 0.82rem;
  color: #475569;
  margin: 4px 0 0;
  line-height: 1.45;
}

/* ============ EDITORIAL THEME (Swiss), flat, hairline, one blue accent ============ */
.simple-card,
.simple-result {
  border: 1px solid #e5e7eb;
  border-radius: 0;
  box-shadow: none;
}
.simple-subtitle { color: #475569; }

/* Sliders: flat neutral track, square accent thumb */
.simple-slider,
.layer-thickness-slider { background: #e5e7eb; }
.simple-slider::-webkit-slider-thumb,
.layer-thickness-slider::-webkit-slider-thumb { border-radius: 0; background: #18181b; box-shadow: none; }
.simple-slider::-moz-range-thumb,
.layer-thickness-slider::-moz-range-thumb { border-radius: 0; background: #18181b; box-shadow: none; }
.slider-out, .layer-thickness-out { color: #18181b; }

/* Pills + choice cards: square, hairline, accent on active */
.pill { border-radius: 0; border-color: #cbd5e1; color: #0f172a; }
.pill:hover { border-color: #0f172a; }
.pill.active { background: #18181b; border-color: #18181b; color: #fff; }
.choice-card { border-radius: 0; }
.choice-card:hover { transform: none; border-color: #cbd5e1; background: #f8fafc; }
.choice-card.active { background: #f8fafc; border-color: #18181b; box-shadow: none; }
.choice-name { color: #0f172a; }

.simple-select,
.layer-material { border-radius: 0; }

/* Wall layer builder */
.wall-layer-row { border-radius: 0; background: #f8fafc; border-color: #e5e7eb; }
.add-layer-btn { border-radius: 0; border-style: solid; border-color: #cbd5e1; color: #18181b; }
.add-layer-btn:hover { background: #f8fafc; border-color: #18181b; }
.layer-remove { border-radius: 0; }

/* Result: flat, ink numbers, savings in accent, metrics framed by hairlines */
.result-badge {
  background: none; color: #0f172a; padding: 0; border-radius: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 600; letter-spacing: -0.01em;
}
.result-lead { color: #475569; }
.result-metrics { gap: 0; border: 1px solid #e5e7eb; }
.metric { background: none; border-radius: 0; border-right: 1px solid #e5e7eb; }
.metric:last-child { border-right: none; }
.metric-value,
.metric:nth-child(2) .metric-value,
.metric:nth-child(3) .metric-value { color: #0f172a; }
.metric:first-child .metric-value { color: #18181b; }
.result-consult-btn { background: #18181b; border-radius: 0; }
.result-consult-btn:hover { background: #000000; }
.result-advanced-link { border-radius: 0; }

@media (max-width: 480px) {
  .result-metrics { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid #e5e7eb; }
  .metric:last-child { border-bottom: none; }
}
