/*
 * ECAR thank-you page.
 *
 * One centred column, deliberately short. This page has exactly one job —
 * confirm the request and say what happens next — so it gets no sections, no
 * cards competing for attention, and no second call to action beside the
 * phone number.
 *
 * COMPACT ON PURPOSE. The first version used the page-heading scale
 * (--fs-h2-lg, up to 60px) and full section padding, which pushed a
 * three-line confirmation over a screen and a half. Everything here is one
 * step down from the site's editorial scale: the visitor has already
 * converted, this is a receipt, not a landing page.
 */

.ecar-thanks {
  background-color: var(--ecar-bg);
  padding-block: clamp(40px, 5.5vw, 68px) clamp(48px, 6.5vw, 80px);
}

.ecar-thanks__inner {
  max-width: 620px;
  text-align: center;
}

/* Green, not gold: this is the one place on the site where a mark means
   "done", and the brand orange is decoration everywhere else. */
.ecar-thanks__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  padding: 14px;
  color: var(--ecar-success);
  background-color: rgba(127, 207, 155, 0.12);
  border: 1px solid rgba(127, 207, 155, 0.4);
  border-radius: var(--r-pill);
}

.ecar-thanks__mark svg {
  width: 100%;
  height: 100%;
}

.ecar-thanks__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ecar-gold);
}

.ecar-thanks__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.ecar-thanks__lede,
.ecar-thanks__content {
  margin: 0 auto 28px;
  max-width: 46ch;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ecar-text-secondary);
}

.ecar-thanks__content p {
  margin: 0 0 10px;
}

.ecar-thanks__content p:last-child {
  margin-bottom: 0;
}

/* --- What happens next ---
   A bordered panel rather than three open rows: it groups the sequence into
   one object, which is what lets the whole page stay inside a phone screen. */
.ecar-thanks__steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 4px 20px;
  text-align: left;
  background-color: var(--ecar-surface);
  border: 1px solid var(--ecar-hairline);
  border-radius: 12px;
}

.ecar-thanks__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
}

.ecar-thanks__step + .ecar-thanks__step {
  border-top: 1px solid var(--ecar-hairline);
}

.ecar-thanks__step-index {
  flex-shrink: 0;
  min-width: 2ch;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  color: var(--ecar-gold);
}

.ecar-thanks__step-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ecar-thanks__step-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ecar-text-primary);
}

.ecar-thanks__step-text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ecar-text-secondary);
}

/* --- Actions --- */
.ecar-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ecar-thanks__hours {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ecar-text-muted);
}

.ecar-thanks__link {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--ecar-hairline);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--ecar-text-secondary);
}

.ecar-thanks__link a {
  color: var(--ecar-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--ecar-gold-line);
  text-underline-offset: 3px;
}

.ecar-thanks__link a:hover,
.ecar-thanks__link a:focus-visible {
  color: var(--ecar-gold-strong);
}

@media (max-width: 767px) {
  /* Left-aligned on a phone: centred body copy over four lines is harder to
     read, and the mark still centres itself below. */
  .ecar-thanks__inner {
    text-align: left;
  }

  .ecar-thanks__title {
    font-size: clamp(1.625rem, 7.4vw, 2.125rem);
  }

  .ecar-thanks__lede,
  .ecar-thanks__content {
    margin-inline: 0;
    font-size: 0.9375rem;
  }

  .ecar-thanks__steps {
    padding-inline: 16px;
  }

  .ecar-thanks__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ecar-thanks__actions .ecar-btn {
    width: 100%;
  }
}
