/* ==========================================================================
   Saturday Fitness RSVP Styles - Hybrid Sports Club
   ========================================================================== */

.rsvp-page-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 80px 16px;
}

/* Back Link & Header Navigation */
.rsvp-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.rsvp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-forest);
  text-decoration: none;
  background: rgba(34, 62, 23, 0.06);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.rsvp-back-link:hover {
  background: var(--primary-green);
  color: #11220f;
  transform: translateX(-3px);
}

.rsvp-hero-card {
  background: linear-gradient(135deg, #11220f 0%, #1f3d16 100%);
  border-radius: 28px;
  color: #ffffff;
  padding: 36px 32px;
  margin-bottom: 32px;
  box-shadow: 0 20px 40px rgba(17, 34, 15, 0.2);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(209, 242, 149, 0.2);
}

.rsvp-hero-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(209, 242, 149, 0.18) 0%, rgba(209, 242, 149, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.rsvp-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.event-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(209, 242, 149, 0.15);
  color: var(--primary-green);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(209, 242, 149, 0.3);
}

.event-live-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-green);
  border-radius: 50%;
  animation: pulse-glow 1.8s infinite;
}

.event-closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(209, 242, 149, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(209, 242, 149, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(209, 242, 149, 0); }
}

.rsvp-hero-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  color: #ffffff;
}

.rsvp-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  max-width: 600px;
}

/* Event Info Row */
.event-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  background: rgba(0, 0, 0, 0.25);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.event-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(209, 242, 149, 0.15);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  display: block;
}

.event-info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

/* Countdown Timer Box */
.countdown-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(209, 242, 149, 0.25);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}

.countdown-box-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.countdown-digits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 60px;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  font-weight: 600;
}

.countdown-colon {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary-green);
  margin-top: -16px;
}

/* Light Mode Countdown Card for Active RSVP */
.light-countdown-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.light-countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #007372;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.light-countdown-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.light-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.light-countdown-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  background: #ffffff;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 12px;
  min-width: 46px;
  display: inline-block;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  line-height: 1.1;
}

.light-countdown-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.light-countdown-colon {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #009F9E;
  margin-top: -16px;
}

/* Form Container */
.rsvp-form-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: var(--card-shadow);
}

.form-header {
  margin-bottom: 28px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 18px;
}

.form-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--dark-forest);
  margin-bottom: 6px;
}

.form-header p {
  color: #64748b;
  font-size: 0.95rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label .required-star {
  color: #ef4444;
}

.form-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: -2px;
}

.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background-color: #fcfdfd;
  font-size: 1rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.form-input:focus, .form-select:focus {
  border-color: var(--dark-forest);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(34, 62, 23, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

/* Radio Cards for Attendance */
.radio-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .radio-cards-grid {
    grid-template-columns: 1fr;
  }
}

.radio-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 24px;
  min-height: 54px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-card:hover {
  border-color: #009F9E;
  background: #ffffff;
}

.radio-card.active {
  border-color: #009F9E;
  background: #e6f8f8;
}

.radio-custom-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.radio-card.active .radio-custom-indicator {
  border-color: #009F9E;
  background: #009F9E;
}

.radio-card.active .radio-custom-indicator::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
}

.radio-card-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
}

/* Activity Interest Pills */
.activity-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.activity-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.activity-pill:hover {
  border-color: #009F9E;
  background: #f8fafc;
  transform: translateY(-1px);
}

.activity-pill.selected {
  background: #009F9E;
  border-color: #009F9E;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 159, 158, 0.3);
}

.activity-pill .pill-check-icon {
  display: none;
  width: 14px;
  height: 14px;
}

.activity-pill.selected .pill-check-icon {
  display: inline-block;
  color: #ffffff;
}

/* Conditional Field Transitions */
.conditional-field {
  display: none;
  animation: fadeInDown 0.25s ease forwards;
}

.conditional-field.visible {
  display: flex;
}

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

/* Consent / Checkbox styling */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #475569;
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  accent-color: #009F9E;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Submit Button */
.rsvp-submit-btn {
  background: #009F9E;
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  border: none;
  padding: 16px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 159, 158, 0.35);
  width: 100%;
  margin-top: 8px;
}

.rsvp-submit-btn:hover {
  background: #008281;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 159, 158, 0.45);
}

.rsvp-submit-btn:disabled {
  background: #cbd5e1 !important;
  color: #64748b !important;
  opacity: 0.7;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* Closed State Card */
.rsvp-closed-card {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  margin-top: 20px;
}

.rsvp-closed-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--dark-forest);
  margin-bottom: 8px;
}

.rsvp-closed-card p {
  color: #64748b;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

.whatsapp-community-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25d366;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.whatsapp-community-btn:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
}

/* ==========================================================================
   Digital Pass / Confirmation Ticket Modal
   ========================================================================== */
/* ==========================================================================
   Digital Pass / Confirmation Ticket Modal (Compact Redesign)
   ========================================================================== */
.ticket-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ticket-modal-backdrop.visible {
  display: flex;
  opacity: 1;
}

.ticket-modal-content {
  background: #ffffff;
  border-radius: 24px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  animation: zoomInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  box-sizing: border-box;
}

@keyframes zoomInModal {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ticket-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.ticket-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.ticket-card {
  display: flex;
  flex-direction: column;
}

.ticket-header-compact {
  background: linear-gradient(135deg, #11220f 0%, #163013 100%);
  color: #ffffff;
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
}

.ticket-badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #009F9E;
  background: rgba(0, 159, 158, 0.15);
  border: 1px solid rgba(0, 159, 158, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.ticket-icon-circle {
  width: 44px;
  height: 44px;
  background: #009F9E;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  box-shadow: 0 4px 14px rgba(0, 159, 158, 0.4);
}

.ticket-icon-circle svg {
  width: 22px;
  height: 22px;
}

.ticket-title-compact {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 0 0 4px 0;
  text-transform: uppercase;
}

.ticket-attendee-highlight {
  font-size: 0.95rem;
  font-weight: 700;
  color: #d1f295;
  margin: 0;
}

.ticket-body-compact {
  padding: 20px 22px 22px;
}

.ticket-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.ticket-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
}

.ticket-info-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.ticket-info-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
  line-height: 1.3;
}

.ticket-checkin-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: #166534;
  font-weight: 600;
  line-height: 1.35;
}

.ticket-checkin-notice svg {
  flex-shrink: 0;
}

.ticket-actions-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-ticket-whatsapp-compact {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 100px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.btn-ticket-whatsapp-compact:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.btn-ticket-cal-compact {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.86rem;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}

.btn-ticket-cal-compact:hover {
  background: #e2e8f0;
  color: #0f172a;
}

@media (max-width: 480px) {
  .ticket-modal-content {
    border-radius: 20px;
  }
  .ticket-header-compact {
    padding: 20px 16px 16px;
  }
  .ticket-body-compact {
    padding: 16px;
  }
  .ticket-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Safety & Community Guidelines Link & Modal Overlay (35% darkened backdrop) */
.guidelines-link {
  color: #009F9E;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.guidelines-link:hover {
  color: #007372;
}

.guidelines-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35); /* Exactly 35% background dimming */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeInModal 0.2s ease forwards;
}

.guidelines-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  animation: scaleInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.guidelines-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  background-color: #ffffff;
}

.guidelines-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guidelines-modal-title-row h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #11220f;
  margin: 0;
  letter-spacing: 0.02em;
}

.guidelines-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.guidelines-modal-close:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.guidelines-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #334155;
}

.guidelines-intro {
  margin-top: 0;
  margin-bottom: 18px;
  font-weight: 500;
  color: #0f172a;
}

.guideline-item {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.guideline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guideline-item h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #007372;
  margin: 0 0 4px 0;
}

.guideline-item p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
}

.guidelines-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  background-color: #f8fafc;
}

.btn-guidelines-agree {
  background-color: #009F9E;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-guidelines-agree:hover {
  background-color: #008281;
  transform: translateY(-1px);
}
