.checkout-form {
  width: 100%;
}

.payment-element-container {
  margin-bottom: 24px;
}

/* Error Alert */
.error-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fee;
  border-radius: 8px;
  margin-bottom: 20px;
}

.error-alert .error-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.error-text {
  color: #df1b41;
  font-size: 14px;
  line-height: 1.4;
}

/* Submit Button — header colour #35659E */
.submit-button {
  /* width: 100%; */
  background: #35659E;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* box-shadow: 0 4px 14px rgba(53, 101, 158, 0.4); */
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Button Spinner */
.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Secure Notice */
.secure-notice {
  text-align: center;
  color: #666;
  font-size: 13px;
  margin: 16px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Success State */
.success-container {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-container h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.success-message {
  color: #4caf50;
  font-size: 16px;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.success-detail {
  color: #666;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ── Modal shared styles ─────────────────────────────── */
.cf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.cf-modal {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 30px 30px 30px;
  width: 340px;
  max-width: 90vw;
  text-align: center;
  /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); */
  animation: cf-modal-in 0.2s ease-out;
}

@keyframes cf-modal-in {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.cf-modal-close {
  position: absolute;
  top: 8px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.cf-modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.cf-modal-icon--success {
  border: 2px solid #4caf50;
  color: #4caf50;
}

.cf-modal-icon--failed {
  border: 2px solid #e53935;
  color: #e53935;
}

.cf-modal-icon--congrats {
  font-size: 32px;
  border: none;
  background: none;
}

.cf-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

.cf-modal-description {
  font-size: 14px;
  /* font-style: italic; */
  color: #666;
  line-height: 1.6;
  margin: 0 0 28px;
}

.cf-modal-btn {
  /* width: 100%; */
  padding: 13px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.cf-modal-btn--ok {
  background: #35659E;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}


.cf-modal-btn--ok:active { transform: translateY(0); }

/* Hide Stripe "Powered by Stripe" external badge injected outside the iframe */
.checkout-form ~ a[href*="stripe.com"][target="_blank"],
.payment-element-container ~ a[href*="stripe.com"],
.__PrivateStripeElement + a[href*="stripe.com"] {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 640px) {
  .submit-button {
    padding: 14px 20px;
    font-size: 15px;
  }

  .success-container {
    padding: 30px 15px;
  }

  .success-container h2 {
    font-size: 20px;
  }

  .success-message {
    font-size: 15px;
  }
}
