.app-shell {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 0 0 16px;
}

.site-footer {
  padding: 16px 20px 20px;
  background: var(--surface, #ffffff);
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.site-footer-logo {
  display: block;
  width: 26px;
  height: 24px;
  margin: 0 auto 16px;
}

.site-footer-company,
.site-footer-address {
  margin: 0 auto;
}

.site-footer-company {
  color: var(--strong-text, #000000);
  font-weight: 500;
}

.site-footer-address {
  max-width: 1000px;
  text-wrap: pretty;
}

.site-footer-privacy {
  display: inline-block;
  margin-top: 2px;
  padding: 6px 4px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  text-underline-offset: 2px;
}

.site-footer-privacy:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

[data-theme="dark"] .site-footer-logo {
  filter: invert(1);
}

/* Payment screens share one centered header instead of independent offsets. */
:is(.payment-options-page, .payment-page) .calculator-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  height: 299px;
  margin: 0;
  padding: 120px 24px 28px;
}
:is(.payment-options-page, .payment-page) .vehicle-mark {
  position: static;
  flex: 0 0 auto;
  width: 66px;
  height: 60px;
  transform: none;
}
:is(.payment-options-page, .payment-page) .calculator-head h1 {
  position: static;
  width: 100%;
}
:is(.payment-options-page, .payment-page) .intro-text {
  position: static;
  width: 100%;
  max-width: 660px;
}
@media (min-width: 781px) {
  html:has(body:is(.payment-options-page, .payment-page)) { scrollbar-gutter: stable both-edges; }
}
@media (max-width: 780px) {
  :is(.payment-options-page, .payment-page) .calculator-head { height: 250px; padding: 86px 16px 22px; }
  :is(.payment-options-page, .payment-page) .brand-logo { top: 24px; left: 22px; width: 128px; height: 46px; transform: none; }
  :is(.payment-options-page, .payment-page) .vehicle-mark { width: 58px; height: 54px; }
  :is(.payment-options-page, .payment-page) .calculator-head h1 { font-size: 28px; }
  :is(.payment-options-page, .payment-page) .intro-text { font-size: 17px; }
}

.calculator-card {
  position: relative;
  padding: 0 0 28px;
  background: transparent;
  isolation: isolate;
}

.calculator-card::before {
  content: "";
  position: absolute;
  top: 299px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--page);
  z-index: -1;
}

.calculator-head {
  position: relative;
  height: 299px;
  margin: 0;
  padding: 0;
  text-align: center;
}

.brand-logo {
  position: absolute;
  top: 38px;
  left: 0;
  width: 150px;
  height: 54px;
  object-fit: contain;
}

.vehicle-mark {
  position: absolute;
  top: 120px;
  left: 50%;
  width: 66px;
  height: 60px;
  margin: 0;
  transform: translateX(-50%);
}

.vehicle-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  display: none;
}

.calculator-head h1,
.field-header h2 {
  margin: 0;
  color: var(--text);
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.calculator-head h1 {
  position: absolute;
  top: 190px;
  left: 0;
  width: 100%;
  font-size: 33px;
  line-height: 1.1;
}

.field-header p {
  display: none;
}

.intro-text {
  position: absolute;
  top: 244px;
  left: 170px;
  width: 660px;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.28;
  text-align: center;
}

.calculator-form {
  display: grid;
  gap: 0;
  padding-top: 28px;
}

.field-group {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.field-group + .field-group {
  margin-top: 34px;
}

.field-header {
  margin: 0 0 18px;
  text-align: left;
}

.field-group > .field-header:first-child {
  margin-bottom: 28px;
}

.address-header {
  margin-top: 52px;
  margin-bottom: 18px;
}

.field-header h2 {
  padding-left: 462px;
  font-size: 24px;
  line-height: 1.1;
}

.split-header {
  display: block;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: 12px;
  padding: 7px 13px;
  border-radius: var(--radius-field);
  background: var(--control);
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.vehicle-section .section-chip {
  display: none;
}

.vehicle-section.is-locked {
  opacity: 1;
}

@media (max-width: 780px) {
  .app-shell {
    width: 100%;
    padding: 0 12px 16px;
  }

  .calculator-form {
    padding-right: 8px;
    padding-left: 8px;
  }

  .calculator-card {
    padding-top: 0;
    background: var(--page);
  }

  .calculator-card::before {
    display: none;
  }

  .calculator-head {
    min-height: 210px;
    height: auto;
    margin-bottom: 24px;
    padding: 160px 12px 16px;
    background: var(--surface, #ffffff);
  }

  .brand-logo {
    top: 32px;
    left: 12px;
    transform: scale(0.68);
    transform-origin: left top;
  }

  .vehicle-mark {
    top: 82px;
    width: 46px;
    height: 36px;
  }

  .calculator-head h1 {
    top: 125px;
    font-size: 25px;
  }

  .intro-text {
    display: block;
    position: static;
    width: auto;
    font-size: 15px;
  }

  .field-header h2 {
    padding-left: 0;
    text-align: center;
    font-size: 22px;
  }

}
