/* Changan embed: layout + form look; site classes handle labels/button */
.credit-calculator.cc {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.credit-calculator.cc .cc__layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px 48px;
  align-items: start;
}

.credit-calculator.cc .cc__col {
  min-width: 0;
}

.credit-calculator.cc .cc__selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.credit-calculator.cc .cc__selects .cc__field {
  margin-bottom: 36px;
}

.credit-calculator.cc .cc__field {
  margin-bottom: 36px;
}

.credit-calculator.cc .cc__input {
  border-radius: 0 !important;
  border-color: #3c4650;
  background-color: #fff;
}

.credit-calculator.cc .cc__input:focus {
  border-color: #0b457f;
  box-shadow: 0 0 0 3px rgba(11, 69, 127, 0.15);
}

.credit-calculator.cc .cc__input[readonly] {
  background-color: #f5f8fa !important;
}

.credit-calculator.cc #cc-price.cc__input,
.credit-calculator.cc #cc-price.cc__input[readonly] {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0;
  height: auto;
  min-height: 0;
  font-size: 30px;
  line-height: 38px;
  font-weight: 600;
  color: #222;
}

/* keep chevron from bundle — do not use shorthand `background` */
.credit-calculator.cc .cc__select {
  border-radius: 0 !important;
  border-color: #3c4650;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233c4650' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.credit-calculator.cc .cc__media {
  margin: 0 0 36px;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f5f8fa;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credit-calculator.cc .cc__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.credit-calculator.cc .cc__image[hidden] {
  display: none;
}

.credit-calculator.cc .cc-results {
  border-radius: 0 !important;
  background: #f5f8fa !important;
}

.credit-calculator.cc .cc-results::before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
}

.credit-calculator.cc .cc-results__value--accent {
  color: #0b457f !important;
}

.credit-calculator.cc .cc__more-link {
  display: inline-block;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #0b457f;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

.credit-calculator.cc .cc__more-link:hover {
  opacity: 0.85;
}

.cc-calc-info {
  max-width: 640px;
  padding: 32px 28px;
  box-sizing: border-box;
}

.cc-calc-info h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #03202e;
}

.cc-calc-info p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #03202e;
}

.cc-calc-info p:last-child {
  margin-bottom: 0;
}

.credit-calculator.cc .cc__lead {
  margin-top: 24px;
}

.credit-calculator.cc .cc__lead-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #0b457f;
}

.credit-calculator.cc .cc__lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.credit-calculator.cc .cc__lead-fields .input {
  margin-bottom: 0;
  z-index: 2;
}

.credit-calculator.cc .cc__lead-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 0;
}

.credit-calculator.cc .cc__lead-actions .cc__btn {
  flex-shrink: 0;
  margin-top: 0;
}

.credit-calculator.cc .cc__lead-actions button.btn.cc__btn {
  margin-top: 0;
}

.credit-calculator.cc .cc__lead-actions .checkbox {
  flex: 1;
  min-width: 0;
}

.credit-calculator.cc .cc__lead-success[hidden],
.credit-calculator.cc .cc__lead-title--form[hidden],
.credit-calculator.cc #credit_calc[hidden] {
  display: none !important;
}

.credit-calculator.cc .cc__lead-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.credit-calculator.cc .cc__lead-success .cc__lead-title {
  margin: 0;
  color: #0b1f33;
}

.credit-calculator.cc a.btn.cc__btn.cc__pdf-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin-top: 0;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #000 !important;
  padding: 0.4rem 4em;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

@media (hover) {
  .credit-calculator.cc a.btn.black.transparent.cc__btn.cc__pdf-download:hover {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
  }
}

/* range must not inherit .input input border/height */
.credit-calculator.cc .input input[type="range"] {
  border: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/*
 * Bundle uses width:102%/left:-1% tuned for ~400px track.
 * On wide 7/12 column that drifts — pin to thumb size (10px) + slider pad (2px).
 */
.credit-calculator.cc .cc-slider__input {
  left: calc(2px - 5px) !important;
  width: calc(100% - 4px + 10px) !important;
  height: 4px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* brand blue instead of bundle orange accents */
.credit-calculator.cc .cc-slider__fill {
  background: #0b457f !important;
}

.credit-calculator.cc .cc-slider__tick:first-of-type,
.credit-calculator.cc .cc-slider__tick--active {
  background: #0b457f !important;
  border-color: #0b457f !important;
}

.credit-calculator.cc .cc-slider__input::-webkit-slider-thumb {
  border-color: #0b457f !important;
}

.credit-calculator.cc .cc-slider__input::-moz-range-thumb {
  border-color: #0b457f !important;
}

/* neutralize bundle .cc__btn so site .btn.black.transparent.x-center wins */
.credit-calculator.cc button.btn.cc__btn {
  width: max-content;
  margin-top: 8px;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #000 !important;
  padding: 0.4rem 4em;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
}

@media (hover) {
  .credit-calculator.cc button.btn.black.transparent.cc__btn:hover {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  .credit-calculator.cc .cc__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .credit-calculator.cc .cc__selects {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .credit-calculator.cc .cc__field,
  .credit-calculator.cc .cc__selects .cc__field {
    margin-bottom: 16px;
  }

  .credit-calculator.cc .cc__media {
    margin-bottom: 16px;
  }

  .credit-calculator.cc .cc-results {
    flex-direction: column;
    gap: 20px;
  }

  .credit-calculator.cc .cc-results__label {
    margin-bottom: 4px;
  }

  .credit-calculator.cc .cc__lead-fields {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .credit-calculator.cc .cc__lead-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .credit-calculator.cc .cc__lead-actions .cc__btn {
    width: max-content;
  }

  .credit-calculator.cc #cc-price.cc__input,
  .credit-calculator.cc #cc-price.cc__input[readonly] {
    font-size: 24px;
    line-height: 30px;
  }
}
