/* Domestic (Japan) site — mobile-first layout */

body.domestic-site {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.domestic-site main {
  padding: 0;
  min-height: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.domestic-site .page-primary-h1 {
  display: none;
}

.domestic-header {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
}

.domestic-header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  box-sizing: border-box;
}

.domestic-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  max-width: 180px;
  height: 36px;
  line-height: 0;
  text-decoration: none;
}

.domestic-logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.domestic-nav {
  display: none;
}

.domestic-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.domestic-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  margin: 4px 0;
}

.domestic-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem 0.85rem;
  border-top: 1px solid #eee;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.domestic-nav-mobile:not([hidden]) {
  display: flex;
}

.domestic-nav-mobile a,
.domestic-nav-mobile button {
  color: #1a1a1a;
  text-decoration: none;
  padding: 0.5rem 0;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
}

.domestic-nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}

.domestic-nav a:hover {
  color: #fe0302;
}

.domestic-nav-export {
  color: #555;
  font-size: 0.85rem;
}

.domestic-nav-btn {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
}

.domestic-nav-btn-primary {
  background: #fe0302;
  border-color: #fe0302;
  color: #fff !important;
  text-decoration: none;
  display: inline-block;
}

.domestic-logout-form {
  display: inline;
  margin: 0;
}

.domestic-home {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.domestic-hero {
  width: 100%;
  max-width: 100%;
  line-height: 0;
  background: #e8e8e8;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  max-height: 130px;
}

.domestic-hero-banner {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.domestic-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.85rem;
  text-align: center;
}

.domestic-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.domestic-purchase-flow,
.domestic-search,
.domestic-promo,
.domestic-quicklinks {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 0.75rem;
  box-sizing: border-box;
}

.domestic-purchase-flow {
  background: #f8f8f8;
}

.domestic-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.domestic-flow-step {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  text-align: left;
  padding: 0.75rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ececec;
}

.domestic-flow-step-num {
  grid-row: 1 / 3;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #fe0302;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}

.domestic-flow-step h3 {
  grid-column: 2;
  font-size: 0.9rem;
  margin: 0;
}

.domestic-flow-step p {
  grid-column: 2;
  font-size: 0.78rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

.domestic-flow-arrow {
  display: none;
}

.domestic-search-form {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0.85rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.domestic-search-row {
  margin-bottom: 0.75rem;
}

.domestic-search-row label,
.domestic-search-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #333;
}

.domestic-search-row input,
.domestic-search-field select,
.domestic-search-field input {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

.domestic-search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.domestic-search-submit {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fe0302;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.domestic-search-submit:hover {
  background: #d50202;
}

.domestic-promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.domestic-promo-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
}

.domestic-promo-large {
  background: linear-gradient(135deg, #fe0302, #b50202);
}

.domestic-promo-mid-bottom {
  background: linear-gradient(135deg, #3d3d5c, #2a2a40);
}

.domestic-promo-tall {
  background: linear-gradient(160deg, #1e3a5f, #0f2744);
}

.domestic-promo-label {
  font-size: 0.95rem;
  font-weight: 700;
}

.domestic-promo-sub {
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.domestic-quicklinks {
  background: #f8f8f8;
  padding-bottom: 2rem;
}

.domestic-quicklinks-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.domestic-quicklinks-grid a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e0e0e0;
  display: block;
  font-size: 0.92rem;
}

.domestic-quicklinks-grid a:hover {
  color: #fe0302;
}

.domestic-footer .footer-content {
  flex-direction: column;
  padding: 1rem 0.75rem;
  gap: 1.25rem;
}

.domestic-footer .footer-logo-link {
  display: inline-block;
  width: auto;
  max-width: 180px;
  line-height: 0;
}

.domestic-footer .footer-logo-img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.domestic-footer .footer-tagline {
  font-size: 0.85rem;
  line-height: 1.5;
}

.domestic-footer .footer-section {
  min-width: 0;
  width: 100%;
}

.domestic-coming-soon {
  max-width: 100%;
  padding: 1.25rem 0.75rem;
  box-sizing: border-box;
}

.domestic-coming-soon h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.domestic-coming-soon p {
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (min-width: 992px) {
  .domestic-coming-soon {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
  }

  .domestic-coming-soon h2 {
    font-size: 1.35rem;
  }
}

@media (min-width: 600px) {
  .domestic-header-inner {
    padding: 0.6rem 1rem;
  }

  .domestic-logo {
    height: 40px;
  }

  .domestic-logo-img {
    height: 40px;
  }

  .domestic-hero {
    aspect-ratio: 2.2 / 1;
    max-height: 160px;
  }

  .domestic-section-title {
    font-size: 1.1rem;
  }

  .domestic-purchase-flow,
  .domestic-search,
  .domestic-promo,
  .domestic-quicklinks {
    padding: 1.25rem 1rem;
  }

  .domestic-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop */
@media (min-width: 992px) {
  .domestic-header-inner {
    padding: 0.75rem 1.25rem;
    gap: 1.5rem;
  }

  .domestic-logo,
  .domestic-logo-img {
    height: 40px;
    max-width: 180px;
  }

  .domestic-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.1rem;
    margin-left: auto;
    font-size: 0.92rem;
  }

  .domestic-nav-toggle {
    display: none;
  }

  .domestic-nav-mobile {
    display: none !important;
  }

  .domestic-hero {
    aspect-ratio: 10 / 3;
    max-height: 420px;
  }

  .domestic-section-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }

  .domestic-purchase-flow,
  .domestic-search,
  .domestic-promo,
  .domestic-quicklinks {
    padding: 2.5rem 1.25rem;
  }

  .domestic-purchase-flow {
    padding-left: max(1.25rem, calc((100% - 1200px) / 2));
    padding-right: max(1.25rem, calc((100% - 1200px) / 2));
  }

  .domestic-quicklinks {
    padding-left: max(1.25rem, calc((100% - 1200px) / 2));
    padding-right: max(1.25rem, calc((100% - 1200px) / 2));
    padding-bottom: 3rem;
  }

  .domestic-flow-steps {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem 0.25rem;
  }

  .domestic-flow-step {
    flex: 1 1 140px;
    max-width: 200px;
    display: block;
    text-align: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .domestic-flow-step-num {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .domestic-flow-step h3 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }

  .domestic-flow-step p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .domestic-flow-arrow {
    display: inline;
    color: #ccc;
    font-size: 1.25rem;
    align-self: center;
  }

  .domestic-search-form {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .domestic-search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .domestic-search-submit {
    max-width: 320px;
    margin: 0 auto;
  }

  .domestic-promo-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    min-height: 280px;
  }

  .domestic-promo-tile {
    padding: 1.25rem;
    transition: transform 0.15s, box-shadow 0.15s;
  }

  .domestic-promo-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: #fff;
  }

  .domestic-promo-large {
    grid-row: 1 / 3;
    grid-column: 1;
  }

  .domestic-promo-mid-top {
    grid-column: 2;
    grid-row: 1;
  }

  .domestic-promo-mid-bottom {
    grid-column: 2;
    grid-row: 2;
  }

  .domestic-promo-tall {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .domestic-promo-label {
    font-size: 1.1rem;
  }

  .domestic-promo-sub {
    font-size: 0.85rem;
    margin-top: 0.35rem;
  }

  .domestic-quicklinks-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.65rem 1.5rem;
  }

  .domestic-footer .footer-content {
    flex-direction: row;
    padding: 1rem 2rem;
    gap: 2rem;
  }

  .domestic-footer .footer-tagline {
    font-size: 0.9rem;
  }
}

/* —— Domestic vehicle detail page (PDP) — mobile first —— */
.dpdp {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.75rem 2rem;
  box-sizing: border-box;
}

.dpdp-head {
  margin-bottom: 0.9rem;
}

.dpdp-make {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  background: #f0f0f0;
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.4rem;
}

.dpdp-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.25;
}

.dpdp-grade {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fe0302;
}

.dpdp-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dpdp-left,
.dpdp-right {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Phone: flatten columns so we can reorder sections */
@media (max-width: 991px) {
  .dpdp-left,
  .dpdp-right {
    display: contents;
  }

  .dpdp-order-media {
    order: 1;
  }

  .dpdp-order-thumbs {
    order: 2;
  }

  .dpdp-order-desc {
    order: 3;
  }

  .dpdp-order-summary {
    order: 4;
  }

  .dpdp-order-specs {
    order: 5;
  }

  .dpdp-order-features {
    order: 6;
  }

  .dpdp-order-dealer {
    order: 7;
  }
}

/* Image + thumbnails */
.dpdp-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.dpdp-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dpdp-no-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #999;
  font-size: 0.9rem;
}

.dpdp-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.4rem;
  margin-top: -0.25rem;
}

.dpdp-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #f0f0f0;
  cursor: pointer;
  overflow: hidden;
}

.dpdp-thumb.active {
  border-color: #fe0302;
}

.dpdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f0f0f0;
}

/* Section blocks */
.dpdp-block {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
}

.dpdp-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
}

.dpdp-desc-text {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.dpdp-desc-empty {
  color: #999;
}

/* Full spec table (left column) */
.dpdp-specs {
  margin: 0;
  border: 1px solid #ececec;
  border-radius: 8px;
  overflow: hidden;
}

.dpdp-spec {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
}

.dpdp-spec:last-child {
  border-bottom: none;
}

.dpdp-spec dt {
  flex: 0 0 42%;
  background: #fafafa;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  margin: 0;
}

.dpdp-spec dd {
  flex: 1;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: #1a1a1a;
  margin: 0;
  word-break: break-word;
}

/* Right: summary (price + key specs) */
.dpdp-summary {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
}

.dpdp-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.dpdp-price-break {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #eee;
}

.dpdp-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #555;
}

.dpdp-price-row strong {
  color: #1a1a1a;
  font-weight: 700;
  white-space: nowrap;
}

.dpdp-price-total {
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid #f0f0f0;
  font-size: 1rem;
}

.dpdp-price-total strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fe0302;
}

.dpdp-price-loan strong {
  color: #1565c0;
}

.dpdp-short {
  font-weight: 600;
  margin-bottom: 0.5rem !important;
}

.dpdp-feat-cat {
  margin-bottom: 1rem;
}

.dpdp-feat-cat-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.5rem;
}

.dcars-card-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.dcars-card-price-note {
  font-size: 0.68rem;
  color: #888;
}

.dcars-card-loan {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1565c0;
}

.dpdp-price-note {
  font-size: 0.75rem;
  font-weight: 500;
  color: #888;
  margin-left: 0.3rem;
}

.dpdp-summary-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dpdp-summary-specs li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed #eee;
}

.dpdp-summary-specs li:last-child {
  border-bottom: none;
}

.dpdp-summary-specs span {
  color: #777;
  flex: 0 0 auto;
}

.dpdp-summary-specs strong {
  color: #1a1a1a;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* CTA row: box + inquiry button */
.dpdp-cta {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.dpdp-cta-box {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #555;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.1rem;
}

.dpdp-cta-box.active {
  color: #fe0302;
  border-color: #fe0302;
}

.dpdp-cta-box:hover {
  border-color: #fe0302;
  color: #fe0302;
}

.dpdp-inquiry-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #fe0302;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
}

.dpdp-inquiry-btn:hover {
  background: #d50202;
  color: #fff;
}

.dpdp-inquiry-btn svg {
  width: 18px;
  height: 18px;
}

/* Dealer information */
.dpdp-dealer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dpdp-dealer-list li {
  font-size: 0.85rem;
  color: #333;
  padding: 0.3rem 0;
  display: flex;
  gap: 0.5rem;
}

.dpdp-dealer-list li span {
  flex: 0 0 5.5rem;
  color: #888;
}

.dpdp-dealer-list a {
  color: #1a1a1a;
}

.dpdp-dealer-list a:hover {
  color: #fe0302;
}

/* Features */
.dpdp-features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.dpdp-feature {
  font-size: 0.82rem;
  color: #333;
  padding: 0.4rem 0.6rem;
  background: #f5f5f5;
  border-radius: 6px;
}

/* Inquiry form */
.dpdp-inquiry {
  margin-top: 1.25rem;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 10px;
}

.dpdp-inquiry-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.dpdp-inquiry-form p {
  margin: 0 0 0.75rem;
}

.dpdp-inquiry-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.dpdp-inquiry-form input,
.dpdp-inquiry-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  font-family: inherit;
}

.dpdp-inquiry-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fe0302;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.dpdp-inquiry-submit:hover {
  background: #d50202;
}

.dpdp-back {
  margin-top: 1.5rem;
}

.dpdp-back-link {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}

.dpdp-back-link:hover {
  color: #fe0302;
}

/* Tablet */
@media (min-width: 600px) {
  .dpdp {
    padding: 1.5rem 1rem 2.5rem;
  }

  .dpdp-name {
    font-size: 1.6rem;
  }

  .dpdp-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dpdp-inquiry-submit {
    width: auto;
    min-width: 200px;
  }
}

/* Desktop: left (image/desc/specs) + right (summary/inquiry/dealer) */
@media (min-width: 992px) {
  .dpdp-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .dpdp-left {
    flex: 1 1 58%;
    max-width: 58%;
  }

  .dpdp-right {
    flex: 1 1 42%;
    position: sticky;
    top: 80px;
  }

  .dpdp-name {
    font-size: 1.8rem;
  }
}

/* —— Domestic car listing page — mobile first —— */
.dcars {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.75rem 2rem;
  box-sizing: border-box;
}

.dcars-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
}

.dcars-filter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.dcars-filter input,
.dcars-filter select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  background: #fff;
}

.dcars-filter-btn {
  padding: 0.7rem 1rem;
  background: #fe0302;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.dcars-filter-btn:hover {
  background: #d50202;
}

.dcars-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Mobile default: horizontal list rows (image | details) */
.dcars-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: none;
  border-bottom: 1px solid #1a1a1a;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.dcars-card-media {
  display: block;
  flex: 0 0 38%;
  width: 38%;
  max-width: 140px;
  min-height: 100px;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  line-height: 0;
  align-self: stretch;
  overflow: hidden;
}

.dcars-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f0f0f0;
}

.dcars-card-noimg {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100px;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.75rem;
  line-height: 1.2;
}

.dcars-card-body {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: center;
}

.dcars-card-make {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  color: #555;
  background: #f0f0f0;
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
}

.dcars-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.dcars-card-name a {
  color: #1a1a1a;
  text-decoration: none;
}

.dcars-card-name a:hover {
  color: #fe0302;
}

.dcars-card-grade {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fe0302;
}

.dcars-card-desc {
  display: none; /* hide long description on phone list rows */
}

.dcars-card-specs {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
}

.dcars-card-specs li {
  font-size: 0.68rem;
  color: #333;
  background: #f6f6f6;
  border-radius: 3px;
  padding: 0.12rem 0.35rem;
}

.dcars-card-specs li span {
  color: #999;
  margin-right: 0.2rem;
}

.dcars-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: nowrap;
  margin-top: 0.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid #f0f0f0;
}

.dcars-card-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a1a1a;
  white-space: nowrap;
}

.dcars-card-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fe0302;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dcars-card-inquiry:hover {
  background: #d50202;
  color: #fff;
}

.dcars-card-inquiry svg {
  width: 14px;
  height: 14px;
}

.dcars-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dcars-page {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.dcars-page:hover {
  border-color: #fe0302;
  color: #fe0302;
}

.dcars-page-current {
  font-size: 0.85rem;
  color: #666;
}

.dcars-empty {
  text-align: center;
  color: #777;
  padding: 2rem 0;
}

/* Tablet+: keep list rows, slightly roomier */
@media (min-width: 600px) {
  .dcars {
    padding: 1.5rem 1rem 2.5rem;
  }

  .dcars-title {
    font-size: 1.4rem;
  }

  .dcars-filter {
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    align-items: center;
  }

  .dcars-card-media {
    flex: 0 0 200px;
    width: 200px;
    max-width: none;
    min-height: 140px;
  }

  .dcars-card-body {
    padding: 0.85rem 1rem;
    gap: 0.4rem;
  }

  .dcars-card-name {
    font-size: 1.05rem;
  }

  .dcars-card-desc {
    display: block;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
  }

  .dcars-card-specs li {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .dcars-card-price {
    font-size: 1.1rem;
  }

  .dcars-card-inquiry {
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
  }
}

/* Desktop: larger horizontal rows */
@media (min-width: 992px) {
  .dcars-list {
    gap: 0;
  }

  .dcars-card {
    flex-direction: row;
  }

  .dcars-card-media {
    flex: 0 0 280px;
    width: 280px;
    min-height: 180px;
  }

  .dcars-card-body {
    padding: 1.1rem 1.25rem;
    gap: 0.5rem;
  }

  .dcars-card-name {
    font-size: 1.25rem;
  }

  .dcars-card-desc {
    font-size: 0.88rem;
  }

  .dcars-card-price {
    font-size: 1.2rem;
  }
}

/* Domestic inquiry checkout */
.dinq {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.dinq-header {
  margin-bottom: 1.5rem;
}

.dinq-title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.dinq-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #666;
}

.dinq-layout {
  display: grid;
  gap: 1.5rem;
}

.dinq-vehicle-title,
.dinq-form-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.dinq-vehicle-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
}

.dinq-vehicle-card:hover {
  border-color: #ccc;
}

.dinq-vehicle-img {
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}

.dinq-vehicle-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #999;
}

.dinq-vehicle-make {
  margin: 0;
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dinq-vehicle-name {
  margin: 0.15rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}

.dinq-vehicle-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #666;
}

.dinq-vehicle-price {
  margin: 0.45rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fe0302;
}

.dinq-vehicle-price span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #888;
}

.dinq-back-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
}

.dinq-back-link:hover {
  color: #fe0302;
}

.dinq-form-panel {
  padding: 1.1rem 1rem 1.25rem;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
}

.dinq-autofill-note {
  margin: -0.25rem 0 1rem;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.45;
}

.dinq-field {
  margin: 0 0 1rem;
}

.dinq-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
}

.dinq-field label span {
  color: #fe0302;
}

.dinq-input,
.dinq-form input,
.dinq-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
}

.dinq-form input:focus,
.dinq-form textarea:focus {
  outline: none;
  border-color: #fe0302;
  box-shadow: 0 0 0 2px rgba(254, 3, 2, 0.12);
}

.dinq-help {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #888;
}

.dinq-error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: #c62828;
}

.dinq-field--error input,
.dinq-field--error textarea {
  border-color: #c62828;
}

.dinq-submit {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 8px;
  background: #fe0302;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.dinq-submit:hover {
  background: #d50202;
  color: #fff;
}

.dinq-submit--link {
  display: inline-block;
  width: auto;
  min-width: 220px;
}

.dinq--success {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  padding-top: 2rem;
}

.dinq-success-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 2rem 1.25rem;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background: #fff;
}

.dinq-success-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fe0302;
  text-transform: uppercase;
}

.dinq-success-title {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a1a;
}

.dinq-success-message {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .dinq {
    padding: 1.75rem 1.5rem 3.5rem;
  }

  .dinq-layout {
    grid-template-columns: minmax(260px, 340px) 1fr;
    align-items: start;
    gap: 2rem;
  }

  .dinq-form-panel {
    padding: 1.35rem 1.4rem 1.5rem;
  }

  .dinq-vehicle-card {
    grid-template-columns: 1fr;
  }

  .dinq-vehicle-img {
    width: 100%;
    height: 180px;
  }
}
