/**
 * Stripe Payment Modal Styles
 * 
 * @package CSI_Diocese_Theme  
 * @since 1.2.7
 */

/* =========================================
   STRIPE PAYMENT MODAL
   ========================================= */
.stripe-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow-y: auto;
}

.stripe-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10001;
}

.stripe-modal-content {
  position: relative;
  max-width: 500px;
  margin: 50px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10002;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stripe-modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stripe-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
}

.stripe-modal-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-gray-600);
  transition: all 0.2s ease;
}

.stripe-modal-close:hover {
  background: var(--color-gray-100);
  color: var(--color-accent);
}

.stripe-modal-body {
  padding: var(--spacing-md);
}

#stripe-payment-form {
  margin-top: var(--spacing-md);
}

#payment-element {
  min-height: 200px;
  margin-bottom: var(--spacing-lg);
}

.stripe-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30, 91, 168, 0.2);
}

.stripe-submit-btn:hover:not(:disabled) {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 51, 51, 0.3);
}

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

.stripe-error-message {
  background: #fee;
  color: #c00;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 6px;
  margin-bottom: var(--spacing-md);
  border-left: 4px solid #c00;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .stripe-modal-content {
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    border-radius: 0;
  }
  
  .stripe-modal-header,
  .stripe-modal-body {
    padding: var(--spacing-md);
  }
}
