/* Step screens: rooms, sizes, floors, estimate. */

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .rooms { grid-template-columns: repeat(3, 1fr); } }
.room {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px 10px 12px; min-height: 118px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.room svg { width: 38px; height: 38px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.room .nm { font-weight: 600; font-size: 15px; line-height: 1.2; }
.room.on { border-color: var(--teal); background: var(--teal-l); }
.room.on svg { stroke: var(--teal-d); }
.room .qty { display: none; align-items: center; gap: 10px; margin-top: 2px; }
.room.on .qty { display: flex; }
.qty button { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1.5px solid var(--teal); background: #fff; color: var(--teal-d); font-weight: 700; line-height: 1; }
.qty span { font-weight: 700; min-width: 12px; }

/* Segmented buttons (sizes, old floor) */
.seg { display: flex; gap: 6px; background: var(--soft); padding: 4px; border-radius: 12px; }
.seg.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 10px 4px; min-height: 48px; font-weight: 600; font-size: 15px; line-height: 1.2; }
.seg button small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--teal-d); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg button[aria-pressed="true"] small { color: var(--teal-d); }

/* Sizes */
.size-row { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.size-row .nm { font-weight: 700; margin-bottom: 10px; }
.custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.custom input { width: 84px; padding: 10px; border: 1.5px solid var(--field); border-radius: 10px; font: inherit; font-size: 16px; text-align: center; }
.custom span { color: var(--muted); }

/* Floors */
.floors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.floor { background: #fff; border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; padding: 0; text-align: left; }
.floor:first-child { grid-column: 1 / -1; }
.floor img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.floor:first-child img { aspect-ratio: 16 / 7; }
.floor .tx, .floor .nm, .floor .bl { display: block; }
.floor .tx { padding: 10px 12px 12px; }
.floor .nm { font-weight: 700; font-size: 17px; }
.floor .bl { color: var(--muted); font-size: 14px; line-height: 1.3; }
.floor.on { border-color: var(--teal); outline: 3px solid var(--teal-l); }
