.swap-hero { position: relative; min-height: 300px; margin-top: -56px; background: linear-gradient(135deg, #0f2e2c 0%, #3bbdaf 100%); background-size: cover; background-position: center; display: flex; align-items: flex-end; overflow: hidden; }
.swap-hero--swap { background-image: url('../images/Swap%20&%20Top%20up-02.png'); }
.swap-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.58) 100%); }
.swap-hero-content { position: relative; z-index: 1; padding: 28px 20px 32px; max-width: 760px; margin: 0; width: 100%; padding-left: 20px; }
.swap-hero-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.swap-hero-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.swap-hero-breadcrumb a:hover { color: #fff; }
.swap-hero-breadcrumb .sep { font-size: 14px; }
.swap-hero-breadcrumb span:last-child { color: #fff; font-weight: 600; }
.swap-hero-eyebrow { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.swap-hero-title { font-size: 34px; font-weight: 900; color: #fff; margin: 0 0 8px; line-height: 1.15; }
.swap-hero-subtitle { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.55; max-width: 420px; }
.trade-in-page { padding: 16px 16px 80px; max-width: 760px; margin: 0 auto; }
.trade-in-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.trade-in-subtitle { color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
.trade-in-steps { display: flex; gap: 0; margin-bottom: 28px; }
.trade-in-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--text-muted); position: relative; padding: 0 4px; }
.trade-in-step + .trade-in-step::before { content: ''; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--border); z-index: 0; }
.trade-in-step.is-done + .trade-in-step::before { background: #16a34a; }
.trade-in-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; position: relative; z-index: 1; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.trade-in-step-label { font-size: 10px; font-weight: 700; text-align: center; line-height: 1.2; }
.trade-in-step.is-active .trade-in-step-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.trade-in-step.is-active { color: var(--blue); }
.trade-in-step.is-done .trade-in-step-num { background: #16a34a; border-color: #16a34a; color: transparent; font-size: 0; }
.trade-in-step.is-done .trade-in-step-num::after { content: '✓'; font-size: 14px; color: #fff; position: absolute; }
.trade-in-step.is-done { color: #16a34a; }
.trade-in-card { background: var(--gray-card); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.trade-in-card h2 { font-size: 16px; margin-bottom: 14px; }
.trade-in-form { display: grid; gap: 16px; }
.trade-in-form .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.trade-in-form .form-group:last-child { margin-bottom: 0; }
.form-row .form-group { margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.form-optional { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.trade-in-form label { font-size: 14px; font-weight: 600; }
.trade-in-form input[type="text"],
.trade-in-form input[type="number"],
.trade-in-form select,
.trade-in-form textarea { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-primary); background: var(--white); width: 100%; box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s; outline: none; }
.trade-in-form input[type="text"]:hover,
.trade-in-form input[type="number"]:hover,
.trade-in-form select:hover { border-color: var(--blue); }
.trade-in-form input[type="text"]:focus,
.trade-in-form input[type="number"]:focus,
.trade-in-form select:focus,
.trade-in-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.trade-in-form select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.trade-in-form textarea { min-height: 90px; resize: vertical; }
.trade-in-form input[type="range"] { width: 100%; }
.trade-in-range-value { font-size: 14px; font-weight: 700; color: var(--blue); }
.trade-in-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); cursor: pointer; margin-bottom: 16px; }
.trade-in-checkbox:last-child { margin-bottom: 0; }
.trade-in-deductions .trade-in-checkbox { margin-bottom: 0; }
.trade-in-checkbox:has(input:checked) { border-color: var(--blue); background: #e8f4f3; }
.trade-in-checkbox input[type="radio"] { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.trade-in-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.trade-in-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 50px; font-size: 14px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-family: inherit; }
.trade-in-btn-primary { background: var(--orange); color: #fff; }
.trade-in-btn-primary:hover { background: var(--orange-dark); }
.trade-in-btn-secondary { background: var(--white); color: var(--blue); border: 1px solid var(--blue); }
.trade-in-btn-secondary:hover { background: var(--blue); color: #fff; }
.trade-in-panel { display: none; }
.trade-in-panel.is-active { display: block; }
@keyframes ti-slide-from-right { from { transform: translateX(32px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes ti-slide-from-left  { from { transform: translateX(-32px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.trade-in-form.is-sliding-forward  .trade-in-panel.is-active { animation: ti-slide-from-right 0.28s ease forwards; }
.trade-in-form.is-sliding-backward .trade-in-panel.is-active { animation: ti-slide-from-left  0.28s ease forwards; }
.trade-in-estimate { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 16px; margin-top: 8px; }
.trade-in-estimate strong { display: block; font-size: 24px; color: #1e40af; margin-top: 4px; }
.trade-in-estimate-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #1e40af; }
.trade-in-estimate-disclaimer { font-size: 12px; color: var(--text-muted); margin-top: 8px; margin-bottom: 0; }
.trade-in-deductions { border: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trade-in-deductions legend { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.trade-in-deductions-help { font-size: 13px; color: var(--text-muted); margin: 0 0 4px; }
.trade-in-estimate.is-loading { opacity: 0.7; }
.trade-in-estimate.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.trade-in-photo-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.trade-in-photo-card { border: 1px dashed var(--border); border-radius: 12px; padding: 16px; background: var(--white); }
.trade-in-photo-card label { display: block; font-weight: 700; margin-bottom: 8px; }
.trade-in-photo-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin-top: 10px; display: none; }
.trade-in-photo-preview.is-visible { display: block; }
.trade-in-summary { display: grid; gap: 8px; font-size: 14px; }
.trade-in-summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.trade-in-summary-row:last-child { border-bottom: none; }
.trade-in-alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.trade-in-alert-error { background: #fef2f2; color: #991b1b; }
.trade-in-list-card { display: block; background: var(--gray-card); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; text-decoration: none; color: inherit; }
.trade-in-list-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.trade-in-list-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.trade-in-status { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 50px; background: #e8f4f3; color: var(--blue); }
.trade-in-confirm-icon { width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #166534; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.trade-in-next-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trade-in-next-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.trade-in-next-steps i { color: var(--blue); margin-top: 3px; }
.field-error { color: #991b1b; font-size: 12px; }
.trade-in-portal-card { background: var(--gray-card); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.trade-in-portal-header { margin-bottom: 16px; }
.trade-in-portal-ref { font-size: 13px; font-weight: 700; color: var(--text-muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.trade-in-portal-device { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.trade-in-portal-estimate { margin-bottom: 16px; }
.trade-in-portal-estimate-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.trade-in-portal-estimate-value { font-size: 28px; font-weight: 800; color: var(--blue); }
.trade-in-portal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trade-in-list-cta { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--orange); text-decoration: none; }
.trade-in-list-cta:hover { text-decoration: underline; }
.trade-in-product-picker { display: grid; gap: 10px; }
.trade-in-product-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); cursor: pointer; }
.trade-in-product-option:has(input:checked) { border-color: var(--blue); background: #e8f4f3; }
.trade-in-product-option input { margin-top: 4px; }
.trade-in-product-option-body { display: flex; flex-direction: column; gap: 4px; }
.trade-in-product-option-body small { color: var(--text-muted); }
.trade-in-swap-summary { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
@media (min-width: 640px) {
  .trade-in-photo-grid { grid-template-columns: repeat(3, 1fr); }
}
