/**
 * Consultar Page Styles
 * Lista de CPFs encontrados para seleção
 */

/* ==========================================================================
   Page Layout
   ========================================================================== */

.p-consultar {
  background: var(--color-background);
  min-height: 100vh;
}

.p-consultar .l-main {
  padding: var(--spacing-2xl) 0;
}

/* ==========================================================================
   Info Card
   ========================================================================== */

.info-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.info-card__header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #28a99c 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-card__header svg {
  width: 28px;
  height: 28px;
  stroke: white;
  flex-shrink: 0;
}

.info-card__header p {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.info-card__header strong {
  font-weight: 700;
}

/* ==========================================================================
   Filter Section
   ========================================================================== */

.filter-section {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-section label {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin: 0;
}

.filter-input {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Courier New', monospace;
  background: white;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 1px;
}

.filter-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(50, 188, 173, 0.1);
}

.filter-input::placeholder {
  color: #6c757d;
  font-weight: 500;
}

.filter-section small {
  color: #6c757d;
  font-size: 12px;
}

/* ==========================================================================
   CPF List
   ========================================================================== */

.cpf-list {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.cpf-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 12px;
  background: white;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.cpf-item:hover {
  background-color: #f8f9fa;
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(50, 188, 173, 0.15);
}

.cpf-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.cpf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpf-field label {
  font-size: 11px;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cpf-field strong {
  font-size: 16px;
  color: #212529;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.cpf-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, #28a99c 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(50, 188, 173, 0.3);
  width: 100%;
}

.cpf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(50, 188, 173, 0.4);
  background: linear-gradient(135deg, #28a99c 0%, #239d91 100%);
}

.cpf-btn:active {
  transform: translateY(0);
}

.lock-icon {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.95);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lock-icon svg {
  width: 18px;
  height: 18px;
  stroke: #6c757d;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h3 {
  background: linear-gradient(135deg, var(--color-primary) 0%, #28a99c 100%);
  color: white;
  padding: 25px 30px;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  border-radius: 20px 20px 0 0;
}

.modal-price {
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
}

.modal-price p {
  margin: 0 0 15px 0;
  font-size: 16px;
  line-height: 1.5;
}

.modal-price p:first-child {
  font-weight: 600;
  color: #212529;
  margin-bottom: 20px;
}

.price-old {
  position: relative;
  display: inline-block;
  background: #6c757d;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
}

.price-old span {
  text-decoration: line-through;
}

.price-new {
  margin-top: 10px !important;
  font-size: 28px;
  color: var(--color-success);
  font-weight: 700;
}

.price-new span {
  font-size: 36px;
}

.modal-info {
  padding: 20px 30px;
  color: #6c757d;
}

.modal-info p {
  margin: 0;
  line-height: 1.6;
}

.btn-confirm {
  background: linear-gradient(135deg, var(--color-primary) 0%, #28a99c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin: 20px 30px;
  width: calc(100% - 60px);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(50, 188, 173, 0.3);
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(50, 188, 173, 0.4);
}

.modal-terms {
  padding: 20px 30px 30px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  font-size: 13px;
  color: #6c757d;
}

.modal-terms input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.modal-terms label {
  line-height: 1.5;
}

.modal-terms a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.modal-terms a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .info-card__header {
    padding: 16px 20px;
    font-size: 14px;
  }
  
  .filter-section {
    padding: 16px 20px;
  }
  
  .filter-input {
    font-size: 14px;
    padding: 10px 14px;
  }
  
  .cpf-list {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }
  
  .cpf-item {
    padding: 12px;
  }
  
  .cpf-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .lock-icon {
    width: 32px;
    height: 32px;
    right: 10px;
    top: 10px;
  }
  
  .lock-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .modal-content {
    width: 95%;
  }
  
  .modal-content h3 {
    padding: 20px;
    font-size: 18px;
  }
  
  .modal-price {
    padding: 20px;
  }
  
  .price-new {
    font-size: 24px;
  }
  
  .price-new span {
    font-size: 32px;
  }
}
