/* ─── WYCENA — wizard styles ──────────────────────────────────────────────── */
/* Reuses CSS variables + nav + .btn from style.css                           */

/* Lucide icons: inherit color + default to 1em (scales with surrounding text) */
[data-lucide], svg.lucide {
  stroke: currentColor;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.12em;
}

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.wycena-hero {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(74,158,255,0.08) 0%, transparent 70%);
}

.wycena-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.75rem 0;
}

.wycena-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.wycena-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.wycena-trust-note {
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 560px;
  margin: 0.85rem auto 0;
  line-height: 1.5;
  opacity: 0.8;
}

.optional-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(74, 158, 255, 0.07);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.sum-cta-pdf {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.btn-pdf {
  white-space: nowrap;
  flex-shrink: 0;
}

.sum-next-hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

/* ─── MAIN / WIZARD WRAP ─────────────────────────────────────────────────── */
.wycena-main {
  padding: 0 1rem 6rem;
}

.wizard {
  max-width: 840px;
  margin: 0 auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

/* ─── PROGRESS ────────────────────────────────────────────────────────────── */
.wiz-progress {
  padding: 1.5rem 2rem 0;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.wiz-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.25rem;
}

.wiz-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  cursor: default;
}

.wiz-step-dot .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.wiz-step-dot .dot-label {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.3s;
}

.wiz-step-dot.active .dot {
  border-color: var(--c-inner);
  background: rgba(74,158,255,0.15);
  color: var(--c-inner);
  box-shadow: 0 0 12px rgba(74,158,255,0.3);
}

.wiz-step-dot.active .dot-label { color: var(--c-inner); }

.wiz-step-dot.done .dot {
  border-color: var(--c-outer);
  background: rgba(45,212,191,0.15);
  color: var(--c-outer);
}

.wiz-track {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-bottom: 0;
  overflow: hidden;
}

.wiz-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-inner), var(--c-outer));
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

/* ─── STEP BODY ───────────────────────────────────────────────────────────── */
.wiz-body {
  padding: 2.5rem 2.5rem 1.5rem;
}

.wiz-step { display: block; }
.wiz-step.hidden { display: none; }

.sh {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sh-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-inner);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.sh h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.sh p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ─── FORM GRIDS ──────────────────────────────────────────────────────────── */
.fg2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.fg3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.fg { display: flex; flex-direction: column; gap: 0.4rem; }
.fg.full { grid-column: 1 / -1; }

.fg label, .fg2 label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}

.fg label em, .fg2 label em {
  color: var(--c-inner);
  font-style: normal;
}

.fg label small {
  font-weight: 400;
  color: var(--muted);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.2); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(74,158,255,0.5);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.1);
}

input.error, select.error, textarea.error {
  border-color: rgba(239,68,68,0.6);
}

.field-error {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.2rem;
  display: block;
}

textarea { resize: vertical; line-height: 1.5; }

/* ─── RADIO PILLS ─────────────────────────────────────────────────────────── */
.radio-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}

.rpill {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.rpill input { display: none; }

.rpill span {
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}

.rpill:hover span {
  border-color: rgba(74,158,255,0.4);
  color: rgba(255,255,255,0.8);
}

.rpill input:checked + span {
  border-color: var(--c-inner);
  background: rgba(74,158,255,0.12);
  color: var(--c-inner);
}

/* ─── INFO BOX ─────────────────────────────────────────────────────────────── */
.info-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-top: 0.5rem;
}

.info-box svg { flex-shrink: 0; opacity: 0.5; }

/* ─── FORM SECTION ────────────────────────────────────────────────────────── */
.fs { margin-bottom: 1.75rem; }

.fs-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
  display: block;
}

.fs-label em {
  color: var(--c-inner);
  font-style: normal;
}

.fs-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* ─── SELECT CARDS ────────────────────────────────────────────────────────── */
.sel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}

.sel-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.sc {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.sel-grid.two-col .sc {
  flex-direction: row;
  text-align: left;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
}

.sc input { display: none; }

.sc-ico {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-ico svg { width: 1.5rem; height: 1.5rem; vertical-align: middle; }
.sel-grid.two-col .sc-ico { font-size: 1.3rem; margin-top: 0.1rem; }
.sel-grid.two-col .sc-ico svg { width: 1.3rem; height: 1.3rem; }

.sc span:last-child {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

.sc span:last-child strong { display: block; color: rgba(255,255,255,0.85); }
.sc span:last-child small { color: var(--muted); font-size: 0.73rem; }

.sc:hover {
  border-color: rgba(74,158,255,0.35);
  background: rgba(74,158,255,0.05);
}

.sc:has(input:checked) {
  border-color: var(--c-inner);
  background: rgba(74,158,255,0.1);
  box-shadow: 0 0 0 1px rgba(74,158,255,0.2);
}

.sc:has(input:checked) span:last-child { color: rgba(255,255,255,0.9); }

/* Stage message */
.stage-msg {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: rgba(74,158,255,0.06);
  border: 1px solid rgba(74,158,255,0.15);
  color: rgba(255,255,255,0.75);
}

/* ─── CHECKBOX CARDS (building features) ─────────────────────────────────── */
.cb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  align-items: start;
}

.cb-detail {
  grid-column: 1 / -1;
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
  animation: fadeIn 0.15s ease;
}
.cb-detail-input {
  width: 100% !important;
  font-size: 0.78rem !important;
  padding: 0.45rem 0.8rem !important;
  border-radius: 7px !important;
  background: rgba(45,212,191,0.05) !important;
  border: 1px solid rgba(45,212,191,0.2) !important;
  color: var(--text) !important;
  font-family: inherit;
}
.cb-detail-input:focus {
  outline: none;
  border-color: rgba(45,212,191,0.5) !important;
  box-shadow: 0 0 0 3px rgba(45,212,191,0.08);
}
.cb-detail-input::placeholder { color: rgba(255,255,255,0.25); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.cb-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.cb-card input { display: none; }

.cb-ico { font-size: 1rem; flex-shrink: 0; display: flex; align-items: center; }
.cb-ico svg { width: 1.1rem; height: 1.1rem; vertical-align: middle; }

.cb-label { display: flex; flex-direction: column; }
.cb-label strong { font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.75); }
.cb-label small { font-size: 0.7rem; color: var(--muted); margin-top: 0.1rem; }

.cb-card:hover {
  border-color: rgba(74,158,255,0.3);
  background: rgba(74,158,255,0.04);
}

.cb-card:has(input:checked) {
  border-color: var(--c-outer);
  background: rgba(45,212,191,0.08);
}

.cb-card:has(input:checked) .cb-label strong { color: var(--c-outer); }

/* ─── ROOMS ───────────────────────────────────────────────────────────────── */
.quick-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.quick-row .fs-hint {
  margin: 0;
  padding-top: 0.35rem;
  flex-shrink: 0;
}

.quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quick-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: rgba(255,255,255,0.6);
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.quick-btn:hover {
  border-color: rgba(74,158,255,0.4);
  color: rgba(255,255,255,0.9);
  background: rgba(74,158,255,0.06);
}
.quick-btn-added {
  border-color: var(--c-outer) !important;
  background: rgba(45,212,191,0.15) !important;
  color: var(--c-outer) !important;
  transition: none !important;
}

.rooms-empty {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 1.5rem;
  text-align: center;
  background: rgba(255,255,255,0.01);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.rooms-list { margin-bottom: 1rem; }

.room-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.room-card:has(.rf-check input:checked) {
  border-color: rgba(74,158,255,0.2);
}

.room-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
}

.room-icon { display: flex; align-items: center; flex-shrink: 0; }
.room-icon svg { width: 1.25rem; height: 1.25rem; vertical-align: middle; }

.room-name {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0;
  outline: none;
  min-width: 0;
}

.room-name:focus {
  color: var(--c-inner);
}

.room-del {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1;
}

.room-del:hover { color: #f87171; background: rgba(239,68,68,0.08); }

.room-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 1rem 0.9rem;
}

.rf-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--muted);
  transition: all 0.18s;
  user-select: none;
}

.rf-check input { display: none; }
.rf-ico { display: inline-flex; align-items: center; line-height: 1; }
/* rf-ico svg inherits 1em from global rule, matching rf-check font-size */

.rf-check:hover {
  border-color: rgba(74,158,255,0.35);
  color: rgba(255,255,255,0.8);
}

.rf-check.checked,
.rf-check:has(input:checked) {
  border-color: var(--c-inner);
  background: rgba(74,158,255,0.1);
  color: rgba(255,255,255,0.9);
}

/* Lighting detail sub-form */
.room-light-detail {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(74,158,255,0.03);
}

.rld-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.rld-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem 1rem;
  align-items: end;
}

.rld-field { display: flex; flex-direction: column; gap: 0.3rem; }
.rld-field label { font-size: 0.72rem; color: var(--muted); }

.rld-field input[type="number"] {
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
}

.dimming-opts {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dim-pill {
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}

.dim-pill input { display: none; }
.dim-pill:has(input:checked) {
  border-color: #f5c842;
  background: rgba(245,200,66,0.1);
  color: #f5c842;
}

/* Sensor / climate option checkboxes inside room detail panels */
.so-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.so-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--muted);
  transition: all 0.15s;
  user-select: none;
}

.so-check input { display: none; }

.so-check:hover {
  border-color: rgba(74,158,255,0.4);
  color: rgba(255,255,255,0.8);
}

.so-check.checked,
.so-check:has(input:checked) {
  border-color: var(--c-middle);
  background: rgba(167,139,250,0.12);
  color: rgba(255,255,255,0.9);
}

.btn-add-room {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 0.25rem;
}

.btn-add-room:hover {
  border-color: rgba(74,158,255,0.4);
  color: rgba(255,255,255,0.8);
  background: rgba(74,158,255,0.04);
}

/* ─── PACKAGE CARDS ───────────────────────────────────────────────────────── */
.preset-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.preset-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.1rem;
  background: rgba(255,255,255,0.02);
  position: relative;
  text-align: center;
  transition: border-color 0.2s;
}

.preset-card.featured {
  border-color: rgba(74,158,255,0.3);
  background: rgba(74,158,255,0.05);
}

.preset-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-inner);
  margin-bottom: 0.4rem;
}

.preset-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.preset-desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.btn-preset {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-preset:hover {
  background: rgba(74,158,255,0.12);
  border-color: rgba(74,158,255,0.4);
  color: var(--c-inner);
}

.preset-card.active {
  border-color: var(--c-outer);
  background: rgba(45,212,191,0.07);
}

.preset-card.active .btn-preset {
  background: rgba(45,212,191,0.15);
  border-color: var(--c-outer);
  color: var(--c-outer);
}

.pkg-divider {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.pkg-divider::before, .pkg-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 90px);
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.pkg-divider::before { left: 0; }
.pkg-divider::after { right: 0; }

.pkg-auto-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--c-outer);
  background: rgba(45,212,191,0.07);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
}
.pkg-auto-banner svg { flex-shrink: 0; }

.pkg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.pkg-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  position: relative;
}

.pkg-card input { display: none; }

.pkg-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.pkg-card.selected {
  border-color: var(--c-inner);
  background: rgba(74,158,255,0.07);
}

.pkg-icon { flex-shrink: 0; margin-top: 0.1rem; display: flex; align-items: center; }
.pkg-icon svg { width: 1.4rem; height: 1.4rem; vertical-align: middle; }

.pkg-info { flex: 1; min-width: 0; }

.pkg-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pkg-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.pkg-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pkg-benefits li {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  padding-left: 1rem;
  position: relative;
}

.pkg-benefits li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.2);
}

.pkg-card.selected .pkg-benefits li::before { color: var(--c-inner); }
.pkg-card.selected .pkg-benefits li { color: rgba(255,255,255,0.6); }

.pkg-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: all 0.2s;
}

.pkg-card.selected .pkg-check {
  background: var(--c-inner);
  border-color: var(--c-inner);
}

.pkg-card.selected .pkg-check svg { stroke: #000; }
.pkg-check svg { opacity: 0; transition: opacity 0.15s; }
.pkg-card.selected .pkg-check svg { opacity: 1; }

/* ─── SUMMARY ─────────────────────────────────────────────────────────────── */
.sum-lead-id {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.sum-lead-id span {
  font-family: monospace;
  color: var(--c-inner);
  font-size: 0.82rem;
}

.sum-price {
  background: linear-gradient(135deg, rgba(74,158,255,0.1), rgba(45,212,191,0.08));
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.sum-price::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% -20%, rgba(74,158,255,0.12), transparent);
  pointer-events: none;
}

.sum-price-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.sum-price-value {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.sum-price-currency { font-size: 1.2rem; font-weight: 400; color: var(--muted); }

.sum-price-orig {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.6;
  margin-bottom: 0.15rem;
}
.sum-price-disc-badge {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 100px;
  padding: 0.15rem 0.55rem;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.ct-orig {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85em;
  opacity: 0.55;
  margin-right: 0.3rem;
}

/* ── Discount row ── */
.discount-row {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.discount-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.discount-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  max-width: 320px;
}
.discount-input {
  flex: 1;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 8px !important;
  font-family: inherit;
  font-size: 0.85rem !important;
  padding: 0.5rem 0.8rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: auto !important;
}
.btn-apply-discount {
  background: rgba(74,158,255,0.12);
  border: 1px solid rgba(74,158,255,0.25);
  border-radius: 8px;
  color: var(--c-inner);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-apply-discount:hover {
  background: rgba(74,158,255,0.2);
  border-color: rgba(74,158,255,0.4);
}
.discount-msg { margin-top: 0.45rem; font-size: 0.8rem; min-height: 1.2em; }
.discount-ok  { color: #4ade80; }
.discount-err { color: #f87171; }

.sum-price-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sum-price-meta span {
  background: rgba(255,255,255,0.05);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

.sum-section {
  margin-bottom: 1.5rem;
}

.sum-section h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sum-pkgs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sum-pkg {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 0.82rem;
}

.sum-pkg strong { display: block; margin-bottom: 0.2rem; }
.sum-pkg-detail { font-size: 0.73rem; color: var(--muted); line-height: 1.45; }
.sum-pkg-ico { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }

.sum-rooms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sum-room-tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.65);
}

.sum-empty {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.sum-breakdown {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.sum-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sum-breakdown-row:last-child { border-bottom: none; }
.sum-breakdown-row .lbl { color: var(--muted); }
.sum-breakdown-row .val { font-weight: 600; color: rgba(255,255,255,0.8); }
.sum-breakdown-row.total { background: rgba(74,158,255,0.06); }
.sum-breakdown-row.total .lbl { color: rgba(255,255,255,0.6); }
.sum-breakdown-row.total .val { color: var(--c-inner); font-size: 0.88rem; }

.sum-disclaimer {
  background: rgba(245,200,66,0.06);
  border: 1px solid rgba(245,200,66,0.15);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.sum-wireless-note {
  background: rgba(74,158,255,0.06);
  border: 1px solid rgba(74,158,255,0.15);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* ─── RODO CONSENT ────────────────────────────────────────────────────────── */
.rodo-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.rodo-block h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.rodo-text {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.rodo-text a { color: var(--c-inner); text-decoration: underline; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  margin-top: 0.15rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.15s;
}

.consent-check input[type="checkbox"]:checked {
  background: var(--c-inner);
  border-color: var(--c-inner);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.consent-check input[type="checkbox"].error {
  border-color: #f87171;
}

.consent-label {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
}

/* ─── COST TABLE ──────────────────────────────────────────────────────────── */
.ct-group {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.ct-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(74,158,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ct-group-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-inner);
}

.ct-group-total {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

.ct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.ct-table thead tr {
  background: rgba(255,255,255,0.03);
}

.ct-table th {
  padding: 0.45rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ct-table th.num, .ct-table td.num { text-align: right; }

.ct-table td {
  padding: 0.55rem 0.75rem;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
  line-height: 1.4;
}

.ct-table tr:last-child td { border-bottom: none; }

.ct-table td.bold { font-weight: 600; color: rgba(255,255,255,0.9); }

.ct-room {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.ct-mult-tag {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--c-middle);
  opacity: 0.85;
  vertical-align: middle;
}

.ct-totals {
  margin-top: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.ct-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ct-total-row:last-child { border-bottom: none; }

.ct-total-row.grand {
  background: linear-gradient(90deg, rgba(74,158,255,0.1), rgba(45,212,191,0.08));
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  padding: 0.8rem 1rem;
}

.ct-note {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 7px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

/* ─── SUMMARY CTA ─────────────────────────────────────────────────────────── */
.sum-cta {
  background: linear-gradient(135deg, rgba(74,158,255,0.06), rgba(45,212,191,0.04));
  border: 1px solid rgba(74,158,255,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.sum-cta h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.sum-cta p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.sum-cta-btns {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Primary submit button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, var(--c-inner) 0%, #2563eb 100%);
  border: none;
  border-radius: 100px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(74,158,255,0.35);
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74,158,255,0.45);
}
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-submit-done {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  box-shadow: 0 4px 20px rgba(22,163,74,0.3) !important;
}

/* Secondary links row */
.sum-cta-secondary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-link {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: color 0.2s;
}
.btn-link:hover { color: rgba(255,255,255,0.8); }
.cta-sep { color: var(--muted); opacity: 0.4; }

.btn-outline {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: rgba(255,255,255,0.6);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
}

/* ─── DECLINE ────────────────────────────────────────────────────────────── */
.sum-decline { text-align: center; margin-top: 0.5rem; margin-bottom: 1rem; }
.btn-decline-toggle {
  background: none; border: none; color: rgba(255,255,255,0.25);
  font-family: inherit; font-size: 0.75rem; cursor: pointer; padding: 0.4rem 0.8rem;
  transition: color 0.2s; text-decoration: underline; text-underline-offset: 3px;
}
.btn-decline-toggle:hover { color: rgba(255,255,255,0.5); }
.decline-form { margin-top: 1rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 1.25rem; text-align: left; }
.decline-hint { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.85rem; }
.decline-reasons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.85rem; }
.decline-reason {
  display: flex; align-items: center; gap: 0.4rem; cursor: pointer;
  font-size: 0.82rem; color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px; padding: 0.35rem 0.85rem; transition: all 0.2s;
}
.decline-reason:has(input:checked) { border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.08); color: #fca5a5; }
.decline-reason input { display: none; }
.decline-msg {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: var(--text); font-family: inherit; font-size: 0.82rem;
  padding: 0.6rem 0.8rem; resize: none; margin-bottom: 0.75rem; box-sizing: border-box;
}
.btn-decline-send {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px; color: #fca5a5; font-family: inherit; font-size: 0.82rem;
  font-weight: 600; padding: 0.5rem 1.2rem; cursor: pointer; transition: all 0.2s;
}
.btn-decline-send:hover { background: rgba(239,68,68,0.2); }
.btn-decline-send:disabled { opacity: 0.5; cursor: not-allowed; }
.decline-done { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 0.5rem 0; }

/* ─── FOOTER NAV ──────────────────────────────────────────────────────────── */
.wiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.wiz-counter {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .wiz-body { padding: 1.5rem 1.25rem 1rem; }
  .wiz-footer { padding: 1rem 1.25rem 1.25rem; }
  .wiz-progress { padding: 1.25rem 1.25rem 0; }

  .fg2, .fg3 { grid-template-columns: 1fr; }
  .sel-grid { grid-template-columns: 1fr 1fr; }
  .sel-grid.two-col { grid-template-columns: 1fr; }
  .cb-grid { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .preset-row { grid-template-columns: 1fr; }
  .sum-pkgs-list { grid-template-columns: 1fr; }
  .rld-grid { grid-template-columns: 1fr 1fr; }

  .wiz-steps { gap: 0; }
  .wiz-step-dot .dot-label { display: none; }
  .wiz-step-dot .dot { width: 24px; height: 24px; font-size: 0.65rem; }

  .sum-price-value { font-size: 1.7rem; }
  .sum-cta-btns { flex-direction: column; }
  .sum-cta-btns .btn, .sum-cta-btns .btn-outline { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .sel-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PDF / PRINT VIEW
───────────────────────────────────────────────────────────────────────────── */

#pdf-view { display: none; }

@media print {
  @page { margin: 1.4cm 1.6cm; size: A4; }

  body { background: #fff !important; color: #111 !important; }

  /* Hide everything except the print view */
  body > *:not(#pdf-view) { display: none !important; }
  #pdf-view { display: block !important; font-family: 'Inter', Arial, sans-serif; font-size: 9pt; color: #111; }

  /* ── Header ── */
  .pdf-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5cm; }
  .pdf-logo   { height: 36pt; width: auto; }
  .pdf-header-right { text-align: right; }
  .pdf-title  { font-size: 14pt; font-weight: 700; letter-spacing: 0.04em; color: #1a1a2e; }
  .pdf-lead   { font-size: 8pt; color: #555; margin-top: 2pt; }

  .pdf-rule   { border: none; border-top: 2px solid #1a1a2e; margin: 0.35cm 0; }

  /* ── Client + Building info grid ── */
  .pdf-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5cm; margin-bottom: 0.5cm; }
  .pdf-info-grid > div { font-size: 8.5pt; line-height: 1.55; }
  .pdf-section-label { font-size: 7pt; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #666; margin-bottom: 2pt; }

  /* ── Itemized table ── */
  .pdf-table { width: 100%; border-collapse: collapse; margin-bottom: 0.4cm; font-size: 8.5pt; }
  .pdf-table thead tr { background: #1a1a2e; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pdf-table thead th { padding: 5pt 7pt; text-align: left; font-weight: 600; font-size: 7.5pt; letter-spacing: 0.04em; }
  .pdf-table thead th.r { text-align: right; }
  .pdf-table tbody tr { border-bottom: 1px solid #e8e8e8; }
  .pdf-table tbody tr:last-child { border-bottom: none; }
  .pdf-table tbody td { padding: 4pt 7pt; vertical-align: top; }
  .pdf-table tbody td.r { text-align: right; white-space: nowrap; }
  .pdf-table tbody td.bold { font-weight: 600; }
  .pdf-room { color: #777; font-size: 7.5pt; }

  /* Category header rows */
  .pdf-table .cat-header td { background: #f0f4ff; font-weight: 700; font-size: 7.5pt;
    letter-spacing: 0.06em; text-transform: uppercase; color: #2a4080; padding: 3pt 7pt;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* ── Totals ── */
  .pdf-totals { margin-left: auto; width: 55%; border-top: 2px solid #1a1a2e; margin-bottom: 0.4cm; }
  .pdf-total-row { display: flex; justify-content: space-between; padding: 3pt 0; font-size: 8.5pt; border-bottom: 1px solid #ddd; }
  .pdf-total-row.grand { font-size: 11pt; font-weight: 700; border-bottom: none; padding-top: 5pt; color: #1a1a2e; }
  .pdf-total-row.pdf-total-strike { color: #999; font-size: 8pt; }
  .pdf-total-row.pdf-total-disc { color: #166534; font-size: 8.5pt; }

  /* ── Note + Footer ── */
  .pdf-note { font-size: 7.5pt; color: #666; line-height: 1.5; margin-bottom: 0.4cm; }
  .pdf-footer { border-top: 1px solid #ccc; padding-top: 0.2cm; font-size: 7.5pt; color: #555; }

  /* Page break helpers */
  .pdf-table { page-break-inside: auto; }
  .pdf-table tr { page-break-inside: avoid; }
}
