/* App wrapper */
#rfp-live-filter-app {
  font-family: sans-serif;
}

/* Search bar */
#rfp-search-bar {
  margin-bottom: 20px;
}
#rfp-search-input {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Main layout: sidebar + results */
#rfp-filter-wrapper {
  display: flex;
  gap: 20px;
}
#rfp-sidebar {
  flex: 0 0 250px;
  max-width: 300px;
  background: #f9f9f9;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
#rfp-results {
  flex: 1 1 0;
  min-width: 0;             /* prevents overflow */
  display: flex;
  flex-direction: column;
}

/* Make sidebar sticky within container */
@media (min-width: 768px) {
  #rfp-sidebar {
    position: sticky;
    top: 20px;              /* offset from top of viewport */
    align-self: flex-start; /* ensures it sticks at top of container */
  }
}

/* Multi‐select dropdown styling */
.rfp-filter-select {
  width: 100%;
  min-height: 100px;
  padding: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  margin-top: 6px;
}

/* Filter group headings */
.rfp-filter-group {
  margin-bottom: 15px;
}
.rfp-filter-group strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

/* Answer card styling */
.rfp-answer-item {
  border: 1px solid #ddd;
  padding: 16px;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  margin-bottom: 20px;
}
.rfp-answer-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.rfp-answer-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.rfp-answer-item .rfp-excerpt {
  margin: 0;
  font-size: 14px;
  color: #444;
}

/* Meta above each title */
.rfp-meta {
  font-size: 14px;
  color: #1E72BD;
  margin-bottom: 8px;
  font-style: italic;
}

/* Load More button */
#rfp-load-more-wrapper {
  text-align: center;
  margin-top: 20px;
}
#rfp-load-more {
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  background: #005a9e;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
#rfp-load-more:hover {
  background: #004070;
}

/* Lightbox overlay and content */
#rfp-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#rfp-lightbox[style*="display: block"] {
  display: flex !important;
}
.rfp-lightbox-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border-radius: 8px;
}
#rfp-lightbox-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #222;
}
#rfp-lightbox-body {
  font-size: 14px;
  color: #444;
}

/* Enlarge and style close button */
.rfp-close {
  position: absolute;
  top: 5px;    /* adjusted for easier clicking */
  right: 15px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.rfp-close:hover {
  background: rgba(0,0,0,0.1);
}
