.checkout-custom .card, .card.checkout-custom{border:none;box-shadow:0 6px 20px rgba(16,24,40,0.08);border-radius:8px}
.checkout-custom .card .card-body, .card.checkout-custom .card-body{padding:20px}
.checkout-custom h5, .checkout-custom h1, .checkout-custom h2{color:#0f172a}

/* Payment method buttons */
.checkout-custom .opcao-pagamento{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #d0d7df;background:#fff;border-radius:8px;color:var(--bs-body-color);}
.checkout-custom .opcao-pagamento .icone-checkout{font-size:18px}
.checkout-custom .opcao-pagamento.btn-selecionado{background:#1976d2;color:#fff;border-color:transparent}
.checkout-custom .opcao-pagamento.btn-selecionado .icone-checkout{color:#fff}

/* Form adjustments */
.checkout-custom .form-control{border-radius:6px}
.checkout-custom .input-group-text{background:transparent;border:none}

/* ─── Main CTA button (high-contrast green) ─────────────── */
#btn-continue-step2, #form-checkout__submit {
  background: #16a34a !important;
  border: none !important;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  padding: 14px 20px !important;
  border-radius: 8px;
  transition: background 0.2s;
}
#btn-continue-step2:hover, #form-checkout__submit:hover {
  background: #15803d !important;
}
#btn-continue-step2:active, #form-checkout__submit:active {
  background: #166534 !important;
}

/* ─── Stepper / Progress bar ──────────────────────────────── */
.modern-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  gap: 0;
}
.step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.step-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #b0b8c4;
  background: #fff;
  color: #6c757d;
  transition: all 0.25s;
}
.step-wrapper.current .step-indicator {
  background: #667eea;
  border-color: #667eea;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(102,126,234,0.2);
}
.step-wrapper.completed .step-indicator {
  background: #667eea;
  border-color: #667eea;
  color: #fff;
}
.step-label {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.step-wrapper.current .step-label { color: #667eea; font-weight: 700; }
.step-wrapper.completed .step-label { color: #667eea; }
.step-connector {
  flex: 1;
  min-width: 40px;
  max-width: 80px;
  height: 3px;
  background: #b0b8c4;
  margin: 0 8px;
  position: relative;
  top: -14px;
  border-radius: 2px;
}
.step-connector.active { background: #667eea; }

/* ─── Purchase summary card ─────────────────────────────── */
.premium-product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.premium-card-icon {
  width: 44px; height: 44px;
  background: #eef2ff;
  color: #4f6ef7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.premium-card-info { flex: 1; min-width: 0; }
.premium-card-subtitle {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #8896ab;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.premium-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.premium-card-price {
  text-align: right;
  color: #4f6ef7;
  white-space: nowrap;
}
.premium-card-price .currency { font-size: 12px; font-weight: 600; vertical-align: top; }
.premium-card-price .value { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: #1e293b; }

/* ─── Trust badges ────────────────────────────────────────── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  margin-left: 8px;
  vertical-align: middle;
}
.trust-badge .fa-lock { font-size: 10px; }

/* ─── Mobile optimizations ────────────────────────────────── */
@media (max-width:768px){
  body{background:#fff}
  .checkout-custom .card, .card.checkout-custom{box-shadow:none;border-radius:0;background:transparent}
  .checkout-custom .card .card-body, .card.checkout-custom .card-body{padding:16px}
  .form-group { margin-bottom: 18px !important; }
  .form-group label { font-size: 14px; margin-bottom: 8px; }
  input, select { padding: 12px 14px; font-size: 16px; }
  .premium-product-card { padding: 14px 16px; gap: 12px; }
  .premium-card-price .value { font-size: 20px; }
  #btn-continue-step2, #form-checkout__submit { padding: 16px 20px !important; font-size: 17px; }
  .trust-badge { display: block; margin: 4px 0 0 0; }
  .checkout-custom .col-12.col-md-2, .checkout-custom .col-12.col-md-3{display:inline-block;width:30%;margin-right:3%;vertical-align:top}
  .checkout-custom .col-12.col-md-5{display:inline-block;width:35%;vertical-align:top}
  .checkout-custom .col-12.col-md-12{display:block;width:100%}
}

/* ─── Loading bars (PIX / Boleto) ─────────────────────────── */
.loading-bar {
    width: 160px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 16px auto 0;
    overflow: hidden;
    position: relative;
}
.loading-bar::after {
    content: '';
    width: 60px;
    height: 4px;
    position: absolute;
    background: linear-gradient(90deg,#667eea,#8b5cf6);
    border-radius: 10px;
    animation: loop 1.2s ease-in-out infinite;
}
@keyframes loop {
    0%, 100% { transform: translateX(-40px); }
    50% { transform: translateX(140px); }
}

/* Print */
@media print{
  .checkout-custom .steps, .checkout-custom .d-flex.justify-content-center, .modern-stepper{display:none}
  .checkout-custom .card, .card.checkout-custom{box-shadow:none;border-radius:0;padding:0}
}
