/**
 * Quick Booking Auto-Fill Loading Overlay
 * Displays progress while auto-filling from quick booking form
 */

/* Full screen overlay */
.ctb-quick-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Loading content container */
.ctb-quick-loading-content {
  text-align: center;
  max-width: 500px;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Spinner animation */
.ctb-quick-loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 30px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #f7c400; /* Cyprus taxi color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Title */
.ctb-quick-loading-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

/* Loading text */
.ctb-quick-loading-text {
  font-size: 16px;
  color: #666;
  margin: 0 0 25px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

/* Progress bar container */
.ctb-quick-loading-progress {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Progress bar fill */
.ctb-quick-loading-bar {
  height: 100%;
  background: linear-gradient(90deg, #f7c400, #ffd700);
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s ease-out;
  box-shadow: 0 2px 6px rgba(247, 196, 0, 0.4);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .ctb-quick-loading-content {
    max-width: 90%;
    padding: 30px 20px;
  }

  .ctb-quick-loading-title {
    font-size: 20px;
  }

  .ctb-quick-loading-text {
    font-size: 14px;
  }

  .ctb-quick-loading-spinner {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .ctb-quick-loading-overlay {
    background: rgba(0, 0, 0, 0.95);
  }

  .ctb-quick-loading-content {
    background: #1a1a1a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

  .ctb-quick-loading-title {
    color: #fff;
  }

  .ctb-quick-loading-text {
    color: #ccc;
  }

  .ctb-quick-loading-progress {
    background: #333;
  }
}
