/* Calendar Section Styles */
.calendar {
  background: linear-gradient(135deg, #f8fffe 0%, #e8f4f8 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.calendar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.calendar .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 1rem;
  font-family: 'Junicode', serif;
}

.calendar-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.calendar-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.calendar-iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .calendar-container {
    max-width: 100%;
    margin: 0 1rem;
  }
  
  .calendar-iframe {
    height: 550px;
  }
}

@media (max-width: 768px) {
  .calendar {
    padding: 3rem 0;
  }
  
  .calendar .section-title {
    font-size: 2rem;
  }
  
  .calendar-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .calendar-container {
    margin: 0 0.5rem;
    border-radius: 8px;
  }
  
  .calendar-iframe {
    height: 450px;
  }
}

@media (max-width: 480px) {
  .calendar {
    padding: 2rem 0;
  }
  
  .calendar .section-title {
    font-size: 1.75rem;
  }
  
  .calendar-iframe {
    height: 400px;
  }
}

/* Wave Divider Styling for Calendar Section */
.calendar .wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.calendar .wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.calendar .wave-divider .shape-fill {
  fill: #ffffff;
}

/* Loading State for Calendar */
.calendar-container {
  position: relative;
}

.calendar-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  font-size: 1.1rem;
  z-index: 1;
  pointer-events: none;
  background: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-loading.hidden {
  display: none;
}

/* Cookie Consent Popup - Modal Style */
.cookie-consent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.cookie-consent.show {
  opacity: 1;
  visibility: visible;
}

.cookie-consent-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  margin: 2rem;
  overflow: hidden;
  transform: scale(0.8) translateY(30px);
  transition: transform 0.3s ease-out;
}

.cookie-consent.show .cookie-consent-modal {
  transform: scale(1) translateY(0);
}

.cookie-consent-header {
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.cookie-consent-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.cookie-consent-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.cookie-consent-header p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
}

.cookie-consent-body {
  padding: 2rem;
}

.cookie-consent-body h4 {
  margin: 0 0 1rem 0;
  color: #2d3748;
  font-size: 1.1rem;
  font-weight: 600;
}

.cookie-consent-body p {
  margin: 0 0 1.5rem 0;
  color: #4a5568;
  line-height: 1.6;
  font-size: 0.95rem;
}

.cookie-features {
  background: #f7fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.cookie-features ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #4a5568;
  font-size: 0.9rem;
}

.cookie-features li {
  margin-bottom: 0.5rem;
}

.cookie-consent-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cookie-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  text-align: center;
}

.cookie-btn-accept {
  background: #4299e1;
  color: white;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(66, 153, 225, 0.6); }
  100% { box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3); }
}

.cookie-btn-accept:hover {
  background: #3182ce;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

.cookie-btn-decline {
  background: #e2e8f0;
  color: #4a5568;
  border: 1px solid #cbd5e0;
}

.cookie-btn-decline:hover {
  background: #cbd5e0;
  color: #2d3748;
}

.required-notice {
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(245, 101, 101, 0.1);
  border: 1px solid rgba(245, 101, 101, 0.2);
  border-radius: 6px;
  color: #c53030;
  font-size: 0.85rem;
  font-weight: 500;
  animation: shake 0.6s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: scale(1) translateY(0) translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: scale(1) translateY(0) translateX(-5px); }
  20%, 40%, 60%, 80% { transform: scale(1) translateY(0) translateX(5px); }
}

.calendar-blocked {
  background: #f7fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  color: #4a5568;
}

.calendar-blocked h3 {
  margin: 0 0 1rem 0;
  color: #2d3748;
}

.calendar-blocked p {
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.enable-calendar-btn {
  background: #4299e1;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.enable-calendar-btn:hover {
  background: #3182ce;
  transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent-modal {
    width: 95%;
    margin: 1rem;
  }
  
  .cookie-consent-header {
    padding: 1.5rem;
  }
  
  .cookie-consent-icon {
    font-size: 2.5rem;
  }
  
  .cookie-consent-header h3 {
    font-size: 1.3rem;
  }
  
  .cookie-consent-body {
    padding: 1.5rem;
  }
  
  .cookie-consent-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cookie-btn {
    padding: 0.875rem 1rem;
  }
}

@media (max-width: 480px) {
  .cookie-consent-modal {
    width: 95%;
    margin: 0.5rem;
  }
  
  .cookie-consent-header {
    padding: 1.25rem;
  }
  
  .cookie-consent-body {
    padding: 1.25rem;
  }
}