.qtd {
  --qtd-red: #C4132A;
  --qtd-red-dark: #A30F23;
  --qtd-ink: #16181D;
  --qtd-muted: #5A5E67;
  --qtd-subtle: #6B6F78;
  --qtd-line: #E6E7EA;
  --qtd-field: #DCDDE1;
  --qtd-ease: cubic-bezier(.3, .7, .2, 1);
  background: #F4F4F5;
  color: var(--qtd-ink);
  min-height: calc(100vh - var(--navbar-height, 76px));
  -webkit-font-smoothing: antialiased;
}

.qtd-main {
  padding-top: 28px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.qtd-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--navbar-height, 76px) + 24px);
}

.qtd-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qtd-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--qtd-red);
}

.qtd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qtd-red);
}

.qtd-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--qtd-ink);
}

.qtd-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 4px;
  background: #fff;
  border: 1px solid #E2E3E6;
  border-radius: 12px;
}

.qtd-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(100% - 8px);
  height: calc(50% - 4px);
  background: var(--qtd-red);
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(196, 19, 42, .24);
  transition: transform .35s var(--qtd-ease);
}

.qtd[data-mode="drive"] .qtd-pill {
  transform: translateY(100%);
}

.qtd-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--qtd-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color .3s;
}

.qtd-option:focus-visible {
  outline: 2px solid var(--qtd-red);
  outline-offset: 2px;
}

.qtd-option-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #F3F3F5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}

.qtd-option-icon svg {
  width: 16px;
  height: 16px;
}

.qtd-option[aria-selected="true"] {
  color: #fff;
}

.qtd-option[aria-selected="true"] .qtd-option-icon {
  background: rgba(255, 255, 255, .18);
}

.qtd-option:not([aria-selected="true"]):hover .qtd-option-icon {
  background: #EAEAED;
}

.qtd-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--qtd-line);
  border-radius: 14px;
  padding: 28px;
  box-sizing: border-box;
  overflow: hidden;
  overflow: clip;
  transition: height .35s var(--qtd-ease);
}

.qtd-in {
  animation: qtdIn .35s ease both;
}

.qtd-out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
}

@keyframes qtdIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.qtd-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.compact-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.compact-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compact-section-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--qtd-ink);
}

.compact-step {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--qtd-red);
  border: 1px solid #F1C3CB;
  background: #FDF2F4;
  border-radius: 5px;
  padding: 2px 6px;
}

.compact-required-note {
  margin-left: auto;
  font-size: 12px;
  color: var(--qtd-subtle);
}

.compact-section-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 16px;
}

.compact-section-content-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.compact-group-full {
  grid-column: 1 / -1;
}

.compact-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--qtd-ink);
}

.compact-required {
  color: var(--qtd-red);
}

.compact-optional {
  font-weight: 400;
  color: var(--qtd-subtle);
}

.compact-input,
.compact-select,
.compact-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--qtd-field);
  border-radius: 8px;
  background: #fff;
  color: var(--qtd-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}

.compact-input,
.compact-select {
  height: 42px;
  padding: 0 12px;
}

.compact-textarea {
  padding: 10px 12px;
  line-height: 1.45;
  resize: vertical;
  min-height: 64px;
}

.compact-input::placeholder,
.compact-textarea::placeholder {
  color: #9A9DA4;
}

.compact-input:focus,
.compact-select:focus,
.compact-textarea:focus {
  outline: none;
  border-color: var(--qtd-red);
  box-shadow: 0 0 0 3px rgba(196, 19, 42, .12);
}

.compact-select {
  appearance: none;
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B6F78' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.compact-input-error,
.compact-input.compact-input-error,
.compact-select.compact-input-error {
  border-color: var(--qtd-red);
}

.compact-field-error {
  color: var(--qtd-red);
  font-size: 12px;
  font-weight: 500;
}

.compact-field-error:empty {
  display: none;
}

.iti {
  width: 100%;
}

.iti .iti__selected-country-primary {
  padding: 0 8px 0 12px;
}

.iti--separate-dial-code .iti__selected-country {
  background: #F6F6F7;
  border-right: 1px solid var(--qtd-field);
  border-radius: 8px 0 0 8px;
}

.iti .iti__selected-dial-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--qtd-ink);
}

.compact-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.compact-alert-error {
  background: #FDF2F4;
  border: 1px solid #F1C3CB;
  color: var(--qtd-red-dark);
}

.compact-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 32px;
  align-items: center;
  border-top: 1px solid #EEEEF0;
  padding-top: 18px;
}

.compact-privacy-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--qtd-muted);
}

.compact-privacy-note p {
  margin: 0 0 4px;
}

.compact-privacy-note p:last-child {
  margin: 0;
}

.compact-privacy-note ul {
  margin: 0 0 4px;
  padding-left: 16px;
}

.compact-submit-btn {
  height: 46px;
  min-width: 180px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--qtd-red);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.compact-submit-btn:hover:not(:disabled) {
  background: var(--qtd-red-dark);
}

.compact-submit-btn:disabled {
  background: #C5C8CD;
  cursor: not-allowed;
}

.locked-model-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #FDF2F4;
  border: 1px solid #F1C3CB;
  border-radius: 10px;
}

.locked-model-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--qtd-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.locked-model-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.locked-model-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--qtd-red);
}

.locked-model-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--qtd-ink);
}

.locked-model-change {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--qtd-field);
  border-radius: 8px;
  background: #fff;
  color: var(--qtd-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.locked-model-change:hover {
  border-color: var(--qtd-red);
  color: var(--qtd-red);
}

.qtd-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  animation: qtdIn .35s ease both;
}

.qtd-success-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--qtd-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.qtd-success h2 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.qtd-success p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--qtd-muted);
}

.qtd-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.qtd-btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.qtd-btn-primary {
  background: var(--qtd-red);
  color: #fff;
}

.qtd-btn-primary:hover {
  background: var(--qtd-red-dark);
  color: #fff;
}

.qtd-btn-outline {
  border: 1px solid var(--qtd-field);
  background: #fff;
  color: var(--qtd-ink);
}

.qtd-btn-outline:hover {
  border-color: var(--qtd-red);
  color: var(--qtd-red);
}

.logo-watermark {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

.logo-watermark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1100px, 120vw);
  aspect-ratio: 3714 / 1938;
  transform: translate(-50%, -45%);
  background: url(/assets/chery-logo-4c5ad5a06eeba93b573ef748762a5cd0079e96e50f9458422a3371888382505a.png) center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 991px) {
  .qtd-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .qtd-intro {
    position: static;
    gap: 16px;
  }

  .qtd-title {
    font-size: 28px;
  }

  .qtd-switch {
    grid-template-columns: 1fr 1fr;
  }

  .qtd-pill {
    width: calc(50% - 4px);
    height: calc(100% - 8px);
  }

  .qtd[data-mode="drive"] .qtd-pill {
    transform: translateX(100%);
  }

  .qtd-card {
    padding: 24px;
  }

  .compact-section-content-3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .qtd-main {
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .qtd-title {
    font-size: 24px;
  }

  .qtd-card {
    padding: 18px;
    border-radius: 12px;
  }

  .qtd-form {
    gap: 20px;
  }

  .compact-section-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .compact-cta {
    display: contents;
  }

  .compact-privacy-note {
    border-top: 1px solid #EEEEF0;
    padding-top: 16px;
  }

  .compact-submit {
    position: sticky;
    bottom: 0;
    margin: -8px -18px -18px;
    padding: 12px 18px 16px;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid #E2E3E6;
    box-shadow: 0 -8px 24px rgba(20, 22, 30, .08);
  }

  .compact-submit-btn {
    width: 100%;
    min-width: 0;
  }

  .locked-model-banner {
    flex-wrap: wrap;
  }

  .locked-model-change {
    width: 100%;
    text-align: center;
  }

  .logo-watermark::before {
    width: 140vw;
    opacity: 0.03;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qtd-pill,
  .qtd-option,
  .qtd-option-icon,
  .qtd-card {
    transition: none;
  }

  .qtd-in,
  .qtd-success {
    animation: none;
  }
}
