/* ==================== */
/* CHERY Q PAGE         */
/* ==================== */

/* HERO BANNER */
.qev-hero {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.qev-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.qev-hero-mobile {
  display: none;
}

@media (max-width: 768px) {
  .qev-hero-desktop {
    display: none;
  }
  .qev-hero-mobile {
    display: block;
  }
}

/* UNIFIED BACKGROUND WRAPPER — applied via .qev-body */
.qev-body {
  background: linear-gradient(135deg, #f5f3f0 0%, #e8e4df 25%, #f2efeb 50%, #ddd9d3 75%, #f0ece7 100%);
  position: relative;
}

.qev-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 195, 188, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(210, 205, 198, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(195, 190, 183, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* COLOR SELECTOR */
.qev-color-section {
  padding: 60px 24px 40px;
  text-align: center;
  position: relative;
}

.qev-color-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.qev-color-heading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px;
  text-align: center;
}

.qev-color-display {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
}

.qev-color-car {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.qev-color-car.active {
  opacity: 1;
}

.qev-color-thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.qev-color-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.qev-color-thumb img {
  width: 72px;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.qev-color-thumb:hover img {
  transform: scale(1.08);
}

.qev-color-thumb.active {
  border-color: #7c4dff;
  background: rgba(124, 77, 255, 0.06);
}

.qev-color-name {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.3px;
}

.qev-color-thumb.active .qev-color-name {
  color: #7c4dff;
}

.qev-color-disclaimer {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #999;
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .qev-color-section {
    padding: 40px 16px 24px;
  }

  .qev-color-thumb img {
    width: 52px;
  }

  .qev-color-thumbs {
    gap: 6px;
  }

  .qev-color-thumb {
    padding: 6px 8px;
  }

  .qev-color-name {
    font-size: 10px;
  }
}

.qev-intro,
.qev-cta-section,
.qev-form-section,
.qev-color-section {
  position: relative;
}

/* THIS IS YOUR Q SECTION */
.qev-intro {
  padding: 80px 24px 60px;
  text-align: center;
}

.qev-intro-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.qev-intro-heading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.15;
  margin: 0 0 32px;
  letter-spacing: -0.5px;
}

.qev-accent {
  color: #7c4dff;
  font-size: 1.3em;
}

.qev-q-icon {
  height: 1.6em;
  width: auto;
  vertical-align: middle;
  display: inline;
  margin: 0 4px;
  transform: translateY(-0.05em);
}

.qev-intro-copy {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin: 0;
  font-weight: 400;
}

/* GET IN THE Q SECTION */
.qev-cta-section {
  padding: 60px 24px 40px;
  text-align: center;
}

.qev-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.qev-cta-heading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}

.qev-cta-copy {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* FORM SECTION */
.qev-form-section {
  padding: 20px 24px 80px;
}

.qev-form-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.qev-form-group {
  margin-bottom: 28px;
}

.qev-label {
  display: block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.qev-required {
  color: #e53935;
}

.qev-input,
.qev-select {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: #333;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.qev-input::placeholder {
  color: #aaa;
}

.qev-input:focus,
.qev-select:focus {
  border-color: #7c4dff;
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.qev-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.qev-errors {
  background: #fce4ec;
  color: #c62828;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.qev-form-footer {
  margin-top: 16px;
}

.qev-disclaimer {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 24px;
}

.qev-submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.qev-submit-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

.qev-submit-btn:active {
  transform: translateY(0);
}

/* HERO ENTRANCE */
.anim-hero {
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-hero .qev-hero-img {
  animation: heroZoom 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroReveal {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); }
  100% { opacity: 1; clip-path: inset(0 0 0% 0); }
}

@keyframes heroZoom {
  0% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ACCENT DIVIDER LINE */
.qev-accent-line {
  width: 60px;
  height: 3px;
  background: #7c4dff;
  margin: 0 auto 28px;
  border-radius: 2px;
}

/* SCROLL ENTRANCE ANIMATIONS */
.anim-el {
  will-change: opacity, transform;
}

/* fade-up */
.anim-el[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-el[data-anim="fade-up"].visible {
  opacity: 1;
  transform: translateY(0);
}

/* slide-left */
.anim-el[data-anim="slide-left"] {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-el[data-anim="slide-left"].visible {
  opacity: 1;
  transform: translateX(0);
}

/* slide-right */
.anim-el[data-anim="slide-right"] {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-el[data-anim="slide-right"].visible {
  opacity: 1;
  transform: translateX(0);
}

/* scale-x (accent line) */
.anim-el[data-anim="scale-x"] {
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-el[data-anim="scale-x"].visible {
  transform: scaleX(1);
}

/* FORM DISABLED / LOADING STATE */
.qev-form-disabled {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* BUTTON LOADING STATE */
.qev-btn-text,
.qev-btn-loading {
  pointer-events: none;
}

.qev-btn-loading {
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.qev-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: qevSpin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes qevSpin {
  to { transform: rotate(360deg); }
}

/* INLINE RESULT STATES */
.qev-result {
  text-align: center;
  padding: 60px 20px;
  opacity: 0;
  transform: translateY(30px);
}

.qev-result--animate {
  animation: qevResultIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes qevResultIn {
  to { opacity: 1; transform: translateY(0); }
}

.qev-result-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: qevIconPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.qev-result-icon--success { color: #2e7d32; }
.qev-result-icon--failure { color: #c62828; }

@keyframes qevIconPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.qev-result-heading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.qev-result-copy {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 32px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .qev-intro {
    padding: 60px 20px 40px;
  }

  .qev-intro-heading {
    font-size: 34px;
  }

  .qev-intro-copy {
    font-size: 16px;
  }

  .qev-cta-section {
    padding: 48px 20px 32px;
  }

  .qev-cta-heading {
    font-size: 30px;
  }

  .qev-cta-copy {
    font-size: 15px;
  }

  .qev-form-section {
    padding: 16px 20px 60px;
  }

  .thankyou-page-container {
    padding: 60px 24px;
  }

  .message-thankyou h1 {
    font-size: 28px;
  }
}
