/* ================================================================================
   Albany JW Parking — styles.css
   Consolidated and deduplicated. No behavior changes.
   ================================================================================ */

/* -------------------- Fonts -------------------- */
.Archivo {
  font-family: "Archivo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.georama {
  font-family: "Georama", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: medium;
  font-variation-settings: "wdth" 100;
}

/* -------------------- CSS Variables -------------------- */
:root {
  --Primary: #1e3a8a;
  --Secondary: #2563eb;
  --Accent: #f59e0b;
  --Background: #f9fafb;
  --TextDark: #111827;
  --TextLight: #ffffff;
  --fs-h1: clamp(2rem, 5vw, 5rem);
  --fs-h2: clamp(1.75rem, 4vw, 2.75rem);
  --fs-h3: clamp(1.5rem, 3vw, 2rem);
  --fs-body: clamp(1rem, 2vw, 1.125rem);
}

/* -------------------- Body & Background -------------------- */
body {
  min-height: 100dvh;
  background: linear-gradient(59deg, var(--TextDark), var(--TextLight) 50%);
  background-attachment: fixed;
  font-family: "Archivo", sans-serif;
  color: var(--TextDark);
}

/* Dashboard — full-page fixed parking image */
body.db-bg {
  background-image: url("../images/parking-lot.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-body-tertiary {
  background-image: url("../images/parking-lot.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* -------------------- Hero -------------------- */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.hero-heading,
.hero-subheading {
  background-color: var(--TextLight);
  opacity: 0.75;
  width: 75%;
  margin: 0 auto;
  border-radius: 10px;
}

.hero-subheading {
  width: 66%;
  border-radius: 20px;
}

/* -------------------- Header -------------------- */
.header {
  border-radius: 10px;
  border-style: solid;
  text-align: center;
  background-color: var(--Primary);
  color: var(--TextLight);
}

/* -------------------- Typography -------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Georama", sans-serif;
  color: var(--Primary);
}

h1 {
  font-weight: 700;
}

h2,
h3 {
  font-weight: 600;
}

h4,
h5,
h6 {
  font-weight: 500;
}

p,
li {
  font-family: "Archivo", sans-serif;
  font-weight: 400;
}

strong,
b {
  font-weight: 500;
}

/* =====================================================================
   BASE / GLOBAL STYLES
   Fonts, variables, typography, generic components
   ===================================================================== */
/* -------------------- Buttons -------------------- */
.btn {
  font-size: 1rem;
  padding: 6px 12px;
  font-weight: 400;
}

/* -------------------- Feature Showcase -------------------- */
.feature-showcase {
  background-color: var(--Background);
  opacity: 0.75;
  border-radius: 5px;
  padding: 4px;
  font-weight: 700;
}

.feature-icon {
  max-width: 100px;
  max-height: 100px;
  background-color: transparent;
}

.feature-icon-small {
  background-color: transparent;
}

/* -------------------- Form & Validation -------------------- */
.spinner-border {
  vertical-align: middle;
}

.form-label,
.accordion-button {
  font-weight: 600;
  word-wrap: break-word;
}

.asterix {
  color: var(--bs-danger);
  margin-left: 0.25rem;
}

.is-hidden {
  display: none !important;
}

/* =====================================================================
   SCROLL OWNERSHIP DIAGRAM (CRITICAL — READ BEFORE EDITING)

   There must be EXACTLY ONE scroll container at any width.

   ┌─────────────────────────────────────────────────────────────┐
   │ ≤ 576px  (Mobile phones)                                     │
   │                                                             │
   │  Scroll owner:  PAGE (body / html)                          │
   │                                                             │
   │  body           → scrolls                                  │
   │  .entry-card    → overflow: visible                         │
   │  .card-body     → overflow: visible                         │
   │  .card-header   → position: static                          │
   │                                                             │
   └─────────────────────────────────────────────────────────────┘

   ┌─────────────────────────────────────────────────────────────┐
   │ ≥ 577px  (Tablets + Desktop)                                │
   │                                                             │
   │  Scroll owner:  .entry-card                                 │
   │                                                             │
   │  body           → overflow: hidden                          │
   │  .entry-card    → overflow-y: auto  (ONLY scroll container) │
   │  .card-body     → overflow: visible                         │
   │  .card-header   → position: sticky (relative to card)       │
   │                                                             │
   └─────────────────────────────────────────────────────────────┘

   RULES:
   - Never allow body AND a card to scroll at the same time
   - Sticky elements must live inside their scroll container
   - Mobile = page scroll, Desktop = card scroll

   If something breaks at a breakpoint, re-check this diagram first.
   ===================================================================== */

/* =====================================================================
   CARD SYSTEMS
   - Entry cards (registration / login / forms)
   - Summary cards
   ===================================================================== */


/* -------------------- Entry card (form pages) -------------------- */
.form-entry {
  max-width: 500px;
  /* was 400px, increased for better mobile usability */
  width: 100%;
  /* allows shrinking on small screens */
  opacity: 0.75;
  justify-content: center;
}


/* ================================================================
   ENTRY PAGE CARD STRUCTURE
   Cards on form/login/registration pages use a flex column layout
   so the sticky header and sticky footer work correctly.

   Strategy:
   - Tall viewports (min-height: 700px): card is height-capped,
     card body scrolls internally, page does not scroll.
   - Short viewports (< 700px tall): card grows naturally,
     page scrolls, no content clipping.
   ================================================================ */

.entry-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
}

/* Sticky header — always visible */
.entry-card .card-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(5px);
}

/* SHORT VIEWPORTS — page scrolls, card grows freely */
.entry-card .card-body {
  flex: 1 1 auto;
  overflow-y: auto;
  /* ✅ creates formatting context */
  max-height: none;
  -webkit-overflow-scrolling: touch;
  padding-top: 1rem;
  /* ✅ stops accordion sliding under header */
  padding-bottom: 5.5rem;
  scroll-padding-top: 80px;
}

/* =====================================================================
   RESPONSIVE RULES (LOGICAL GROUPING)

   NOTE:
   Responsive rules are intentionally distributed throughout this file
   to preserve cascade order and prevent regressions.

   Do NOT consolidate or reorder media queries unless the
   scroll-ownership diagram is updated and behavior re-verified.
   ===================================================================== */
/* =====================================================================
   RESPONSIVE RULES (DO NOT REORDER WITHOUT UPDATING DIAGRAM)

   Order matters:
   1) Mobile ≤ 576px  → page scroll
   2) Small controls ≤ 767.98px
   3) Desktop ≥ 577px → card scroll
   ===================================================================== */

/* TALL VIEWPORTS — card body scrolls, page stays locked */
@media (min-height: 700px) {
  .entry-card {
    max-height: 88dvh;
  }

  .entry-card .card-body {
    overflow-y: auto;
    max-height: unset;
    /* card's max-height governs, not card-body directly */
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  body.entry-body.bg-body-tertiary {
    overflow: hidden;
  }
}

/* Sticky submit button */
.entry-card .sticky-action {
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  padding: 0.75rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.07);
}

.entry-card .sticky-action button {
  width: 100%;
  font-size: 1rem;
}

/* Prevent background bounce on entry pages on mobile */
@media (max-width: 768px) {
  body.entry-body.bg-body-tertiary {
    overflow: visible;
  }
}

/* Shared max width for main cards on form/summary pages */
.entry-card,
.card.shadow-lg {
  width: 100%;
  max-width: 500px;
}

/* My Account card is wider than the standard 500px entry card */
#summary-card.card.shadow-lg {
  max-width: 700px;
}

/* ================================================================
   SUMMARY PAGE CARD
   ================================================================ */

#summary-card {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 1.5rem;
  border: none;
}

#summary-card h1,
#summary-card h2,
#summary-card h3 {
  color: var(--Primary);
  font-weight: 700;
}

#summary-card input,
#summary-card select,
#summary-card textarea {
  border-radius: 6px;
  height: 40px;
  font-size: 0.95rem;
}

/* Vertical scroll when the summary is too long */
#summary-card .accordion {
  max-height: none;
  overflow-y: visible;
}

/* Keep accordion children fully opaque inside the frosted card */
#summary-card .accordion-body,
#summary-card .accordion-item {
  opacity: 1;
}

/* =====================================================================
   COMPONENTS
   Accordion, buttons, validation, inputs
   ===================================================================== */

/* ================================================================
   ACCORDION
   ================================================================ */

.accordion-button {
  font-family: "Georama", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--Primary);
  background-color: transparent !important;
  box-shadow: none !important;
}

.accordion-body {
  padding-top: 0.2rem;
  padding-bottom: 0.25rem;
  background-color: var(--Background);
  opacity: 0.8;
}

.accordion-item {
  background-color: var(--Background);
  opacity: 0.8;
}

/* Locked summary sections — disable interaction without hiding content */
.accordion-body.summary-locked input,
.accordion-body.summary-locked select,
.accordion-body.summary-locked textarea {
  pointer-events: none;
  background-color: var(--Background);
  opacity: 0.75;
}

.accordion-body.summary-locked .form-check-input {
  pointer-events: none;
  opacity: 0.6;
}

.accordion-body.summary-locked .form-check-label,
.accordion-body.summary-locked .form-label {
  opacity: 0.75;
}

/* ================================================================
   SUMMARY BUTTONS (Edit / Save / Print / Confirm)
   ================================================================ */

.summary-edit-btn,
.summary-save-btn,
#print-summary,
#final-submit {
  transition: all 0.2s ease, box-shadow 0.25s ease;
  outline: none !important;
}

/* Edit */
.summary-edit-btn {
  background: var(--Primary);
  color: var(--TextLight) !important;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}

.summary-edit-btn:hover {
  box-shadow: 0 0 10px rgba(30, 58, 138, 0.6);
  transform: translateY(-1px);
}

.summary-edit-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 6px rgba(30, 58, 138, 0.8);
}

/* Save */
.summary-save-btn {
  background: var(--Accent);
  color: var(--TextLight) !important;
  border: none;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 6px;
  display: none;
  /* hidden until section is in edit mode */
}

.accordion-body[data-editing="true"] .summary-save-btn {
  display: inline-block;
}

.summary-save-btn:hover {
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
}

.summary-save-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 6px rgba(245, 158, 11, 0.8);
}

/* Print */
#print-summary {
  background: transparent;
  border: 2px solid var(--Primary);
  color: var(--Primary);
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 16px;
}

#print-summary:hover {
  background: var(--Primary);
  color: var(--TextLight) !important;
  box-shadow: 0 0 10px rgba(30, 58, 138, 0.5);
  transform: translateY(-1px);
}

#print-summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 6px rgba(30, 58, 138, 0.8);
}

/* Confirm & Finish */
#final-submit {
  width: 160px;
  background: var(--Secondary) !important;
  color: var(--TextLight);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 22px;
  border: none;
}

#final-submit:hover {
  background: #1e4ed8 !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

#final-submit:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 6px rgba(37, 99, 235, 0.8);
}

/* Keep checkboxes square on summary page */
#summary-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  padding: 0;
  margin-top: 0.35rem;
  vertical-align: middle;
}


/* ================================================================
   CONGREGATION AUTOCOMPLETE DROPDOWN
   ================================================================ */

#congregation-combobox-list.dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  z-index: 1000;
}

/* ================================================================
   SUMMARY & MY ACCOUNT MODAL
   ================================================================ */

#summaryConfirmModal .modal-content,
#summarySuccessModal .modal-content {
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: var(--TextLight);
}

#summaryConfirmModal .modal-header,
#summarySuccessModal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1rem;
  background-color: var(--Background);
  color: var(--Primary);
}

#summarySuccessModal .modal-header {
  background-color: var(--Secondary) !important;
  color: var(--TextLight) !important;
}

#summaryConfirmModal .modal-title,
#summarySuccessModal .modal-title {
  font-weight: 600;
  font-family: "Georama", sans-serif;
  color: var(--Primary);
}

#summaryConfirmModal .modal-body,
#summarySuccessModal .modal-body {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--TextDark);
  line-height: 1.4;
  background-color: var(--TextLight);
}

#summaryConfirmModal .modal-footer,
#summarySuccessModal .modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1rem;
  background-color: var(--Background);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

#summaryConfirmModal .btn,
#summarySuccessModal .btn {
  padding: 0.45rem 1.1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

#summarySuccessModal .modal-content.border-success {
  border-color: var(--Secondary) !important;
}

.modal-backdrop.show {
  opacity: 0.40 !important;
  background-color: var(--TextDark) !important;
}

/* ================================================================
   INPUT FEEDBACK (valid / invalid / status)
   ================================================================ */

.valid-feedback,
.invalid-feedback {
  display: block !important;
  padding: 6px 12px;
  margin-top: 6px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

.is-invalid~.invalid-feedback {
  display: block !important;
}

.is-valid~.valid-feedback {
  display: block !important;
}

.valid-feedback {
  background: rgba(209, 231, 221, 0.55);
  color: #0f5132;
  border: 1px solid rgba(25, 135, 84, 0.28);
}

.invalid-feedback {
  background: rgba(248, 215, 218, 0.50);
  color: #842029;
  border: 1px solid rgba(132, 32, 41, 0.25);
}

.valid-feedback i,
.invalid-feedback i {
  margin-right: 6px;
  font-size: 1rem;
  vertical-align: middle;
}

/* Inline status messages used by JS (e.g. email/phone live validation) */
.inputStatus {
  font-size: 0.75rem;
  margin-top: 2px;
  display: block;
}

.inputStatus.success {
  background: rgba(209, 231, 221, 0.55);
  color: #0f5132;
  border: 1px solid rgba(25, 135, 84, 0.28);
  padding: 6px 12px;
  border-radius: 8px;
}

.inputStatus.error {
  background: rgba(248, 215, 218, 0.50);
  color: #842029;
  border: 1px solid rgba(132, 32, 41, 0.25);
  padding: 6px 12px;
  border-radius: 8px;
}

/* Submit-level toast container */
#submitStatus {
  min-height: 36px;
  font-size: 0.75rem;
}

#submitStatus .alert {
  position: absolute !important;
  padding-right: 2.5rem !important;
}

/* ================================================================
   PASSWORD INPUT GROUP
   Keeps lock icon + input + eye button on one line at all widths.
   ================================================================ */

.password-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.password-group .form-control {
  flex: 1 1 auto;
  min-width: 0;
  /* allows shrinking on narrow screens */
  box-sizing: border-box;
}

.password-group .input-group-text {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.togglePasswordBtn {
  cursor: pointer;
  z-index: 11;
}

/* Allow tap-through on status overlays so the eye button stays clickable */
#password-status,
#passwords-matched-status {
  pointer-events: none;
  z-index: 1;
}

/* =====================================================================
   NAVIGATION
   Frosted glass navbar, nav buttons, avatar
   ===================================================================== */
/* ================================================================
   FROSTED GLASS NAVIGATION BAR
   ================================================================ */

.site-navbar {
  background: rgba(10, 35, 65, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  color: #f8f9fa;
  padding: 0.45rem 0;
  position: sticky;
  top: 0;
  z-index: 1050;
}

.site-navbar .navbar-brand,
.site-navbar .nav-link,
.site-navbar .dropdown-item {
  font-family: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.site-navbar .nav-link {
  color: #f8f9fa;
  font-weight: 500;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #d5ecff;
}

.site-navbar .dropdown-menu {
  background: rgba(8, 28, 58, 0.97);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  min-width: 220px;
}

.site-navbar .dropdown-item {
  color: #e4f3ff;
  padding: 8px 18px;
}

.site-navbar .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

/* ── Oversight nav dropdown ──────────────────────────────────── */

.ot-nav-dropdown {
  padding: 0.4rem 0;
  max-height: 82vh;
  overflow-y: auto;
}

.ot-nav-all-tools {
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.6rem;
  margin-bottom: 0.15rem;
}

.ot-nav-all-tools:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.ot-nav-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.38rem 1rem 0.38rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #90c4f8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  text-align: left;
  gap: 0.5rem;
}

.ot-nav-category:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #d5ecff;
}

.ot-nav-category span {
  display: flex;
  align-items: center;
  gap: 0;
}

.ot-nav-chevron {
  font-size: 0.65rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

/* Rotate chevron when collapsed */
.ot-nav-category[aria-expanded="false"] .ot-nav-chevron {
  transform: rotate(-90deg);
}

.ot-nav-items {
  list-style: none;
  padding: 0.15rem 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.15);
}

.ot-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem 1rem 0.32rem 2rem;
  font-size: 0.84rem;
  color: #cde8ff;
  text-decoration: none;
  transition: background 0.07s, color 0.07s;
  white-space: nowrap;
}

.ot-nav-item:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.ot-nav-item i {
  width: 1rem;
  text-align: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  opacity: 0.75;
  color: #90c4f8;
}

.ot-nav-item:hover i {
  opacity: 1;
  color: #d5ecff;
}

.nav-link.active,
.dropdown-item.active {
  font-weight: 600;
  color: var(--Primary, #0d6efd) !important;
}

.navbar-nav .nav-link.active i {
  color: var(--Primary, #0d6efd) !important;
}

.nav-link[href="/logout"]:hover {
  color: var(--Primary);
  font-weight: 600;
}

/* -------------------- Nav CTA Buttons -------------------- */

.nav-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-btn-outline {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.nav-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-btn-primary {
  background-color: #0d6efd;
  border: 1px solid #0c5cd5;
  color: #ffffff;
}

.nav-btn-primary:hover {
  background-color: #0b5ed7;
  color: #ffffff;
}

.nav-btn-secondary {
  background-color: #5c636a;
  border: 1px solid #474d53;
  color: #ffffff;
}

.nav-btn-secondary:hover {
  background-color: #4b5157;
}

.nav-cta-container {
  gap: 10px !important;
}

/* -------------------- Nav Avatar (traffic cone SVG) -------------------- */

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #003049;
  border: 1.5px solid rgba(251, 133, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);
}

.nav-avatar svg {
  width: 28px;
  height: 28px;
}

/* SVG text element for user initials inside the avatar */
.nav-avatar-initials {
  font-family: inherit;
  font-size: 7px;
  font-weight: 700;
  fill: #ffb703;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* =====================================================================
   FLOWS & MODALS
   Upgrade flow, summary modals, confirmation dialogs
   ===================================================================== */
/* ================================================================
   UPGRADE FLOW
   Isolated from registration card rules via .upgrade-card class.
   ================================================================ */

.upgrade-body {
  background-image: url("../images/parking-lot.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-card {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 1.8rem 2rem;
}

/* .upgrade-card resets any entry-card/summary-card overrides, then re-applies glass */
.upgrade-card {
  width: 100%;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  max-height: none;
  overflow: visible;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 1.8rem 2rem;
}

.upgrade-title {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 0.25rem;
}

.upgrade-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  margin-top: 0;
}

.upgrade-status .alert {
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.25rem;
}

.status.success {
  color: #198754;
  font-weight: 600;
}

.status.error {
  color: #dc3545;
  font-weight: 600;
}

.status.loading span {
  margin-right: 0.35rem;
}

.info-note i {
  color: #0d6efd;
  margin-right: 4px;
}

/* Hamburger toggler */
.site-navbar .navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  padding: 4px 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-navbar .navbar-toggler:hover,
.site-navbar .navbar-toggler:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--Accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
  outline: none;
}

.site-navbar .navbar-toggler:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0.96);
}

.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.4em;
  height: 1.4em;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   MOBILE — ≤ 576px
   Page scrolls, card grows freely
   ========================================================= */
@media (max-width: 576px) {

  /* ✅ MOBILE: PAGE SCROLLS ONLY — NO CARD SCROLLING */
  body {
    overflow: auto;
  }

  .entry-card,
  .entry-card .card-body,
  .card.shadow-lg,
  #summary-card {
    overflow: visible !important;
    max-height: none !important;
  }

  .entry-card .card-header {
    position: static;
  }

  /* Entry & summary cards stay centered and constrained */
  .body-container,
  .form-entry,
  .card.shadow-lg,
  .entry-card,
  #summary-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 95%;
    justify-content: center;
  }

  /* Container padding */
  .container,
  #formSummaryRoot {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Summary card tighter */
  #summary-card {
    padding: 0.75rem;
    margin: 0;
  }

  /* Accordion safety — no horizontal scroll */
  #summary-card .accordion,
  #accountAccordion,
  #summaryAccordion {
    white-space: normal;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto;
  }

  #summary-card .accordion-item,
  #accountAccordion .accordion-item,
  #summaryAccordion .accordion-item {
    display: block;
    width: 100%;
    min-width: 0;
  }

  /* Inputs */
  input.form-control,
  select.form-select,
  textarea.form-control {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 34px;
    font-size: 0.9rem;
    padding: 4px 8px;
  }

  textarea.form-control {
    min-height: 90px;
    height: auto;
  }

  /* Accordion rows wrap */
  .accordion-body .row,
  .accordion-body .row>[class^="col"] {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .accordion-body {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Labels */
  label.form-label,
  .input-label,
  .form-check-label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .form-check-input {
    width: 16px;
    height: 16px;
  }

  /* Buttons */
  .summary-edit-btn,
  .summary-save-btn,
  #finalize-changes,
  #print-summary,
  #final-submit {
    font-size: 0.85rem;
    padding: 4px 10px;
  }

  .text-end.mt-4 {
    margin-top: 1rem;
  }

  /* Sticky submit bar */
  .sticky-action {
    position: sticky;
    bottom: 0;
    z-index: 300;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    padding: 0.75rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  }

  .sticky-action button {
    width: 100%;
    font-size: 1rem !important;
    padding: 10px !important;
  }

  /* Toast spacing above sticky bar */
  .entry-card #submitStatus,
  .entry-card #finalize-status {
    position: relative;
    z-index: 101;
    justify-content: center;
  }
}

/* Small controls — phones + small tablets */
@media (max-width: 767.98px) {

  .summary-edit-btn,
  .summary-save-btn,
  #finalize-changes,
  #print-summary,
  #final-submit,
  #return-home {
    font-size: 0.85rem;
    padding: 4px 10px;
  }
}


/* =========================================================
   BASE (all widths)
   Prevent accordion/header overlap everywhere
   ========================================================= */
.entry-card .card-body {
  flex: 1 1 auto;
  overflow-y: auto;
  /* ✅ creates formatting context */
  max-height: none;
  padding-top: 1rem;
  /* ✅ stops accordion sliding under header */
  padding-bottom: 5.5rem;
  scroll-padding-top: 80px;
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   DESKTOP / TABLET — ≥ 577px
   Card-contained scrolling (desired behavior)
   ========================================================= */
@media (min-width: 577px) {

  body.entry-body.bg-body-tertiary {
    overflow: hidden;
    /* page does not scroll */
  }

  .entry-card {
    max-height: 88dvh;
    overflow-y: auto;
    /* ✅ THIS is now the scroll container */
  }

  .entry-card .card-body {
    overflow: visible;
    /* ✅ no competing scroll container */
    padding-top: 1rem;
    padding-bottom: 5.5rem;
  }
}

@media (max-width: 480px) {

  .card.shadow-lg,
  #summary-card {
    max-height: 90vh;
  }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {

  body,
  html {
    background: #ffffff !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.bg-body-tertiary {
    background: #ffffff !important;
  }

  #summary-card {
    background: #ffffff !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
  }

  .card-header {
    background: #ffffff !important;
    border: none !important;
  }

  nav,
  .btn,
  .summary-edit-btn,
  #print-summary,
  .btn-group,
  .accordion-button::after {
    display: none !important;
  }

  .accordion-button {
    background: none !important;
    box-shadow: none !important;
    font-size: 1.25rem !important;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0 !important;
  }

  .accordion-button:not(.collapsed) {
    color: #000 !important;
  }

  .accordion-collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }

  .accordion-body,
  .accordion-item {
    opacity: 1 !important;
    background: #ffffff !important;
    border: none !important;
    margin-bottom: 0.5rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    page-break-inside: avoid;
  }

  input,
  select,
  textarea {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 1rem;
  }

  input[readonly],
  input[disabled],
  textarea[readonly] {
    color: #000 !important;
  }

  #summary-card section,
  .accordion-item {
    margin-bottom: 0.2rem !important;
  }

  .accordion-body .form-label,
  .accordion-body label {
    margin-bottom: 0.1rem !important;
  }

  .row,
  .row .col {
    margin-bottom: 0.35rem !important;
    padding-bottom: 0 !important;
  }

  #summary-card,
  .accordion-body,
  .accordion-item,
  label,
  input,
  select,
  textarea {
    line-height: 1.15 !important;
  }

  textarea {
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
  }

  h2,
  h3,
  .accordion-header,
  .accordion-body {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #summary-card .accordion {
    overflow: visible !important;
  }

  * {
    scrollbar-width: none !important;
  }

  *::-webkit-scrollbar {
    display: none !important;
  }

  #summaryConfirmModal,
  #summarySuccessModal,
  #summaryConfirmModal .modal-dialog,
  #summarySuccessModal .modal-dialog,
  #summaryConfirmModal .modal-content,
  #summarySuccessModal .modal-content,
  .modal-backdrop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    background: none !important;
  }

  #congregation-combobox-list {
    display: none !important;
    visibility: hidden !important;
  }

  @page {
    size: Letter portrait;
    margin: 0.5in;
  }
}

/* =======================================================
   INTERACTION SAFETY OVERRIDES (mobile)
   ======================================================= */
/* -------------------------------------------------------
   Mobile dropdown safety zone (keep menus off buttons)
   ------------------------------------------------------- */

@media (max-width: 768px) {

  /* Native select dropdowns (mobile browsers) */
  select {
    max-height: calc(85vh);
    /* leaves ~15% at bottom */
  }

  /* Bootstrap dropdown menus */
  .dropdown-menu {
    max-height: calc(85vh);
    overflow-y: auto;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    select {
      font-size: 16px;
      /* prevents zoom + misposition */
    }
  }
}

/* ================================================================
   ADMIN ROLES CONSOLE TABLE
   Tighter rows for 768px+, two-column wrap below 768px
   ================================================================ */

.admin-console-card.card.shadow-lg {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

#rolesTable th,
#rolesTable td {
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  vertical-align: middle;
}

#rolesTable .badge {
  font-size: 0.75rem;
  padding: 0.25em 0.5em;
}

#rolesTable .form-select-sm {
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  height: 30px;
}

#rolesTable .btn-sm {
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
}

/* Below 768px — collapse to two-row card layout, hide table headers */
@media (max-width: 767.98px) {
  #rolesTable thead {
    display: none;
  }

  #rolesTable,
  #rolesTable tbody,
  #rolesTable tr,
  #rolesTable td {
    display: block;
    width: 100%;
  }

  #rolesTable tr {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
  }

  #rolesTable td {
    padding: 0.25rem 0.4rem;
    border: none;
  }

  /* Name + email on first row */
  #rolesTable td:nth-child(1),
  #rolesTable td:nth-child(2) {
    display: inline-block;
    width: auto;
  }

  #rolesTable td:nth-child(1) {
    font-weight: 600;
    margin-right: 0.5rem;
  }

  #rolesTable td:nth-child(2) {
    color: #6c757d;
    font-size: 0.8rem;
  }

  /* Current role badge — own line */
  #rolesTable td:nth-child(3) {
    display: block;
    margin-top: 0.0125rem;
  }

  /* Select + Save on same row */
  #rolesTable td:nth-child(4),
  #rolesTable td:nth-child(5) {
    display: inline-block;
    width: auto;
    vertical-align: middle;
  }

  #rolesTable td:nth-child(4) {
    margin-right: 0.5rem;
  }

  #rolesTable .role-select {
    min-width: 130px;
  }
}

/* Oversight Tools dashboard cards */
.admin-tool-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Oversight Tools — group section headings */
.tools-group-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bs-secondary-color);
  border-bottom: 1px solid var(--bs-border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.admin-tool-card:hover:not(.admin-tool-card--soon) {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.admin-tool-card--soon {
  opacity: 0.6;
}

.admin-tool-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.admin-tool-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--Primary);
}

.admin-tool-desc {
  font-size: 0.875rem;
  color: #6c757d;
  flex: 1;
  margin: 0;
}

.admin-tool-btn,
.admin-tool-soon {
  align-self: flex-start;
  margin-top: auto;
}

/* Unfinished profile banner */
.draft-banner-nav {
  order: -1;
}

.draft-banner-link {
  display: inline-flex;
  align-items: center;
  background: var(--Accent);
  color: var(--TextDark) !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.03em;
  animation: draftPulse 2.5s ease-in-out infinite;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.draft-banner-link:hover {
  background: #e08e00;
  color: var(--TextDark) !important;
  text-decoration: none;
}

@keyframes draftPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    background: #f59e0b;
  }

  50% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    background: #e08e00;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    background: #f59e0b;
  }
}

@media (max-width: 991.98px) {
  .draft-banner-link {
    display: inline-flex;
    align-items: center;
    background: var(--Accent);
    color: var(--TextDark) !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.03em;
    animation: draftPulse 2.5s ease-in-out infinite;
    white-space: nowrap;
    transition: background 0.2s ease;
  }
}
/* ── Oversight Tools sidebar ─────────────────────────────────── */

.ot-sidebar {
  position: sticky;
  top: 5rem;
  width: 180px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.6rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  padding: 0.6rem 0.4rem 0.5rem;
}

.ot-sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--Primary, #1e3a8a);
  padding: 0 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 0.35rem;
}

.ot-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 0.3rem;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}
.ot-sidebar-link--sub {
  padding-left: 1.75rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

.ot-sidebar-link:hover {
  background: rgba(30, 58, 138, 0.1);
  color: var(--Primary, #1e3a8a);
}

.ot-sidebar-link.active {
  background: rgba(30, 58, 138, 0.12);
  color: var(--Primary, #1e3a8a);
  font-weight: 700;
}

.ot-sidebar-link i {
  width: 1rem;
  text-align: center;
  font-size: 0.78rem;
  flex-shrink: 0;
  opacity: 0.65;
}

.ot-sidebar-link:hover i,
.ot-sidebar-link.active i {
  opacity: 1;
}
/* ── Scroll-to-top button ─────────────────────────────────────── */
#scrollToTopBtn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(0.5rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

#scrollToTopBtn.scroll-top-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── Event type color swatch ─────────────────────────────────────────── */
.et-color-swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  vertical-align: middle;
}

.badge.shift-badge {
  background: var(--badge-color, #6c757d) !important;
  color: #fff
}

/* ── Timelines page layout & sizing ─────────────────────────────────── */
.timeline-card-full {
  max-width: none;
}

.year-picker-select {
  width: auto;
}

.badge-xs {
  font-size: 0.65rem;
}

.shift-card {
  border-left: 4px solid var(--shift-border-color, #6c757d);
}

.assignment-badge {
  font-size: 0.78rem;
}

.assignment-vol-need {
  font-size: 0.72rem;
}

.assignment-edit-btn {
  font-size: 0.65rem;
  line-height: 1;
}

.assignment-remove-btn {
  font-size: 0.55rem;
}

/* ─────────────────────────────────────────────────────────────
   Invite respond — event context block
   ───────────────────────────────────────────────────────────── */

.ir-event-block {
  background: var(--bs-primary-bg-subtle, #cfe2ff);
  border: 1px solid var(--bs-primary-border-subtle, #9ec5fe);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
}

.ir-event-header {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.ir-event-date {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bs-primary-text-emphasis, #052c65);
  margin-bottom: 0.1rem;
}

.ir-event-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--bs-primary-border-subtle, #9ec5fe);
  padding-top: 0.6rem;
}

.ir-event-detail-row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  align-items: baseline;
}

.ir-detail-label {
  min-width: 80px;
  color: var(--bs-primary-text-emphasis, #052c65);
  font-weight: 600;
  flex-shrink: 0;
}

.ir-detail-value {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bs-body-color, #212529);
}

.ir-type-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.ir-sms-consent {
  font-size: 0.72rem;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────
   14. Campaign mode
   ───────────────────────────────────────────────────────────── */

.mc-campaign-mode {
  display: flex;
  align-items: center;
}

.mc-batch-preview {
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.role-select {
  min-width: 160px;
}

/* Brief shake — used to draw attention to a button that needs action */
@keyframes shake-once {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }

  100% {
    transform: translateX(0);
  }
}

.shake-once {
  animation: shake-once 0.4s ease-in-out;
}

/* =====================================================================
   footer
   ===================================================================== */

footer {
  background: rgba(10, 35, 65, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 1.25rem;
  margin-top: 3rem;
  text-align: center;
}

.footer-text {
  color: rgba(220, 235, 255, 0.82);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.footer-text a,
footer a {
  color: #90c4f8;
  text-decoration: none;
}

.footer-text a:hover,
footer a:hover {
  color: #d5ecff;
  text-decoration: underline;
}

footer p:not(.footer-text) {
  color: rgba(180, 205, 240, 0.6);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

/* =====================================================================
   COOKIE CONSENT BANNER
   Injected into <body> by cookieConsent.js. Kept here rather than a
   separate file so it loads globally on every page.
   ===================================================================== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  background: #ffffff;
  border-top: 2px solid var(--bs-border-color, #dee2e6);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.25rem;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

.cookie-consent--visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-consent--dismissing {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.cookie-consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-consent-text {
  flex: 1 1 260px;
}

.cookie-consent-text strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
  line-height: 1.4;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-consent-actions .btn-outline-secondary {
  border-color: #adb5bd;
  color: #495057;
  background: #e9ecef;
}

.cookie-consent-actions .btn-outline-secondary:hover {
  background: #ced4da;
  border-color: #6c757d;
  color: #212529;
}

.cookie-consent-actions .btn-outline-primary {
  border-color: #0d6efd;
  color: #0d6efd;
  background: #cfe2ff;
}

.cookie-consent-actions .btn-outline-primary:hover {
  background: #9ec5fe;
}

.cookie-manage-panel {
  border-top: 1px solid var(--bs-border-color, #dee2e6);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.cookie-category {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  margin-bottom: 0.75rem;
}

.cookie-manage-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 576px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* =====================================================================
   LEGAL PAGES (Privacy Policy, Terms of Service)
   ===================================================================== */

.legal-container {
  max-width: 780px;
}

.legal-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.legal-card h1 {
  color: var(--Primary);
}

.legal-card h2 {
  color: var(--Primary);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(30, 58, 138, 0.15);
  margin-bottom: 0.75rem;
}

.legal-card section {
  margin-bottom: 2rem;
}

@media (max-width: 576px) {
  .legal-card {
    padding: 1.5rem 1.25rem;
  }
}

/* =============================================================
   CSP-safe utility classes — replace inline style attributes
   ============================================================= */

/** Replaces style="font-size:0.7rem" on the Meeting Only badge in timelines.ejs */
.badge-meeting-only {
    font-size: 0.7rem;
}

/** Replaces style="max-width:none" on the Locations card in locationsAndTasks.ejs */
.loc-card-full {
    max-width: none;
}

/** Replaces style="width:auto" on the year-picker select in locationsAndTasks.ejs */
.loc-year-picker-select {
    width: auto;
}

/** Replaces style="font-size:0.75rem" on the lat/lng label in locationsAndTasks.ejs */
.loc-latlng-label {
    font-size: 0.75rem;
}

/** Replaces style="font-size:0.72rem; min-height:1em" on .rsvp-status in volunteerAccountOversight.ejs */
.rsvp-status {
    font-size: 0.72rem;
    min-height: 1em;
}

/** Replaces style="max-width:320px" on the blackout day select in volunteerAccountOversight.ejs */
.bk-day-select {
    max-width: 320px;
}

/** Replaces style="width:130px" on the blackout time inputs in volunteerAccountOversight.ejs */
.bk-time-input {
    width: 130px;
}