/* Custom Loader Styles */
.custom-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.custom-loader h3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px 40px;
  border-radius: 15px;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-width: 250px;
}

/* Animated spinner */
.custom-loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

/* Pulsing dots animation */
.custom-loader .dots {
  display: inline-block;
  margin-left: 5px;
}

.custom-loader .dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  margin: 0 2px;
  animation: pulse 1.4s infinite ease-in-out both;
}

.custom-loader .dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.custom-loader .dots span:nth-child(2) {
  animation-delay: -0.16s;
}
.custom-loader .dots span:nth-child(3) {
  animation-delay: 0s;
}

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

@keyframes pulse {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Glowing effect */
.custom-loader h3::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
  border-radius: 15px;
  z-index: -1;
  animation: glow 2s linear infinite;
}

@keyframes glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Custom BlockUI Fallback */
.custom-blockui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-blockui > div {
  background: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  max-width: 300px;
}

/* Error message styles */
.msg-error {
  color: #d9534f;
  font-size: 14px;
  margin-top: 5px;
}

/* Hide class for form steps */
.hide {
  display: none !important;
}

/* Form validation error styles */
.error-text {
  color: #d9534f;
  font-size: 12px;
  margin-top: 2px;
  display: block;
}

/* Required field indicator */
.required {
  color: #d9534f;
}

/* Form step navigation */
.steps button {
  margin: 0 5px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  cursor: pointer;
}

.steps button.active {
  background: #007cba;
  color: white;
  border-color: #007cba;
}

.steps button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form fieldset transitions */
fieldset {
  transition: opacity 0.3s ease-in-out;
}

fieldset.hidden {
  opacity: 0;
  pointer-events: none;
}

fieldset.visible {
  opacity: 1;
  pointer-events: auto;
}
