.lt-tradein-page {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  box-sizing: border-box;
}

.lt-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  box-sizing: border-box;
  box-shadow:
    0 8px 24px
    rgba(17, 24, 39, 0.05);
}

.lt-card + .lt-card {
  margin-top: 24px;
}

.lt-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
}

.lt-description {
  margin: 10px 0 24px;
  font-size: 16px;
  line-height: 1.8;
  color: #6b7280;
}

.lt-form-group {
  margin-bottom: 20px;
}

.lt-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}

.lt-form-group input[type="text"],
.lt-form-group input[type="tel"],
.lt-form-group input[type="email"],
.lt-form-group input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  font-size: 16px;
  color: #111827;
}

.lt-form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.10);
}

.lt-primary-button,
.lt-secondary-button {
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.lt-primary-button {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.lt-secondary-button {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
}

.lt-primary-button:hover,
.lt-secondary-button:hover {
  transform: translateY(-1px);
}

.lt-primary-button:disabled,
.lt-secondary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.lt-message {
  margin-top: 14px;
  font-size: 14px;
}

.lt-message-success {
  color: #15803d;
}

.lt-message-error {
  color: #b91c1c;
}

.lt-alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
}

.lt-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.lt-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.lt-status-badge {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #15803d;
  font-size: 14px;
  font-weight: 700;
}

.lt-device-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 26px;
}

.lt-info-item {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.lt-info-label {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.lt-info-value {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  word-break: break-word;
}

.lt-table-wrap {
  width: 100%;
  overflow-x: visible;
}

.lt-result-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.lt-result-table th,
.lt-result-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.lt-result-table th:nth-child(1),
.lt-result-table td:nth-child(1) {
  width: 21%;
}

.lt-result-table th:nth-child(2),
.lt-result-table td:nth-child(2) {
  width: 29%;
}

.lt-result-table th:nth-child(3),
.lt-result-table td:nth-child(3) {
  width: 21%;
}

.lt-result-table th:nth-child(4),
.lt-result-table td:nth-child(4) {
  width: 29%;
}

.lt-result-table th {
  background: #f9fafb;
  font-weight: 800;
  color: #374151;
}

.lt-money-cell {
  white-space: nowrap;
}

.lt-price-summary {
  width: 100%;
  max-width: 420px;
  margin: 28px 0 0 auto;
}

.lt-price-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  font-size: 16px;
  color: #4b5563;
}

.lt-price-final {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid #d1d5db;
  color: #111827;
}

.lt-price-final strong {
  font-size: 28px;
  color: #dc2626;
}

.lt-result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.lt-price-box {
  margin: 20px 0 26px;
  padding: 20px 22px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.lt-price-box > div {
  margin-bottom: 4px;
  font-size: 13px;
  color: #6b7280;
}

.lt-price-box strong {
  display: block;
  font-size: 30px;
  color: #dc2626;
}

#lt-signature-canvas {
  display: block;
  width: 100%;
  height: 220px;
  margin-bottom: 10px;
  border: 1px solid #9ca3af;
  border-radius: 8px;
  background: #ffffff;
  touch-action: none;
  cursor: crosshair;
}

.lt-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

.lt-agreement input {
  margin-top: 5px;
}

.lt-success-panel {
  padding: 30px 10px;
  text-align: center;
}

.lt-success-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 38px;
  line-height: 62px;
  font-weight: 800;
}

.lt-success-panel h3 {
  margin: 0 0 12px;
  font-size: 26px;
  color: #111827;
}

.lt-success-panel p {
  margin: 0 0 20px;
  color: #6b7280;
}

.lt-success-price {
  margin-top: 20px;
  font-size: 15px;
  color: #6b7280;
}

.lt-success-price strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  color: #dc2626;
}

/* 回收聲明書 */
.lt-recycle-declaration {
  margin: 24px 0 16px;
  padding: 20px 22px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #f8fafc;
  color: #374151;
}

.lt-recycle-declaration h3 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.4;
  color: #111827;
}

.lt-recycle-declaration-section +
.lt-recycle-declaration-section {
  margin-top: 16px;
}

.lt-recycle-declaration-section strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #111827;
}

.lt-recycle-declaration-section p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: #4b5563;
}

.lt-recycle-declaration-section p:last-child {
  margin-bottom: 0;
}

/* 放棄回收 */
.lt-decline-button {
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: #ffffff;
  color: #b91c1c;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.lt-decline-button:hover {
  background: #fef2f2;
}

.lt-decline-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lt-decline-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.52);
  box-sizing: border-box;
}

.lt-decline-modal-card {
  width: 100%;
  max-width: 460px;
  padding: 28px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.22);
  text-align: center;
}

.lt-decline-modal-card h3 {
  margin: 0 0 12px;
  font-size: 23px;
  color: #111827;
}

.lt-decline-modal-card p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.75;
  color: #4b5563;
}

@media (max-width: 800px) {

  .lt-card {
    padding: 20px;
  }

  .lt-card h2 {
    font-size: 25px;
  }

  .lt-result-header {
    flex-direction: column;
  }

  .lt-device-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .lt-result-actions {
    flex-direction: column-reverse;
  }

  .lt-result-actions button {
    width: 100%;
  }
}

@media (max-width: 520px) {

  .lt-tradein-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .lt-card {
    padding: 16px;
    border-radius: 12px;
  }

  .lt-device-grid {
    grid-template-columns: 1fr;
  }

  .lt-result-table th,
  .lt-result-table td {
    padding: 8px 6px;
    font-size: 12px;
    line-height: 1.4;
  }

  .lt-recycle-declaration {
    padding: 16px;
  }

  .lt-price-summary {
    max-width: none;
  }

  .lt-price-final strong {
    font-size: 24px;
  }
}
.lt-privacy-notice {
    margin: 24px 0;
    padding: 16px 18px;

    background: #f7f9fc;

    border: 1px solid #dfe6ef;
    border-radius: 10px;

    line-height: 1.7;
}

.lt-privacy-notice strong {
    display: block;

    margin-bottom: 6px;

    font-size: 15px;
    color: #1f2937;
}

.lt-privacy-notice p {
    margin: 0;

    font-size: 14px;
    color: #5f6b7a;
}