/* Pop-up Oferta Simulado - Estilo Black Friday */

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.popup-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.popup-container {
  position: relative;
  max-width: 700px;
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(159, 1, 32, 0.3);
  overflow: hidden;
  animation: slideUp 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.popup-close:hover {
  background: rgba(159, 1, 32, 0.1);
  transform: rotate(90deg);
}

.popup-close i {
  font-size: 20px;
  color: #333;
}

.popup-content {
  padding: 50px 40px 40px;
}

.popup-badge {
  font-family: "montserrat", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #9f0120 0%, #c41e3a 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  animation: pulse 2s ease infinite;
}

.extra-discount {
  margin-top: 10px;
  font-size: 14px;
  color: #9f0120;
  font-weight: 600;
  text-align: center;
}

.extra-discount p {
  margin: 0;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.popup-badge i {
  font-size: 16px;
}

.popup-title {
  font-family: "League Gothic", sans-serif;
  font-size: 42px;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.popup-subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.popup-subtitle strong {
  color: #9f0120;
  font-weight: 700;
}

/* Card do Simulado */
.simulado-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.simulado-card:hover {
  border-color: #9f0120;
  box-shadow: 0 6px 30px rgba(159, 1, 32, 0.15);
}

.simulado-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.simulado-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #9f0120 0%, #c41e3a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.simulado-icon i {
  font-size: 28px;
  color: white;
}

.simulado-info h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.simulado-date,
.simulado-local {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.simulado-date {
  font-weight: 600;
  color: #9f0120;
}

.simulado-features {
  display: grid;
  gap: 12px;
}

.feature-item {
  font-family: "Montserrat", sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #333;
}

.feature-item i {
  color: #9f0120;
  font-size: 18px;
  flex-shrink: 0;
}

/* Preços */
.popup-pricing {
  font-family: "montserrat", sans-serif;
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  border: 2px solid #ffe0e6;
}

.price-comparison {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.price-item {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.price-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.price-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.price-divider {
  font-size: 24px;
  font-weight: 700;
  color: #9f0120;
}

.price-item.special {
  background: white;
  padding: 15px;
  border-radius: 12px;
  border: 2px solid #9f0120;
}

.price-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.price-original {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}

.price-special {
  font-size: 28px;
  font-weight: 800;
  color: #9f0120;
}

.total-price {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 2px dashed #9f0120;
}

.total-label {
  display: block;
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
}

.total-value {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #9f0120;
  margin-bottom: 5px;
}

.total-installments {
  display: block;
  font-size: 14px;
  color: #999;
}

.economy-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
}

.economy-badge i {
  font-size: 16px;
}

/* Aviso */
.popup-warning {
  display: flex;
  gap: 12px;
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 30px;
}

.popup-warning i {
  color: #ff9800;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.popup-warning p {
  font-size: 14px;
  color: #856404;
  line-height: 1.6;
  margin: 0;
}

.popup-warning strong {
  font-weight: 700;
}

/* Botões de Ação */
.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-accept,
.btn-decline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: "Montserrat", sans-serif;
}

.btn-accept {
  background: linear-gradient(135deg, #9f0120 0%, #c41e3a 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(159, 1, 32, 0.3);
}

.btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(159, 1, 32, 0.4);
}

.btn-accept:active {
  transform: translateY(0);
}

.btn-accept i {
  font-size: 18px;
}

.btn-decline {
  background: white;
  color: #666;
  border: 2px solid #ddd;
}

.btn-decline:hover {
  background: #f8f9fa;
  border-color: #999;
  color: #333;
}

/* Responsivo */
@media (max-width: 768px) {
  .popup-content {
    padding: 40px 25px 30px;
  }

  .popup-title {
    font-size: 32px;
  }

  .popup-subtitle {
    font-size: 16px;
  }

  .simulado-header {
    flex-direction: column;
    text-align: center;
  }

  .simulado-icon {
    margin: 0 auto;
  }

  .price-comparison {
    flex-direction: column;
  }

  .price-divider {
    transform: rotate(90deg);
  }

  .total-value {
    font-size: 28px;
  }

  .btn-accept,
  .btn-decline {
    font-size: 15px;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .popup-overlay {
    padding: 10px;
  }

  .popup-container {
    border-radius: 16px;
  }

  .popup-content {
    padding: 35px 20px 25px;
  }

  .popup-title {
    font-size: 28px;
  }

  .simulado-card {
    padding: 20px;
  }

  .popup-pricing {
    padding: 20px;
  }
}
