#householdList .rsvp-status-indicator {
  flex-shrink: 0;
  /* never wrap or move */
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 999px;
  background: #e6f4ea;
  color: #1e7a3a;
  font-weight: 500;
  white-space: nowrap;
  /* always single line */
}

/* RSVP YES (default / green) */
#householdList .rsvp-status-indicator.rsvp-yes {
  background: #e6f4ea;
  color: #1e7a3a;
}

/* RSVP NO (red) */
#householdList .rsvp-status-indicator.rsvp-no {
  background: #fdecea;
  color: #b42318;
}

.logo-subtitle {
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #23406e;
  margin: 0.2rem 0 0;
  text-align: center;
}

.logo-container {
  display: flex;
  flex-direction: column;
  /* stack logo above subtitle */
  align-items: center;
  /* center horizontally by default */
  text-align: center;
}

/* Fonts */
body {
  font-family: 'Quicksand', Arial, sans-serif;
  background-color: #f4f8fb;
  /* light blue background */
  color: #23406e;
  /* deep blue text */
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ============================
   Entry Page
   ============================ */

body.entry-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  color: #23406e;
}

.entry-bg-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.entry-bg-image[data-full] {
  filter: blur(12px);
  transition: filter 0.4s ease;
}

.entry-bg-image.loaded {
  filter: blur(0);
}

.entry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 64, 110, 0.2);
  z-index: 1;
}

.entry-card {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: min(90vw, 520px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(182, 198, 227, 0.6);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(35, 64, 110, 0.12);
  text-align: center;
}

.entry-card .logo {
  margin: 0 0 0.5rem;
  flex: none;
}

.entry-card p {
  margin: 0.5rem 0 1.25rem;
  color: #2f4d7a;
}

.entry-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.entry-password-row {
  position: relative;
}

.entry-password-row input {
  width: 100%;
  padding-right: 4.2rem;
}

/* Hide Safari's native password icons */
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute; 
    right: 0;
}

.entry-form input {
  padding: 0.7rem 0.9rem;
  border: 1px solid #d7e2f4;
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
}

.entry-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  background: transparent;
  color: #23406e;
  border: none;
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.entry-password-toggle:hover,
.entry-password-toggle:focus {
  background: #f4f8fb;
}

.entry-form button[type="submit"] {
  background-color: #3a7bd5;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(58, 123, 213, 0.25);
}

.entry-form button[type="submit"]:hover,
.entry-form button[type="submit"]:focus {
  background-color: #2a5fa8;
  box-shadow: 0 4px 12px rgba(58, 123, 213, 0.35);
}

/* Entry button loading spinner */
.entry-form button[type="submit"].loading {
  position: relative;
  padding-right: 2.2rem;
  /* space for spinner */
}

.entry-form button[type="submit"].loading::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  will-change: transform;
}

.entry-note {
  font-size: 0.95rem;
  color: #3b5176;
}

.entry-error {
  color: #b42318;
  font-weight: 600;
  display: none;
}

/* Entry Page Mobile */
@media (max-width: 767px) {
  body.entry-page {
    padding: 1rem;
  }

  .entry-card {
    max-width: 100%;
    width: 100%;
    padding: 1.5rem;
    margin: 0;
  }

  .entry-card .logo {
    font-size: 2rem;
    margin: 0 0 0.25rem;
  }

  .entry-card .logo-subtitle {
    font-size: 0.9rem;
    margin: 0 0 1rem;
  }

  .entry-card>p {
    font-size: 0.95rem;
    margin: 0 0 1rem;
    line-height: 1.5;
  }

  .entry-form input {
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
  }

  .entry-password-toggle {
    right: 0.5rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
  }

  .entry-form button[type="submit"] {
    padding: 0.65rem 1rem;
    font-size: 1rem;
  }

  .entry-note {
    font-size: 0.85rem;
    margin-top: 0.75rem;
  }
}

/* Header & nav */
header {
  background-color: #e3ecf7;
  /* pale blue */
  border-bottom: 1px solid #b6c6e3;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Birthstone Bounce', cursive;
  font-weight: 500;
  /* Medium weight */
  font-size: 2.8rem;
  color: #23406e;
  letter-spacing: 2px;
  text-align: center;
  margin: 0 auto;
  flex: 1;
  text-decoration: none;
}

/* Navbar - Side Drawer */
.navbar ul {
  list-style: none;
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  width: 280px;
  flex-direction: column;
  align-items: stretch;
  box-shadow: -6px 0 24px rgba(35, 64, 110, 0.12);
  /* subtle gold border */
  padding: 80px 0 20px 0;
  /* top padding for header clearance */
  margin: 0;
  z-index: 999;
  /* below hamburger */
  transform: translateX(100%);
  /* hidden off-screen to the right */
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.navbar.open ul {
  transform: translateX(0);
  /* slide in */
}

.navbar ul li {
  width: 100%;
  padding: 0;
  text-align: left;
}

.navbar ul li a {
  text-decoration: none;
  color: #23406e;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease, background-color 0.2s ease;
  width: 100%;
  display: block;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(182, 198, 227, 0.3);
  /* subtle divider */
}

.navbar ul li:last-child a {
  border-bottom: none;
}

.navbar ul li a:hover,
.navbar ul li a:focus {
  color: #3a7bd5;
  background-color: rgba(227, 236, 247, 0.5);
  /* subtle background on hover */
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  /* ensure z-index applies */
  margin-right: 0.75rem;
}

.hamburger span {
  height: 3px;
  width: 28px;
  background: #23406e;
  /* deep blue */
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  display: block;
  transform-origin: center;
}

/* Hamburger open animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 10px);
  width: 32px;
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -10px);
  width: 32px;
}

/* Welcome Section */
.welcome-section {
  position: relative;
  width: 100%;
  height: calc(100vh + 300px);
  /* accounts for sticky header */
  min-height: 520px;
  /* prevents it being too short */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #e3ecf7;
  /* pale blue */
  color: #23406e;
  padding: 0;
  margin: 0;
}

.header-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  opacity: 0.92;
  /* Optional: slight fade for text readability */
}

.header-image[data-full] {
  filter: blur(12px);
  transition: filter 0.4s ease;
}

.header-image.loaded {
  filter: blur(0);
}

.hero-rsvp-cta {
  display: inline-flex;
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #23406e;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(35, 64, 110, 0.18);
  border: 1px solid rgba(35, 64, 110, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-rsvp-cta:hover,
.hero-rsvp-cta:focus {
  background: #ffffff;
  transform: translateY(-1px);
}

.welcome-section h1,
.welcome-section .subtitle,
.welcome-section .date {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-rsvp-cta {
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.55rem 1.1rem;
    font-size: 1rem;
  }
}

.welcome-section h1 {
  font-weight: 700;
  font-size: 3rem;
  margin: 0.2rem 0 0.8rem;
  letter-spacing: 2px;
}

.welcome-section .subtitle {
  font-style: italic;
  font-weight: 300;
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.welcome-section .date {
  font-weight: 300;
  font-size: 2rem;
  color: #ffffff;
}

/* Page Sections */
.schedule-section,
.logistics-section,
.story-section,
.fun-facts-section {
  background: white;
  max-width: 900px;
  width: calc(100% - 2rem);
  margin: 2rem auto;
  padding: 2rem 2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(58, 123, 213, 0.08);
}

/* Berkeley page hero image */
.berkeley-hero {
  width: 100%;
  height: auto;
  max-height: 360px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 1.5rem;
  box-shadow: 0 6px 18px rgba(35, 64, 110, 0.12);
  background: #e3ecf7;
}

.berkeley-hero[data-full] {
  filter: blur(12px);
  transition: filter 0.4s ease;
}

.berkeley-hero.loaded {
  filter: blur(0);
}

/* Logistics specific: grid of card-style options */
.logistics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .logistics-grid.hotels {
    grid-template-columns: repeat(2, 1fr);
  }

  .logistics-grid.transport {
    grid-template-columns: repeat(2, 1fr);
  }
}

.logistics-option {
  background: #fbfdff;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #e6eef9;
  box-shadow: 0 1px 6px rgba(58, 123, 213, 0.04);
}

.option-title {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: #23406e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.price {
  background: #3a7bd5;
  color: white;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  display: inline-block;
}

.option-meta {
  margin: 0;
  color: #475f80;
  font-size: 0.95rem;
}

.distance {
  font-style: italic;
  color: #6b7b95;
  font-size: 0.9rem;
}

/* Center RSVP section */
.rsvp-section {
  max-width: 900px;
  width: calc(100% - 2rem);
  margin: 2rem auto;
  padding: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(58, 123, 213, 0.1);
  box-sizing: border-box;
}

.content-box {
  max-width: 640px;
  width: calc(100% - 2rem);
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(58, 123, 213, 0.10);
  box-sizing: border-box;
}

h1 {
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #23406e;
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
}

/* =========================
   RSVP Lookup Inputs
   ========================= */

/* Center-align and style first and last name inputs */
#firstNameInput,
#lastNameInput {
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.6em 0.9em;
  border: 1px solid #d7e2f4;
  border-radius: 8px;
  box-sizing: border-box;
  margin: 0.5em 0.5em;
  width: calc(50% - 1rem);
  max-width: 320px;
  display: inline-block;
}

@media (max-width: 520px) {

  #firstNameInput,
  #lastNameInput {
    width: 100%;
    display: block;
    margin: 0.5em 0;
  }
}

/* =========================
   Household List Styling
   ========================= */
.household-content {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

#householdContainer .back-button {
  width: 100%;
  justify-content: flex-start;
}

.household-notice {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem !important;
  border-radius: 6px !important;
  background: #f0f9f4 !important;
  /* soft green for success */
  color: #065f46 !important;
  font-weight: 500;
}

#householdList {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

#householdList li {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid #e6eef9;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 1px 6px rgba(58, 123, 213, 0.04);
}

#householdList li span {
  color: #23406e;
  font-weight: 600;
}

#householdList .select-button {
  background-color: #3a7bd5;
  border: none;
  color: white;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
}

#householdList .select-button:hover {
  background-color: #23406e;
}

.household-member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Name column */
.household-member span:first-child {
  flex: 1;
  /* takes remaining space */
  min-width: 0;
  /* CRITICAL for wrapping in flex */
  white-space: normal;
  word-break: break-word;
}

/* Edit / RSVP button */
.household-member .select-button {
  flex-shrink: 0;
  /* stays aligned */
}

/* Small link-like buttons */
.link-button {
  background: none;
  border: none;
  color: #3a7bd5;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin: 0.25rem 0;
}

.back-button {
  font-size: 1rem;
  background: none;
  border: none;
  color: #23406e;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Center the entire RSVP lookup section */
.rsvp-lookup {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* horizontal centering */
  justify-content: flex-start;
  text-align: center;
  /* center text inside elements */
  margin: 0 0 1rem; /* remove top gap as it's handled by heading and deadline */
}

/* make page-specific heading a little tighter when followed by deadline */
.content-box > h1 {
  margin-bottom: 0.1rem; /* shorter than default 0.75rem */
}

/* RSVP deadline notice */
.rsvp-deadline {
  margin: 0.5rem 0 0.4rem;
  font-style: italic;
  color: #6b7b95;
  text-align: center;
}


/* =========================
   Lookup Button Styling
   ========================= */

#lookupButton {
  background-color: #3a7bd5;
  /* main blue */
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: background-color 0.3s ease;
}

#lookupButton:hover {
  background-color: #23406e;
  /* darker blue on hover */
}

/* Loading state (button)
   small spinner shown on the right when loading
   ----------------------------------------------------
   Note: uses pseudo-element and keyframes
   ----------------------------------------------------
   increase right padding to make room for spinner when loading
   and keep text centered visually
   ---------------------------------------------------- */
/* Lookup button loading spinner */
#lookupButton.loading {
  position: relative;
  /* remove any transforms or animations that cause bounce */
  transform: none !important;
  padding-right: 2.2rem;
  /* space for spinner */
}

#lookupButton.loading::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  /* center vertically + set initial rotation */
  transform: translateY(-50%) rotate(0deg);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  will-change: transform;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Disabled / busy state */
#lookupButton:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

/* Forms */
.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.rsvp-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #23406e;
}

/* Static name field styling */
.static-field {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.static-field label {
  margin-bottom: 0;
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.static-name {
  display: inline;
  font-size: 1.5rem;
  font-weight: 800;
  color: #23406e;
  margin: 0;
  letter-spacing: -0.02em;
  background: transparent;
  padding: 0;
  border: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

@media (max-width: 560px) {
  .static-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .static-name {
    font-size: 1.4rem;
  }
}

.form-hint {
  margin: 0.25rem 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #475f80;
  /* muted blue-grey */
  line-height: 1.4;
  font-style: italic;
}

.form-hint .no-italic {
  font-style: normal;
  margin-left: 0.4rem;
}

/* Attendance pills styling */
/* =========================
   Attendance Pills Styling
   ========================= */
.attendance-pills-group {
  margin-bottom: 1.5rem;
}

.attendance-pills-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #23406e;
}

.attendance-pills {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  justify-content: center;
  /* centers the pills horizontally */
  flex-wrap: wrap;
  /* optional: wraps pills nicely on small screens */
}

/* Cleaned-up Attendance Pills Styling */
.rsvp-form .attendance-pill {
  background: transparent;
  /* Default unselected: outline button */
  color: #23406e;
  border: 2px solid #9db6df;
  border-radius: 999px;
  font-size: 1rem;
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 600;
  padding: 0.55em 1.2em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s;
  outline: none;
  box-shadow: 0 1px 4px rgba(35, 64, 110, 0.06);
  min-width: 300px;
  max-width: 300px;
}

.rsvp-form .attendance-pill:hover:not(.selected),
.rsvp-form .attendance-pill:focus-visible:not(.selected) {
  background: #eef5ff;
  border-color: #3a7bd5;
  color: #123054;
  box-shadow: 0 6px 16px rgba(58, 123, 213, 0.2);
  transform: translateY(-2px);
}

.rsvp-form .attendance-pill:focus {
  outline: 3px solid #3a7bd5;
  outline-offset: 2px;
  z-index: 1;
}

.rsvp-form .attendance-pill.selected {
  background: #23406e;
  /* Selected: deep blue */
  color: #fff;
  border-color: #23406e;
  box-shadow: 0 10px 22px rgba(35, 64, 110, 0.28);
  transform: none;
}

.rsvp-form .attendance-pill.selected:hover,
.rsvp-form .attendance-pill.selected:focus-visible {
  background: #1b355f;
  border-color: #1b355f;
  color: #fff;
}

#rsvpSubmitButton:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  color: #fff;
}

#rsvpSubmitButton {
  display: block;
  width: 100%;
  max-width: 200px;
  /* optional limit */
  margin: 1.5rem auto 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  box-shadow: none;
}

/* Loading spinner for RSVP Submit button */
#rsvpSubmitButton.loading {
  position: relative;
  padding-right: 2.2rem;
  /* space for spinner */
}

#rsvpSubmitButton.loading::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  will-change: transform;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #cbd6ea;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Quicksand', Arial, sans-serif;
  margin-top: 0.3rem;
  box-sizing: border-box;
  transition: all 0.25s ease;
  background-color: #f9fbfd;
  color: #23406e;
}

.rsvp-form select {
  appearance: none;
  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='%233a7bd5' 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 0.7rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.rsvp-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* Menu Options List (Bullet points for meal descriptions) */
.menu-options {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1rem;
  display: grid;
  gap: 0.5rem;
}

.menu-options li {
  background: #f9fbfd;
  border-left: 4px solid #3a7bd5;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
  box-shadow: none;
}

.dietary-note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 400;
  font-style: italic;
  color: #8a97ad;
  line-height: 1.35;
}

/* Add spacing between meal course sections */
#attendanceFields h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  color: #23406e;
  font-size: 1.15rem;
}

.rsvp-form input:focus,
.rsvp-form select:focus {
  border-color: #3a7bd5;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
  outline: none;
}

/* RSVP Submit Button - visually distinct from attendance pills */
.rsvp-form button {
  background-color: #3a7bd5;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 0.7rem;
  transition: background-color 0.3s ease, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(58, 123, 213, 0.13);
}

.rsvp-form button:hover {
  background-color: #23406e;
  /* deep blue on hover */
  box-shadow: 0 6px 18px rgba(58, 123, 213, 0.17);
}

/* Inline field errors */
.field-error {
  color: #b42318;
  /* red */
  font-size: 0.9rem;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.field-error[hidden] {
  display: none;
}

/* Unified error styling */
.field-error,
.error-message {
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.2rem;
  margin-bottom: 0rem
}

#formError {
  display: block;
  width: 100%;
  margin: 0.75rem auto 0;
  text-align: center;
}

/* If you toggle visibility */
.error-message.hidden {
  display: none;
}

.form-divider {
  margin: 2rem 0 1.5rem;
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(182, 198, 227, 0.8),
      transparent);
}

.optional {
  font-style: italic;
  color: #6b7280;
  /* muted grey */
  margin-left: 2px;
}

.schedule-section a {
  color: #3a7bd5;
}

.schedule-section a:hover,
.schedule-section a:focus {
  color: #23406e;
}

/* Schedule timeline container */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 60px;
  /* space for icons on desktop */
}

.timeline::before {
  content: '';
  position: absolute;
  left: 25px;
  /* align with center of icon */
  top: 2rem;
  bottom: auto;
  height: calc(100% - 4rem);
  width: 4px;
  background: #3a7bd5;
  border-radius: 2px;
}

/* Hide timeline line when there is only one timeline item */
.timeline:has(> .timeline-item:only-child)::before {
  display: none;
}

/* Individual timeline item */
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

/* Icon circle */
.timeline-icon {
  position: absolute;
  left: -53px;
  /* adjust so it's centered on the line */
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #ffffff;
  color: #fff;
  border-radius: 50%;
  border: 3px solid #3a7bd5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 1;
}

/* Remove line segment above the first timeline icon */
.timeline-item:first-child::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 0;
  width: 6px;
  height: calc(50% - 20px);
  background: #fff;
}

@media (min-width: 768px) {
  .timeline::before {
    display: none;
  }

  .timeline-item::after {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    width: 4px;
    height: calc(100% + 2rem);
    background: #3a7bd5;
    border-radius: 2px;
    z-index: 0;
  }

  .timeline-item:last-child::after {
    display: none;
  }

  .timeline-item:first-child::before {
    display: none;
  }
}

/* Content box */
.timeline-content {
  background: #f4f8fb;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #b6c6e3;
}

.timeline-content p {
  margin: 0.3rem 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 0.5rem 1rem;
  font-style: italic;
  background-color: #e3ecf7;
  color: #23406e;
  font-size: 1.1rem;
}

/* Logo uses Birthstone Bounce */
.logo,
.welcome-section .subtitle {
  font-family: 'Birthstone Bounce', cursive;
  font-weight: 500;
  letter-spacing: 2px;
}

h2,
h3 {
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: normal;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* H4–H6 use Quicksand */
h4,
h5,
h6 {
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 500;
  /* or 400 if you want lighter weight */
  letter-spacing: normal;
  /* optional, adjust spacing */
}

/* Desktop: show navbar links and hide hamburger */
@media (min-width: 768px) {
  .navbar ul {
    display: flex !important;
    position: static;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: none;
    box-shadow: none;
    border: none;
    width: 100%;
    padding: 0;
    gap: 1.25rem;
    transform: none;
    /* disable side-drawer transform */
    top: auto;
    right: auto;
    bottom: auto;
  }

  .navbar ul li {
    padding: 0;
    width: auto;
    text-align: center;
  }

  .navbar ul li a {
    padding: 0.5rem 0.75rem;
    border-bottom: none;
  }

  .navbar ul li:last-child a {
    border-bottom: none;
  }

  .hamburger {
    display: none;
  }

  header .container {
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    margin-top: 0.5rem;
  }
}

/* ============================
   Photo Grid (Story Page)
   ============================ */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.photo-item {
  position: relative;
  margin: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f8fb;
}

.photo-item::after {
  content: '+';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 1px;
  color: #fff;
  background: rgba(35, 64, 110, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.photo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(35, 64, 110, 0.15);
}

.photo-item:hover::after {
  background: rgba(35, 64, 110, 0.9);
}

.photo-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: blur(12px);
  transition: filter 0.4s ease;
}

.photo-item img.loaded {
  filter: blur(0);
}

.photo-item figcaption {
  position: relative;
  padding: 0.75rem;
  font-size: 0.9rem;
  color: #23406e;
  text-align: center;
  font-style: italic;
}

@media (min-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================
   Carousel Modal
   ============================ */

.carousel-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.carousel-modal.active {
  display: flex;
}

.carousel-content {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
  position: relative;
}

.carousel-content img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.carousel-caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 1rem;
  font-style: italic;
}

.carousel-close,
.carousel-prev,
.carousel-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #23406e;
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  font-weight: 300;
  line-height: 1;
  z-index: 10;
}

.carousel-close:hover,
.carousel-prev:hover,
.carousel-next:hover {
  background: #fff;
}

.carousel-close {
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
}

.carousel-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 767px) {

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .carousel-close {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .carousel-caption {
    font-size: 0.9rem;
  }
}

/* ============================
   Fun Facts Section
   ============================ */

/* Responsive Fun Facts grid: 1 column on mobile, 3 columns (3x2) on desktop */
.fun-facts-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .fun-facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fun-facts-card {
  perspective: 1000px;
  cursor: pointer;
  background: none;
  padding: 1rem 1rem 0.5rem;
  border-radius: 10px;
  transition: background 0.3s ease;
  position: relative;
}

.fun-facts-card::after {
  content: "+";
  position: absolute;
  top: calc(1rem + 35px);
  right: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: #ffffff;
  color: #23406e;
  border: 1px solid #d3deee;
  border-radius: 999px;
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(35, 64, 110, 0.12);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  transform: translateY(-50%);
}

.fun-facts-card:hover::after,
.fun-facts-card:active::after {
  opacity: 1;
  transform: translateY(calc(-50% - 1px));
}

.fun-facts-card.flipped::after {
  opacity: 0;
}

.fun-facts-card-inner {
  position: relative;
  width: 100%;
  height: 70px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.fun-facts-card.flipped .fun-facts-card-inner {
  transform: rotateY(180deg);
}

.fun-facts-question,
.fun-facts-answer {
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 70px;
  border: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #23406e;
  border-radius: 10px;
  padding: 0 0.75rem;
  box-sizing: border-box;
  box-shadow: 0 6px 16px rgba(35, 64, 110, 0.12);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.fun-facts-card:hover .fun-facts-question,
.fun-facts-card:hover .fun-facts-answer,
.fun-facts-card:active .fun-facts-question,
.fun-facts-card:active .fun-facts-answer {
  box-shadow: 0 10px 20px rgba(35, 64, 110, 0.18);
  filter: brightness(1.02);
}

.fun-facts-question {
  background: #e3ecf7;
  position: absolute;
  width: 100%;
  height: 100%;
}

.fun-facts-answer {
  background: #3a7bd5;
  color: white;
  transform: rotateY(180deg);
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Story List */
.story-list {
  list-style: none;
  padding: 0;
  text-align: center;
}

.story-list li {
  margin: 1rem 0;
}

.story-list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: #3a7bd5;
}

.story-list a:hover {
  color: #23406e;
}

/* FAQ / Logistics Section */
.map-embed {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0 1rem;
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 12px;
}

/* Individual FAQ item */
.logistics-option {
  margin-bottom: 1rem;
}

.logistics-option h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #23406e;
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.logistics-option p {
  font-size: 1rem;
  color: #23406e;
  margin: 0;
  line-height: 1.6;
}

.parking-option p+p {
  margin-top: 0.9rem;
}

.houses-gate {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.25rem;
  background: #f6f9fe;
  border: 1px solid #dfe8f6;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(35, 64, 110, 0.08);
}

.houses-intro {
  margin: 0 0 0.8rem;
  color: #2f4d7a;
}

.houses-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  width: 100%;
  max-width: none;
  margin: 0;
  justify-items: stretch;
}

.houses-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.houses-form input {
  padding: 0.65rem 0.85rem;
  border: 1px solid #d7e2f4;
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
  width: 100%;
}

.houses-form button {
  background-color: #3a7bd5;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  margin-top: 0.45rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(58, 123, 213, 0.25);
  width: fit-content;
  justify-self: center;
}

.houses-form button:hover,
.houses-form button:focus {
  background-color: #2a5fa8;
  box-shadow: 0 4px 12px rgba(58, 123, 213, 0.35);
}

.houses-form button.loading {
  position: relative;
  padding-right: 2.2rem;
}

.houses-form button.loading::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  will-change: transform;
}

.houses-error {
  display: none;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
}

.houses-status {
  display: none;
  color: #2f4d7a;
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
}

.houses-gate-accordion {
  margin: 1rem 0 0.5rem;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.houses-gate-accordion summary {
  cursor: pointer;
  font-weight: 700;
  color: #3a7bd5;
  padding: 0.2rem 0;
  list-style: none;
}

.houses-gate-accordion summary:hover,
.houses-gate-accordion summary:focus {
  color: #23406e;
}

.houses-gate-accordion summary::-webkit-details-marker {
  display: none;
}

.houses-gate-accordion summary::after {
  content: "+";
  font-weight: 700;
  color: #3a7bd5;
  margin-left: 0.25rem;
}

.houses-gate-accordion[open] summary::after {
  content: "–";
}

.houses-details {
  margin: 0.5rem 0 0.75rem;
}

.houses-note {
  margin: 0 0 0.75rem;
  color: #2f4d7a;
}

.houses-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 0 0 0.9rem;
}

.houses-link {
  color: #3a7bd5;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.houses-link:hover,
.houses-link:focus {
  color: #23406e;
}

/* House cards with images */
.house-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 1 300px;
  min-width: 200px;
  max-width: 300px;
}

.house-card:hover,
.house-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.house-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.house-name {
  padding: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  width: 100%;
}

.house-address-inline {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
}

.house-address-note-inline {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  font-style: italic;
}

.house-link-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
}

/* Salt House styling - soft, warm tones */
.salt-house-card {
  background: linear-gradient(to bottom, transparent 200px, #f9f3e8 200px);
}

.salt-house-card .house-name {
  color: #8b6f47;
  background: #f9f3e8;
}

.salt-house-card:hover .house-name,
.salt-house-card:focus .house-name {
  color: #6b5437;
}

/* Brook House styling - cool, fresh tones */
.brook-house-card {
  background: linear-gradient(to bottom, transparent 200px, #e8f4f8 200px);
}

.brook-house-card .house-name {
  color: #3a7bd5;
  background: #e8f4f8;
}

.brook-house-card:hover .house-name,
.brook-house-card:focus .house-name {
  color: #23406e;
}

@media (max-width: 600px) {
  .houses-links {
    flex-direction: column;
    gap: 1rem;
  }

  .house-card {
    max-width: 100%;
  }
}


.houses-content {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.4rem;
}

.houses-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #23406e;
}

.houses-item p {
  margin: 0;
  color: #2f4d7a;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .houses-inputs {
    grid-template-columns: 1fr;
  }
}

.berkeley-list {
  padding-left: 1.2rem;
  margin: 0.75rem 0 1.25rem;
}

.berkeley-list li {
  margin-bottom: 0.75rem;
}

.taxi-list {
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}

.taxi-list li {
  margin-bottom: 0.5rem;
}

/* Countdown Timer Styling */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-family: 'Quicksand', sans-serif;
  color: #ffffff;
  text-align: center;
  z-index: 1;
  position: relative;
}

.countdown .time-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown .time-segment span {
  display: block;
}

.countdown #days,
.countdown #hours,
.countdown #minutes,
.countdown #seconds {
  font-size: 3rem;
  font-weight: 700;
}

.countdown .label {
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(35, 64, 110, 0.3);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  padding: 1.5em;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  box-shadow: 0 8px 24px rgba(35, 64, 110, 0.15);
  animation: slideUp 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: #23406e;
  background: transparent;
  border: none;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 6px;
}

.close-modal:hover,
.close-modal:focus {
  color: #2a5fa8;
  background-color: rgba(58, 123, 213, 0.1);
  outline: none;
}

.modal-info-box {
  margin-top: 1.2em;
  text-align: left;
  background-color: #f9fafb;
  padding: 1.2em;
  border-radius: 8px;
  border: 1px solid #e6eef9;
}

.modal-info-box-title {
  margin-top: 0;
  font-weight: 600;
  text-align: center;
}

.modal-section {
  margin-top: 1.2em;
  text-align: center;
  background-color: #f9fafb;
  padding: 1.2em;
  border-radius: 8px;
  border: 1px solid #e6eef9;
}

.modal-section-label {
  margin: 0 0 0.8em 0;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: stretch;
}

.modal-button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background-color: #3a7bd5;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.modal-button:hover,
.modal-button:focus {
  background-color: #2a5fa8;
  box-shadow: 0 4px 12px rgba(58, 123, 213, 0.35);
  outline: none;
}

.modal-small-text {
  margin-bottom: 0;
  font-size: 0.9em;
  color: #666;
}

.modal-closing-text {
  margin-top: 1.5em;
  margin-bottom: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ============================
   Mobile Styles (max-width: 767px)
   ============================ */

@media (max-width: 767px) {

  /* Modal scrollable on small mobile screens */
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Modal actions stack vertically on mobile */
  .modal-actions {
    flex-direction: column;
  }

  .modal-button {
    width: 100%;
    text-align: center;
  }

  /* Header: logo and hamburger */
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo-container {
    flex-direction: column;
    /* stack logo above subtitle */
    align-items: center;
    /* center horizontally */
    text-align: center;
    /* center text inside container */
    flex: 1;
    /* allow container to expand */
    margin-left: 2.25rem;
  }

  .logo {
    font-size: 2rem;
    /* increase font size for mobile */
    margin: 0.1rem 0 0.25rem 0;
    /* spacing between logo and subtitle */
  }

  .logo-subtitle {
    font-size: 1rem;
    /* slightly bigger subtitle */
    margin: 0;
  }

  /* Hamburger menu stays on the right */
  .hamburger {
    order: 2;
  }

  .schedule-section,
  .logistics-section,
  .story-section,
  .fun-facts-section {
    margin: 1rem auto;
    padding: 1rem 1rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  /* RSVP page: match other section cards on mobile */
  .content-box {
    margin: 1rem 1rem;
    padding: 1rem 1rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(58, 123, 213, 0.08);
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 18px;
    top: 5rem;
    height: calc(100% - 6rem);
    bottom: auto;
  }

  .timeline-item {
    margin-left: 0;
    padding-left: 50px;
    /* space for icon above content */
    position: relative;
  }

  .timeline-item:first-child::before {
    left: 17px;
    top: 0;
    width: 6px;
    height: calc(50% - 20px);
  }

  .timeline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .timeline-content {
    margin-top: 1.5rem;
  }
}