.vf-cqc,
.vf-cqc * {
  box-sizing: border-box;
}

.vf-cqc {
  --vf-cqc-primary: #0055b8;
  --vf-cqc-primary-2: #2f66e8;
  --vf-cqc-dark: #14171f;
  --vf-cqc-text: #222936;
  --vf-cqc-muted: #6f7785;
  --vf-cqc-soft: #f2f5f9;
  --vf-cqc-bg: #edf2f7;
  --vf-cqc-card: #ffffff;
  --vf-cqc-line: #dfe5ee;
  --vf-cqc-red: #e12b2b;
  --vf-cqc-green: #0d9b57;
  --vf-cqc-blue-soft: #eef5ff;
  font-family: inherit;
  color: var(--vf-cqc-text);
  width: 100%;
}

.vf-cqc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(330px, .98fr);
  gap: 30px;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
}

.vf-cqc__main,
.vf-cqc__right,
.vf-cqc__side {
  display: grid;
  gap: 24px;
}

/* Hide quote/result side until Contact Form 7 deposit form is submitted successfully */
.vf-cqc.is-lead-locked .vf-cqc__side,
.vf-cqc__side[hidden] {
  display: none !important;
}


.vf-cqc.is-lead-unlocked .vf-cqc__side {
  display: grid;
}


.vf-cqc__section,
.vf-cqc__summary,
.vf-cqc__loan {
  background: var(--vf-cqc-card);
  border: 1px solid rgba(31, 42, 68, .08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(22, 33, 52, .045);
}

.vf-cqc__section {
  padding: 26px 25px;
}

.vf-cqc__summary,
.vf-cqc__loan {
  padding: 26px;
}

.vf-cqc__right,
.vf-cqc__side {
  align-self: start;
}

.vf-cqc__deposit-section {
  order: 1;
}

.vf-cqc.is-lead-locked .vf-cqc__right {
  position: relative;
  align-self: stretch;
}

.vf-cqc.is-lead-locked .vf-cqc__deposit-section {
  position: relative;
  top: 0;
  z-index: 2;
  align-self: start;
  will-change: transform;
}

.vf-cqc__side {
  order: 2;
}

.vf-cqc.is-lead-unlocked .vf-cqc__right {
  position: relative;
  align-self: stretch;
}

.vf-cqc.is-lead-unlocked .vf-cqc__side {
  order: 1;
  position: relative;
  top: 0;
  align-self: start;
  will-change: transform;
  max-height: calc(100vh - var(--vf-cqc-sticky-top, 16px));
  overflow-y: auto;
}

.vf-cqc.is-lead-unlocked .vf-cqc__deposit-section {
  display: none;
}

.vf-cqc__section-title {
  margin: 0 0 22px;
}

.vf-cqc__section-title span {
  display: none;
}

.vf-cqc__section-title h3,
.vf-cqc__summary h3,
.vf-cqc__loan h3 {
  margin: 0;
  color: var(--vf-cqc-dark);
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: .02em;
  font-weight: 850;
}

.vf-cqc__summary h3 {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7ebf1;
  margin-bottom: 18px;
}

.vf-cqc__loan h3 {
  margin-bottom: 24px;
}

.vf-cqc__field-grid,
.vf-cqc__loan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.vf-cqc__field,
.vf-cqc__loan-grid label {
  display: grid;
  gap: 8px;
  color: var(--vf-cqc-muted);
  font-size: 12px;
  font-weight: 650;
}

.vf-cqc select,
.vf-cqc input[type="number"],
.vf-cqc input[type="text"],
.vf-cqc input[type="tel"],
.vf-cqc input[type="email"],
.vf-cqc textarea {
  width: 100%;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  min-height: 45px;
  padding: 10px 13px;
  background: #fff;
  color: var(--vf-cqc-dark);
  font-size: 14px;
  outline: none;
  box-shadow: none;
}

.vf-cqc select:focus,
.vf-cqc input:focus,
.vf-cqc textarea:focus {
  border-color: var(--vf-cqc-primary);
  box-shadow: 0 0 0 3px rgba(0, 85, 184, .10);
}

.vf-cqc__car-preview {
  min-height: 245px;
  margin: 24px auto 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.vf-cqc__car-preview img {
  width: 100%;
  max-width: 430px;
  max-height: 300px;
  object-fit: contain;
  display: block;
}


.vf-cqc__label {
  font-weight: 800;
  font-size: 14px;
  margin: 14px 0 10px;
}

.vf-cqc__colors {
  text-align: center;
}

.vf-cqc__color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.vf-cqc__color {
  width: 57px;
  height: 57px;
  border: 1px solid #e6ebf2;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  box-shadow: 0 4px 12px rgba(20, 31, 48, .08);
}

.vf-cqc__color:hover,
.vf-cqc__color.is-active {
  border-color: var(--vf-cqc-primary-2);
  transform: translateY(-1px);
}

.vf-cqc__color span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.vf-cqc__color em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.vf-cqc__color-name {
  margin-top: 14px;
  text-align: center;
  color: var(--vf-cqc-dark);
  font-size: 14px;
  font-weight: 800;
}

.vf-cqc__muted,
.vf-cqc__discounts,
.vf-cqc__other-fees {
  display: grid;
  gap: 12px;
}

.vf-cqc__discount,
.vf-cqc__other-fee {
  position: relative;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  padding: 15px 16px;
  background: #fff;
  display: grid;
  gap: 8px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.vf-cqc__discount:hover,
.vf-cqc__other-fee:hover {
  border-color: #cbd7e8;
}

.vf-cqc__discount.is-checked,
.vf-cqc__other-fee.is-checked {
  border-color: #bdd4ff;
  background: #fbfdff;
}

.vf-cqc__discount.is-disabled,
.vf-cqc__other-fee.is-disabled {
  opacity: .58;
  background: #fafbfc;
}

.vf-cqc__discount label,
.vf-cqc__other-fee label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  margin: 0;
  cursor: pointer;
}

.vf-cqc__discount input[type="checkbox"],
.vf-cqc__other-fee input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--vf-cqc-primary-2);
}

.vf-cqc__discount-title,
.vf-cqc__fee-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--vf-cqc-dark);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.vf-cqc__discount-value,
.vf-cqc__fee-amount {
  color: var(--vf-cqc-muted);
  font-size: 13px;
  margin-top: 4px;
}

.vf-cqc__discount small,
.vf-cqc__discount-note {
  display: block;
  color: var(--vf-cqc-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin-left: 33px;
}

.vf-cqc__discount-note.is-green {
  color: var(--vf-cqc-green);
}

.vf-cqc__badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #e9f2ff;
  color: #2869c8;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.vf-cqc__discount select {
  margin-left: 33px;
  width: calc(100% - 33px);
  min-height: 39px;
}

.vf-cqc__radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vf-cqc__radio-card {
  position: relative;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  min-height: 54px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.vf-cqc__radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vf-cqc__radio-card span {
  color: #4b5565;
  font-weight: 850;
  font-size: 14px;
}

.vf-cqc__radio-card strong {
  display: none;
}

.vf-cqc__radio-card:has(input:checked) {
  border-color: var(--vf-cqc-primary);
  background: #f5f9ff;
}

.vf-cqc__radio-card:has(input:checked) span {
  color: var(--vf-cqc-primary);
}

.vf-cqc__summary-body {
  display: grid;
  gap: 0;
}

.vf-cqc__summary-line,
.vf-cqc__summary-product,
.vf-cqc__summary-total-line,
.vf-cqc__loan-result div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.35;
}

.vf-cqc__summary-product {
  padding-bottom: 10px;
  color: #0f172a;
  font-weight: 850;
}

.vf-cqc__summary-product strong {
  color: #101828;
  white-space: nowrap;
  text-align: right;
}

.vf-cqc__summary-line {
  padding: 5px 0;
  color: var(--vf-cqc-muted);
}

.vf-cqc__summary-line strong,
.vf-cqc__summary-total-line strong,
.vf-cqc__loan-result strong {
  white-space: nowrap;
  text-align: right;
  color: var(--vf-cqc-dark);
}

.vf-cqc__summary-line.is-discount {
  color: var(--vf-cqc-red);
}

.vf-cqc__summary-line.is-discount strong {
  color: var(--vf-cqc-red);
}

.vf-cqc__summary-note {
  margin: -4px 0 9px;
  color: var(--vf-cqc-muted);
  font-size: 12px;
  font-style: italic;
}

.vf-cqc__summary-total-line {
  padding: 10px 0 14px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #dfe5ee;
  color: var(--vf-cqc-primary);
  font-weight: 850;
}

.vf-cqc__summary-total-line strong {
  color: var(--vf-cqc-primary);
}

.vf-cqc__summary-group-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 7px;
  color: var(--vf-cqc-dark);
  font-size: 14px;
  font-weight: 900;
}

.vf-cqc__summary-total {
  margin-top: 18px;
  padding: 22px 18px;
  background: #f2f4f7;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.vf-cqc__summary-total span {
  color: var(--vf-cqc-muted);
  font-size: 12px;
  font-weight: 700;
}

.vf-cqc__summary-total strong {
  color: #121722;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.vf-cqc__deposit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: var(--vf-cqc-primary);
  color: #fff;
  min-height: 48px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.vf-cqc__deposit-btn:hover {
  background: #00459a;
  transform: translateY(-1px);
}

.vf-cqc__pdf-btn {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: var(--vf-cqc-red);
  color: #fff;
  min-height: 48px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.vf-cqc__pdf-btn:hover {
  background: #c81f1f;
  color: #fff;
  transform: translateY(-1px);
}

.vf-cqc__range-line {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 14px;
  align-items: center;
}

.vf-cqc input[type="range"] {
  width: 100%;
  accent-color: var(--vf-cqc-primary);
}

.vf-cqc__loan-result {
  display: grid;
  gap: 11px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--vf-cqc-line);
}

.vf-cqc__loan-result-title {
  color: var(--vf-cqc-dark);
  font-weight: 900;
  font-size: 15px;
}

.vf-cqc__loan-help {
  color: var(--vf-cqc-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 6px;
  font-style: italic;
}


.vf-cqc__loan-upfront {
  display: grid;
  gap: 4px;
  justify-items: end;
  white-space: normal !important;
  max-width: 58%;
}

.vf-cqc__loan-upfront b {
  font: inherit;
  color: inherit;
}

.vf-cqc__loan-upfront em {
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
  color: var(--vf-cqc-muted);
  text-align: right;
}

@media (max-width: 640px) {
  .vf-cqc__loan-upfront {
    max-width: 100%;
  }
}

.vf-cqc__loan-result .is-highlight {
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--vf-cqc-blue-soft);
}

.vf-cqc__loan-result .is-highlight strong {
  color: var(--vf-cqc-primary);
  font-size: 17px;
}

.vf-cqc__cf7 form {
  display: grid;
  gap: 12px;
}

.vf-cqc__cf7 p {
  margin-top: 0;
}

.vf-cqc__cf7 input[type="submit"],
.vf-cqc__cf7 button[type="submit"] {
  background: var(--vf-cqc-primary);
  border: none;
  color: #fff;
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 900;
  cursor: pointer;
}

.vf-hidden {
  display: none !important;
}


/* Contact Form 7 deposit form styles */
.vf-cf7-hidden {
  display: none !important;
}

.vf-cf7-deposit-form .vf-cf7-field {
  margin-bottom: 4px;
}

.vf-cf7-deposit-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--vf-cqc-text);
}

.vf-cf7-deposit-form label span {
  color: #f00;
}

.vf-cf7-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vf-cf7-deposit-form input,
.vf-cf7-deposit-form textarea,
.vf-cf7-deposit-form select {
  width: 100%;
}

.vf-cf7-deposit-form .vf-cf7-submit {
  margin-top: 25px;
}

@media (max-width: 768px) {
  .vf-cf7-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 1024px) {
  .vf-cqc__layout {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
  .vf-cqc.is-lead-locked .vf-cqc__right {
    min-height: 0 !important;
    align-self: start;
  }
  .vf-cqc.is-lead-locked .vf-cqc__deposit-section {
    position: static;
    top: auto;
    z-index: auto;
    transform: none !important;
    will-change: auto;
  }
  .vf-cqc.is-lead-unlocked .vf-cqc__side {
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
    will-change: auto;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .vf-cqc__layout {
    gap: 16px;
  }
  .vf-cqc__section,
  .vf-cqc__summary,
  .vf-cqc__loan {
    padding: 18px 16px;
    border-radius: 10px;
    margin: 0 15px;
  }
  .vf-cqc__radios {
    grid-template-columns: 1fr;
  }
  .vf-cqc__car-preview {
    min-height: 190px;
  }
  .vf-cqc__summary-total strong {
    font-size: 24px;
  }
  .vf-cqc__range-line {
    grid-template-columns: 1fr;
  }
}


.vf-cqc__seat-note {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-style: normal;
  color: #667085;
}

.vf-cqc__loan input.is-readonly,
.vf-cqc__loan input[readonly] {
  background: #f3f4f6;
  color: #111827;
  cursor: not-allowed;
}

/* v2.8 reducing-balance loan result */
.vf-cqc__loan-result strong.is-red,
.vf-cqc__loan-table .is-interest {
  color: #dc2626;
}

.vf-cqc__loan-result .vf-cqc__loan-monthly-row {
  align-items: center;
  padding: 8px 0 4px;
}

.vf-cqc__loan-monthly-row span {
  display: grid;
  gap: 4px;
}

.vf-cqc__loan-monthly-row b {
  color: #111827;
  font-size: 17px;
  line-height: 1.2;
}

.vf-cqc__loan-monthly-row em {
  color: var(--vf-cqc-muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.vf-cqc__loan-monthly-row strong {
  color: var(--vf-cqc-primary) !important;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.vf-cqc__loan-rate-note {
  margin: 0;
  color: var(--vf-cqc-muted);
  font-size: 12px;
  line-height: 1.45;
  font-style: italic;
}

.vf-cqc__loan-detail {
  margin-top: 10px;
}

.vf-cqc__loan-detail summary {
  cursor: pointer;
  list-style: none;
  color: var(--vf-cqc-primary);
  font-weight: 900;
  font-size: 15px;
  padding: 6px 0 10px;
}

.vf-cqc__loan-detail summary::-webkit-details-marker {
  display: none;
}

.vf-cqc__loan-table-wrap {
  overflow: auto;
  border: 1px solid var(--vf-cqc-line);
  border-radius: 10px;
  background: #fff;
}

.vf-cqc__loan-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.vf-cqc__loan-table th,
.vf-cqc__loan-table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--vf-cqc-line);
  white-space: nowrap;
}

.vf-cqc__loan-table th:first-child,
.vf-cqc__loan-table td:first-child {
  text-align: center;
  width: 52px;
}

.vf-cqc__loan-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #1f2937;
  font-weight: 900;
}

.vf-cqc__loan-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .vf-cqc__loan-monthly-row {
    align-items: flex-start;
  }
  .vf-cqc__loan-monthly-row strong {
    font-size: 20px;
  }
  .vf-cqc__loan-table th,
  .vf-cqc__loan-table td {
    padding: 9px 10px;
    font-size: 12px;
  }
}
.vf-cqc__loan-result .vf-cqc__loan-table-wrap {
  display: block;
}

/* v5.0: Common dropdown style fix for Safari */
.vf-cqc select,
.vf-cf7-deposit-form select {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url('../images/arrow_down.png');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  padding-right: 48px;
  line-height: 1.35;
}

.vf-cqc select::-ms-expand,
.vf-cf7-deposit-form select::-ms-expand {
  display: none;
}

/* v5.2: Lead submit spotlight for quote/result side */
.vf-cqc__lead-spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(8, 15, 30, .48);
  opacity: 1;
  pointer-events: none;
  transition: opacity .42s ease;
}

.vf-cqc__lead-spotlight-overlay.is-fading-out {
  opacity: 0;
}

.vf-cqc.is-lead-spotlight .vf-cqc__side,
.vf-cqc__side.is-lead-spotlight-target {
  position: relative;
  z-index: 9999;
}

.vf-cqc__side.is-lead-spotlight-target .vf-cqc__summary {
  border-color: rgba(0, 85, 184, .38);
  box-shadow: 0 26px 70px rgba(0, 36, 89, .34), 0 0 0 6px rgba(255, 255, 255, .38);
  animation: vf-cqc-side-spotlight-pulse 1.1s ease-in-out 0s 2;
}

@keyframes vf-cqc-side-spotlight-pulse {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-3px) scale(1.012);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}


/* v5.4: Summary benefit rows use same red color as discount rows */
.vf-cqc__summary-line.is-benefit {
  color: var(--vf-cqc-red);
}

.vf-cqc__summary-line.is-benefit strong {
  color: var(--vf-cqc-red);
}
