
/* Modal Overlay */
.modal {
  position: fixed;
  z-index: 1500; /* above everything else */
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(44, 95, 141, 0.18); /* semi on-brand blue */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lato", sans-serif;
}

/* Modal Content Block */
.modal-content {
  background: linear-gradient(135deg, #f7fbff 90%, #ebf4fa 100%);
  color: #2c5f8d;
  border-radius: 1.25rem;
  box-shadow: 0 12px 36px rgba(74, 144, 226, 0.22);
  padding: 2.4rem 2.7rem 2rem 2.7rem;
  min-width: 295px;
  max-width: 500px;
  width: 90%;
  font-family: "Lato", sans-serif;
  position: relative;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 480px) {
  .modal-content { 
    padding: 1.5rem 1.2rem;
    width: 92%;
    max-width: 420px;
    border-radius: 1rem;
  }
}

/* Modal Title */
.modal-content h3, .modal-content h4 {
  font-family: "Playfair Display", serif;
  color: #2c5f8d;
  font-size: 1.37rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .modal-content h3, .modal-content h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }
}

/* Form Group Container */
.form-group {
  margin-bottom: 1.3rem;
  text-align: center;
}

@media (max-width: 480px) {
  .form-group {
    margin-bottom: 1rem;
  }
}

/* Modal Label */
.modal-content label {
  font-family: "Lato", sans-serif;
  color: #4a90e2;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
  text-align: center;
}

/* Modal Select/Input */
.modal-content select {
  display: block;
  width: 80%;
  min-width: 150px;
  max-width: 280px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  border: 1.5px solid #4a90e2;
  border-radius: 0.7rem;
  font-size: 1.05rem;
  font-family: "Lato", sans-serif;
  color: #2c5f8d;
  background: #f7fbff;
  box-shadow: 0 2px 8px rgba(74,144,226,0.08);
}

@media (max-width: 480px) {
  .modal-content select {
    width: 90%;
    padding: 0.65rem 1rem;
    font-size: 1rem;
  }
}
.modal-content select:focus,
.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="number"]:focus,
.modal-content textarea:focus {
  border: 2px solid #357abd;
  outline: none;
  box-shadow: 0 0 5px #4a90e2;
}

/* Number input styling */
.modal-content input[type="number"] {
  display: block;
  width: 80%;
  min-width: 150px;
  max-width: 280px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  border: 1.5px solid #4a90e2;
  border-radius: 0.7rem;
  font-size: 1.05rem;
  font-family: "Lato", sans-serif;
  color: #2c5f8d;
  background: #f7fbff;
  box-shadow: 0 2px 8px rgba(74,144,226,0.08);
}

@media (max-width: 480px) {
  .modal-content input[type="number"] {
    width: 90%;
    padding: 0.65rem 1rem;
    font-size: 1rem;
  }
}

/* Textarea styling */
.modal-content textarea {
  display: block;
  width: 85%;
  min-width: 200px;
  max-width: 400px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid #4a90e2;
  border-radius: 0.7rem;
  font-size: 0.98rem;
  font-family: "Lato", sans-serif;
  color: #2c5f8d;
  background: #f7fbff;
  box-shadow: 0 2px 8px rgba(74,144,226,0.08);
  resize: vertical;
  min-height: 90px;
}

@media (max-width: 480px) {
  .modal-content textarea {
    width: 90%;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    min-height: 75px;
  }
}

/* Checkbox container */
.modal-content .checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 350px;
  cursor: pointer;
}

.modal-content .checkbox-label span {
  font-size: 0.95rem;
  color: #2c5f8d;
  font-weight: 500;
}

@media (max-width: 480px) {
  .modal-content .checkbox-label span {
    font-size: 0.9rem;
  }
}

.modal-content input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-right: 0.7rem;
  cursor: pointer;
  accent-color: #4a90e2;
}

/* Modal Buttons Container */
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .modal-buttons {
    margin-top: 1.3rem;
  }
}

/* Modal Buttons */
.modal-content button,
.modal-content .btn-primary,
.modal-content .btn-secondary {
  font-family: "Lato", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 14px rgba(74,144,226, 0.17);
  transition: background 0.23s, box-shadow 0.23s, transform 0.13s;
}

.modal-content .btn-primary {
  background: #4a90e2;
  color: #fff;
}

.modal-content .btn-primary:hover {
  background: #357abd;
  box-shadow: 0 4px 20px rgba(74,144,226,0.22);
  transform: translateY(-2px) scale(1.025);
}

.modal-content .btn-primary:active {
  background: #2c5f8d;
  transform: translateY(0) scale(1);
}

/* Secondary/Cancel button style */
.modal-content .btn-secondary {
  background: #f7fbff;
  color: #4a90e2;
  border: 1.5px solid #4a90e2;
  box-shadow: 0 2px 8px rgba(74,144,226,0.10);
}

.modal-content .btn-secondary:hover {
  background: #ebf4fa;
  color: #357abd;
  border: 1.5px solid #357abd;
  box-shadow: 0 3px 12px rgba(74,144,226,0.15);
  transform: translateY(-2px) scale(1.025);
}

.modal-content .btn-secondary:active {
  background: #d6e9f8;
  transform: translateY(0) scale(1);
}

/* Mobile responsive buttons */
@media (max-width: 480px) {
  .modal-buttons {
    flex-direction: column;
    gap: 0.7rem;
  }
  
  .modal-content button,
  .modal-content .btn-primary,
  .modal-content .btn-secondary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Notification Modal Styling */
.notification-modal {
  max-width: 400px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.notification-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.notification-modal h3 {
  margin-bottom: 1.8rem;
  color: #2c5f8d;
  font-size: 1.25rem;
}

.notification-modal button {
  min-width: 120px;
}

/* Modal Close Button ('X') */
.modal-close {
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  font-size: 1.3rem;
  background: none;
  color: #4a90e2;
  border: none;
  cursor: pointer;
  font-family: "Lato", sans-serif;
  border-radius: 50%;
  padding: 0.15rem 0.38rem;
  line-height: 1;
  font-weight: 700;
  width: 2.25rem;
  height: 2.25rem;
  box-shadow: 0 2px 7px rgba(74,144,226,0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}

.modal-close:hover {
  background: #ebf4fa;
  color: #2c5f8d;
  box-shadow: 0 0 0 2px #d6e9f8;
}

@media (max-width: 480px) {
  .modal-close {
    right: 0.6rem;
    top: 0.6rem;
    font-size: 1.2rem;
    width: 2rem;
    height: 2rem;
  }
}


.modal-content b {
  color: #357abd;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

.modal-content option {
  background: #ebf4fa;
  color: #2c5f8d;
  font-family: "Lato", sans-serif;
}

/* RSVP Search Input */
#searchInput {
  font-family: "Lato", sans-serif;
  font-size: 1.07rem;
  color: #2c5f8d;
  background: #f7fbff;
  border: 1.5px solid #4a90e2;
  border-radius: 0.7rem;
  padding: 0.65rem 1.1rem;
  width: 260px; /* or 80% for mobile */
  max-width: 440px;
  box-shadow: 0 2px 8px rgba(74,144,226,0.08);
  margin-right: 0.6rem;
  margin-bottom: 1.1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#searchInput:focus {
  border: 2px solid #357abd;
  box-shadow: 0 0 5px #4a90e2;
  outline: none;
}

/* RSVP Search Button */
.rsvp-search-btn, #searchButton {
  font-family: "Lato", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 0.55rem;
  padding: 0.62rem 2.1rem;
  box-shadow: 0 2px 10px rgba(74,144,226,0.13);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}

.rsvp-search-btn:hover, #searchButton:hover {
  background: #357abd;
  box-shadow: 0 4px 18px rgba(74,144,226,0.22);
  transform: translateY(-2px) scale(1.02);
}

.rsvp-search-btn:active, #searchButton:active {
  background: #2c5f8d;
}

/* Responsive: Stack input + button on small screens */
@media (max-width: 480px) {
  #searchInput {
    width: 98%;
    margin-right: 0;
    margin-bottom: 0.7rem;
  }
  .rsvp-search-btn, #searchButton {
    width: 100%;
  }
}

.guest-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.6rem 1rem;
  margin-bottom: 0.7rem;
  border-radius: 0.8rem;
  transition: background 0.17s;
}

.guest-row:hover {
  background: #ebf4fa;
}

.update-btn {
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 0.55rem;
  padding: 0.5rem 1.3rem;
  box-shadow: 0 1px 6px rgba(74,144,226,0.09);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  white-space: nowrap;
  flex-shrink: 0;
}

/* On hover, enhance the button */
.guest-row:hover .update-btn {
  background: #357abd;
  box-shadow: 0 3px 12px rgba(74,144,226,0.22);
  transform: scale(1.05);
}
