/**
 * Estilização do Card Dados Pagamento
 * Layout conforme imagem reference
 */

/* ============================
   CARD DADOS PAGAMENTO
   ============================ */

#step4 {
  padding: 20px;
  background: #fff;
  border-radius: 4px;
}

#step4 h2.lined-heading {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

#step4 h2.lined-heading::before {
  content: "💳";
  font-size: 22px;
}

/* ============================
   SELEÇÃO DE FORMA DE PAGAMENTO
   ============================ */

.payment-method-selector {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
}

.payment-method-selector > label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333;
}

.payment-method-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.payment-method-option:hover {
  border-color: #3bb1b4;
  background: #f0fafb;
}

.payment-method-option input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #3bb1b4;
}

.payment-method-option input[type="checkbox"]:checked {
  background-color: #3bb1b4;
}

.payment-method-option .logo {
  width: 40px;
  height: auto;
  object-fit: contain;
}

.payment-method-option label {
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  flex: 1;
}

/* ============================
   INFORMAÇÕES DE VALOR
   ============================ */

.payment-info-box {
  margin-bottom: 15px;
  padding: 12px;
  background: #f5f5f5;
  border-left: 4px solid #3bb1b4;
  border-radius: 2px;
}

.payment-info-box .label {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.payment-info-box .value {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.payment-info-box .description {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  line-height: 1.4;
}

/* ============================
   BARRA DE PROGRESSO/STATUS
   ============================ */

.payment-status-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 15px 0;
  overflow: hidden;
}

.payment-status-bar .progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #3bb1b4, #009299);
  animation: progress-animation 1s ease-in-out infinite;
}

@keyframes progress-animation {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* ============================
   CHECKBOX COMPRA SEGURA
   ============================ */

.purchase-secure-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 4px;
}

.purchase-secure-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: #3bb1b4;
  cursor: pointer;
  flex-shrink: 0;
}

.purchase-secure-checkbox .secure-label {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}

.purchase-secure-checkbox .secure-label::before {
  content: "🔒 ";
  margin-right: 5px;
}

.purchase-secure-checkbox .links {
  display: inline-flex;
  gap: 15px;
  margin-top: 8px;
}

.purchase-secure-checkbox .links a {
  color: #3bb1b4;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
}

.purchase-secure-checkbox .links a:hover {
  color: #009299;
}

/* ============================
   EMAIL DE CONTATO
   ============================ */

.contact-email {
  text-align: center;
  margin: 12px 0;
  font-size: 12px;
  color: #666;
}

.contact-email a {
  color: #3bb1b4;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* ============================
   AVISOS E VALIDAÇÕES
   ============================ */

.terms-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  margin: 15px 0;
  color: #856404;
  font-weight: 500;
  font-size: 13px;
}

.terms-warning::before {
  content: "⚠";
  font-size: 18px;
  flex-shrink: 0;
}

.terms-warning.error {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.terms-warning.error::before {
  content: "⚠";
}

/* ============================
   BOTÃO FINALIZAR COMPRA
   ============================ */

.btn-finalize-purchase {
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(to right, #52c77f, #3d9f68);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-finalize-purchase::after {
  content: " ✓";
  font-size: 20px;
}

.btn-finalize-purchase:hover:not(:disabled) {
  background: linear-gradient(to right, #48b36f, #349157);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.btn-finalize-purchase:active:not(:disabled) {
  transform: translateY(0px);
}

.btn-finalize-purchase:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #ccc;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

@media (max-width: 768px) {
  .payment-method-options {
    grid-template-columns: 1fr;
  }

  #step4 h2.lined-heading {
    font-size: 16px;
  }

  .payment-info-box .value {
    font-size: 14px;
  }
}

/* ============================
   ANIMAÇÕES SUAVE
   ============================ */

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
