/* ==================== INTEREST MODAL ==================== */
.interest-modal {
  display: none; /* hidden by default */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  overflow-y: auto;
}

.interest-modal-content {
  background: #fff;
  margin: 4% auto;
  padding: 40px;
  border-radius: 10px;
  max-width: 600px;
  width: 95%;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  animation: fadeInUp 0.4s ease;
}

.interest-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 26px;
  color: #999;
  cursor: pointer;
}

.interest-form input,
.interest-form select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.interest-form button {
  background: #4b0082;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.interest-form button:hover {
  background: #360066;
}

/* Loader spinner inside buttons */
.loader {
  border: 3px solid #ccc;
  border-top: 3px solid #4b0082;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-right: 5px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== SUCCESS ANIMATION ==================== */
.success-animation {
  position: fixed;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
  display: none; /* hidden by default */
  align-items: center; /* vertical center for flex children */
  justify-content: center; /* horizontal center for flex children */
  flex-direction: column; /* stack image and text vertically */
  z-index: 10000;
  background: rgba(0, 0, 0, 0.35); /* semi-transparent dark background */
  backdrop-filter: blur(2px); /* blur background content slightly */
}

.success-animation.show {
  display: flex; /* show as flex container */
  animation: fadeIn 200ms ease-out; /* quick fade-in effect */
}

.success-animation img {
  width: 84px;
  height: 84px;
  display: block;
  margin-bottom: 10px;
}

.success-animation p {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* Optional: smooth fade-in keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== PRAY MODAL ==================== */
.pray-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease;
}

.pray-modal-content {
  background-color: #fff;
  margin: 8% auto;
  padding: 30px 25px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  animation: slideUp 0.4s ease;
}

.pray-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

.pray-close:hover {
  color: #f04e30;
}

.pray-form input,
.pray-form textarea {
  width: 100%;
  margin: 10px 0;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.pray-form button {
  background-color: #4b0082;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.pray-form button:hover {
  background-color: #350066;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0 }
  to   { opacity: 1 }
}

@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0 }
  to   { transform: translateY(0); opacity: 1 }
}

/* ==================== PRAY ANIMATION ==================== */
/* #region : Prayer Success Animation */
#praySuccessAnimation {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 25px 30px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background */
  border-radius: 20px;
  color: white;
  animation: fadeInUp 0.5s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#praySuccessAnimation img {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

#praySuccessAnimation.show {
  display: block;
}

/* Animation for entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -20%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
/* #endregion */
