/*
 * vehicle-detail-modal.css
 * Faithful extraction of the reference modal styling from:
 * https://design.cartradeexchange.com/SAMIL/.../physical-auctions-bank.html
 *
 * Scoped to the modal only. No Bootstrap / Swiper dependency required.
 * Values, spacing, typography and breakpoints mirror the live reference.
 */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v24/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2');
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* ---------- Scoped reset / base ---------- */
.vehicle-detail-modal-shell *,
.vehicle-detail-modal-shell *::before,
.vehicle-detail-modal-shell *::after {
  box-sizing: border-box;
}

.vehicle-detail-modal-shell button,.vehicle-detail-modal-shell input {
  font: inherit;font-size: 14px;font-weight: 500;
}

.vehicle-detail-modal-shell img {display: block;max-width: 100%;}

.vehicle-detail-modal-shell .svg_icn {width: 1em;height: 1em;fill: currentColor;}

/* ---------- Overlay (Bootstrap .modal replacement) ---------- */
.vehicle-detail-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  background: rgba(0, 0, 0, 0.66);
  font-family: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.interested-modal-wrap{
  .interested-modal .row2 input.errorborder, 
  .interested-modal .row2 textarea.errorborder, 
  .interested-modal .row2 select.errorborder{
    border: 1px solid red !important;
  }
}
.d-none { display: none !important; }

.visually-hidden,
.vehicle-detail-modal-shell .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Dialog & content box ---------- */
.vehicle-modal-dialog {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  margin-top: 4vh;
  margin-bottom: 4vh;
  max-height: calc(100dvh - 8vh);
}

.vehicle-detail-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  max-height: calc(100dvh - 8vh);
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.11);
}

/* ---------- Close button ---------- */
.vehicle-modal-close {
  position: absolute;
  z-index: 6;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #516E97;
  border-radius: 50%;
  background: #ffffff;
  color: #2b2a29;
  font-size: 31px;
  line-height: 1;padding-top: 5px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(26, 55, 94, 0.16);
}

.vehicle-modal-close span { transform: translateY(-2px); }
.vehicle-modal-close img { width: 14px; }

/* ---------- Top bar (Back to Details) — desktop: only on interest step ---------- */
.vehicle-modal-topbar {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #d7b6ff 0%, #bedbff 100%);
}

/* ---------- Bottom bar (Previous / Next) — desktop: header on details step ---------- */
.vehicle-modal-bottombar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #d7b6ff 0%, #bedbff 100%);
}

.vehicle-modal-topbar .interest-modal-back-btn { display: none; }

.vehicle-detail-modal-shell.is-interest-step .vehicle-modal-topbar {
  display: flex;
  justify-content: flex-start;
}
.vehicle-detail-modal-shell.is-interest-step .vehicle-modal-back-btn { display: none; }
.vehicle-detail-modal-shell.is-interest-step .vehicle-modal-topbar .interest-modal-back-btn {
  display: inline-flex;
}
.vehicle-detail-modal-shell.is-interest-step .vehicle-modal-bottombar { display: none; }

/* ---------- Pills (nav + back) ---------- */
.vehicle-modal-back-btn,
.vehicle-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #ffffff;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.49);
  color: #2b2a29;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  transition: all 0.2s ease;
}
.vehicle-nav-pill:hover { background-color: #ffffff; }
.vehicle-nav-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.vehicle-modal-back-btn { display: none; }

.vehicle-nav-pill span,
.vehicle-modal-back-btn span { font-size: 20px; line-height: 1; }
.vehicle-nav-pill span img,
.vehicle-modal-back-btn span img { width: 14px; }

/* ---------- Step frame / scroll regions ---------- */
.vehicle-modal-step-frame { flex: 1 1 auto; min-height: 0; }

.vehicle-modal-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px 24px;
  scroll-padding-top: 16px;
  scroll-padding-bottom: 24px;
  scrollbar-color: #a8bce5 #eef3fb;
  scrollbar-width: thin;
}
.vehicle-modal-inner::-webkit-scrollbar { width: 6px; height: 6px; }
.vehicle-modal-inner::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.vehicle-modal-inner::-webkit-scrollbar-track { background: #eef3fb; border-radius: 999px; }
.vehicle-modal-inner::-webkit-scrollbar-thumb { border: 1px solid #eef3fb; background: #a8bce5; border-radius: 999px; }
.vehicle-modal-inner::-webkit-scrollbar-thumb:hover { background: #8faadd; }

.vehicle-modal-step-2.interest-modal {
  overflow-y: auto;
  border: 0;
  border-radius: 0 0 20px 20px;
  box-shadow: none;
}

.interested-modal .row1{
    min-height: 108px;
    .profile-pic{ margin-bottom:0.4rem; }
}


/*-----Sell Your Vehicle---Success/Failure Message___*/
.thank-you-card {
  width: 100%;max-width: 100%;min-height: fit-content;
  display: flex;justify-content: center;align-items: start;
  position: relative;
}

/*.thank-you-card__surface {
  position: absolute;inset: 0;background: #fff;border: 1px solid #975be2;border-radius: 41px;box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);pointer-events: none;
}*/

.thank-you-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /*padding: 72px 86px 54px;*/padding: 0.3rem 1rem 1rem;
  text-align: center;
}

/* Group 19413 â€“ success badge */
.thank-you-card__icon {
  width: 172px;
  height: 85px;
  margin: 1rem 0;
  flex-shrink: 0;
}

.thank-you-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Heading â€“ Poppins SemiBold 28px / 60px */
.thank-you-card__title {
  margin: 0 0 0;
  max-width: 100%;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0;
  color: #000;
}

/* Body copy â€“ Poppins Regular 20px / 36px */
.thank-you-card__message {
    color: #595959;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4rem;
    margin: auto;
    padding: 1rem 0.6rem 19px;
    width: 100%;
}

/* Group 19417 â€“ Need Help box */
.help-box {
  position: relative;
  width: 100%;
  max-width: 451px;
  min-height: 98px;
}

.help-box__surface {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #ffe39a 0%, #ffc4b5 100%);
  pointer-events: none;
}

.help-box__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px 14px;
  gap: 8px;
}

.help-box__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: #000;
}

/*---contact row----*/
.help-box__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
}

.help-box__contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 30px;
  color: #383838;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.help-box__contact:hover,
.help-box__contact:focus-visible {
  opacity: 0.75;
}

.help-box__contact:focus-visible {
  outline: 2px solid #975be2;
  outline-offset: 2px;
  border-radius: 4px;
}

.help-box__contact-icon {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.help-box__contact-icon--phone {
  width: 17px;
  height: 17px;
}

.help-box__contact-icon--email {
  width: 23px;
  height: 14px;
}

/* Tablet */
@media (max-width: 680px) {
  .thank-you-card {
    min-height: auto;
  }
  /*
    .thank-you-card__content {
      padding: 48px 32px 40px;
    }

    .thank-you-card__title {
      font-size: 24px;
      line-height: 1.35;
    }

    .thank-you-card__message {
      font-size: 18px;
      line-height: 1.6;
      margin-bottom: 24px;
  }*/
}

/* Mobile */
@media (max-width: 480px) {
/*  .page {
    padding: 16px 12px;
  }*/
  /*
    .thank-you-card__surface {
      border-radius: 28px;
    }
  
    .thank-you-card__content {
      padding: 36px 20px 32px;
    }

    .thank-you-card__icon {
      width: 140px;
      height: 134px;
      margin-bottom: 20px;
    }

    .thank-you-card__title {
      font-size: 22px;
    }

    .thank-you-card__message {
      font-size: 16px;
      line-height: 1.55;
    }
  
    .help-box__contacts {
      flex-direction: column;
      gap: 12px;
    }

    .help-box__contact {
      font-size: 16px;
    }
  */
}

.interested-modal{
  #iam_response{inset:auto;position: relative;padding: 0 !important;margin-top: 0 !important;overflow:auto}
}
/* Desktop: crossfade the two steps in a shared grid cell */
@media (min-width: 992px) {
  .vehicle-modal-step-frame { display: grid; overflow: hidden; }
  .vehicle-modal-step { grid-area: 1 / 1; transition: opacity 0.28s ease, visibility 0.28s ease; }
  .vehicle-modal-step-2.d-none { display: block !important; }
  .vehicle-modal-step-frame[data-modal-step="1"] .vehicle-modal-step-2,
  .vehicle-modal-step-frame[data-modal-step="2"] .vehicle-modal-step-1 {
    opacity: 0; pointer-events: none; visibility: hidden;
  }
  .vehicle-modal-step-frame[data-modal-step="1"] .vehicle-modal-step-1,
  .vehicle-modal-step-frame[data-modal-step="2"] .vehicle-modal-step-2 {
    opacity: 1; pointer-events: auto; visibility: visible;
  }
}

/* ---------- Gallery ---------- */
.vehicle-gallery {
  width: min(100%, 712px);
  margin: 0 auto;
  border-radius: 16px;
  background: #ffffff;
}

.vehicle-hero-wrap {
  position: relative;
  overflow: hidden;
  height: clamp(210px, 32vh, 300px);
  border-radius: 16px 16px 0 0;
  background: #eef2f7;
}
.vehicle-hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.vehicle-hero-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Share trigger (white circle, top-left) */
.share-trigger {
  position: absolute;
  top: 17px;
  left: 17px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #34217d;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(18, 34, 68, 0.12);
  transition: all 0.2s linear;
}
.share-trigger:hover { transform: scale(1.1); }

.vehicle-share-btn {
  z-index: 3;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  color: #34217d;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
.vehicle-share-btn img { width: 15px; }

/* Share popover */
.share-popover {
  position: absolute;
  z-index: 8;
  top: 48px;
  left: 20px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 12px 8px 6px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(18, 37, 68, 0.18);
}
.share-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 10px;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
  border-left: 8px solid transparent;
}
.share-popover.is-open { display: flex; }
.share-popover button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 4px;
  background: #25415f;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.share-popover button img { width: 16px; height: 16px; }
.vehicle-share-popover { top: 58px; left: 18px; }

/* Gallery arrows */
.vehicle-gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 44px;
  border: 0;
  background: rgba(0, 0, 0, 0.36);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.vehicle-gallery-arrow:hover { background: rgba(0, 0, 0, 0.56); }
.vehicle-gallery-arrow.is-left { left: 0; border-radius: 0 8px 8px 0; }
.vehicle-gallery-arrow.is-right { right: 0; border-radius: 8px 0 0 8px; }
.vehicle-gallery-arrow img { width: 9px; }

/* ---------- Thumbnail strip ---------- */
.vehicle-thumb-strip {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 8px 12px;
  border: 1px solid #dedede;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: #ffffff;
}
.vehicle-thumbs {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #a8bce5 #eef3fb;
  scrollbar-width: thin;
}
.vehicle-thumbs::-webkit-scrollbar { height: 5px; }
.vehicle-thumbs::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.vehicle-thumbs::-webkit-scrollbar-track { border-radius: 999px; background: #eef3fb; }
.vehicle-thumbs::-webkit-scrollbar-thumb { border-radius: 999px; background: #a8bce5; }
.vehicle-thumbs::-webkit-scrollbar-thumb:hover { background: #8faadd; }

.vehicle-thumb,
.vehicle-thumb-scroll {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.vehicle-thumb-scroll {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #5579c1;
  color: #ffffff;
  font-size: 15px;
}
.vehicle-thumb-scroll.is-next { background: #5579c1; }
.vehicle-thumb-scroll img { width: 10px; height: auto; top: 0.5px; position: relative; }
.vehicle-thumb-scroll.is-next img{inset:auto}

.vehicle-thumb {
  flex: 0 0 62px;
  width: 62px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
  background: #e1e8f3;
  opacity: 0.8;
  scroll-snap-align: center;
}
.vehicle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
}
.vehicle-thumb.is-active { opacity: 1; }
.vehicle-thumb.is-active::after { opacity: 1; }
.vehicle-play { position: absolute; z-index: 2; color: #ffffff; font-size: 18px; }

/* ---------- Details ---------- */
.vehicle-modal-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px 22px;
  padding-top: 14px;
}

.vehicle-detail-main h2 {
  margin: 0 0 10px;
  color: #2b2a29;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.vehicle-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 8px 28px;
}

.vehicle-detail-grid span,
.vehicle-parking-line,
.vehicle-contact-panel p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #747474;
  font-size: 12px;
  line-height: 18px;
}

.vehicle-detail-grid strong,
.vehicle-parking-line strong,
.vehicle-contact-panel strong {
  color: #3b3b3b;
  font-weight: 500;
}

.meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1;
}
.meta-icon img { width: 14px; }
.vehicle-detail-grid span img,
.vehicle-parking-line img,
.vehicle-contact-panel p img { width: 12px; }

.vehicle-parking-line { 
  margin-top: 10px;width: 100%;display: block; 
  .icon{ width:12px;height:16px;margin-top:2px;margin-left: 2px;vertical-align: middle;display: inline-block; }
}
.vehicle-parking-line strong{ color: #3b3b3b; font-weight: 500; flex-shrink:0 }

.vehicle-contact-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-top: 8px;
  .modalContact{
    color: #090091;font-size: 14px;position: relative;font-weight: normal;
    cursor: pointer;text-decoration: none;
  }
  .modalContact::after{
    content: '';position: absolute;transition: all 0.3s ease;bottom: 0;left: 0;
    width: 0;height: 1px;border-bottom: 1px dashed #090091;
  }
  .modalContact:hover::after{width: 100%;}
}

.vehicle-interest-btn {
  min-height: 38px;
  border: 1px solid #f27922;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(90deg, #ff8629 0%, #fc510e 100%);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.vehicle-interest-btn:hover,
.vehicle-interest-btn:focus,
.vehicle-interest-btn.is-selected {
  border-color: #d53c00;
  color: #ffffff;
  background: #d94b0d;
}

.vehicle-contact-panel p { justify-content: center; }
.vehicle-contact-panel strong {
  color: #090091;
  font-weight: normal;
  position: relative;
  cursor: pointer;
}

/* ---------- Price strip ---------- */
.vehicle-price-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.35fr 1.75fr;
  min-height: 44px;
  border-radius: 8px;
  background: #f1f6ff;
}
.vehicle-price-strip span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 14px;
  border-left: 1px solid #dbe6f9;
  color: #747474;
  font-size: 12px;
  line-height: 16px;
}
.vehicle-price-strip span:first-child { border-left: 0; }
.vehicle-price-strip strong { color: #3b3b3b; font-weight: 500; }

/* ---------- Tabs ---------- */
.vehicle-detail-tabs {
  grid-column: 1 / -1;
  min-height: 0;
  margin-top: 2px;
  border: 1px solid #e3e7f0;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
.vehicle-tab-list {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 48px;
  padding: 0 20px;
  overflow-x: auto;
  border-bottom: 1px solid #e1e5ee;
  scrollbar-width: none;
}
.vehicle-tab-list::-webkit-scrollbar { display: none; }
.vehicle-tab-btn {
  position: relative;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2b2a29;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.vehicle-tab-btn::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #3a2c88;
  opacity: 0;
}
.vehicle-tab-btn.is-active { color: #3a2c88; font-weight: 600; }
.vehicle-tab-btn.is-active::after { opacity: 1; }

.vehicle-tab-scroll {
  max-height: 146px;
  overflow-y: auto;
  padding: 16px 0.3rem 18px;
  scrollbar-color: #a8bce5 #eef3fb;
  scrollbar-width: thin;
}
.vehicle-tab-scroll::-webkit-scrollbar { width: 6px; }
.vehicle-tab-scroll::-webkit-scrollbar-button { display: none; }
.vehicle-tab-scroll::-webkit-scrollbar-track { border-radius: 999px; background: #eef3fb; }
.vehicle-tab-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: #a8bce5; }

.vehicle-tab-detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.vehicle-tab-detail-grid div { min-width: 0; }
.vehicle-tab-detail-grid dt {
  margin-bottom: 4px;
  color: #747474;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}
.vehicle-tab-detail-grid dd {
  margin: 0;
  color: #2b2a29;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.vehicle-remarks-copy {
  max-width: 780px;
  color: #555d77;
  font-size: 13px;
  line-height: 21px;
}
.vehicle-remarks-copy p { margin: 0 0 10px; }
.vehicle-remarks-copy p:last-child { margin-bottom: 0; }

/* ---------- Interest form (step 2) ---------- */
.interest-modal {
  overflow: hidden;
  border-radius: 18px 25px 25px 25px;
  background: #ffffff;
}
.interest-modal-vehicle {
  position: relative;
  display: grid;
  grid-template-columns: 93px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: start;
  min-height: 124px;
  border-radius: 15px;
  padding: 23px 22px 18px 25px;
  background: linear-gradient(87deg, #f3e9ff 2.3%, #daebff 97.3%);
}
.interest-modal-vehicle img {
  width: 93px;
  height: 83px;
  border-radius: 8px;
  object-fit: cover;
}
.interest-modal-vehicle img.icn { width: 11px; height: auto; }

.interest-modal-summary { min-width: 0; }
.interest-modal-summary h2 {
  margin: 0 0 7px;
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}
.interest-modal-summary p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin: 0;
  padding: 4px 13px;
  border: 1px solid #7369b3;
  border-radius: 139px;
  background: #ffffff;
  color: #747474;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}
.interest-modal-summary p span { color: #9f9f9f; font-size: 13px; }
.interest-modal-summary strong { color: #3b3b3b; font-weight: 500; }
.interest-modal-summary .phone_num {
  font-size: 14px;
  color: #090091;
  position: relative;
  font-weight: normal;
  cursor: pointer;
}

.interest-modal-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  margin-left: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.49);
  color: #2b2a29;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}
.interest-modal-back-btn span { display: inline-flex; align-items: center; font-size: 20px; line-height: 1; }
.interest-modal-back-btn span img { width: 14px; }

.interest-form-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 18px;
  padding: 15px 25px 22px;
}
.interest-field {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #4b4b4b;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}
.interest-field-wide { grid-column: 1 / -1; }
.interest-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #7d7d7d;
  border-radius: 6px;
  outline: 0;
  background: #ffffff;
  color: #2b2a29;
  font-size: 14px;
}
.interest-field input::placeholder { color: #9f9f9f; opacity: 1; }
.interest-field input:focus { border-color: #1d489c; box-shadow: 0 0 0 3px rgba(29, 72, 156, 0.12); }
.interest-field-wide input { border-radius: 8px; }
.interest-field input[name="bestPrice"] { background: #f9f9f9; }
.interest-field.has-error input { border-color: #e23b3b; background: #fff5f5; }

.interest-captcha-input { align-self: end; }
.interest-captcha-code {
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 11px 0 18px;
  border: 1px solid #b0d2de;
  border-radius: 8px;
  background: #ecfaff;
  color: #4b4b4b;
}
.interest-captcha-code strong { font-size: 16px; font-weight: 600; letter-spacing: 4px; }
.interest-captcha-code button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1488a8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.interest-submit-btn {
  min-height: 48px;
  margin-top: 3px;
  border: 0.5px solid #f27922;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff8629 0%, #fc510e 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 30px;
  text-transform: uppercase;
  cursor: pointer;
}
.interest-submit-btn:hover,
.interest-submit-btn:focus { color: #ffffff; background: #fc510e; }

/* ============================================================
   RESPONSIVE  (mirrors the reference breakpoints)
   ============================================================ */

@media (max-width: 1199.98px) {
  .vehicle-modal-dialog { width: min(720px, calc(100vw - 28px)); }
  .vehicle-hero-wrap { height: clamp(200px, 30vh, 280px); }
  .vehicle-detail-grid { grid-template-columns: repeat(4, max-content); }
  .vehicle-tab-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vehicle-thumbs { gap: 12px; }
}

@media (max-width: 991.98px) {
  .vehicle-modal-topbar { min-height: 56px; padding: 0 18px; }
  .vehicle-nav-pill { min-width: 0; min-height: 34px; padding-inline: 14px; font-size: 13px; }
  .vehicle-modal-inner { padding: 14px 18px 16px; }
  .vehicle-hero-wrap { height: clamp(200px, 31vh, 280px); }
  .vehicle-modal-details { grid-template-columns: 1fr; }
  .vehicle-contact-panel { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; padding-top: 0; }
  .vehicle-contact-panel p { justify-content: flex-start; }
  .vehicle-tab-list { gap: 20px; padding-inline: 16px; }
  .vehicle-tab-scroll { max-height: 156px; padding-inline: 16px; }
}

@media (max-width: 767.98px) {
  .vehicle-modal-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    margin: 0;
    max-height: none;
  }
  .vehicle-detail-modal {
    min-height: 100dvh;
    max-height: none;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
  }

  .vehicle-modal-step-frame { order: 2; flex: 1 1 auto; min-height: 0; }

  .vehicle-modal-topbar {
    order: 1;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1065;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    height: 42px;
    min-height: 42px;
    width: 100vw;
    padding: 0 14px;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.09);
  }

  .vehicle-modal-bottombar {
    order: 3;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1065;
    width: 100vw;
    min-height: 56px;
    padding: 0 14px;
    border-radius: 0;
  }

  .vehicle-modal-close { display: none; }

  /* On mobile the in-bar "Back" replaces the floating close */
  .vehicle-modal-back-btn {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #2b2a29;
    font-size: 16px;
  }
  .vehicle-modal-back-btn span { display: inline-flex; align-items: center; }

  .vehicle-modal-inner {
    order: 2;
    flex: 1 1 auto;
    height: 100dvh;
    overflow-y: auto;
    padding: 42px 0 76px;
    scroll-padding-top: 42px;
    scroll-padding-bottom: 76px;
  }

  .vehicle-nav-pill { min-width: 0; gap: 8px; min-height: 34px; padding-inline: 10px; font-size: 12px; }
  .vehicle-nav-pill span { font-size: 16px; }

  .vehicle-gallery, .vehicle-hero-wrap { border-radius: 0; }
  .vehicle-gallery { width: 100%; }
  .vehicle-hero-wrap { height: clamp(180px, 30vh, 230px); background: #eef2f7; }

  .vehicle-share-btn { top: 16px; left: 16px; width: 42px; height: 42px; }
  .vehicle-gallery-arrow { width: 32px; height: 46px; font-size: 24px; }

  .vehicle-thumb-strip {
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    gap: 8px;
    min-height: 62px;
    padding: 8px;
    border-radius: 0;
    border: 0;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.19);
  }
  .vehicle-thumbs { gap: 8px; }
  .vehicle-thumb { flex-basis: 56px; width: 56px; height: 42px; }

  .vehicle-modal-details { grid-template-columns: 1fr; gap: 16px; padding: 42px 14px 0; }
  .vehicle-detail-main h2 { margin-bottom: 18px; font-size: 16px; line-height: 24px; }

  .vehicle-detail-grid { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .vehicle-detail-grid span,
  .vehicle-parking-line,
  .vehicle-contact-panel p { align-items: flex-start; font-size: 13px; line-height: 24px; }

  .vehicle-detail-grid span{align-items: center;}

  .vehicle-parking-line { 
    margin-top: 18px; 
    .icon{margin-top:2px;margin-left: 2px;}
  }

  .vehicle-contact-panel { order: 4; display: flex; gap: 14px; grid-template-columns: 1fr; }
  .vehicle-interest-btn { min-height: 48px; font-size: 18px; width: 100%; }
  .vehicle-contact-panel p { justify-content: center; }

  .vehicle-price-strip {
    order: 2;
    grid-template-columns: 1fr 1fr;
    min-height: 123px;
    margin-top: 2px;
    padding: 12px 18px;
    border-radius: 8px;
    gap: 12px 26px;
  }
  .vehicle-price-strip span,
  .vehicle-price-strip span:nth-child(-n+2),
  .vehicle-price-strip span:nth-child(odd) {
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .vehicle-detail-tabs { order: 3; margin-top: 0; }
  .vehicle-tab-list { gap: 18px; min-height: 46px; padding-inline: 14px; }
  .vehicle-tab-btn { min-height: 46px; font-size: 13px; }
  .vehicle-tab-scroll { max-height: none; padding: 14px; }
  .vehicle-tab-detail-grid { grid-template-columns: 1fr 1fr; gap: 14px 16px; }

  /* Interest step becomes a bottom sheet */
  .vehicle-modal-step-2.interest-modal {
    border-radius: 0;
    min-height: 100dvh;
  }
  .interest-modal-vehicle { grid-template-columns: 93px minmax(0, 1fr) auto; gap: 12px; min-height: 125px; padding: 23px 22px 18px; }
  .interest-form-body { gap: 18px 14px; padding: 15px 22px 22px; }
  .interest-captcha-code strong { letter-spacing: 3px; }
}

@media (max-width: 575.98px) {
  .share-popover { left: 12px; max-width: calc(100vw - 56px); }
  .share-popover button { width: 29px; height: 29px; }
  .vehicle-share-btn { top: 17px; left: 16px; width: 28px; height: 28px; font-size: 13px; }
  .vehicle-share-popover { top: 52px; left: 12px; }
  .vehicle-gallery-arrow { top: 44%; width: 22px; height: 34px; font-size: 15px; }
  .vehicle-thumb-strip { grid-template-columns: 24px minmax(0, 1fr) 24px; min-height: 48px; padding: 6px 10px; }
  .vehicle-thumb-scroll { width: 14px; height: 14px; font-size: 10px; }
  .vehicle-thumb { flex: 0 0 45px; width: 45px; height: 36px; }

  .vehicle-detail-grid.grid2,.vehicle-detail-grid.grid3{
    grid-template-columns: repeat(1,max-content);gap: 12px 16px;
  }

}

@media (max-width: 390px) {
  .interest-modal-vehicle { grid-template-columns: 82px minmax(0, 1fr) auto; gap: 8px; padding-inline: 16px; }
  .interest-modal-vehicle img { width: 82px; height: 75px; }
  .interest-modal-summary p { max-width: 100%; padding-inline: 10px; font-size: 13px; }
  .interest-modal-back-btn { gap: 4px; padding-inline: 8px; font-size: 11px; }
  .interest-form-body { grid-template-columns: 1fr; padding-inline: 16px; }
  .interest-field { grid-column: 1 / -1; }
}
