/* ===========================
   TEMIZKAR — LIGHT GLASS UI
   Responsive + Modern + Clean
   =========================== */

/* Root */
:root{
  --bg1:#f6f9ff;
  --bg2:#eef3ff;

  --card: rgba(255,255,255,.86);
  --card2: rgba(255,255,255,.94);

  --line: rgba(15,23,42,.12);
  --line2: rgba(15,23,42,.08);

  --text:#0f172a;
  --muted: rgba(15,23,42,.62);

  --brand:#2563eb;
  --brand2:#16a34a;
  --danger:#ef4444;

  --shadow: 0 18px 50px rgba(15,23,42,.10);
  --shadow2: 0 10px 30px rgba(15,23,42,.08);

  --focus: 0 0 0 4px rgba(37,99,235,.18);

  --r12:12px;
  --r14:14px;
  --r18:18px;
  --r22:22px;

  --container: 1180px;

  --t: 180ms;
  --t2: 120ms;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(980px 560px at 95% 8%, rgba(22,163,74,.13), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(239,68,68,.08), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

/* Better selection */
::selection{ background: rgba(37,99,235,.18); }

/* Layout */
.bg{ min-height:100vh; display:flex; }
.wrap{
  width:100%;
  max-width: var(--container);
  margin:0 auto;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding: 18px 16px 24px;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 12px;
  z-index: 50;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding: 12px 14px;
  border-radius: var(--r22);
  border: 1px solid var(--line);

  background: linear-gradient(180deg, var(--card2), var(--card));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}

.logo{
  width:46px;height:46px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow2);
  overflow:hidden;
  flex: 0 0 auto;
}
.logo i{ display:none; }
.logo-img{
  width:100%;
  height:100%;
  display:block;
  object-fit: contain;
  padding: 7px;
}

.brand .title{
  font-weight: 900;
  font-size: 15px;
  letter-spacing:.2px;
  line-height:1.1;
}
.brand .subtitle{
  margin-top:4px;
  font-size: 12.5px;
  color: var(--muted);
}

.badge{
  display:flex;
  align-items:center;
  gap:10px;

  padding: 10px 12px;
  border-radius: 999px;

  border: 1px solid var(--line2);
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 22px rgba(15,23,42,.06);

  color: var(--muted);
  font-size: 12.5px;
  white-space:nowrap;
}
.badge i{ color: rgba(37,99,235,.9); }

/* Main card */
.card{
  margin-top: 16px;
  flex: 1;
  min-height: 0;

  border-radius: var(--r22);
  border: 1px solid var(--line);

  background: linear-gradient(180deg, var(--card2), var(--card));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);

  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.card-head{
  position: sticky;
  top: 0;
  z-index: 40;

  padding: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;

  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
  border-bottom: 1px solid var(--line2);
  backdrop-filter: blur(10px);
}

.hint{
  display:flex;
  align-items:center;
  gap:10px;

  padding: 10px 12px;
  border-radius: var(--r14);

  border: 1px solid var(--line2);
  background: rgba(255,255,255,.70);

  color: var(--muted);
  font-size: 12.5px;
}
.hint i{ color: rgba(37,99,235,.9); }

/* Steps */
.steps{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.step{
  display:flex;
  align-items:center;
  gap:8px;

  padding: 9px 12px;
  border-radius: 999px;

  border: 1px solid var(--line2);
  background: rgba(255,255,255,.70);
  color: var(--muted);
  user-select:none;
  transition: transform var(--t2) ease, border-color var(--t) ease, background var(--t) ease;
}
.step span{
  width:26px;height:26px;
  border-radius: 999px;
  display:grid; place-items:center;

  font-weight: 900;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.95);
  color: rgba(15,23,42,.82);
}
.step small{ font-size:12px; }
.step:hover{ transform: translateY(-1px); }

.step.active{
  color: rgba(15,23,42,.90);
  border-color: rgba(37,99,235,.32);
  background: rgba(37,99,235,.10);
}
.step.active span{
  color:#fff;
  border-color: rgba(255,255,255,.25);
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(22,163,74,1));
}

/* Panels + scroll */
#wizard{
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.panel{
  display:none;
  padding: 18px 16px 14px;
  animation: fadeUp .18s ease;
}
.panel.active{ display:block; }
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}
.panel h2{
  margin:0 0 14px;
  font-size: 16px;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:10px;
}
.panel h2 i{ color: rgba(37,99,235,.92); }

/* Grids */
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 920px){
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
}

/* Picks */
.pick{
  width:100%;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.74);
  color: var(--text);
  border-radius: var(--r18);
  padding: 14px 14px;

  display:flex;
  align-items:center;
  gap: 12px;

  cursor:pointer;
  text-align:left;
  transition: transform var(--t2) ease, border-color var(--t) ease, background var(--t) ease, box-shadow var(--t) ease;
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
}
.pick i{
  width:44px;height:44px;
  border-radius: 14px;
  display:grid; place-items:center;

  background: rgba(255,255,255,.92);
  border: 1px solid var(--line2);
  font-size: 18px;
  color: rgba(37,99,235,.95);
}
.pick b{ display:block; font-size: 14px; }
.pick small{ display:block; color: var(--muted); margin-top: 3px; }

.pick:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.pick:active{ transform: translateY(-1px); }
.pick.selected{
  border-color: rgba(37,99,235,.35);
  background: rgba(37,99,235,.10);
}

/* Fields */
.field{
  display:block;
  border: 1px solid var(--line2);
  border-radius: var(--r18);
  background: rgba(255,255,255,.74);
  padding: 12px 12px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}
.field > span{
  display:block;
  color: var(--muted);
  font-size: 12.5px;
  margin-bottom: 8px;
}

/* Input group */
.input{
  display:flex;
  align-items:center;
  gap:10px;

  border: 1px solid var(--line2);
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  padding: 10px 10px;

  transition: border-color var(--t) ease, box-shadow var(--t) ease, transform var(--t2) ease;
}
.input i{
  opacity:.92;
  color: rgba(37,99,235,.90);
  pointer-events:none;
}
.input input,
.input textarea{
  width:100%;
  border:0;
  outline:none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.input input::placeholder,
.input textarea::placeholder{ color: rgba(15,23,42,.38); }
.input:focus-within{
  border-color: rgba(37,99,235,.45);
  box-shadow: var(--focus);
}

/* Switch */
.switch{ display:flex; flex-direction:column; justify-content:space-between; gap:10px; }
.toggle{ display:flex; align-items:center; justify-content:flex-start; gap:12px; }
.toggle input{ display:none; }

.slider{
  width:56px; height:32px;
  border-radius:999px;
  position:relative;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.90);
  cursor:pointer;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  transition: background var(--t) ease, border-color var(--t) ease;
}
.slider:after{
  content:"";
  position:absolute;
  width:24px;height:24px;
  border-radius:999px;
  left:4px; top:50%;
  transform: translateY(-50%);
  background: rgba(15,23,42,.12);
  box-shadow: 0 10px 20px rgba(15,23,42,.10);
  transition: left var(--t) ease, background var(--t) ease;
}
.toggle input:checked + .slider{
  background: rgba(22,163,74,.14);
  border-color: rgba(22,163,74,.28);
}
.toggle input:checked + .slider:after{
  left: 28px;
  background: rgba(22,163,74,.95);
}

/* Boxes */
.box{
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.72);
  border-radius: var(--r18);
  padding: 12px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}
.box-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
  color: rgba(15,23,42,.92);
}
.box-title i{ color: rgba(37,99,235,.92); }

/* Segmented */
.seg{ display:flex; gap:10px; flex-wrap:wrap; }
.segbtn{ width:auto; padding: 10px 12px; border-radius: 999px; }
.segbtn i{ display:none; }
.segbtn.selected{
  border-color: rgba(22,163,74,.30);
  background: rgba(22,163,74,.12);
}

/* Checks */
.checks{
  display:flex;
  flex-direction:column;
  gap:10px;
  color: rgba(15,23,42,.90);
  font-size: 13px;
}
.checks label{
  display:flex;
  align-items:center;
  gap:10px;

  padding: 10px 10px;
  border-radius: 14px;

  border: 1px solid var(--line2);
  background: rgba(255,255,255,.70);
}
.checks input{
  width:42px;height:18px;
  accent-color: var(--brand);
}

/* Summary */
.summary{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
@media (max-width: 980px){
  .summary{ grid-template-columns: 1fr; }
}

.sum-card{
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.72);
  border-radius: var(--r18);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.sum-title{
  font-weight: 900;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 10px;
}
.sum-title i{ color: rgba(37,99,235,.92); }

.sum-text{
  color: rgba(15,23,42,.82);
  line-height:1.55;
  font-size: 13.5px;
}

.score{ display:flex; flex-direction:column; gap:8px; }
.score-num{
  font-size: 44px;
  font-weight: 950;
  letter-spacing:.4px;
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(22,163,74,1));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.score-sub{
  color: var(--muted);
  font-size: 12.5px;
  line-height:1.4;
}

/* Nav buttons */
.nav{
  margin-top: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 0 2px 2px;
}
.btn{
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.92);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  cursor:pointer;

  display:inline-flex;
  align-items:center;
  gap:10px;

  font-weight: 900;
  transition: transform var(--t2) ease, border-color var(--t) ease, background var(--t) ease, box-shadow var(--t) ease;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.btn:active{ transform: translateY(0); }

.btn.ghost{ background: transparent; box-shadow:none; }
.btn.next{
  border-color: rgba(37,99,235,.30);
  background: rgba(37,99,235,.10);
}
.btn.save{
  border-color: rgba(22,163,74,.28);
  background: rgba(22,163,74,.12);
}

/* Footer */
.foot{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
  padding: 0 2px;
  flex-wrap:wrap;
}
.foot .dot{ margin: 0 8px; opacity:.6; }

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line2);
  color: rgba(15,23,42,.92);
  padding: 12px 14px;
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(15,23,42,.12);
  backdrop-filter: blur(10px);
  display:none;
  z-index: 9999;
}
.toast.show{ display:block; }

/* Scrollbar (nice) */
#wizard::-webkit-scrollbar{ width: 10px; }
#wizard::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.16);
  border-radius: 99px;
  border: 3px solid rgba(255,255,255,.75);
}
#wizard::-webkit-scrollbar-track{ background: transparent; }

/* Accessibility */
button{ font-family: inherit; }
a{ color: inherit; }

/* Extra: prevent icon blocking click */
.input{ position: relative; }
.input i{ pointer-events:none; }

/* Your rows (keep as you had) */
#row_radiators input,
#row_curtains input,
#row_acs input,
#row_soft input{
  pointer-events: auto !important;
}

/* Mobile topbar layout */
@media (max-width: 560px){
  .topbar{
    gap:10px;
    padding:12px;
  }
  .brand{ min-width: 0; }
  .badge{ padding:8px 10px; font-size:12px; }
  .brand .subtitle{ display:none; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}
