/* RSVP Modal Animations */
@keyframes modalFadeIn {
  from { 
    opacity: 0; 
  }
  to { 
    opacity: 1; 
  }
}

@keyframes backdropFadeIn {
  from { 
    opacity: 0; 
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1; 
    backdrop-filter: blur(4px);
  }
}

@keyframes modalSlideIn {
  from { 
    opacity: 0;
    transform: translateY(-40px) scale(0.9); 
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1); 
  }
}

/* Modal container animations */
.rsvp-modal-container {
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rsvp-modal-backdrop {
  animation: backdropFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rsvp-modal-panel {
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Modal close button */
.rsvp-modal-close {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 6px;
  padding: 4px;
}

.rsvp-modal-close:hover {
  transform: rotate(90deg);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Header gradient enhancement */
.rsvp-modal .bg-gradient-to-r {
  background: linear-gradient(135deg, rgb(59 130 246), rgb(37 99 235));
  position: relative;
}

.rsvp-modal .bg-gradient-to-r::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

/* Suggestion buttons */
.rsvp-suggestion-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rsvp-suggestion-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px -4px rgba(59, 130, 246, 0.3);
}

/* Enhanced hover states for interactive elements */
.rsvp-modal label:has(input[type="checkbox"]) {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rsvp-modal label:has(input[type="checkbox"]):hover {
  background-color: rgb(250 250 250);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.1);
}

/* Responsive design improvements */
@media (max-width: 640px) {
  .rsvp-modal-container {
    padding: 16px;
  }
  
  .rsvp-modal-panel {
    max-width: none;
    margin: 0;
    min-height: auto;
    border-radius: 16px;
  }
  
  .rsvp-modal .bg-gradient-to-r {
    padding: 20px 20px;
    border-radius: 16px 16px 0 0;
  }
  
  .rsvp-modal .bg-gradient-to-r .flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .rsvp-modal .bg-gradient-to-r .flex > div:first-child {
    width: 100%;
  }
  
  .rsvp-modal .bg-gradient-to-r button {
    align-self: flex-end;
    margin-top: -8px;
  }
  
  .rsvp-modal .px-6 {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .rsvp-modal .grid-cols-2 {
    gap: 12px;
  }
  
  .rsvp-modal .space-y-6 > * + * {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .rsvp-modal .grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .rsvp-modal .bg-gradient-to-r .flex {
    align-items: center;
    flex-direction: row;
  }
  
  .rsvp-modal .bg-gradient-to-r .flex > div:first-child {
    width: auto;
    flex: 1;
  }
}