/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.popup-container {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(-50px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.popup-container.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Popup Icon */
.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: white;
    animation: scaleIn 0.5s ease 0.2s both;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Success Popup */
.popup-success .popup-icon {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

/* Error Popup */
.popup-error .popup-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

/* Popup Title */
.popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #2C3E50;
    margin: 0 0 15px 0;
}

/* Popup Message */
.popup-message {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 30px 0;
}

/* Close Button */
.popup-close-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.popup-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.popup-close-btn:active {
    transform: translateY(0);
}

/* Loading State for Submit Button */
button[type="submit"].loading {
    position: relative;
    color: transparent;
}

button[type="submit"].loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .popup-container {
        padding: 30px 20px;
        max-width: 95%;
    }

    .popup-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .popup-title {
        font-size: 22px;
    }

    .popup-message {
        font-size: 14px;
    }

    .popup-close-btn {
        padding: 12px 40px;
        font-size: 14px;
    }
}


/* Holiday Activities Popup Styles - Compact Version */
.holiday-popup {
  border-radius: 0;
  overflow: hidden;
  background: #f5f3ed;
}

/* Animated Holiday Banner */
.holiday-banner {
  background: linear-gradient(90deg, #e85d3d 0%, #d9513b 100%);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.banner-scroll {
  display: inline-block;
  animation: scroll-left 20s linear infinite;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  color: white;
}

.banner-scroll span {
  display: inline-block;
  padding: 0 30px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Modal Header */
.holiday-popup .modal-header {
  background: transparent;
  padding: 0.5rem 0.5rem 0;
}

.holiday-popup .btn-close {
  font-size: 1.2rem;
  opacity: 0.8;
  z-index: 10;
}

/* Title Styling - Compact */
.mindscapes-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #e85d3d;
  letter-spacing: 2px;
  line-height: 1;
  margin: 0;
}

.holiday-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d9513b;
  font-style: italic;
  letter-spacing: 1px;
  margin: 0;
}

/* Schedule Table Styling - Compact */
.holiday-schedule {
  max-width: 100%;
  margin: 0 auto;
}

.schedule-row {
  display: flex;
  align-items: stretch;
  border-bottom: 2px solid #2c2c2c;
  padding: 0.75rem 0;
  min-height: 60px;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-date {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 1rem;
}

.date-text {
  font-size: 1.2rem;
  font-weight: 900;
  color: #2c2c2c;
  line-height: 1.2;
  text-align: center;
}

.schedule-divider {
  width: 2px;
  background-color: #2c2c2c;
  flex-shrink: 0;
}

.schedule-details {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.schedule-details p {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2c2c2c;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .mindscapes-title {
    font-size: 2rem;
  }
  
  .holiday-subtitle {
    font-size: 1.2rem;
  }
  
  .schedule-row {
    flex-direction: column;
    padding: 0.75rem 0;
    min-height: auto;
  }
  
  .schedule-date {
    flex: none;
    padding-right: 0;
    padding-bottom: 0.5rem;
  }
  
  .date-text {
    font-size: 1.1rem;
  }
  
  .schedule-divider {
    width: 100%;
    height: 2px;
    margin: 0.3rem 0;
  }
  
  .schedule-details {
    padding-left: 0;
    padding-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }
  
  .schedule-details p {
    font-size: 0.8rem;
  }
  
  .banner-scroll {
    font-size: 11px;
  }
}

@media (max-width: 576px) {
  .mindscapes-title {
    font-size: 1.8rem;
  }
  
  .holiday-subtitle {
    font-size: 1.1rem;
  }
  
  .date-text {
    font-size: 1rem;
  }
  
  .schedule-details p {
    font-size: 0.75rem;
  }
}

/* Button Styling - Compact */
.holiday-popup .btn {
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 1.2rem;
}

.holiday-popup .btn-primary {
  background: #e85d3d;
  border-color: #e85d3d;
}

.holiday-popup .btn-primary:hover {
  background: #d9513b;
  border-color: #d9513b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 93, 61, 0.3);
}

.holiday-popup .btn-outline-primary {
  color: #e85d3d;
  border-color: #e85d3d;
}

.holiday-popup .btn-outline-primary:hover {
  background: #e85d3d;
  border-color: #e85d3d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 93, 61, 0.3);
}

/* Animation */
.holiday-popup .modal-body {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form check styling */
.holiday-popup .form-check-label {
  font-size: 0.8rem;
}


/* Enhanced Holiday Popup Styles */
.holiday-popup {
  border-radius: 28px !important;
  overflow: hidden;
  background: linear-gradient(135deg, #fffaf5 0%, #fff5ed 100%);
  position: relative;
}

/* Decorative Sparkles */
.sparkle-left,
.sparkle-right {
  position: absolute;
  top: 10px;
  font-size: 20px;
  color: #FF8C42;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle-left {
  left: 10px;
}

.sparkle-right {
  right: 10px;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Divider Custom */
.divider-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto;
}

.divider-custom span {
  font-size: 20px;
  background: #fff0e6;
  padding: 0 12px;
  border-radius: 30px;
}

/* Title Styling - Enhanced */
.mindscapes-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #e85d3d 0%, #f4a261 50%, #e85d3d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  margin: 0;
  display: inline-block;
  padding: 0 20px;
}

.holiday-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: #d9513b;
  letter-spacing: 2px;
  margin: 5px 0 0;
  text-transform: uppercase;
}

.closure-note {
  font-size: 0.75rem;
  color: #999;
  margin-top: 5px;
  margin-bottom: 0;
}

/* Schedule Row - Enhanced */
.holiday-schedule {
  max-width: 100%;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 10px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.schedule-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #f0e6df;
  padding: 12px 0;
  transition: all 0.3s ease;
}

.schedule-row:hover {
  background: #fefaf5;
  margin: 0 -10px;
  padding: 12px 10px;
  border-radius: 12px;
}

.schedule-row:last-child {
  border-bottom: none;
}

.first-row {
  background: rgba(255, 107, 53, 0.05);
  margin: -10px -10px 0 -10px;
  padding: 12px 15px;
  border-radius: 16px 16px 0 0;
  border-bottom: 2px solid #FF6B35;
}

.schedule-date {
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 1rem;
}

.date-text {
  font-size: 1rem;
  font-weight: 900;
  color: #2c2c2c;
  line-height: 1.3;
  text-align: center;
}

.year-badge {
  display: inline-block;
  background: #FF6B35;
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
  font-weight: 600;
}

.schedule-divider {
  width: 3px;
  background: linear-gradient(180deg, #FF6B35 0%, #FF8C42 100%);
  flex-shrink: 0;
  border-radius: 3px;
}

.schedule-details {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.schedule-details p {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e85d3d;
  line-height: 1.3;
  margin: 0;
}

.schedule-details p i {
  color: #FF6B35;
  font-size: 0.8rem;
}

/* Info Box */
.info-box {
  background: #e8f4f8;
  border-radius: 16px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: #2c3e50;
}

.info-box i {
  color: #4ECDC4;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Button Styling - Enhanced */
.holiday-popup .btn {
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1.5rem;
}

.holiday-popup .btn-primary {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.holiday-popup .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.holiday-popup .btn-outline-primary {
  color: #FF6B35;
  border: 2px solid #FF6B35;
  background: transparent;
}

.holiday-popup .btn-outline-primary:hover {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  border-color: transparent;
  color: white;
}

.holiday-popup .btn-link {
  text-decoration: none;
  font-size: 0.8rem;
}

.holiday-popup .btn-link:hover {
  color: #FF6B35 !important;
}

/* Animation Enhancements */
.holiday-popup .modal-body {
  animation: slideUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Form Check Styling */
.holiday-popup .form-check-input:checked {
  background-color: #FF6B35;
  border-color: #FF6B35;
}

.holiday-popup .form-check-label {
  font-size: 0.75rem;
  color: #666;
  cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .holiday-popup .modal-body {
    padding: 1rem !important;
  }
  
  .mindscapes-title {
    font-size: 1.8rem;
  }
  
  .holiday-subtitle {
    font-size: 1rem;
  }
  
  .schedule-row {
    flex-direction: column;
    padding: 12px;
  }
  
  .schedule-date {
    flex: none;
    padding-right: 0;
    padding-bottom: 8px;
  }
  
  .schedule-divider {
    width: 100%;
    height: 2px;
    margin: 8px 0;
  }
  
  .schedule-details {
    padding-left: 0;
    text-align: center;
    justify-content: center;
  }
  
  .date-text {
    font-size: 0.9rem;
  }
  
  .schedule-details p {
    font-size: 0.8rem;
    text-align: center;
  }
  
  .info-box {
    font-size: 0.7rem;
    padding: 8px 12px;
  }
  
  .sparkle-left,
  .sparkle-right {
    display: none;
  }
}

/* Fix for button clicks in popup */
.holiday-popup .btn,
.holiday-popup .btn-link,
.holiday-popup .btn-primary,
.holiday-popup .btn-outline-primary {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.holiday-popup .btn:active,
.holiday-popup .btn-link:active {
  transform: scale(0.98);
}

/* Ensure modal doesn't have extra spacing */
.modal.show {
  display: block !important;
  padding-right: 0 !important;
}

.holiday-popup .btn-close {
  pointer-events: auto !important;
  cursor: pointer !important;
}