/* =====================================================================
   confirm-process-payment.css
   Styles spécifiques à la page "Consulter le statut d'un paiement".
   S'appuie sur payment-process.css pour le header, le préchargeur,
   le sélecteur de langue et la mise en page générale (.payment-page,
   .payment-wrapper, .error-card / .success-card, .d-none).
   ===================================================================== */

/* ===================== Carte de recherche ===================== */
.search-card {
  background: linear-gradient(135deg, #127E76 0%, #1AA09F 100%);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 35px);
  margin-bottom: clamp(22px, 4vw, 30px);
  box-shadow: 0 10px 30px rgba(18, 126, 118, 0.2);
}

.search-card h2 {
  color: white;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.search-input-group {
  position: relative;
  margin-bottom: 18px;
}

.search-input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  color: #333;
  background: white;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #127E76;
  font-size: 1.2rem;
}

.icon-search::after {
  content: '🔍';
}

.icon-arrow::after {
  content: '→';
  font-size: 1.1rem;
  margin-left: 6px;
}

.btn-search {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 20px;
}

.btn-primary {
  background: #138496;
  border: none;
  color: white;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s;
  width: 100%;
}

.btn-primary:hover {
  background: #0f6674;
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===================== Carte résultat (statut + reçu) ===================== */
.receipt-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.receipt-banner {
  background: linear-gradient(135deg, #127E76 0%, #1AA09F 100%);
  padding: clamp(28px, 5vw, 45px) clamp(20px, 4vw, 35px);
  text-align: center;
}

.success-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease-out 0.15s both;
}

.success-icon.status-pending {
  background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.success-icon.status-failed {
  background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.success-icon svg {
  width: 50px;
  height: 50px;
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: checkmark 0.7s ease-out 0.35s both;
}

@keyframes checkmark {
  0% { stroke-dasharray: 0 100; }
  100% { stroke-dasharray: 100 100; }
}

.title {
  text-align: center;
  color: white;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 700;
  margin-bottom: 14px;
}

.status-badge {
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  display: inline-block;
}

.status-paid {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-failed {
  background: #f8d7da;
  color: #721c24;
}

/* ===================== Détails du paiement ===================== */
.payment-details {
  width: 100%;
  padding: clamp(20px, 4vw, 35px);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  font-size: 0.85rem;
}

.detail-value {
  text-align: right;
  color: #1f2937;
  max-width: 65%;
  font-weight: 600;
  word-break: break-word;
}

.status-success {
  color: #38a169;
  font-weight: 600;
}



.btn-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(135deg, #138496 0%, #1AA09F 100%);
  color: white;
  text-decoration: none;
  border-radius: 35px;
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 700;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(18, 126, 118, 0.3);
  white-space: nowrap;
}

.btn-status:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 126, 118, 0.4);
  color: white;
}

/* ===================== Actions (reçu) ===================== */
.result-actions {
  padding: 0 clamp(20px, 4vw, 35px) clamp(24px, 4vw, 35px);
}

.result-actions .btn-primary {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.result-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(17, 153, 142, 0.3);
}

/* ===================== Responsive ===================== */
@media (max-width: 576px) {
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .detail-label {
    margin-bottom: 0.2rem;
  }

  .detail-value {
    text-align: left;
    max-width: 100%;
  }

  .success-icon {
    width: 72px;
    height: 72px;
  }

  .success-icon svg {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 768px) {
  .search-card {
    padding: 22px 18px;
  }
}