.page-hero-inner.nq-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 14px 36px;
  align-items: start;
}

.nq-hub-hero-grid > .breadcrumb {
  grid-column: 1 / -1;
}

.nq-hub-hero-grid > h1,
.nq-hub-hero-grid > p,
.nq-hub-hero-grid > .hero-cta-btn {
  grid-column: 1;
  justify-self: start;
}

.nq-hub-estimate-card {
  margin: 0;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}

.nq-hub-hero-right {
  grid-column: 2;
  grid-row: 2 / 5;
  align-self: stretch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#nq-estimator-mount {
  min-width: 0;
  width: 100%;
  margin: 0;
}

.nq-hub-estimate-label {
  color: #64748b;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nq-hub-estimate-range {
  margin: 8px 0;
  color: #111827;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
}

.nq-hub-estimate-card p {
  margin: 10px 0 16px;
  color: #475569;
  font-size: .9rem;
  line-height: 1.5;
}

.nq-hub-estimate-card > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 9px;
  background: #4f46e5;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.nq-hub-estimate-card > a:hover {
  background: #4338ca;
}

@media (max-width: 760px) {
  .page-hero-inner.nq-hub-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .nq-hub-hero-grid > .breadcrumb,
  .nq-hub-hero-grid > h1,
  .nq-hub-hero-grid > p,
  .nq-hub-hero-grid > .hero-cta-btn,
  .nq-hub-hero-right {
    grid-column: 1;
    grid-row: auto;
  }

  .nq-hub-hero-right,
  #nq-estimator-mount {
    width: 100%;
  }
}

/* Fix 4: one compact hero column beside the sole estimator card. */
.page-hero-inner.nq-hub-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: 24px 36px;
  min-height: 0;
  padding-top: 30px;
  padding-bottom: 30px;
}
.nq-hub-hero-copy { grid-column: 1; min-width: 0; }
.nq-hub-hero-copy .breadcrumb { margin-bottom: 12px; }
.nq-hub-hero-copy h1 { margin: 0 0 14px; }
.nq-hub-hero-copy > p { margin: 12px 0; max-width: 620px; }
.nq-hub-price-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 620px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nq-hub-price-box span { font-size: .9rem; }
.nq-hub-price-box strong { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.nq-hub-hero-right {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: block;
}
.nq-hub-hero-right #nq-estimator-mount { width: 100%; }
.nq-hub-estimate-card { display: none; }
@media (max-width: 760px) {
  .page-hero-inner.nq-hub-hero-grid { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 20px 16px; }
  .nq-hub-hero-copy, .nq-hub-hero-right { grid-column: 1; grid-row: auto; }
}
