@charset "UTF-8";
/* =====================================================================
   Trade-in page — layered on top of main.css (uses the same design tokens)
   ===================================================================== */

/* ---------- Hero ---------- */
.trade-hero {
  position: relative;
  padding: 74px 0;
  text-align: left;
  color: #fff;
  background: linear-gradient(180deg, rgba(5, 11, 32, 0.82), rgba(5, 11, 32, 0.92)), url("../images/rv/hero.jpg") center/cover no-repeat;
}
.trade-hero .rv-eyebrow {
  color: #fff;
  justify-content: center;
  margin-bottom: 16px;
}
.trade-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 14px;
}
.trade-hero p {
  max-width: 680px;
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}
.trade-crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.trade-crumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.trade-crumb a:hover {
  color: var(--primary-color);
}
.trade-crumb span {
  color: rgba(255, 255, 255, 0.45);
}
.trade-crumb span:last-child {
  color: #fff;
}
@media (max-width: 767px) {
  .trade-hero {
    padding: 52px 0;
  }
  .trade-hero h1 {
    font-size: 30px;
  }
}

/* ---------- How it works steps ---------- */
.trade-step {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.trade-step:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}
.trade-step .num {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-color);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.trade-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
}
.trade-step p {
  font-size: 14px;
  color: var(--muted-color);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Form panel ---------- */
.trade-panel {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.trade-panel h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 6px;
}
.trade-panel .sub {
  font-size: 15px;
  color: var(--muted-color);
  margin-bottom: 26px;
}
/* ---------- Wizard: stepper header ---------- */
.wiz-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}
.wiz-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.wiz-step-item:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line-color);
  border-radius: 2px;
  transition: background 0.25s ease;
}
.wiz-step-item.is-done:not(:last-child)::after {
  background: var(--primary-color);
}
.wiz-dot {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted-color);
  background: #fff;
  border: 2px solid var(--line-color);
  transition: all 0.25s ease;
}
.wiz-step-item.is-active .wiz-dot {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(254, 0, 9, 0.14);
}
.wiz-step-item.is-done .wiz-dot {
  color: #fff;
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  cursor: pointer;
}
.wiz-step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}
.wiz-step-item.is-active .wiz-step-label {
  color: var(--secondary-color);
}
.wiz-step-item.is-done .wiz-step-label {
  color: var(--secondary-color);
}

/* ---------- Wizard: progress bar ---------- */
.wiz-progress {
  height: 6px;
  border-radius: 6px;
  background: var(--line-color);
  overflow: hidden;
  margin-bottom: 26px;
}
.wiz-progress-bar {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--primary-color);
  transition: width 0.35s ease;
}

/* ---------- Wizard: panels ---------- */
.wiz-panel {
  display: none;
  animation: wizFade 0.3s ease;
}
.wiz-panel.is-active {
  display: block;
}
@keyframes wizFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Wizard: actions ---------- */
.wiz-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.wiz-actions .wiz-next,
.wiz-actions .wiz-submit {
  margin-left: auto;
}
.wiz-actions .theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wiz-actions .theme-btn svg {
  width: 18px;
  height: 18px;
}
.ghost-btn {
  background: #fff;
  color: var(--secondary-color);
  border: 1px solid var(--line-color);
}
.ghost-btn:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

/* Invalid field highlight (set by wizard JS) */
.tr-input.is-invalid {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(254, 0, 9, 0.12);
}

.trade-legend {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 16px;
}
.tr-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
}
.tr-label .req {
  color: var(--primary-color);
}
.tr-label .opt {
  font-weight: 500;
  color: var(--muted-color);
}
.tr-input {
  width: 100%;
  font-size: 15px;
  color: var(--text-color);
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
          appearance: none;
}
.tr-input::-moz-placeholder {
  color: var(--muted-color);
}
.tr-input::placeholder {
  color: var(--muted-color);
}
.tr-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(254, 0, 9, 0.12);
}
select.tr-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050b20' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}
textarea.tr-input {
  resize: vertical;
  min-height: 110px;
}
.tr-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-color);
  margin: 4px 0 22px;
  cursor: pointer;
}
.tr-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  margin-top: 1px;
  flex-shrink: 0;
}
.trade-form-note {
  font-size: 14px;
  color: var(--muted-color);
  text-align: center;
  margin: 16px 0 0;
}
.trade-form-note a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Side: why + call-out ---------- */
.trade-side {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.trade-why {
  background: #f6f8fa;
  border: 1px solid var(--line-color);
  border-radius: var(--radius);
  padding: 30px;
}
.trade-why h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 18px;
}
.trade-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trade-why-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-color);
  padding: 10px 0;
  border-top: 1px dashed var(--line-color);
}
.trade-why-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.trade-why-list li svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 1px;
}
.trade-why-list li b {
  color: var(--secondary-color);
  font-weight: 700;
}
.trade-callout {
  background: linear-gradient(135deg, var(--secondary-color), #0b1533);
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
}
.trade-callout h3 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.trade-callout p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ---------- Browse CTA band ---------- */
.trade-browse {
  background: linear-gradient(135deg, var(--secondary-color), #0b1533);
  border-radius: var(--radius);
  padding: 40px 44px;
  color: #fff;
}
.trade-browse h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.trade-browse p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 620px;
}
@media (max-width: 767px) {
  .trade-panel {
    padding: 26px 20px;
  }
  .trade-browse {
    padding: 30px 22px;
    text-align: center;
  }
  .trade-browse h2 {
    font-size: 23px;
  }
}
