/* Supplied ClearCar Report hero artwork: keep the copy readable in its left-side negative space. */
.hero {
  background-image: linear-gradient(90deg, rgba(3, 9, 14, .48) 0%, rgba(3, 9, 14, .12) 48%, rgba(3, 9, 14, .08) 100%), url("assets/clearcar-report-hero.png");
  background-size: cover;
  background-position: center center;
}

.hero-glow,
.light-bars,
.vehicle-art { display: none; }

@media (max-width: 900px) {
  .hero {
    background-position: 62% center;
  }
}

/* ClearCar feature panel: showroom base layer, report artwork above it, copy always in front. */
.smart-section {
  position: relative;
  isolation: isolate;
  max-width: none;
  background-image: linear-gradient(90deg, rgba(5, 10, 15, .96) 0%, rgba(5, 10, 15, .72) 43%, rgba(5, 10, 15, .2) 100%), url("assets/clearcar-panel-background.png");
  background-size: cover;
  background-position: center;
}

.smart-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 10, 15, .16), rgba(5, 10, 15, .58));
  pointer-events: none;
}

.smart-copy {
  position: relative;
  z-index: 3;
}

.report-preview {
  position: relative;
  z-index: 2;
  min-height: 500px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
  transform: rotate(0);
}

.report-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("assets/clearcar-report-panel.png") center / contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(105, 243, 91, .2)) drop-shadow(0 12px 22px rgba(0, 0, 0, .28));
  pointer-events: none;
}

.report-preview > * { visibility: hidden; }

.report-preview > .panel-brand-mask,
.report-preview > .panel-brand-backplate,
.report-preview > .panel-brand-replacement {
  visibility: visible;
  position: absolute;
  left: 5.1%;
  top: 4.3%;
  width: 44.5%;
  height: 11.5%;
  z-index: 4;
}

.report-preview > .panel-brand-mask,
.report-preview > .panel-brand-backplate {
  z-index: 3;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(3, 9, 13, .98), rgba(3, 11, 15, .72));
  filter: blur(2px);
  transform: scale(1.04);
}

.report-preview > .panel-brand-backplate {
  transform: translateY(52px) scale(1.04);
  box-shadow: 0 0 18px rgba(2, 9, 13, .3);
}

.report-preview > .panel-brand-replacement {
  display: block;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
  transform: translateY(52px);
}

.footer-logo { object-fit: cover; object-position: center; }

@media (max-width: 900px) {
  .smart-section { background-position: center; }
  .report-preview { min-height: 390px; }
}

/* Keep the useful buying guidance, without the large artwork card or separate step cards. */
.report-preview,
.steps-section { display: none; }

.smart-section {
  display: block;
  min-height: 0;
  padding-top: 84px;
  padding-bottom: 84px;
}

.smart-copy { max-width: 980px; }

.compact-journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  padding-top: 25px;
  border-top: 1px solid rgba(154, 190, 208, .2);
}

.compact-journey > div {
  display: flex;
  gap: 14px;
  color: #a8bdc9;
  font-size: 13px;
  line-height: 1.55;
}

.compact-journey b {
  color: var(--lime);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: .15em;
}

.compact-journey span { display: block; }
.compact-journey strong { display: block; margin-bottom: 4px; color: #f3f7f8; font-size: 14px; }

@media (max-width: 700px) {
  .compact-journey { grid-template-columns: 1fr; gap: 16px; }
  .smart-section { padding-top: 68px; padding-bottom: 68px; }
}

/* Restore the supplied report artwork as the single overlay inside this panel. */
.smart-section {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: 5vw;
}

.report-preview {
  display: block;
  min-height: 440px;
  margin: 0;
  transform: translateX(200px);
}

@media (max-width: 900px) {
  .smart-section { display: block; }
  .report-preview { min-height: 390px; margin-top: 40px; transform: none; }
}

@media (max-width: 540px) {
  .report-preview { min-height: 315px; }
}

/* Header locale control: keep the trigger aligned and give it a keyboard-friendly menu. */
.language-control {
  position: relative;
  flex: 0 0 auto;
}

.language-button {
  min-width: 116px;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: background .2s, box-shadow .2s;
}

.language-button:hover,
.language-button[aria-expanded="true"] {
  background: rgba(12, 28, 37, .9);
  box-shadow: inset 0 0 0 1px rgba(105, 243, 91, .18), 0 8px 24px rgba(0, 0, 0, .16);
}

.language-button .flag {
  width: 23px;
  display: inline-grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
}

.language-short {
  min-width: 28px;
  text-align: left;
  transform: translateY(2px);
}

.language-button .chevron {
  margin-left: 2px;
  transition: transform .2s;
}

.language-button[aria-expanded="true"] .chevron {
  transform: rotate(180deg) translateY(2px);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: 196px;
  padding: 8px;
  border: 1px solid rgba(154, 190, 208, .24);
  border-radius: 14px;
  background: rgba(7, 16, 23, .98);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .42), 0 0 20px rgba(105, 243, 91, .06);
  backdrop-filter: blur(16px);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 9px;
  border: 0;
  border-radius: 9px;
  color: #dbe8ed;
  background: transparent;
  font-size: 12px;
  text-align: left;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.is-selected {
  color: #f4f8fa;
  background: rgba(105, 243, 91, .1);
}

.language-option:focus-visible,
.language-button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.language-check {
  color: var(--lime);
  opacity: 0;
}

.language-option.is-selected .language-check {
  opacity: 1;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .language-button { min-width: 104px; padding-left: 12px; padding-right: 12px; }
}

/* Keep the paid-report action visible without competing with the MOT timeline. */
.report-unlock {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(105, 243, 91, .24);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(18, 42, 35, .72), rgba(12, 28, 35, .78));
}

.report-unlock strong,
.report-unlock > div > span {
  display: block;
}

.report-unlock strong {
  margin-bottom: 5px;
  color: #f3f8f7;
  font-size: 14px;
}

.report-unlock > div > span {
  color: #a9c2c8;
  font-size: 12px;
}

.report-pay-button {
  min-width: 205px;
  white-space: nowrap;
}

.report-pay-button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.payment-error {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  color: var(--danger);
  font-size: 12px;
}

@media (max-width: 600px) {
  .report-unlock {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .report-pay-button {
    width: 100%;
  }
}

.payment-success {
  max-width: 720px;
  margin: 0 auto;
  padding: 38px 30px;
  border: 1px solid rgba(105, 243, 91, .3);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 50, 38, .86), rgba(14, 28, 37, .92));
  text-align: center;
}

.payment-success-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  font-size: 28px;
  box-shadow: 0 0 22px rgba(105, 243, 91, .2);
}

.payment-success h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

.payment-success p {
  margin-bottom: 6px;
  color: #c0d1d8;
}

.payment-success-note {
  color: #879da7 !important;
  font-size: 12px;
}

/* Keep the lowered brand mark clear of the number plate on smaller panels. */
@media (max-width: 900px) {
  .report-preview > .panel-brand-backplate {
    transform: translateY(32px) scale(1.04);
  }

  .report-preview > .panel-brand-replacement {
    transform: translateY(32px);
  }
}

@media (max-width: 540px) {
  .report-preview > .panel-brand-backplate {
    transform: translateY(18px) scale(1.04);
  }

  .report-preview > .panel-brand-replacement {
    transform: translateY(18px);
  }
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  color: #8fa6b0;
  font-size: 11px;
  line-height: 1.45;
}

.company-details strong {
  color: #c3d3d9;
  font-weight: 700;
}

.company-details a {
  color: #69f35b;
}

.company-details a:hover {
  color: #91ff86;
}
