/* ============================================
   ADJ Trade-In Page Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface2: #1a1a1e;
  --border: #26262b;
  --text: #e4e4e7;
  --text2: #a1a1aa;
  --text3: #71717a;
  --accent: #3b82f6;
  --accent-glow: rgba(59,130,246,0.15);
  --green: #22c55e;
  --orange: #f97316;
  --amber: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Space Grotesk', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Nav --- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.4rem;
  letter-spacing: 0.05em;
}
.nav-brand img { height: 28px; }
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-lang-switch { display: flex; gap: 4px; margin-left: 8px; }
.nav-lang-switch button {
  padding: 4px 10px; border-radius: 4px; border: 1px solid var(--border);
  background: transparent; color: var(--text3); cursor: pointer;
  font-size: 0.75rem; transition: all 0.2s;
}
.nav-lang-switch button.active {
  background: var(--text); color: var(--bg); border-color: var(--text);
}

/* --- Hero --- */
.tradein-hero {
  padding: 80px 24px 72px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.08), transparent),
              linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.tradein-hero-inner { max-width: 780px; margin: 0 auto; }
.tradein-hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: var(--accent-glow); color: var(--accent);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.tradein-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.tradein-hero p {
  font-size: 1.1rem; color: var(--text2);
  max-width: 620px; margin: 0 auto 36px; line-height: 1.7;
}
.tradein-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: #2563eb; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--text);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  background: transparent; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--text2); background: var(--surface2); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* --- Trust Strip --- */
.trust-strip {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.trust-item {
  background: var(--surface); padding: 32px 20px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.trust-icon { color: var(--accent); margin-bottom: 4px; }
.trust-item strong { font-size: 0.95rem; font-weight: 600; }
.trust-item span { font-size: 0.8rem; color: var(--text3); }

/* --- Sections --- */
.tradein-section {
  padding: 72px 24px;
  max-width: 1100px; margin: 0 auto;
}
.tradein-section.alt-bg { background: var(--surface); max-width: 100%; }
.tradein-section.alt-bg .section-header { max-width: 1100px; margin: 0 auto 48px; }

.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-header p { color: var(--text2); font-size: 1rem; }

/* --- Process Steps (6 cols) --- */
.process-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1000px; margin: 0 auto;
}
.process-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center; position: relative;
}
.step-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3rem; font-weight: 700; color: var(--accent);
  opacity: 0.25; line-height: 1; margin-bottom: 8px;
}
.process-step h3 {
  font-size: 1.1rem; font-weight: 600; margin-bottom: 12px;
}
.process-step p {
  font-size: 0.875rem; color: var(--text2); line-height: 1.65;
}

/* --- Combos Grid --- */
.combos-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.combo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.combo-card:hover { border-color: rgba(59,130,246,0.4); }

.combo-header {
  padding: 24px 24px 0;
}
.combo-products {
  display: flex; align-items: center; gap: 12px;
  justify-content: center;
}
.combo-product {
  text-align: center;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  min-width: 130px;
}
.combo-product--old {
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--border);
}
.combo-product--new {
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.3);
}
.combo-label {
  display: block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text3); margin-bottom: 4px;
}
.combo-product strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.03em;
}
.combo-arrow {
  color: var(--accent);
  flex-shrink: 0;
}

/* Combo Pricing */
.combo-pricing {
  padding: 20px 24px;
}
.pricing-row {
  display: grid; grid-template-columns: 48px 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}
.pricing-row--header {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text3);
  padding: 6px 12px;
}
.pricing-grade {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 1rem;
}
.pricing-row--a .pricing-grade {
  background: rgba(34,197,94,0.15); color: var(--green);
}
.pricing-row--b .pricing-grade {
  background: rgba(59,130,246,0.15); color: var(--accent);
}
.pricing-row--c .pricing-grade {
  background: rgba(161,161,170,0.12); color: var(--text2);
}
.pricing-cond { color: var(--text2); }
.pricing-value {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 0.95rem;
  white-space: nowrap;
}

.combo-action {
  padding: 0 24px 20px;
  text-align: center;
}

.combos-note {
  text-align: center; margin-top: 24px;
  font-size: 0.8rem; color: var(--text3);
  max-width: 800px; margin-left: auto; margin-right: auto;
  line-height: 1.6;
}

/* --- Eligible Products Grid --- */
.eligible-grid {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 1000px; margin: 0 auto;
}
.eligible-card {
  padding: 10px 20px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface2);
  transition: border-color 0.2s;
}
.eligible-card:hover { border-color: var(--accent); }
.eligible-name { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em; }
.eligible-cta {
  text-align: center; margin-top: 36px;
}
.eligible-cta p { color: var(--text2); font-size: 0.9rem; margin-bottom: 16px; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 10px; background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq-item summary:hover { background: var(--surface2); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.2rem; color: var(--text3);
  transition: transform 0.2s; font-weight: 400;
}
.faq-item[open] summary { background: var(--surface2); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p {
  padding: 4px 24px 18px;
  font-size: 0.875rem; color: var(--text2); line-height: 1.65;
}

/* --- CTA --- */
.tradein-cta {
  padding: 80px 24px; text-align: center;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(59,130,246,0.06), transparent);
}
.tradein-cta-inner { max-width: 680px; margin: 0 auto; }
.tradein-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em;
}
.tradein-cta p { color: var(--text2); font-size: 1rem; margin-bottom: 32px; line-height: 1.7; }
.tradein-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   TRADE-IN FORM
   ============================================ */
.tradein-form {
  max-width: 720px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.form-row { margin-bottom: 20px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  margin-bottom: 6px; letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text3);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-hint {
  font-size: 0.75rem; color: var(--text3); margin-top: 4px;
}
.form-hint-block {
  font-size: 0.85rem; color: var(--text2); line-height: 1.6;
  padding: 12px 16px;
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.12);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.required { color: var(--orange); font-weight: 700; }

/* Radio group */
.radio-group {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.radio-item {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer; font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
  -webkit-user-select: none;
  user-select: none;
}
.radio-item:hover { border-color: var(--text2); }
.radio-item input[type="radio"] { accent-color: var(--accent); width: 14px; height: 14px; }
.radio-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* Submit area */
.form-submit {
  text-align: center; padding-top: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.btn-lg { padding: 15px 40px; font-size: 1.05rem; }
.form-disclaimer {
  font-size: 0.75rem; color: var(--text3); max-width: 500px; line-height: 1.5;
}

/* Success message */
.form-success {
  max-width: 620px; margin: 0 auto;
  text-align: center; padding: 48px 24px;
}
.success-icon { color: var(--green); margin-bottom: 16px; }
.form-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem; font-weight: 700; margin-bottom: 12px;
}
.form-success p {
  color: var(--text2); font-size: 0.95rem; line-height: 1.65; max-width: 500px; margin: 0 auto 10px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px; text-align: center;
  background: var(--surface);
}
.footer-contact {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-contact div { display: flex; flex-direction: column; gap: 4px; }
.footer-contact strong { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); }
.footer-contact span { font-size: 0.9rem; }
.site-footer > p { font-size: 0.8rem; color: var(--text3); }
.site-footer a { color: var(--text2); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .combos-grid { grid-template-columns: 1fr; }
  .pricing-row { grid-template-columns: 40px 1fr auto; gap: 8px; font-size: 0.8rem; }
  .pricing-value { font-size: 0.85rem; }
  .combo-products { flex-direction: column; gap: 8px; }
  .combo-arrow { transform: rotate(90deg); }
  .footer-contact { gap: 20px; }
  .form-row-2col { grid-template-columns: 1fr; }
  .tradein-form { padding: 24px 20px; }
  .radio-group { gap: 6px; }
  .radio-item { padding: 7px 12px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .trust-strip { grid-template-columns: 1fr; }
  .tradein-hero h1 { font-size: 2rem; }
  .tradein-hero p { font-size: 0.95rem; }
  .tradein-form { padding: 20px 14px; }
  .btn-lg { padding: 13px 24px; font-size: 0.95rem; }
  .process-steps { grid-template-columns: 1fr; }
}
