/* reset */
* { margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-size: 100%; list-style: none; line-height: 1; outline: 0px; background: none; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-font-smoothing: antialiased; -ms-font-smoothing: antialiased; -o-font-smoothing: antialiased; font-smoothing: antialiased; }

:root { 
  --primary: #151515; 
  --gray: #555; 
  --blue: #002148; 
  --yellow: #D6B23C; 
}

body {
  background: #efefef;
  font-family: 'Inter', sans-serif;
  color: var(--primary);
}

#top {
  background: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

#top .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#top .logo img {
  height: 50px;
}

#top .login-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  background-color: var(--blue);
  transition: all 0.3s ease;
}

#top .login-link:hover {
  background-color: var(--yellow);
  color: var(--blue);
}

.main-container {
  max-width: 1050px;
  margin: 40px auto;
  padding: 0 20px;
}

.step-container {
  background: #fff;
  border-radius: 30px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.step-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: linear-gradient(35deg, var(--blue), 80%, #07468f);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-weight: 700;
  margin-right: 10px;
.terms-container {
  margin: 20px 0 10px;
  padding: 18px;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  background: #f8f9fa;
}
.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #495057;
  font-weight: 500;
}
.terms-checkbox input {
  margin-top: 4px;
  width: 20px;
  height: 20px;
}
.terms-link {
  background: none;
  border: none;
  color: #0d6efd;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.terms-error {
  margin-top: 10px;
  font-size: 14px;
  color: #dc3545;
}
  font-size: 18px;
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  display: inline-block;
  vertical-align: middle;
}

.package-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  align-items: stretch;
}

.package-option {
  border: 2px solid #e0e0e0;
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  min-height: 220px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.package-option:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 24px rgba(0, 33, 72, 0.18);
  transform: translateY(-4px);
}

.package-option.selected {
  border-color: transparent;
  background: linear-gradient(150deg, #0a2c64, #0f479f 70%);
  box-shadow: 0 18px 32px rgba(12, 56, 118, 0.3);
}

.package-option.selected .package-name,
.package-option.selected .package-price,
.package-option.selected .package-desc {
  color: #fff;
}

.package-option input[type="radio"] {
  width: 22px;
  height: 22px;
  margin-right: 0;
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.package-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.package-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.package-price {
  font-size: 30px;
  font-weight: 900;
  color: var(--blue);
  margin: 6px 0 2px;
}

.package-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

.addon-option {
  border: 2px dashed #d8e0f0;
  border-radius: 16px;
  padding: 18px 22px;
  background: #f7faff;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.addon-option.selected {
  border-color: #0f479f;
  background: #edf2ff;
  box-shadow: 0 12px 22px rgba(15, 71, 159, 0.15);
}

.addon-body {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.addon-body input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.addon-text {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.addon-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
}

.addon-price {
  font-weight: 800;
  color: #0f479f;
  background: #e0e9ff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
}

.addon-option.selected .addon-price {
  background: #0f479f;
  color: #fff;
}

.addon-note {
  margin-top: 10px;
  font-size: 13px;
  color: #6c7a99;
}

@media (max-width: 900px) {
  .package-option {
    flex: 1 1 calc(50% - 20px);
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .package-option {
    flex: 1 1 100%;
    min-height: auto;
  }
}

.placa-input-group {
  margin-bottom: 20px;
}

.placa-input-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 14px;
  text-transform: uppercase;
}

.placa-input-group input[type="text"] {
  width: 100%;
  height: 100px;
  padding: 15px;
  font-size: 36px;
  border: 2px solid var(--gray);
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  color: var(--blue);
  transition: all 0.3s ease;
}

.placa-input-group input[type="text"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 33, 72, 0.1), 0 14px 36px rgba(0, 33, 72, 0.15);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(35deg, var(--blue), 80%, #07468f);
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  height: 50px;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 33, 72, 0.3);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-pdf {
  background: linear-gradient(35deg, #dc3545, 80%, #c82333);
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  height: 50px;
  transition: all 0.3s;
}

.btn-pdf:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-pdf:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-pdf i {
  margin-right: 8px;
}

.payment-methods {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.payment-method-btn {
  flex: 1;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
}

.payment-method-btn:hover {
  border-color: var(--blue);
}

.payment-method-btn.active {
  border-color: var(--blue);
  background: linear-gradient(35deg, var(--blue), 80%, #07468f);
  color: #fff;
}

.payment-method-btn i {
  display: block;
  font-size: 32px;
  margin-bottom: 10px;
}

.payment-content {
  display: none;
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #eaeaea;
}

.payment-content.active {
  display: block;
}

#pixQrCode {
  text-align: center;
  padding: 20px;
}

#pixQrCode img {
  max-width: 250px;
  border: 3px solid #32bcad;
  border-radius: 8px;
}

#pixCode {
  margin-top: 15px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
}

#pixCode input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 12px;
  font-family: monospace;
  margin-bottom: 10px;
}

.btn-copy-pix {
  background: linear-gradient(35deg, var(--blue), 80%, #07468f);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  height: 44px;
}

.payment-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.payment-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.payment-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.payment-status.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.hidden {
  display: none !important;
}

/* Resultado - usando mesmo estilo do painel */
.veiculo-hero { 
  text-align: center; 
  padding: 40px 20px; 
  background: linear-gradient(135deg, var(--blue) 0%, #07468f 100%); 
  border-radius: 12px; 
  margin-bottom: 30px; 
  box-shadow: 0 8px 24px rgba(0, 33, 72, 0.25); 
}

.placa-destaque { 
  display: inline-block; 
  background: #fff; 
  color: #333; 
  font-size: 42px; 
  font-weight: 700; 
  letter-spacing: 8px; 
  padding: 16px 40px; 
  border-radius: 8px; 
  font-family: 'Courier New', monospace; 
  margin-bottom: 20px; 
}

.veiculo-titulo { 
  font-size: 28px; 
  font-weight: 600; 
  color: #fff; 
  margin-bottom: 8px; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}

.veiculo-subtitulo { 
  font-size: 18px; 
  color: rgba(255,255,255,0.9); 
  font-weight: 400; 
}

.veiculo-detalhes { 
  margin-bottom: 30px; 
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.veiculo-detalhes h3 { 
  margin-bottom: 20px; 
  color: var(--blue); 
  font-size: 20px;
  font-weight: 700;
}

.info-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 16px; 
}

.info-item { 
  display: flex; 
  flex-direction: column; 
  padding: 14px 18px; 
  background: #f8f9fa; 
  border-radius: 10px; 
  border-left: 4px solid var(--yellow); 
  transition: all 0.2s ease; 
}

.info-item:hover { 
  background: #e9ecef; 
  transform: translateY(-2px); 
  box-shadow: 0 4px 8px rgba(0,0,0,0.08); 
}

.info-item .label { 
  font-size: 12px; 
  text-transform: uppercase; 
  color: #6c757d; 
  font-weight: 600; 
  letter-spacing: 0.5px; 
  margin-bottom: 6px; 
}

.info-item .value { 
  font-size: 16px; 
  color: #212529; 
  font-weight: 500; 
}

.infracoes-card { 
  margin-bottom: 30px; 
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.secao-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 20px; 
  padding-bottom: 12px; 
  border-bottom: 2px solid #e9ecef; 
}

.secao-header h3 { 
  margin: 0; 
  font-size: 22px; 
  color: var(--blue);
  font-weight: 700;
}

.status-badge { 
  display: inline-block; 
  padding: 6px 16px; 
  border-radius: 20px; 
  font-size: 13px; 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}

.badge-success { 
  background: #d4edda; 
  color: #155724; 
}

.badge-danger { 
  background: #f8d7da; 
  color: #721c24; 
}

.badge-warning { 
  background: #fff3cd; 
  color: #856404; 
}

.badge-info {
  background: #d1ecf1;
  color: #0c5460;
}

.terms-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
}

.terms-modal.hidden {
  display: none;
}

.terms-modal-content {
  max-width: 640px;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 30px 35px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.terms-modal-content h3 {
  margin-top: 0;
  font-size: 24px;
  color: #212529;
}

.terms-modal-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 15px;
}

.terms-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #6c757d;
  cursor: pointer;
}
.terms-modal-close:hover {
  color: #000;
}

.infracoes-lista { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

.infracao-item { 
  padding: 18px; 
  background: #f8f9fa; 
  border-radius: 10px; 
  border-left: 4px solid #dc3545; 
  transition: all 0.2s ease; 
}

.infracao-item:hover { 
  background: #e9ecef; 
  transform: translateX(4px); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.infracao-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 12px; 
}

.infracao-codigo { 
  font-size: 16px; 
  font-weight: 700; 
  color: #dc3545; 
  font-family: 'Courier New', monospace; 
}

.infracao-valor { 
  font-size: 20px; 
  font-weight: 700; 
  color: #333; 
}

.infracao-detalhes { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.info-line { 
  font-size: 14px; 
  color: #495057; 
  line-height: 1.6; 
}

.info-line strong { 
  color: #212529; 
  margin-right: 4px; 
}

.sem-dados { 
  text-align: center; 
  padding: 40px;
  background: #d4edda;
  border-radius: 10px;
}

.sem-dados i {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 15px;
  display: block;
}

.sem-dados h3 {
  color: #155724;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 10px;
}

.sem-dados p {
  color: #155724;
}

.loading-spinner {
  text-align: center;
  padding: 40px;
}

.loading-spinner i {
  font-size: 48px;
  color: var(--blue);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.step-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Débitos Detran */
.debitos-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.debito-item {
  background: rgba(229, 57, 53, 0.05);
  border-left: 4px solid #dc3545;
  border-radius: 10px;
  padding: 15px 20px;
  transition: all 0.2s ease;
}

.debito-item:hover {
  background: rgba(229, 57, 53, 0.1);
  transform: translateX(4px);
}

.debito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.debito-tipo {
  font-size: 16px;
  font-weight: 600;
  color: #dc3545;
}

.debito-tipo i {
  margin-right: 8px;
}

.debito-valor-item {
  font-size: 20px;
  font-weight: 700;
  color: #e53935;
}

/* Restrições Detran */
.restricoes-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.restricao-item {
  background: rgba(220, 53, 69, 0.05);
  border-left: 4px solid #dc3545;
  border-radius: 10px;
  padding: 15px 20px;
  transition: all 0.2s ease;
}

.restricao-item:hover {
  background: rgba(220, 53, 69, 0.1);
  transform: translateX(4px);
}

.restricao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.restricao-tipo {
  font-size: 16px;
  font-weight: 600;
  color: #dc3545;
}

.restricao-tipo i {
  margin-right: 8px;
}

.restricao-status {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #dc3545;
  padding: 4px 12px;
  border-radius: 20px;
}

.restricao-desc {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

/* Roubo/Furto */
.roubo-lista {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.roubo-item {
  background: rgba(255, 152, 0, 0.05);
  border-left: 4px solid #ff9800;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.roubo-item:hover {
  background: rgba(255, 152, 0, 0.1);
  transform: translateX(5px);
}

.roubo-tipo {
  font-size: 16px;
  font-weight: 700;
  color: #f57c00;
  margin-bottom: 10px;
}

.roubo-detalhes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Leilão */
.classificacao-leilao {
  background: rgba(255, 193, 7, 0.1);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
}

.classificacao-leilao h4 {
  color: #f57c00;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.classificacao-titulo {
  font-size: 16px;
  font-weight: 600;
  color: #856404;
  margin-bottom: 8px;
}

.classificacao-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  white-space: pre-line;
}

.leilao-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.leilao-item {
  background: rgba(255, 193, 7, 0.05);
  border-left: 4px solid #ffc107;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.2s ease;
}

.leilao-item:hover {
  background: rgba(255, 193, 7, 0.1);
  transform: translateX(4px);
}

.leilao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.leilao-lote {
  font-size: 16px;
  font-weight: 700;
  color: #f57c00;
}

.leilao-data {
  font-size: 14px;
  font-weight: 600;
  color: #856404;
}

.leilao-detalhes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Parecer Técnico */
.parecer-detalhes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

/* Remarketing */
.remarketing-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.remarketing-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  border-left: 4px solid var(--blue);
}

.fotos-remarketing, .fotos-grid {
  margin-top: 15px;
}

.fotos-remarketing h4 {
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.fotos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.fotos-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
}

.fotos-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Danos IA */
.danos-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.dano-item {
  background: rgba(220, 53, 69, 0.05);
  border-left: 4px solid #dc3545;
  border-radius: 10px;
  padding: 15px;
}

.dano-local {
  font-size: 16px;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 5px;
}

.dano-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.dano-prob {
  font-size: 13px;
  font-weight: 600;
  color: #856404;
  background: rgba(255, 193, 7, 0.2);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
}

.pecas-lista {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.peca-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.peca-prob {
  font-weight: 700;
  color: var(--blue);
}

/* Responsive */
@media (max-width: 800px){
  .info-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .step-container {
    padding: 30px 20px;
  }
}

@media (max-width: 600px){
  .info-grid { 
    grid-template-columns: 1fr; 
  }
  
  .placa-destaque { 
    font-size: 30px; 
  }
  
  .veiculo-titulo { 
    font-size: 20px; 
  }
  
  .infracao-header { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 10px; 
  }
  
  .step-container {
    border-radius: 20px;
    padding: 20px;
  }
  
  .main-container {
    margin: 20px auto;
  }
}
