/* Room AC capacity wizard — match sidebar / product title visual weight (Journal3) */
#room-ac-sizer.cat-hpform {
  font-size: clamp(1.0625rem, 0.22vw + 1rem, 1.1875rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.cat-hpform {
  margin-bottom: 1.75rem;
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: var(--module-bg, #fafafa);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.cat-hpform-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.4rem, 0.5vw + 1.25rem, 1.65rem);
  font-weight: 600;
  line-height: 1.28;
}
.cat-hpform-intro {
  margin: 0 0 1.15rem;
  font-size: clamp(1.1rem, 0.25vw + 1.02rem, 1.22rem);
  line-height: 1.68;
  opacity: 0.96;
}
.cat-hpform-step-title {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 0.3vw + 1.05rem, 1.3rem);
  font-weight: 600;
}
/* Result step: title closer to body copy size of primary metrics */
#room-ac-sizer .cat-hpform-step[data-step="3"] > .cat-hpform-step-title {
  font-size: clamp(1.25rem, 0.35vw + 1.1rem, 1.45rem);
  margin-bottom: 0.85rem;
}
.cat-hpform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.1rem;
}
@media (max-width: 767px) {
  .cat-hpform-grid {
    grid-template-columns: 1fr;
  }
}
.cat-hpform-field {
  display: block;
}
.cat-hpform-field .field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: clamp(1.05rem, 0.2vw + 1rem, 1.15rem) !important;
  font-weight: 600;
  line-height: 1.45;
}
#room-ac-sizer .form-control,
#room-ac-sizer select.form-control {
  font-size: clamp(1.05rem, 0.2vw + 1rem, 1.15rem) !important;
  line-height: 1.45 !important;
  min-height: 3rem;
  padding: 0.55rem 0.75rem !important;
}
#room-ac-sizer select.form-control option {
  font-size: 1.05rem;
}
#room-ac-sizer .form-control::placeholder {
  font-size: clamp(0.98rem, 0.15vw + 0.95rem, 1.08rem) !important;
  opacity: 0.78;
}
/* Step 2: stacked fields — breathing room vs. compact theme defaults */
#room-ac-sizer .cat-hpform-step[data-step="2"] > .cat-hpform-field {
  margin-bottom: 1.05rem;
}
.cat-hpform-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.35rem;
  font-size: clamp(1.02rem, 0.18vw + 0.98rem, 1.12rem) !important;
  line-height: 1.55 !important;
  cursor: pointer;
}
.cat-hpform-check input[type="checkbox"] {
  margin-top: 0.35rem;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}
#room-ac-sizer .cat-hpform-check > span {
  flex: 1;
  min-width: 0;
}
.cat-hpform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
#room-ac-sizer .cat-hpform-actions .btn {
  font-size: clamp(1.05rem, 0.2vw + 1rem, 1.12rem) !important;
  padding: 0.6rem 1.2rem !important;
  line-height: 1.45 !important;
}
.rac-result-box {
  padding: 1.2rem 1.3rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: clamp(1.05rem, 0.2vw + 1rem, 1.12rem);
}
.rac-result-box p {
  margin: 0.4rem 0;
}
/* BTU / HP lines — main readout */
#room-ac-sizer .rac-result-box > p:not(.rac-note) {
  font-size: clamp(1.08rem, 0.2vw + 1.02rem, 1.18rem);
  line-height: 1.52;
}
#room-ac-sizer #rac-out-btu,
#room-ac-sizer #rac-out-hp {
  font-size: clamp(1.25rem, 0.35vw + 1.1rem, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rac-note {
  font-size: clamp(1.02rem, 0.2vw + 0.98rem, 1.1rem) !important;
  margin: 0.9rem 0 1rem;
  opacity: 0.96;
  line-height: 1.7 !important;
}
.rac-cta,
.rac-cta-secondary {
  display: inline-block;
  margin-top: 0.35rem;
  margin-inline-end: 0.5rem;
}
/* Same visual weight for CTAs and footer actions (Journal3 inflates .btn-primary) */
#room-ac-sizer .rac-result-box a.btn,
#room-ac-sizer .rac-result-box a.btn-primary,
#room-ac-sizer .rac-result-box a.btn-default {
  font-size: clamp(1.02rem, 0.2vw + 0.98rem, 1.1rem) !important;
  font-weight: 600 !important;
  padding: 0.65rem 1.2rem !important;
  line-height: 1.45 !important;
}
.rac-disclaimer {
  font-size: clamp(0.98rem, 0.18vw + 0.94rem, 1.06rem) !important;
  margin: 1.1rem 0 0;
  opacity: 0.94;
  line-height: 1.65 !important;
}

/*
 * Journal3 often sets html { font-size: 62.5% } so 1rem ≈ 10px — rem-based rules look tiny.
 * Use px here so typography matches real screen size regardless of root scaling.
 */
#product-category #room-ac-sizer.cat-hpform {
  font-size: 15px !important;
  line-height: 1.58 !important;
}

#product-category #room-ac-sizer .cat-hpform-title {
  font-size: 21px !important;
}

#product-category #room-ac-sizer .cat-hpform-intro {
  font-size: 15px !important;
  line-height: 1.62 !important;
}

#product-category #room-ac-sizer .cat-hpform-step-title {
  font-size: 17px !important;
}

#product-category #room-ac-sizer .cat-hpform-step[data-step="3"] > .cat-hpform-step-title {
  font-size: 18px !important;
}

#product-category #room-ac-sizer .cat-hpform-field .field-label {
  font-size: 15px !important;
  font-weight: 600 !important;
}

#product-category #room-ac-sizer .form-control,
#product-category #room-ac-sizer select.form-control {
  font-size: 15px !important;
  line-height: 1.45 !important;
  min-height: 42px !important;
  height: auto !important;
  padding: 8px 12px !important;
}

#product-category #room-ac-sizer .form-control::placeholder {
  font-size: 14px !important;
}

#product-category #room-ac-sizer .cat-hpform-check,
#product-category #room-ac-sizer .cat-hpform-check > span {
  font-size: 14px !important;
  line-height: 1.62 !important;
}

#product-category #room-ac-sizer .rac-result-box {
  font-size: 15px !important;
}

#product-category #room-ac-sizer .rac-result-box > p:not(.rac-note) {
  font-size: 15px !important;
}

#product-category #room-ac-sizer #rac-out-btu,
#product-category #room-ac-sizer #rac-out-hp {
  font-size: 19px !important;
}

#product-category #room-ac-sizer .rac-note {
  font-size: 14px !important;
  line-height: 1.65 !important;
}

#product-category #room-ac-sizer p.rac-disclaimer {
  font-size: 13px !important;
  line-height: 1.6 !important;
}

#product-category #room-ac-sizer .cat-hpform-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#product-category #room-ac-sizer .cat-hpform-actions .btn {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  min-height: 42px !important;
  height: auto !important;
  padding: 8px 14px !important;
  flex-shrink: 0 !important;
  white-space: nowrap;
}

#product-category #room-ac-sizer .rac-result-box a.btn {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  min-height: 42px !important;
  height: auto !important;
  padding: 8px 12px !important;
  flex-shrink: 0 !important;
  white-space: normal;
  text-align: center;
}
