/* ============================================================================
   TRUST AND OFFER COMPONENTS
   The $100 offer in every shape it takes on the site, plus the benefits bar.

   Load order: design-system, chrome, page-layouts, trust-offer, htm-brand,
   htm-compat, htm-pages. The quote form and quiz skin lives in htm-brand.css;
   aside, dock placement and page-specific overrides live in htm-compat.css.

   One look for the offer, whichever markup carries it:
     .offer-strip     one slim navy line above the form (text and terms link)
     .coupon          compact navy card: white disc with the amount, offer text
     .htm-credit-chip the home and services hub dock card beside the form

   Rules this file keeps (SPA-UNIFY and the brand sheet):
     * Copper is the act colour. It fills lead-starting buttons and nothing
       else here: no copper borders, discs or numerals on the offer.
     * The offer words are fixed copy. Only their presentation changes.
     * Contrast: cream or white on navy, navy on white. No white on copper.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   BENEFITS BAR
   A clean row of check-marked trust statements.
   ---------------------------------------------------------------------------- */

.benefits {
  background: var(--bg-light);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.benefits__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefits__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.benefits__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--htm-pool-text);
  color: var(--bg-white);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .benefits__grid {
    gap: 1rem 1.5rem;
  }

  .benefits__item {
    font-size: 0.875rem;
  }
}

/* ----------------------------------------------------------------------------
   OFFER SECTION (coupon beside a form on a light band)
   ---------------------------------------------------------------------------- */

.offer-section {
  padding: 4rem 0;
  background: var(--bg-white);
}

.offer-section__head {
  text-align: center;
  margin-bottom: 3rem;
}

.offer-section__head h2 {
  margin-bottom: 0.5rem;
}

.offer-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 600px);
  gap: 2.5rem;
  align-items: start;
  justify-content: center;
}

@media (max-width: 1024px) {
  .offer-form-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ----------------------------------------------------------------------------
   OFFER STRIP
   One slim line that keeps the offer in view above the form without a slab.
   Markup: <p class="offer-strip">$100 off your first job, credited by us.
   <a href="/terms/#offer-terms">Full terms</a></p>
   ---------------------------------------------------------------------------- */

.offer-strip {
  max-width: 40rem !important;
  margin: 0 auto 1.25rem !important;
  padding: 0.75rem 1rem;
  background: var(--htm-dusk);
  color: #fff;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.offer-strip a {
  color: #8ee3ec;
  font-weight: 600;
  white-space: nowrap;
}

.offer-strip a:hover {
  color: #fff;
}

/* ----------------------------------------------------------------------------
   COUPON (compact)
   A navy card with a white disc carrying the amount. One row on a phone and
   on a desktop alike: the offer should be noticed, not scrolled past.
   Markup: .coupon > .coupon-amt (b + span) + .coupon-body (h3, .sub,
   ul.coupon-terms, optional lead button, p.coupon-fine).
   ---------------------------------------------------------------------------- */

.coupon-slot {
  margin: 0 0 1.5rem;
}

.coupon {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: center;
  text-align: left;
  background: linear-gradient(135deg, var(--htm-dusk) 0%, var(--htm-dusk-rich) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.coupon-amt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 50%;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.coupon-amt b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--htm-dusk);
}

.coupon-amt span {
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--htm-pool-text);
}

.coupon-body {
  min-width: 0;
}

.coupon-body h3 {
  margin: 0 0 0.125rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.coupon-body .sub {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: #8ee3ec;
}

.coupon-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 1.25rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.coupon-terms li {
  position: relative;
  margin: 0;
  padding-left: 0.95rem;
}

.coupon-terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #8ee3ec;
}

/* The in-card "Start Your Quote" anchors to the form directly below it, so it
   adds a button without adding a place to go. The nav, hero and sticky bar
   carry the lead buttons. */
.coupon .coupon-body > .btn,
.coupon .coupon-body > .btn-primary,
.coupon .coupon-body > .btn-copper,
.coupon .coupon-body > [data-quote-cta] {
  display: none;
}

.coupon-fine {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.coupon-fine a {
  color: #8ee3ec;
  text-decoration: underline;
}

.coupon-fine a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .coupon-slot {
    margin-bottom: 1.25rem;
  }

  .coupon {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.75rem 1rem;
    padding: 1rem;
    text-align: left;
  }

  .coupon-amt {
    width: 56px;
    height: 56px;
    align-self: start;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
  }

  .coupon-amt b {
    font-size: 1.25rem;
  }

  .coupon-amt span {
    font-size: 0.6875rem;
    margin-top: 0.15rem;
  }

  .coupon-body h3 {
    font-size: 1.1875rem;
  }

  .coupon-body .sub {
    font-size: 0.875rem;
  }

  .coupon-terms {
    flex-direction: column;
    gap: 0.125rem;
  }
}

/* ----------------------------------------------------------------------------
   CREDIT NOTE
   The quiet reassurance row on the last form step.
   ---------------------------------------------------------------------------- */

.credit-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--htm-foam);
  border: 1px solid #cfe3e7;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
}

.credit-note svg {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  color: var(--htm-pool-text);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------------------
   OFFER DOCK
   Navy band holding the credit chip beside the quote form (home, services hub).
   ---------------------------------------------------------------------------- */

.htm-offer-dock {
  position: relative;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  background: linear-gradient(135deg, var(--htm-dusk) 0%, var(--htm-dusk-rich) 100%);
  color: var(--bg-white);
}

.htm-offer-dock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(142, 227, 236, 0.5) 50%, transparent 100%);
}

.htm-offer-dock__grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 600px);
  gap: 3rem;
  align-items: start;
  justify-content: center;
}

@media (max-width: 1024px) {
  .htm-offer-dock__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 620px;
    margin: 0 auto;
  }
}

/* Credit chip: a light card on the navy dock. */
.htm-credit-chip {
  padding: 2rem;
  background: linear-gradient(160deg, #fff 0%, var(--htm-foam) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 48px rgba(4, 20, 34, 0.35);
  color: var(--text-primary);
  text-align: center;
}

.htm-credit-chip__badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.375rem 0.875rem;
  background: var(--htm-pool-text);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.htm-credit-chip__amount {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--htm-dusk);
  text-shadow: none;
}

.htm-credit-chip__label {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--htm-dusk);
}

.htm-credit-chip__terms {
  margin: 0 0 1.5rem;
  padding: 1rem 1.125rem;
  background: rgba(26, 166, 184, 0.08);
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .htm-credit-chip {
    padding: 1.5rem 1.25rem;
  }

  .htm-credit-chip__amount {
    font-size: 3.25rem;
  }
}

/* Form card that sits beside the chip (home, services hub, crane, removal). */
.htm-form-card {
  padding: 2.25rem;
  background: var(--bg-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(4, 20, 34, 0.3);
}

.htm-form-card__header {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: 1rem;
}

.htm-form-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  background: linear-gradient(135deg, var(--htm-pool) 0%, var(--htm-pool-deep) 100%);
  border-radius: 0.875rem;
  color: var(--bg-white);
  flex-shrink: 0;
}

.htm-form-card h2 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.htm-form-card__sub {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .htm-form-card {
    padding: 1.5rem 1.25rem;
  }

  .htm-form-card h2 {
    font-size: 1.375rem;
  }
}
