/* Payment Modal Styles */
.cnh-payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cnh-payment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.cnh-payment-content {
  position: relative;
  background: white;
  border-radius: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.cnh-confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.cnh-confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -20px;
  opacity: 0;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    top: -20px;
    opacity: 1;
    transform: rotate(0deg);
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: rotate(720deg);
  }
}

.cnh-payment-header {
  text-align: center;
  padding: 48px 40px 32px;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 24px 24px 0 0;
}

.cnh-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
  animation: success-pop 0.5s ease;
}

@keyframes success-pop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.cnh-success-icon svg {
  color: white;
}

.cnh-payment-header h2 {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.cnh-payment-header p {
  margin: 0;
  font-size: 16px;
  color: #64748b;
}

.cnh-payment-body {
  padding: 32px 40px;
  position: relative;
  z-index: 2;
}

.cnh-payment-info {
  margin-bottom: 24px;
}

.cnh-payment-label {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.cnh-payment-category {
  font-size: 24px;
  font-weight: 700;
  padding: 12px 20px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  border-radius: 12px;
  text-align: center;
}

.cnh-payment-price {
  font-size: 36px;
  font-weight: 800;
  color: #22c55e;
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 12px;
}

.cnh-payment-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
  margin: 32px 0;
}

.cnh-payment-pix {
  margin-bottom: 32px;
}

.cnh-pix-key-container {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.cnh-pix-key-input {
  flex: 1;
  padding: 16px 20px;
  border: 3px solid #cbd5e1;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
}

.cnh-copy-pix-btn {
  padding: 16px 24px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cnh-copy-pix-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.cnh-copy-feedback {
  margin-top: 12px;
  padding: 12px;
  background: #22c55e;
  color: white;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cnh-payment-instructions {
  background: #f8fafc;
  border-radius: 16px;
  padding: 24px;
  border: 2px solid #e2e8f0;
}

.cnh-payment-instructions p {
  margin: 0 0 16px 0;
  font-weight: 700;
  color: #1e293b;
}

.cnh-payment-instructions ol {
  margin: 0;
  padding-left: 20px;
  color: #475569;
}

.cnh-payment-instructions li {
  margin-bottom: 8px;
  font-size: 15px;
}

.cnh-payment-footer {
  padding: 24px 40px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cnh-close-modal-btn {
  padding: 16px 48px;
  background: #e2e8f0;
  color: #475569;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cnh-close-modal-btn:hover {
  background: #cbd5e1;
  color: #1e293b;
  transform: translateY(-2px);
}

/* Header and Video Section Styles */
.cnh-info-header {
  background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
  border-radius: 24px;
  padding: 60px 40px;
  margin-bottom: 48px;
  text-align: center;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 102, 204, 0.25);
}

.cnh-info-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.cnh-info-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.cnh-info-icon svg {
  color: white;
}

.cnh-info-title {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 20px 0;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cnh-info-description {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 32px 0;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cnh-info-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cnh-info-badge {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cnh-info-badge svg {
  width: 18px;
  height: 18px;
}

.cnh-video-section {
  background: white;
  border-radius: 24px;
  padding: 48px;
  margin-bottom: 48px;
  box-shadow: 0 2px 12px rgba(148, 163, 184, 0.08);
  border: 1px solid #f1f5f9;
}

.cnh-video-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cnh-video-header svg {
  color: #6366f1;
}

.cnh-video-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.cnh-video-description {
  text-align: center;
  font-size: 16px;
  color: #64748b;
  margin: 0 0 32px 0;
}

.cnh-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  background: #000;
}

.cnh-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .cnh-info-header {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .cnh-info-title {
    font-size: 32px;
  }

  .cnh-info-description {
    font-size: 16px;
  }

  .cnh-info-badges {
    flex-direction: column;
    align-items: center;
  }

  .cnh-info-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .cnh-video-section {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .cnh-video-header h2 {
    font-size: 24px;
  }
}
