/* ─────────────────────────────────────────────
   PAYMENT.CSS — Page peman Kono Company
   Font: Arial | Koule: #000000 #CC0000 #FFFFFF
───────────────────────────────────────────── */

.payment-body {
  background: #000000;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

.payment-main {
  padding: 48px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

/* ─── RÉSUMÉ COMMANDE ─────────────────────── */
.payment-summary {
  background: #000000;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
}

.summary-card {
  background: #000000;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.summary-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.summary-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-info { flex: 1; min-width: 0; }

.summary-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.summary-name {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-detail-item {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.summary-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.total-label {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

.total-amount {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.summary-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.summary-secure svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ─── FORMULAIRE PAIEMENT ─────────────────── */
.payment-form-wrap {
  background: #000000;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
}

.payment-form .form-group {
  margin-bottom: 20px;
}

.payment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}

.payment-form input[type="text"],
.payment-form input[type="email"] {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  color: #FFFFFF;
  font-size: 14px;
  font-family: Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.payment-form input:focus {
  border-color: rgba(255,255,255,0.4);
}

.payment-form input::placeholder {
  color: rgba(255,255,255,0.3);
}

/* Stripe Card Element */
#stripe-card-element {
  min-height: 50px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: text;
}

.stripe-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  pointer-events: none;
  user-select: none;
}

.stripe-placeholder svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.stripe-expiry,
.stripe-cvc {
  margin-left: auto;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

.stripe-cvc { margin-left: 12px; }

/* Cartes acceptées */
.accepted-cards {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.accepted-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-right: 4px;
}

.card-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
}

/* Bouton Payer */
.btn-pay {
  width: 100%;
  background: #FFFFFF;
  color: #000000;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  margin-bottom: 16px;
}

.btn-pay:hover:not(:disabled) {
  background: rgba(255,255,255,0.9);
}

.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Lien retour */
.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: Arial, sans-serif;
  transition: color 0.2s;
}

.back-link:hover { color: #FFFFFF; }

.back-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 700px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .payment-main {
    padding: 24px 16px 60px;
  }

  .payment-summary,
  .payment-form-wrap {
    padding: 24px 20px;
  }

  .summary-name {
    font-size: 14px;
  }

  .total-amount {
    font-size: 18px;
  }
}
