/* ============================================================
   Payment Modal — Shanti Yoga
   Luxury wellness: cream bg, Playfair heading, soft shadows
   ============================================================ */

/* ── Overlay ──────────────────────────────────────────────── */
.pm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.pm-overlay.pm-active {
  opacity: 1;
  pointer-events: all;
}

/* ── Card ─────────────────────────────────────────────────── */
.pm-card {
  background: #FDFAF6;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 32px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pm-overlay.pm-active .pm-card {
  transform: translateY(0) scale(1);
}

/* ── Close ────────────────────────────────────────────────── */
.pm-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: rgba(0,0,0,0.3);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.pm-close:hover { color: rgba(0,0,0,0.65); background: rgba(0,0,0,0.06); }

/* ── Header ───────────────────────────────────────────────── */
.pm-header {
  text-align: center;
  margin-bottom: 28px;
}
.pm-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FDA700;
  margin: 0 0 8px;
}
.pm-product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.pm-product-price {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #FDA700;
  margin: 0;
}

/* ── Fields ───────────────────────────────────────────────── */
#pm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pm-field-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(0,0,0,0.55);
  letter-spacing: 0.01em;
}
.pm-input {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.pm-input::placeholder { color: rgba(0,0,0,0.25); }
.pm-input:focus {
  border-color: #FDA700;
  box-shadow: 0 0 0 3px rgba(253,167,0,0.13);
}

/* ── Error ────────────────────────────────────────────────── */
.pm-error {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #c0392b;
  min-height: 1.1em;
  margin: 0;
}

/* ── Submit ───────────────────────────────────────────────── */
.pm-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FDA700;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 15px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  min-height: 50px;
  margin-top: 4px;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}
.pm-submit:hover:not(:disabled) {
  background: #e69500;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(253,167,0,0.32);
}
.pm-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* Spinner */
.pm-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pm-spin 0.65s linear infinite;
  flex-shrink: 0;
}
.pm-submit.pm-loading .pm-spinner     { display: block; }
.pm-submit.pm-loading .pm-submit-text { opacity: 0.75; }

@keyframes pm-spin { to { transform: rotate(360deg); } }

/* ── Secure note ──────────────────────────────────────────── */
.pm-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.775rem;
  color: rgba(0,0,0,0.35);
  margin: 0;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .pm-card {
    padding: 32px 20px 24px;
    border-radius: 20px;
  }
  .pm-product-title { font-size: 1.25rem; }
}
