/* ===========================================================
   Hero quick-quote card
   -----------------------------------------------------------
   Lives inside .hp-hero-inner (homepage) or .np-hero-inner /
   .ac-hero-inner / .th-hero-inner / .lp-hero-cell on other
   pages. Every rule scoped by `.hp-hero-quote-card …` so
   page-level styles (text-shadow / colour / text-align / etc.)
   can't bleed in.
   =========================================================== */

/* ---- Layout: 2-column on desktop, stacked on mobile ---- */
@media (min-width: 1024px) {
  .hp-hero-inner,
  .np-hero-inner,
  .ac-hero-inner.has-quote-card,
  .th-hero-inner.has-quote-card {
    max-width: 1240px;
    display: grid;
    grid-template-columns: 1.15fr 420px;
    gap: 2.5rem;
    text-align: left;
    align-items: center;
  }
  .hp-hero-card,
  .np-hero-card,
  .ac-hero-card,
  .th-hero-card {
    text-align: left;
    align-items: flex-start;
  }
  .hp-hero-card .hp-hero-h1,
  .np-hero-card h1,
  .ac-hero-card h1,
  .th-hero-card h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.08;
    max-width: none;
  }
  .hp-hero-card .hp-hero-sub,
  .np-hero-card .np-hero-sub,
  .ac-hero-card .ac-sub,
  .th-hero-card .th-hero-sub {
    max-width: none;
  }
  .hp-hero-card .hp-hero-cta,
  .np-hero-card .np-hero-cta,
  .th-hero-card .th-hero-cta {
    justify-content: flex-start;
  }
  .hp-hero-card .hp-trust-strip { justify-content: flex-start; }
  .hp-hero-card .hp-btn,
  .np-hero-card .np-btn {
    padding: 0.85rem 1.4rem;
    font-size: 0.9rem;
  }
}
.hp-hero-card,
.np-hero-card,
.ac-hero-card,
.th-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* Hide hero "Get a Free Quote" / "Call" buttons sitewide — the
   Quick Estimate card already covers conversion. */
.hp-hero-card .hp-hero-cta,
.np-hero-card .np-hero-cta,
.th-hero-card .th-hero-cta {
  display: none;
}

/* Trust strip — shown at the bottom of every hero card on every page. */
.hp-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Inter", Arial, sans-serif;
}
@media (min-width: 1024px) {
  .hp-hero-card .hp-trust-strip,
  .np-hero-card .hp-trust-strip,
  .ac-hero-card .hp-trust-strip,
  .th-hero-card .hp-trust-strip,
  .lp-hero-cell .hp-trust-strip {
    justify-content: flex-start;
  }
}
.hp-trust-strip .hp-rating { color: #fff; font-weight: 600; }
.hp-trust-strip .hp-rating strong { color: #D6B274; font-size: 1.05rem; }
.hp-trust-strip .hp-trust-sep { color: rgba(255, 255, 255, 0.3); }

/* lp-hero-cell pages: cells with a purple !important background. When
   our quote card is inside one, flatten the wrapper. */
.lp-hero-cell:has(.hp-hero-quote-card) {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* ---- The card itself ---- */
.hp-hero-quote-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: 14px !important;
  padding: 22px 22px 20px !important;
  color: #222 !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(200, 168, 118, 0.5) !important;
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  font-family: "Inter", Arial, sans-serif !important;
  text-align: left !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Reset inherited text-shadow on every descendant — the universal
   selector has 0 specificity so it loses to page rules like
   ".hp-header p { text-shadow: …!important }". We need element-class
   selectors of matching specificity (and the file is loaded after the
   inline page styles so we win on load order). */
.hp-hero-quote-card,
.hp-hero-quote-card p,
.hp-hero-quote-card h1,
.hp-hero-quote-card h2,
.hp-hero-quote-card h3,
.hp-hero-quote-card h4,
.hp-hero-quote-card span,
.hp-hero-quote-card label,
.hp-hero-quote-card div,
.hp-hero-quote-card button,
.hp-hero-quote-card a,
.hp-hero-quote-card input,
.hp-hero-quote-card em,
.hp-hero-quote-card strong {
  text-shadow: none !important;
}

/* Title: serif, near-black, sentence case. */
.hp-hero-quote-card .hpqq-title {
  margin: 0 0 4px !important;
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 1.45rem !important;
  font-weight: 600 !important;
  color: #111 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  text-align: left !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #111 !important;
}
.hp-hero-quote-card .hpqq-hint {
  margin: 0 0 14px !important;
  font-size: 0.9rem !important;
  color: #111 !important;
  line-height: 1.5 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  text-align: left !important;
  text-transform: none !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-weight: 500 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #111 !important;
}
.hp-hero-quote-card .hpqq-section { margin-bottom: 12px !important; }

/* Labels: small, uppercase, bold purple. */
.hp-hero-quote-card .hpqq-label {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #4d2e8f !important;
  margin-bottom: 6px !important;
  background: transparent !important;
  text-align: left !important;
  font-family: "Inter", Arial, sans-serif !important;
}

/* Bed pills. */
.hp-hero-quote-card .hpqq-beds {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
}
.hp-hero-quote-card .hpqq-bed {
  appearance: none !important;
  background: #faf6ec !important;
  border: 1px solid #e6dec9 !important;
  color: #3a226d !important;
  padding: 8px 4px !important;
  border-radius: 7px !important;
  font: inherit !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
}
.hp-hero-quote-card .hpqq-bed:hover {
  background: #f1ead1 !important;
  border-color: #C8A876 !important;
}
.hp-hero-quote-card .hpqq-bed.is-active {
  background: #4d2e8f !important;
  border-color: #4d2e8f !important;
  color: #fff !important;
}
.hp-hero-quote-card .hpqq-bed.is-active:hover {
  background: #3a226d !important;
  border-color: #3a226d !important;
}

/* Miles input. */
.hp-hero-quote-card .hpqq-input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 12px !important;
  font: inherit !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #222 !important;
  background: #fff !important;
  border: 1px solid #d4cbb5 !important;
  border-radius: 7px !important;
  text-shadow: none !important;
}
.hp-hero-quote-card .hpqq-input:focus {
  outline: 2px solid #C8A876 !important;
  outline-offset: -1px !important;
  border-color: #C8A876 !important;
}
.hp-hero-quote-card .hpqq-mini {
  display: block !important;
  margin-top: 4px !important;
  font-size: 0.74rem !important;
  color: #777 !important;
  text-transform: none !important;
  text-align: left !important;
  background: transparent !important;
  font-family: inherit !important;
}

/* Result panel. */
.hp-hero-quote-card .hpqq-result {
  background: linear-gradient(180deg, #f4ecda 0%, #ebe0c2 100%) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  margin: 14px 0 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  text-align: left !important;
}
.hp-hero-quote-card .hpqq-result-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: #6b4d18 !important;
  background: transparent !important;
  text-align: left !important;
  font-family: "Inter", Arial, sans-serif !important;
}
.hp-hero-quote-card .hpqq-result-prices {
  display: flex !important;
  align-items: baseline !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}
.hp-hero-quote-card .hpqq-net {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 1.85rem !important;
  font-weight: 600 !important;
  color: #4d2e8f !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
  text-transform: none !important;
  background: transparent !important;
}
.hp-hero-quote-card .hpqq-gross {
  font-size: 0.95rem !important;
  color: #3a226d !important;
  font-weight: 600 !important;
  text-transform: none !important;
  background: transparent !important;
  font-family: "Inter", Arial, sans-serif !important;
}
.hp-hero-quote-card .hpqq-gross em {
  font-style: normal !important;
  color: #6b4d18 !important;
  font-weight: 500 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}

/* CTA button. */
.hp-hero-quote-card .hpqq-cta {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: #4d2e8f !important;
  color: #fff !important;
  border: 0 !important;
  padding: 13px 18px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.98rem !important;
  letter-spacing: 0.02em !important;
  transition: background 0.15s ease !important;
  font-family: "Inter", Arial, sans-serif !important;
  text-transform: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
.hp-hero-quote-card .hpqq-cta:hover,
.hp-hero-quote-card .hpqq-cta:focus {
  background: #3a226d !important;
  color: #fff !important;
  outline: none !important;
}

/* Foot line. */
.hp-hero-quote-card .hpqq-foot {
  margin: 10px 0 0 !important;
  font-size: 0.78rem !important;
  color: #111 !important;
  text-align: center !important;
  line-height: 1.45 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  text-transform: none !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-weight: 500 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #111 !important;
}
