

/* =========================
   Base / Layout
========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
  background: #FFF9FD;   
  min-height: 100vh;
  padding: 20px;
}

.container { max-width: 1200px; margin: 0 auto; }


/* =========================
   Header
========================= */
.header {
  text-align: center;
  background: #FDEBF4;      
  margin-bottom: 40px;
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(244, 180, 210, 0.35);
}

.header h1 {
  font-family: 'Pacifico', cursive;
  color: #2f6b3e;  
  font-size: 3rem;
  margin-bottom: 8px;
}

.header p {
  color: #A45D7D;   
  font-size: 1.2rem;
  opacity: 0.9;
}


/* =========================
   Event Cards Grid
========================= */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.event-card {
  background: #FFFFFF;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(141, 191, 160, 0.18); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(141, 191, 160, 0.28);
}

.event-banner {
  width: 100%;
  height: 200px;
  background-size: 150%;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease;
}

.event-content { padding: 20px; }

.event-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2F6B57;           
  margin-bottom: 10px;
}

.event-description {
  color: #6F7C76;          
  margin-bottom: 15px;
  line-height: 1.4;
  max-height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.event-details {
  color: #6F7C76;
  margin-bottom: 15px;
}

.event-detail {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.stat { text-align: center; }
.stat-count { font-weight: 700; font-size: 1.1rem; color: #2F6B57; }
.stat-label { color: #7D8B82; font-size: 0.9rem; }


/* =========================
   Modal
========================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 25, 20, 0.65);  
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background: #FFFFFF;
  margin: 40px auto;
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
  box-shadow: 0 6px 30px rgba(92, 145, 118, 0.3);
}

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

.modal-banner {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
}

.modal-header {
  padding: 30px;
  border-bottom: 1px solid #E6F1EA;  
}

.modal-title {
  font-size: 2rem;
  color: #2F6B57;    
  margin-bottom: 15px;
}

.modal-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  color: #6F7C76;
}

.modal-details .event-detail {
  display: flex;
  align-items: center;
  column-gap: 6px;
  min-width: 140px;
  line-height: 1.3;
}

.modal-body { padding: 30px; }

.section { margin-bottom: 30px; }

.section-title {
  font-size: 1.3rem;
  color: #A45D7D;             
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F3B6CF; 
}


/* =========================
   Event Statistics
========================= */
.stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  gap: 5px;
  background: transparent;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 0;
  color: #34594A;
  text-align: center;
  font-weight: 600;
  border-radius: 8px;
}

.stat-number { font-size: 2rem; font-weight: 700; }
.stat-label { font-size: 0.9rem; opacity: 0.95; }

.yes-card { background: #DDF5E7; }  
.no-card  { background: #FDE3EE; }  


/* =========================
   Attendees Table
========================= */
.attendees-table { margin-top: 20px; overflow-x: auto; }

.attendees-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(101, 138, 116, 0.12);
  border: 1px solid #E3F0E8; 
}

.attendees-table th,
.attendees-table td { border: 1px solid #E3F0E8; }

.attendees-table th {
  background: #2F6B57;    
  color: #fff;
  padding: 12px;
  font-weight: 600;
  text-align: center;
}

.attendees-table td {
  padding: 15px;
  vertical-align: top;
  width: 50%;
  background: #F8FBF9;   
}

.attendees-table div {
  margin-bottom: 6px;
  color: #34594A;
  font-size: 0.95rem;
}

.attendees-table em {
  color: #7D8B82;
  font-size: 0.9rem;
  display: block;
  text-align: center;
}


/* =========================
   RSVP Form (Modal)
========================= */
.rsvp-form {
  background: #F6FAF7;      
  padding: 25px;
  border-radius: 15px;
  margin-top: 30px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #2F6B57;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 40px 12px 12px; 
  border: 1px solid #C8E2D3;
  border-radius: 8px;
  font-size: 1rem;
  appearance: none; 
  -webkit-appearance: none; 
  -moz-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334594A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.submit-btn {
  background: #A45D7D;      
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(164, 93, 125, 0.35);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(164, 93, 125, 0.45);
}


/* =========================
   Misc
========================= */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #2F6B57;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 3px 8px rgba(47, 107, 87, 0.35);
}

.loading {
  text-align: center;
  padding: 40px;
  color: #6F7C76;
}

.error {
  background: #FDE3EE;
  color: #B54360;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}
