.tf-tradein-root {
  --tf-lime: #b9ff2c;
  --tf-blue: #1bc8f4;
  --tf-ink: #f7f7f4;
  --tf-muted: #a5a6a4;
  --tf-panel: #101111;
  --tf-line: #3a3d3d;
  color: var(--tf-ink);
  font-family: inherit;
}

.tf-flow-card {
  box-sizing: border-box;
  width: min(100%, 790px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid #434747;
  border-radius: 22px;
  background: radial-gradient(ellipse at 82% 10%, rgba(185, 255, 44, .055), transparent 34%), #090a0a;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
}

.tf-flow-header,
.tf-actions,
.tf-detail,
.tf-offer-device,
.tf-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tf-flow-header { margin-bottom: 38px; }
.tf-wordmark { color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -.8px; text-decoration: none; }
.tf-wordmark span { color: var(--tf-lime); }
.tf-help { color: var(--tf-blue); font-size: 13px; text-align: right; text-decoration: none; }
.tf-help span,
.tf-help b { display: block; }
.tf-help span { color: var(--tf-muted); font-size: 11px; }
.tf-help b { font-weight: 700; }

.tf-stepper { margin-bottom: 34px; }
.tf-stepper > span { color: var(--tf-blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.tf-progress { display: flex; gap: 6px; margin-top: 12px; }
.tf-progress i { height: 4px; flex: 1; border-radius: 4px; background: #353838; }
.tf-progress i.is-active { background: var(--tf-blue); }

.tf-flow-content { min-height: 430px; }
.tf-eyebrow { margin: 0 0 12px; color: var(--tf-blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.tf-flow-content h1 { margin: 0; color: var(--tf-ink); font-size: clamp(35px, 6vw, 54px); font-weight: 900; line-height: .98; letter-spacing: -.035em; }
.tf-flow-content h1 em { color: var(--tf-lime); font-style: normal; }
.tf-intro { max-width: 600px; margin: 14px 0 25px; color: #d1d2cf; font-size: 15px; line-height: 1.55; }

.tf-choice-grid,
.tf-move-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tf-choice,
.tf-move {
  position: relative;
  min-height: 128px;
  padding: 18px;
  border: 1px solid #414545;
  border-radius: 15px;
  background: linear-gradient(145deg, #151717, #0d0e0e);
  color: var(--tf-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.tf-choice:hover,
.tf-move:hover { transform: translateY(-2px); border-color: #8da34f; }
.tf-choice.is-selected,
.tf-move.is-selected { border: 2px solid var(--tf-lime); background: rgba(185, 255, 44, .075); }
.tf-choice-icon,
.tf-brand-icon { display: block; margin-bottom: 12px; color: var(--tf-blue); font-size: 28px; line-height: 1; }
.tf-choice-icon { display: grid; width: 42px; height: 42px; place-items: center; }
.tf-choice-icon svg { display: block; width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tf-choice.is-selected .tf-choice-icon { color: var(--tf-lime); }
.tf-brand-icon { color: #fff; font-weight: 800; }
.tf-choice b { font-size: 14px; }
.tf-check { position: absolute; top: 12px; right: 13px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--tf-lime); color: #111; font-weight: 900; }
.tf-brand { min-height: 132px; text-align: center; }

.tf-actions { margin-top: 26px; }
.tf-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 28px; font: inherit; font-size: 13px; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; }
.tf-button-primary { background: var(--tf-lime); color: #111; }
.tf-button-primary:hover { background: #d1ff78; color: #111; }
.tf-button-primary:disabled { background: #65704e; color: #d0d0ca; cursor: not-allowed; }
.tf-button-ghost { border-color: #555a5a; background: transparent; color: #f6f6f2; }
.tf-button-ghost:hover { border-color: #a3aaa5; color: #fff; }

.tf-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #3c4040; border-radius: 14px; background: #191b1b; color: var(--tf-muted); font-size: 24px; }
.tf-search input { width: 100%; height: 48px; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; }
.tf-search input::placeholder { color: #9a9d9b; }
.tf-device-list { max-height: 235px; overflow: auto; margin-top: 12px; border: 1px solid #333737; border-radius: 14px; background: #101212; }
.tf-device { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 12px; padding: 9px 14px; border: 0; border-bottom: 1px solid #2b2f2f; background: transparent; color: #fff; cursor: pointer; text-align: left; }
.tf-device:last-child { border-bottom: 0; }
.tf-device:hover,
.tf-device.is-selected { background: rgba(185, 255, 44, .09); }
.tf-device.is-selected { box-shadow: inset 3px 0 var(--tf-lime); }
.tf-device-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid #474c4c; border-radius: 10px; background: #1a1d1d; color: var(--tf-lime); font-size: 22px; font-weight: 800; }
.tf-device strong { flex: 1; font-size: 14px; }
.tf-device-check { color: var(--tf-lime); font-size: 20px; }
.tf-empty { padding: 12px 16px; color: var(--tf-muted); }

.tf-detail-list { display: grid; gap: 12px; }
.tf-detail { min-height: 58px; }
.tf-detail > span { display: flex; min-width: 110px; align-items: center; gap: 10px; color: var(--tf-lime); }
.tf-detail b { color: #fff; font-size: 14px; }
.tf-detail select { width: min(100%, 390px); height: 48px; padding: 0 14px; border: 1px solid #444949; border-radius: 12px; background: #181a1a; color: #fff; font: inherit; font-size: 14px; }
.tf-condition-help,
.tf-text-button { display: inline-block; margin-top: 10px; border: 0; background: none; color: var(--tf-blue); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.tf-error { color: #ff9191; }

.tf-contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tf-contact-form label { display: grid; gap: 7px; color: #e7e8e5; font-size: 13px; font-weight: 700; }
.tf-contact-form input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #444949; border-radius: 12px; outline: 0; background: #181a1a; color: #fff; font: inherit; font-weight: 400; }
.tf-contact-form input:focus { border-color: var(--tf-blue); box-shadow: 0 0 0 2px rgba(27, 200, 244, .16); }

.tf-offer-card,
.tf-note,
.tf-compare,
.tf-summary { margin: 24px 0; padding: 20px; border: 1px solid #383e3e; border-radius: 16px; background: #111414; }
.tf-offer-card > span { display: block; color: var(--tf-muted); font-size: 12px; }
.tf-offer-card > strong { display: block; margin-top: 4px; font-size: 18px; }
.tf-offer-device { justify-content: flex-start; }
.tf-offer-device > div { flex: 1; }
.tf-offer-device b,
.tf-offer-device strong { display: block; }
.tf-offer-device b { font-size: 14px; }
.tf-offer-device strong { margin-top: 3px; font-size: 19px; }
.tf-offer-device p { margin: 5px 0 0; color: var(--tf-muted); font-size: 13px; line-height: 1.5; }
.tf-offer-price { margin-top: 18px; color: var(--tf-blue); font-size: clamp(42px, 8vw, 62px); font-weight: 900; letter-spacing: -.04em; }
.tf-disclaimer { margin: 4px 0 0; color: var(--tf-muted); font-size: 12px; line-height: 1.5; }
.tf-move { min-height: 155px; }
.tf-move > span { display: block; margin-bottom: 12px; color: var(--tf-lime); font-size: 23px; }
.tf-move b,
.tf-move small { display: block; }
.tf-move b { margin-bottom: 7px; font-size: 15px; }
.tf-move small { color: #b9bcba; font-size: 12px; line-height: 1.45; }
.tf-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tf-compare > div { padding: 12px; border-radius: 12px; background: #1b1e1e; }
.tf-compare span,
.tf-compare strong { display: block; }
.tf-compare span { color: var(--tf-muted); font-size: 12px; }
.tf-compare strong { margin-top: 8px; font-size: 21px; }
.tf-summary { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; }
.tf-summary b { grid-column: 1; font-size: 15px; }
.tf-summary span { grid-column: 1; color: var(--tf-muted); font-size: 12px; }
.tf-summary strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--tf-blue); font-size: 26px; }
.tf-success-mark { display: grid; width: 56px; height: 56px; margin-bottom: 20px; place-items: center; border-radius: 50%; background: var(--tf-lime); color: #111; font-size: 30px; font-weight: 900; }
.tf-flow-content a:not(.tf-button) { color: var(--tf-blue); }

@media (max-width: 560px) {
  .tf-flow-card { padding: 20px 16px; border-radius: 16px; }
  .tf-flow-header { margin-bottom: 28px; }
  .tf-flow-content { min-height: 390px; }
  .tf-choice-grid,
  .tf-move-grid { gap: 9px; }
  .tf-choice { min-height: 108px; padding: 14px; }
  .tf-brand { min-height: 112px; }
  .tf-detail { align-items: flex-start; flex-direction: column; gap: 7px; }
  .tf-detail select { width: 100%; }
  .tf-contact-form { grid-template-columns: 1fr; gap: 12px; }
  .tf-button { min-height: 44px; padding: 0 16px; font-size: 12px; }
}
