/* ===================================================================
   ARTICOCLIMA — Simulador de Instalação
   Estilos dedicados ao simulador.html
   =================================================================== */

/* ─── Hero ─────────────────────────────────────────────── */
.sim-hero {
  background: var(--dark);
  padding: 64px 0 52px;
  text-align: center;
  margin-top: 100px; /* altura do header */
}
.sim-hero .section__tag {
  /* manter estilo laranja padrão — legível em fundo escuro */
  color: var(--primary);
  border-color: rgba(249,115,22,.4);
  background: rgba(249,115,22,.12);
}
.sim-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
  margin: 14px 0 10px;
}
.sim-hero p {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ─── Progress Bar ──────────────────────────────────────── */
.sim-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 0 24px;
  position: sticky;
  top: 100px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.sim-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 32px;
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.sim-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 28px;
  background: var(--gray-light);
}
.sim-step__number {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  background: var(--gray-light);
  color: var(--gray);
  transition: background .25s, color .25s;
}
.sim-step__label {
  font-size: .78rem;
  color: var(--gray);
  font-weight: 500;
  white-space: nowrap;
}
.sim-step.active .sim-step__number {
  background: var(--primary);
  color: var(--white);
}
.sim-step.active .sim-step__label { color: var(--primary); font-weight: 600; }
.sim-step.done .sim-step__number {
  background: var(--dark);
  color: var(--white);
}
.sim-step.done .sim-step__label { color: var(--dark); }

/* ─── Secções ──────────────────────────────────────────── */
.sim-section {
  padding: 56px 0 80px;
  min-height: 50vh;
  background: var(--off-white, #F5F5F7);
}
.sim-section .container { max-width: 780px; }

/* ─── Step 1 — Escolher nº divisões ────────────────────── */
.sim-step1-header {
  text-align: center;
  margin-bottom: 40px;
}
.sim-step1-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.sim-step1-header p { color: var(--gray); max-width: 480px; margin: 0 auto; }

.sim-room-count {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.sim-count-btn {
  width: 88px; height: 88px;
  border-radius: 20px;
  border: 2.5px solid var(--gray-light);
  background: var(--white);
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.sim-count-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(249,115,22,.18);
}
.sim-count-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(249,115,22,.35);
}

/* ─── Step 2 — Detalhes das divisões ───────────────────── */
.sim-step2-header {
  margin-bottom: 28px;
}
.sim-step2-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  color: var(--dark); margin-bottom: 6px;
}
.sim-step2-header p { color: var(--gray); }

/* Selecção de marca */
.sim-brand-block {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.sim-brand-block h3 { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 14px; }
.sim-brand-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sim-brand-btn {
  padding: 9px 22px;
  border-radius: 8px;
  border: 2px solid var(--gray-light);
  background: var(--white);
  font-weight: 600; font-size: .9rem;
  color: var(--dark); cursor: pointer;
  transition: all .2s;
}
.sim-brand-btn:hover { border-color: var(--primary); color: var(--primary); }
.sim-brand-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Cards de divisão */
.sim-room-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border: 1.5px solid var(--gray-light);
}
.sim-room-header {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  background: var(--dark);
}
.sim-room-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sim-room-title { color: var(--white); font-weight: 700; font-size: 1.05rem; }
.sim-room-body { padding: 24px; }

/* Campos */
.sim-field { margin-bottom: 20px; }
.sim-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sim-label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--dark); margin-bottom: 7px;
}
.sim-label--info { color: #5a3e00; }
.sim-input, .sim-select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px; font-size: .95rem;
  color: var(--dark); background: var(--white);
  transition: border-color .2s;
  font-family: 'Inter', sans-serif;
}
.sim-input:focus, .sim-select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.sim-input-unit { position: relative; }
.sim-input-unit .sim-input { padding-right: 44px; }
.sim-unit {
  position: absolute; right: 13px; top: 50%;
  transform: translateY(-50%);
  font-size: .85rem; color: var(--gray); pointer-events: none;
}

/* Botões de tipo */
.sim-type-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sim-type-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-light);
  background: var(--white);
  font-size: .85rem; font-weight: 600;
  color: var(--gray); cursor: pointer;
  transition: all .15s;
}
.sim-type-btn:hover { border-color: var(--primary); color: var(--primary); }
.sim-type-btn.active {
  background: var(--primary); border-color: var(--primary); color: var(--white);
}

/* Toggle */
.sim-toggle-row { display: flex; align-items: center; gap: 12px; }
.sim-toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.sim-toggle input { opacity: 0; width: 0; height: 0; }
.sim-toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--gray-light); border-radius: 24px;
  transition: background .2s;
}
.sim-toggle-slider::before {
  content: '';
  position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: var(--white); border-radius: 50%;
  transition: transform .2s;
}
.sim-toggle input:checked + .sim-toggle-slider { background: var(--primary); }
.sim-toggle input:checked + .sim-toggle-slider::before { transform: translateX(20px); }
.sim-toggle-label { font-size: .85rem; color: var(--gray); }

/* Highlight (open-space) */
.sim-field--highlight {
  background: #FFF7ED; border-radius: 10px;
  padding: 14px 16px; border: 1px solid #FED7AA;
}

/* Tooltip */
.sim-tooltip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px;
  border-radius: 50%; background: var(--gray-light);
  font-size: .7rem; color: var(--gray);
  cursor: help; margin-left: 5px;
  font-style: normal;
}

/* Navegação Step 2 */
.sim-nav-btns {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 32px; gap: 16px;
}
.sim-nav-btns .btn--primary { padding: 14px 32px; font-size: 1rem; }

/* Erros */
.sim-error {
  background: #FEF2F2; border: 1.5px solid #FECACA;
  border-radius: 10px; padding: 14px 18px;
  color: #991B1B; font-size: .9rem;
  margin-bottom: 20px;
}

/* ─── Step 3 — Resultados ───────────────────────────────── */
.sim-section#step3 { background: var(--off-white); }
.sim-section#step3 .container { max-width: 900px; }

.res-section { margin-bottom: 48px; }
.res-main-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem; font-weight: 800; color: var(--dark);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.res-brand-tag {
  font-size: .8rem; font-weight: 700;
  background: var(--primary); color: var(--white);
  border-radius: 20px; padding: 4px 14px;
  font-family: 'Inter', sans-serif;
}

/* Rooms summary */
.res-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.res-room-card {
  background: var(--white); border-radius: 14px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1.5px solid var(--gray-light);
}
.res-room-card__top {
  display: flex; align-items: center; gap: 10px;
}
.res-room-icon { font-size: 1.6rem; flex-shrink: 0; }
.res-room-name {
  flex: 1; font-size: 1rem; font-weight: 700; color: var(--dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.res-room-btu {
  margin-left: auto; text-align: right; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
}
.res-btu-tier {
  font-size: .95rem; font-weight: 700; color: var(--primary);
}
.res-btu-kw { font-size: .78rem; color: var(--gray); }
.res-room-card__details {
  padding-left: 34px; display: flex; flex-direction: column; gap: 2px;
}
.res-room-card__details p { font-size: .82rem; color: var(--gray); margin: 0; }
.res-note { color: #92400E !important; }
.res-btu-raw { font-size: .75rem; color: var(--gray); }

/* Section header */
.res-section-header { margin-bottom: 20px; }
.res-option-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem; font-weight: 800; color: var(--dark); margin-bottom: 6px;
}
.res-option-desc { color: var(--gray); font-size: .9rem; }
.res-tiers-hint {
  margin-top: 10px;
  padding: 10px 14px;
  background: #FFF7ED;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-size: .82rem; color: #7C4A03;
  line-height: 1.5;
}
.res-tiers-hint strong { color: var(--primary); }

/* Tier cards (monosplit) */
.res-tiers { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .res-tiers { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
.res-tier-card {
  background: var(--white); border-radius: 16px;
  border: 1.5px solid var(--gray-light);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.res-tier-header {
  background: var(--dark); padding: 16px 20px;
}
.res-tier-hdr-text { }
/* Product image — full-width at top of card */
.res-tier-img-wrap {
  width: 100%; height: 160px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.res-tier-img-placeholder {
  background: linear-gradient(145deg, #F5F5F7 0%, #E8E3DE 100%);
}
.res-tier-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform .3s ease;
}
.res-tier-card:hover .res-tier-img { transform: scale(1.04); }

.res-tier-badge {
  display: inline-block; background: var(--primary); color: var(--white);
  font-size: .73rem; font-weight: 700;
  border-radius: 20px; padding: 3px 12px; margin-bottom: 8px;
}
.res-tier-name {
  font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 4px;
}
.res-tier-desc { font-size: .8rem; color: rgba(255,255,255,.6); }

.res-tier-rooms { padding: 16px 20px; border-bottom: 1px solid var(--gray-light); flex: 1; }
.res-tier-row {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 8px 12px; align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #F0F0F0;
  font-size: .84rem;
}
.res-tier-row:last-child { border-bottom: none; }
.res-tier-room-name { font-weight: 600; color: var(--dark); }
.res-tier-model { color: var(--gray); font-size: .79rem; }
.res-tier-btu { color: var(--gray); font-size: .79rem; }
.res-tier-price { font-weight: 700; color: var(--dark); white-space: nowrap; }

/* A. "Desde" price section */
.res-tier-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: #F5F5F7;
  font-weight: 700; font-size: .9rem; color: var(--dark);
}
.res-desde-label {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--gray);
}
.res-install-note { font-size: .72rem; color: var(--gray); font-weight: 400; }
.res-total-price { font-size: 1.15rem; color: var(--primary); }

.res-tier-note {
  padding: 10px 20px;
  font-size: .76rem; color: var(--gray);
  border-top: 1px solid var(--gray-light);
}

/* C. Action buttons (Ver Detalhes / Comparar) */
.res-tier-actions {
  display: flex; gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--gray-light);
  background: var(--white);
}
.res-detail-btn, .res-compare-btn {
  flex: 1; padding: 9px 10px;
  border-radius: 8px; font-size: .81rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
  border: 1.5px solid; text-align: center;
  font-family: 'Inter', sans-serif;
}
.res-detail-btn {
  background: var(--white); color: var(--dark);
  border-color: var(--gray-light);
}
.res-detail-btn:hover { border-color: var(--primary); color: var(--primary); }
.res-compare-btn {
  background: var(--white); color: var(--dark);
  border-color: var(--gray-light);
}
.res-compare-btn:hover:not(.active) { border-color: var(--dark); }
.res-compare-btn.active {
  background: var(--primary); border-color: var(--primary); color: var(--white);
}

/* C. Comparison panel */
.res-compare-section {
  background: var(--white); border-radius: 16px;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 20px rgba(249,115,22,.15);
  overflow: hidden; margin-bottom: 24px;
}
.res-compare-header {
  background: var(--primary); padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.res-compare-header h3 { color: var(--white); font-size: .95rem; font-weight: 700; margin: 0; }
.res-compare-clear {
  background: rgba(255,255,255,.2); border: none; color: var(--white);
  font-size: .8rem; font-weight: 600;
  border-radius: 6px; padding: 5px 12px; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background .2s;
}
.res-compare-clear:hover { background: rgba(255,255,255,.35); }
.res-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.res-cmp-card {
  padding: 20px;
  border-right: 1px solid var(--gray-light);
}
.res-cmp-card:last-child { border-right: none; }
.res-cmp-img {
  width: 100%; height: 110px; object-fit: cover;
  border-radius: 8px; margin-bottom: 12px;
  background: #F5F5F7; display: block;
}
.res-cmp-name { font-size: .95rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.res-cmp-badge {
  display: inline-block; background: var(--primary); color: var(--white);
  font-size: .7rem; font-weight: 700;
  border-radius: 20px; padding: 2px 10px; margin-bottom: 10px;
}
.res-cmp-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.res-cmp-since { font-size: .72rem; color: var(--gray); margin-bottom: 12px; }
.res-cmp-features { list-style: none; padding: 0; margin: 0 0 10px; font-size: .8rem; color: var(--gray); }
.res-cmp-features li { padding: 2px 0; }
.res-cmp-features li::before { content: '✓ '; color: var(--primary); font-weight: 700; }
.res-cmp-energy {
  font-size: .79rem; color: var(--dark);
  padding-top: 10px; border-top: 1px solid var(--gray-light);
}

/* C. Detail modal */
.sdm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.sdm-box {
  background: var(--white); border-radius: 20px;
  max-width: 560px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.sdm-top {
  background: var(--dark); padding: 20px 24px;
  border-radius: 20px 20px 0 0;
  display: flex; align-items: flex-start; gap: 16px;
  position: sticky; top: 0; z-index: 1;
}
.sdm-top--no-img { /* header sem thumbnail — só texto + fechar */ }
.sdm-close {
  margin-left: auto; flex-shrink: 0;
  background: rgba(255,255,255,.12); border: none; color: var(--white);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; font-family: 'Inter', sans-serif;
}
.sdm-close:hover { background: rgba(255,255,255,.25); }
.sdm-img-wrap {
  width: 90px; height: 90px; flex-shrink: 0;
  border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.sdm-img { width: 100%; height: 100%; object-fit: cover; }
.sdm-header-text { flex: 1; min-width: 0; }

/* ── Carousel de imagens ── */
.sdm-carousel {
  position: relative;
  background: #fff;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}
.sdm-carousel-track {
  position: relative; width: 100%; height: 100%;
}
.sdm-carousel-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity .45s ease;
  cursor: zoom-in;
  user-select: none;
}
.sdm-carousel-img.active { opacity: 1; }

/* Prev / Next */
.sdm-car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  font-family: 'Inter', sans-serif;
}
.sdm-car-btn:hover { background: rgba(0,0,0,.72); }
.sdm-car-prev { left: 12px; }
.sdm-car-next { right: 12px; }

/* Dots */
.sdm-car-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 7px; z-index: 5;
}
.sdm-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,0,0,.28); cursor: pointer;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.sdm-dot.active { background: var(--primary); transform: scale(1.35); }
.sdm-dot:hover:not(.active) { background: rgba(0,0,0,.55); }

/* ── Zoom lightbox ── */
.sdm-zoom-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.sdm-zoom-img {
  max-width: 100%; max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  cursor: default;
}
.sdm-zoom-close {
  position: fixed; top: 20px; right: 20px;
  background: rgba(255,255,255,.18); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.15rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 2001;
  font-family: 'Inter', sans-serif;
}
.sdm-zoom-close:hover { background: rgba(255,255,255,.35); }
.sdm-badge {
  display: inline-block; background: var(--primary); color: var(--white);
  font-size: .72rem; font-weight: 700;
  border-radius: 20px; padding: 3px 12px; margin-bottom: 8px;
}
.sdm-name { font-size: 1.15rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.sdm-desc { font-size: .8rem; color: rgba(255,255,255,.6); }
.sdm-body { padding: 20px 24px; }
.sdm-price-row {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px;
}
.sdm-desde { font-size: .78rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .3px; }
.sdm-price { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.sdm-iva { font-size: .78rem; color: var(--gray); }
.sdm-install-note { font-size: .78rem; color: var(--gray); margin-bottom: 20px; }
.sdm-section-title {
  font-size: .75rem; font-weight: 700; color: var(--gray);
  text-transform: uppercase; letter-spacing: .5px;
  margin: 16px 0 10px; border-top: 1px solid var(--gray-light); padding-top: 16px;
}
.sdm-section-title:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.sdm-rooms-table { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.sdm-rooms-table th {
  font-size: .74rem; color: var(--gray); font-weight: 600;
  text-align: left; padding: 0 8px 8px 0;
  border-bottom: 1.5px solid var(--gray-light);
}
.sdm-rooms-table td {
  font-size: .83rem; color: var(--dark);
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid #F0F0F0;
  vertical-align: middle;
}
.sdm-rooms-table tr:last-child td { border-bottom: none; }
.sdm-td-price { font-weight: 700; white-space: nowrap; }
.sdm-energy-row { display: flex; gap: 12px; margin-bottom: 4px; }
.sdm-energy-badge {
  flex: 1; background: #F0FDF4; border-radius: 10px;
  padding: 10px 14px; text-align: center;
}
.sdm-energy-label { font-size: .72rem; color: #166534; display: block; margin-bottom: 2px; }
.sdm-energy-val { font-size: 1.1rem; font-weight: 800; color: #166534; }
.sdm-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.sdm-feature-tag {
  background: #F5F5F7; color: var(--dark);
  font-size: .78rem; font-weight: 500;
  border-radius: 6px; padding: 5px 12px;
}
.sdm-cta {
  display: block; text-align: center; margin-top: 20px;
  padding: 13px; border-radius: 10px;
  background: var(--primary); color: var(--white);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: background .2s;
}
.sdm-cta:hover { background: #EA6B0A; }

/* ── Seletor de cor (Stylish / Emura) ── */
.sdm-color-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.sdm-color-btn {
  padding: 7px 16px; border-radius: 8px;
  border: 1.5px solid var(--gray-light);
  background: var(--white); font-size: .85rem; font-weight: 600;
  color: var(--dark); cursor: pointer; transition: all .15s;
  font-family: 'Inter', sans-serif;
}
.sdm-color-btn:hover { border-color: var(--primary); color: var(--primary); }
.sdm-color-btn.active {
  background: var(--primary); border-color: var(--primary); color: var(--white);
}

/* Multisplit card */
.res-multi-card {
  background: var(--white); border-radius: 16px;
  border: 1.5px solid var(--gray-light);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
}
.res-multi-header {
  background: linear-gradient(135deg, #1C1C1E, #2C2C2E);
  padding: 18px 24px;
}
.res-multi-badge {
  display: inline-block; background: var(--primary); color: var(--white);
  font-size: .73rem; font-weight: 700;
  border-radius: 20px; padding: 3px 12px; margin-bottom: 8px;
}
.res-multi-desc { font-size: .82rem; color: rgba(255,255,255,.6); }

.res-multi-outdoor,
.res-multi-indoor { padding: 16px 24px; border-bottom: 1px solid var(--gray-light); }
.res-multi-label {
  font-size: .76rem; font-weight: 700; color: var(--gray);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 10px;
}
.res-multi-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 8px 16px; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #F5F5F5;
  font-size: .84rem;
}
.res-multi-row:last-child { border-bottom: none; }
.res-multi-model { font-weight: 600; color: var(--dark); }
.res-multi-spec { color: var(--gray); font-size: .79rem; }
.res-multi-price { font-weight: 700; color: var(--dark); white-space: nowrap; }

.res-multi-notes { padding: 14px 24px; display: flex; flex-direction: column; gap: 6px; }
.res-multi-note {
  font-size: .83rem; padding: 7px 12px; border-radius: 8px;
}
.res-multi-note--pro { background: #F0FDF4; color: #166534; }
.res-multi-note--info { background: #EFF6FF; color: #1E40AF; }

/* Hybrid / Double Multi */
.res-hybrid-block { padding: 16px 24px; }
.res-hybrid-label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gray); margin-bottom: 10px;
}
.res-hybrid-divider {
  height: 1px; background: var(--gray-light); margin: 0 24px;
}

/* Avisos */
.res-warn, .res-warn-box, .res-coming-box {
  background: var(--white); border-radius: 12px;
  padding: 20px 24px; font-size: .9rem;
}
.res-warn-box { border-left: 4px solid #F59E0B; color: #92400E; }
.res-coming-box { border-left: 4px solid #6B7280; color: var(--gray); }

/* Disclaimer */
.res-disclaimer {
  background: #EFF6FF; border-radius: 12px;
  padding: 16px 20px; font-size: .84rem;
  color: #1E40AF; border: 1px solid #BFDBFE;
  margin-bottom: 32px;
}

/* Acções finais */
.res-actions {
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; text-align: center;
}
.res-switch-brand p { font-size: .88rem; color: var(--gray); margin-bottom: 10px; }
.res-brand-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Override btn--outline para fundo claro nos botões de troca de marca */
.res-brand-btns .btn--outline {
  color: var(--dark);
  border-color: var(--dark);
  background: var(--white);
}
.res-brand-btns .btn--outline:hover {
  background: var(--dark);
  color: var(--white);
}

/* Responsivo */
@media (max-width: 640px) {
  .sim-step { padding: 12px 18px; }
  .sim-step__label { display: none; }
  .sim-field-row { grid-template-columns: 1fr; }
  .res-tier-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .res-tier-row .res-tier-model,
  .res-tier-row .res-tier-btu { grid-column: 1; font-size: .77rem; }
  .res-tier-row .res-tier-price { grid-column: 2; grid-row: 1; }
  .res-multi-row { grid-template-columns: 1fr auto; }
  .res-multi-spec { grid-column: 1; }
  .res-nav-btns { flex-direction: column; }
  .sim-count-btn { width: 72px; height: 72px; font-size: 1.7rem; }
  .res-tier-img-wrap { width: 100%; height: 130px; }
  /* Comparação: scroll horizontal em vez de empilhamento */
  .res-compare-section { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .res-compare-grid { display: flex; flex-wrap: nowrap; width: max-content; }
  .res-cmp-card { min-width: 200px; border-right: 1px solid var(--gray-light); border-bottom: none; }
  .res-cmp-card:last-child { border-right: none; }
  .res-tier-actions { flex-direction: column; gap: 6px; }
  .sdm-box { border-radius: 14px; }
  .sdm-top { border-radius: 14px 14px 0 0; }
  .sdm-img-wrap { width: 72px; height: 72px; }
  .sdm-energy-row { flex-direction: column; }
  .sdm-carousel { height: 220px; }
  .sdm-car-btn { width: 32px; height: 32px; font-size: 1.3rem; }
}

/* =============================================
   IMPRESSÃO / PDF
   ============================================= */
@media print {
  /* Esconder tudo excepto os resultados */
  .header,
  .sim-hero,
  .sim-progress,
  #step1,
  #step2,
  .sim-nav-btns,
  .footer,
  .home-float,
  #simDetailModal,
  .res-tier-actions,
  .res-actions,
  .res-compare-btn,
  .res-detail-btn,
  .res-compare-clear { display: none !important; }

  body { background: white; font-size: 13px; }
  #step3 { display: block !important; }

  .res-tier-card,
  .res-room-card,
  .res-multi-card { break-inside: avoid; page-break-inside: avoid; }

  .res-compare-section { break-inside: avoid; }

  .print-header { display: flex !important; }
}

/* Cabeçalho de impressão — escondido no ecrã, visível no PDF */
.print-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid #F97316;
  gap: 16px;
}
.print-header__logo { flex-shrink: 0; }
.print-header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: .85rem;
  color: #1C1C1E;
  font-family: 'Inter', sans-serif;
}

/* ══════════════════════════════════════════
   SELECIONAR PARA ORÇAMENTO
   ══════════════════════════════════════════ */
.res-select-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  background: #FFF7ED;
  border: 2px dashed #F97316;
  border-radius: 10px;
  color: #F97316;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .2s, border-style .2s, color .2s, transform .15s;
}
.res-select-btn:hover {
  background: #FEE9D0;
  transform: translateY(-1px);
}
.res-select-btn.selected {
  background: #F97316;
  border-style: solid;
  border-color: #EA6C0A;
  color: #fff;
}
.res-select-btn.selected:hover {
  background: #EA6C0A;
}

/* ══════════════════════════════════════════
   QUOTE BAR (sticky bottom)
   ══════════════════════════════════════════ */
.sim-quote-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #1C1C1E;
  border-top: 3px solid #F97316;
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
  padding: 14px 24px;
  align-items: center;
  justify-content: center;
}
.sim-quote-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}
.sim-quote-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sim-quote-bar__icon { font-size: 1.4rem; }
.sim-quote-bar__left strong {
  display: block;
  color: #fff;
  font-size: .95rem;
}
.sim-quote-bar__hint {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
}
.sim-quote-bar__btn {
  background: #F97316;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: .93rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.sim-quote-bar__btn:hover {
  background: #EA6C0A;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   QUOTE MODAL
   ══════════════════════════════════════════ */
.sim-qm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.sim-qm-box {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px 28px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-height: 90vh;
  overflow-y: auto;
}
.sim-qm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #F0F0F2;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1C1C1E;
  transition: background .15s;
}
.sim-qm-close:hover { background: #E0E0E2; }

.sim-qm-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #1C1C1E;
  margin-bottom: 6px;
}
.sim-qm-sub {
  font-size: .88rem;
  color: #8A8784;
  margin-bottom: 20px;
}

/* Items selecionados */
.sim-qm-selected {
  background: #FFF7ED;
  border: 1px solid #FCD3A0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sim-qm-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sim-qm-check {
  color: #F97316;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.sim-qm-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sim-qm-item-info strong { font-size: .9rem; color: #1C1C1E; }
.sim-qm-item-info span   { font-size: .8rem; color: #8A8784; }

/* Formulário */
.sim-qm-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.sim-qm-field { display: flex; flex-direction: column; gap: 5px; }
.sim-qm-field label { font-size: .85rem; font-weight: 600; color: #1C1C1E; }
.sim-qm-req { color: #F97316; }
.sim-qm-field input {
  padding: 11px 14px;
  border: 1.5px solid #E8E3DE;
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: .93rem;
  color: #1C1C1E;
  transition: border-color .2s;
  outline: none;
}
.sim-qm-field input:focus { border-color: #F97316; }
.sim-qm-error {
  font-size: .82rem;
  color: #DC2626;
  font-weight: 600;
  min-height: 18px;
}

/* Botões de envio */
.sim-qm-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sim-qm-wa {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 13px 20px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  min-width: 160px;
}
.sim-qm-wa:hover { background: #1EBE5C; transform: translateY(-1px); }
.sim-qm-email {
  flex: 1;
  background: #F0F0F2;
  color: #1C1C1E;
  border: none;
  border-radius: 100px;
  padding: 13px 20px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  min-width: 140px;
}
.sim-qm-email:hover { background: #E0E0E2; transform: translateY(-1px); }

.sim-qm-privacy {
  font-size: .75rem;
  color: #8A8784;
  text-align: center;
  line-height: 1.5;
}
.sim-qm-privacy a { color: #F97316; }

@media (max-width: 540px) {
  .sim-qm-box { padding: 28px 20px 22px; }
  .sim-qm-actions { flex-direction: column; }
  .sim-qm-wa, .sim-qm-email { min-width: auto; }
  .sim-quote-bar__inner { gap: 12px; }
  .sim-quote-bar__btn { padding: 10px 18px; font-size: .84rem; }
}
