.row.car_search {
  position: relative;
  padding: 100px 0;
}

.row.car_search .section-cap {
  position: absolute;
  left: 50%;
  right: 0;
  top: -67px;
  transform: translateX(-50%);
  height: 70px;
  color: #fff;
  pointer-events: none;
  z-index: 1;
  width: 100vw;
  max-width: none;
  padding: 0 !important;
}

.row.car_search .section-cap .cap-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tcq {
  padding: 24px 0;
}

.tcq__wrap {
  max-width: 1920px;
  margin: 0 auto;
  width: 90%;
  padding: 0 16px;
}

.tcq__header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    /* position: sticky;
    top: 130px; */
    background: white;
    padding: 10px 0;
    max-width: 1920px;
    width: 90%;
    padding: 15px 0;
}

.tcq__steps {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tcq__sidebar-inner{
  position: sticky;
  top: 130px;
  max-height: calc(100vh - 130px - 24px);
  overflow-y: auto;
  background: #fff;
  box-sizing: border-box;
  padding-right: 8px;
}
.tcq__steps li {
  padding: 8px 12px;
  border-radius: 12px;
  background: #f2f2f2;
  font-weight: 600;
}

.tcq__steps li.is-active {
  background: #111;
  color: #fff;
}

.tcq__header-actions {
  /* margin-left: auto; */
  display: flex;
  gap: 8px;
  align-items: center;
}

.tcq-skip {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.tcq__step {
  display: none;
}

.tcq__step.is-current {
  display: block;
}

/* Two-column layout */
.tcq__layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 50px;
}
.has-items .ts-control > input{
  height: 30px !important;
}
.row.car_search .tcq__form .gfield.cc-disabled-field textarea {
  border: none !important;
  background-color: white !important;
  padding: 0 !important;
  pointer-events: none;
  user-select: none;
  color: #777;
  /* height: fit-content !important; */
}

.tcq-pagi {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.tcq-pagi>ul {
  display: flex;
  width: 20%;
  justify-content: space-between;
  list-style: none;
}

.tcq-pagi>ul li {
  display: flex;
  align-items: center;
}

.tcq-pagi>ul span.tcq-pagi__cur {
  font-size: 25px;
}

.tcq-pagi>ul a {
  color: #000 !important;
}

.tcq-pagi>ul a:hover {
  text-decoration: underline;
}

/* Loader */
.tcq__content .loader {
  width: 86px;
  height: 50px;
  border-radius: 50px;
  background:
    radial-gradient(farthest-side, #0000 calc(100% - 10px), #FFF calc(100% - 10px) 100%, #0000) left,
    radial-gradient(farthest-side, #0000 calc(100% - 10px), #FFF calc(100% - 10px) 100%, #0000) right;
  background-size: calc(50% + 5px) 100%;
  background-repeat: no-repeat;
  position: relative;
  animation: flipX 1s infinite linear;
  background-color: #000;
}

.tcq__content .loader-wrapper {
  display: none;
}

.tcq__content.is-loading .loader-wrapper {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

.tcq__content .loader-wrapper .loader-container {
  display: flex !important;
  border-radius: 100%;
  width: 100px;
  height: 100px;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

.tcq__content.is-loading .tcq__results {
  opacity: .5;
  pointer-events: none;
}

.tcq__content .loader:before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #212529;
  transform-origin: -14px 50%;
  animation: rotate 0.5s infinite linear;
}

@keyframes flipX {

  0%,
  49.99% {
    transform: scaleX(1)
  }

  50%,
  100% {
    transform: scaleX(-1)
  }
}

@keyframes rotate {
  100% {
    transform: rotate(360deg)
  }
}

@media (max-width: 992px) {
  .tcq__layout {
    grid-template-columns: 1fr;
  }
}

/* .tcq__sidebar {
  position: sticky;
  top: 12px;
  align-self: start;
} */

.tcq__content {
  min-width: 0;
}

/* Fields & collapsibles */
.tcq__field label,
.tcq__label {
  display: block;
  font-weight: 600;
  /* margin-bottom: 8px; */
  font-size: 14px;
}

.tcq-collapsible {
  border-radius: 10px;
  background: #fff;
  border: 1px solid gainsboro;
}

.tcq-collapsible+.tcq-collapsible {
  margin-top: 10px;
}

.tcq-collapsible__toggle {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  /* background: transparent; */
  border: 0;
  /* padding: 6px 0; */
  cursor: pointer;

  background: gainsboro;
  padding: 6px 10px;
}

.tcq-collapsible__content {
  padding: 5px 10px;
  border-top: 1px dashed #eee;
}

.tcq__field > label{
  color: rgb(33, 37, 41);
}
.ts-control input[type="text"]{
    height: 30px !important;
    font-size: 15px !important;
}
.ts-control {
    padding: 0 8px;
}
.tcq-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg) translate(0px, -3px);
  transition: transform 0.2s ease;
}

.tcq-collapsible.is-open .tcq-caret {
  transform: rotate(-135deg) translate(0px, -3px);
}

.tcq__field input[type="number"],
.tcq__field select {
    width: 100%;
    padding: 0 12px;
    border: 1px solid #d8d8d8 !important;
    border-radius: 0px !important;
    background: #fff;
    height: 30px !important;
    font-size: 14px !important;
}

/* Chips */
.tcq__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tcq__field.tcq-budget-filter{
  padding-bottom: 9px;
}
.tcq-chip {
  padding: 8px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  line-height: 1;
}

.tcq-chip.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.tcq-chip--empty {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Buttons */
.tcq__nav {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.tcq-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #111;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.tcq-btn--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.tcq-btn--ghost {
  background: #fff;
  border: 1px solid #ddd;
  color: #111;
}

/* Results */
.tcq__results {
  margin-top: 0;
}

.quiz-results.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.tcq-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tcq-card {
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.tcq-card .tcq-card__media {
  aspect-ratio: 1 / 1;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  display: block;
}

.tcq-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcq-card__ph {
  height: 450px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: #f7f7f7;
}

.tcq-card__body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tcq-card__price {
  font-weight: 700;
}

.tcq-card__shortlist {
  margin-top: 4px;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  background: #fff;
  cursor: pointer;
}

/* Empty state */
.tcq-empty {
  padding: 100px 50px;
  border: 1px dashed #ddd;
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
}

.tcq-empty h4 {
  margin: 0 0 6px 0;
}

.tcq-empty p {
  margin: 0 0 12px 0;
}

.tcq-empty__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Under-image info layout */
.tcq-card__make {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.tcq-card__model {
  font-size: 18px;
  font-weight: 700;
  margin: 2px 0 4px 0;
  line-height: 1.2;
}

.tcq-card__model a {
  color: inherit;
  text-decoration: none;
}

.tcq-card__model a:hover {
  text-decoration: underline;
}

/* Badges + Quick View modal */
.tcq-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #e2e2e2;
  background: #f7f7f7;
  color: #333;
}

.tcq-badge--stock {
  background: #e8f6ed;
  border-color: #cfead8;
  color: #0b6b31;
}

.tcq-badge--range {
  background: #eef0f5;
  border-color: #dadee8;
  color: #2b3954;
}

.tcq-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Modal overlay */
.tcq-modal-open {
  overflow: hidden;
}

.tcq-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.tcq-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tcq-modal {
  width: min(900px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
}

.tcq-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 32px;
}

.tcq-modal__content {
  padding: 16px;
}

/* Quick view inner */
.tcq-qv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 800px) {
  .tcq-qv {
    grid-template-columns: 1fr;
  }
}

.tcq-qv__media img,
.tcq-qv__media .tcq-card__ph {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.tcq-qv__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-right: 40px;
}

.tcq-qv__price {
  font-weight: 800;
  font-size: 20px;
}

.tcq-qv__title {
  margin: 4px 0 10px 0;
  font-size: 22px;
  line-height: 1.3;
}

.tcq-qv__make {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #666;
  margin-right: 6px;
}

.tcq-qv__model {
  font-weight: 800;
}

.tcq-qv__specs ul {
  padding: 0;
  margin: 0 0 12px 0;
  list-style: none;
}

.tcq-qv__specs li {
  padding: 4px 0;
  border-bottom: 1px dashed #eee;
}

.tcq-qv__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tcq-modal__loading,
.tcq-modal__error {
  text-align: center;
  padding: 60px 20px;
  color: #333;
}

/* Wishlist list */
.tcq-wishlist-ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tcq-wishlist-ul li {
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tcq-wishlist-ul li a {
  color: #000;
  text-decoration: underline;
}

.tcq-wishlist-ul li a:hover {
  text-decoration: none;
}

.tcq-wishlist-thumb {
  width: 56px;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* A11y helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tcq-btn--filter{
  margin: 0 0 20px;
}
#tcq-2-step2-title{
  text-align: center;
}
.remove-from-wishlist,.clear-wishlist{
  font-size: 12px;
    color: red;
    font-weight: 700;
    opacity: 0.6;
    cursor: pointer;
}
.remove-from-wishlist:hover,.clear-wishlist:hover{
  opacity: 1;
}
.tcq-wishlist-list{
  margin-top: 15px;
}
@media (max-width: 1440px) {
  .tcq-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tcq-card .tcq-card__media {
    height: 335px;
  }
}

@media (max-width: 1190px) {
  .tcq-cards {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .tcq-card .tcq-card__media {
    height: 435px;
  }

  .tcq__layout {
    grid-template-columns: 420px 1fr;
  }
}

@media (max-width: 1024px) {
  .tcq-card .tcq-card__media {
    height: 335px;
  }

  .tcq__layout {
    grid-template-columns: 375px 1fr;
  }
}

@media (max-width: 850px) {
  .tcq__layout {
    grid-template-columns: 310px 1fr;
  }

  .tcq__field {
    font-size: 14px;
  }
}

/* Lock background when modal is open */
.tcq-no-scroll {
  overflow: hidden;
}

/* ===== Mobile (≤800px) ===== */
@media (max-width: 800px) {
  .tcq__header{
    display: none;
  }
  .tcq-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .tcq__layout {
    grid-template-columns: 1fr;
  }

  .tcq-btn--filter {
    display: inline-flex;
  }

  .tcq .tcq__sidebar {
    display: none;
  }

  .tcq.is-filters-open .tcq__sidebar {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #fff;
    width: 90%;
    height: 85vh;
    /* overflow-y: auto; */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 16px 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .tcq.is-filters-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .tcq__filters-bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    /* background: #fff; */
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    padding: 10px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .tcq__sidebar .tcq-collapsible__content {
    overflow: visible;
  }
}

/* ===== Desktop (≥801px) ===== */
@media (min-width: 801px) {
  .tcq__filters-bar {
    display: none;
  }

  .tcq-btn--filter {
    display: none;
  }

  /* .tcq__layout { align-items: start; overflow: visible; }

  .tcq__sidebar {
    position: sticky;
    top: 80px;                       
    max-height: calc(100vh - 80px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 2; 
  } */
}

@media (max-width: 590px) {
  .tcq-cards {
    grid-template-columns: repeat(1, 1fr);
  }

  .tcq-card .tcq-card__media {
    height: 65vw;
  }
}

/* [TS] Minimal Tom Select harmony */
.tcq-select {
  width: 100%;
}

.ts-dropdown {
  z-index: 10003;
}

/* float above modal/filter panel */
.ts-wrapper {
  width: 100%;
}