/* Events page: RSVP card + month calendar (loaded only by events.php) */
.rsvp-sec { padding-top: clamp(28px, 4vw, 48px) !important; }
.rsvp-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 36px); padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: #fff; border: 1px solid #E3EAE5; box-shadow: 0 24px 50px -32px rgba(5, 46, 22, .5); }
.rsvp-ev img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-bottom: 14px; display: block; }
.rsvp-ev h2 { margin: 4px 0 10px; }
.rsvp-cap { margin-top: 14px; }
.rsvp-bar { height: 8px; border-radius: 8px; background: #EEF2F0; overflow: hidden; }
.rsvp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #16A34A, #F5A01A); border-radius: inherit; }
.rsvp-cap small { display: block; margin-top: 6px; color: #64748B; font-weight: 600; }
.rsvp-note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #FFF8EB; color: #7C4A03; font-size: .9rem; display: flex; gap: 8px; }
.rsvp-form .field { margin-bottom: 14px; }
.rsvp-closed { display: grid; place-content: center; text-align: center; padding: 30px; border-radius: 16px; background: #F8FAF9; }
.rsvp-done { grid-template-columns: auto minmax(0, 1fr); align-items: start; background: linear-gradient(135deg, #F0FBF4, #fff); border-color: #BFE6CD; }
.rsvp-ok { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #16A34A; color: #fff; }
.rsvp-ok svg { width: 30px; height: 30px; }
.rsvp-done h2 { margin: 4px 0 6px; }
.rsvp-what { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #E3EAE5; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* month calendar */
.cal { background: #fff; border: 1px solid #E3EAE5; border-radius: 22px; padding: 18px; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-head h3 { margin: 0; font-size: 1.2rem; min-width: 150px; text-align: center; }
.cal-nav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #E3EAE5; text-decoration: none; color: #0F172A; font-size: 1.3rem; line-height: 1; }
.cal-nav:hover { background: #F3FAF5; border-color: #9FCDB0; }
.cal-today { margin-left: auto; font-size: .84rem; font-weight: 700; color: #15803D; text-decoration: none; padding: 6px 12px; border: 1px solid #BFDCCB; border-radius: 999px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748B; text-align: center; padding: 4px 0 6px; }
.cal-day { min-height: 92px; border-radius: 12px; background: #F8FAF9; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.out { background: transparent; }
.cal-day.past { opacity: .6; }
.cal-day.today { background: #ECFDF3; box-shadow: inset 0 0 0 2px #16A34A; }
.cal-n { font-size: .8rem; font-weight: 700; color: #334155; }
.cal-day.today .cal-n { color: #15803D; }
.cal-ev { display: flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 6px; background: #15803D; color: #fff; text-decoration: none; font-size: .72rem; font-weight: 600; line-height: 1.25; min-width: 0; }
.cal-ev i { width: 6px; height: 6px; border-radius: 50%; background: #FBC66B; flex: none; }
.cal-ev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { background: #0B4A22; }
@media (max-width: 760px) {
  .rsvp-card { grid-template-columns: minmax(0, 1fr); }
  .rsvp-done { grid-template-columns: minmax(0, 1fr); }
  .cal { padding: 12px; }
  .cal-day { min-height: 54px; padding: 4px; }
  .cal-ev span { display: none; }
  .cal-ev { justify-content: center; padding: 4px; }
  .cal-ev i { width: 8px; height: 8px; }
  .cal-head h3 { font-size: 1rem; min-width: 0; }
}
.rsvp-yn { border: 0; margin: 0; padding: 0; min-width: 0; }
.rsvp-yn legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.rsvp-yn label { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; padding: 9px 16px; border: 1.5px solid #E3EAE5; border-radius: 12px; cursor: pointer; font-weight: 600; }
.rsvp-yn label:has(input:checked) { border-color: #15803D; background: #F0FDF4; color: #15803D; }
.rsvp-yn input { accent-color: #15803D; }

/* paid events: price box on the RSVP form */
.rsvp-price { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; padding: 14px 16px; border-radius: 16px; background: #FFF8EB; border: 1px solid #F6DDAE; color: #5A3B00; }
.rsvp-price .ico { flex: none; margin-top: 3px; color: #B45309; }
.rsvp-price strong { display: block; font-size: 1.05rem; color: #78350F; }
.rsvp-price span { font-size: .92rem; }
