﻿:root {
  --emerald: #0f3d2e;
  --sapphire: #1f3a5c;
  --amethyst: #4b2c5e;
  --ruby: #7a1f2b;
  --stone: #f4f1ec;
  --warm-white: #fffdf9;
  --charcoal: #2b2b2b;
  --soft-gold: #c8b36a;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: Georgia, serif;
  background: var(--stone);
  color: var(--charcoal);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: #464feb;
}

tr th,
tr td {
  border: 1px solid #e6e6e6;
}

tr th {
  background-color: #f5f5f5;
}

main {
  width: 100%;
  background:
    linear-gradient(
      rgba(255, 253, 249, 0.8),
      rgba(255, 253, 249, 0.8)
    ),
    url('../images/Interior/shustoke_xmas.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  padding-bottom: 2rem;
}

.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  text-align: center;
}

.header-content,
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

header,
.site-footer {
  min-height: 55vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

header::after,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.10);
}

.header-content {
  position: relative;
  color: white;
  text-align: center;
  padding: 2rem 0.75rem;
}

/* .header-content-songs {
  position: relative;
  color: white;
  text-align: center;
  padding: 2rem 0.75rem;
}

.header-content-songs h1, .header-content-songs h2 {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: white;
} */

.header-content h1 {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.header-content h2,
.header-content h3,
.main-content h4,
.main-content h5,
.gallery-section h3 {
  margin: 0.75rem 0;
}

.header-content h2 {
  font-size: 1.3rem;
}

.header-content h3,
.main-content h4,
.main-content h5 {
  font-size: 1rem;
}

.header-content p,
.main-content p {
  font-size: 1rem;
  margin: 0.75rem auto;
  max-width: 40rem;
}

.decorations-header {
  min-height: 48vh;
}

.planning-header {
  min-height: 38vh;
}

.planning-header::after {
  background: rgba(255, 255, 255, 0.35);
}

.planning-header .page-kicker {
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center;
}

.planning-content {
  max-width: 1050px;
}

.planning-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 auto;
  padding: 0.75rem;
  background: var(--emerald);
}

.planning-nav a {
  color: white;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

.planning-nav a:hover,
.planning-nav a.active {
  background: var(--soft-gold);
  color: var(--charcoal) !important;
}

.planning-intro {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.planning-form {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  max-width: none;
  margin: 2rem 0;
  padding: 1.25rem;
  background: rgba(255, 253, 249, 0.9);
  border-top: 4px solid var(--emerald);
}

.planning-form label {
  margin: 0;
  text-align: left;
}

.planning-form button {
  width: auto;
  margin: 0;
}

.date-list {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calendar-year {
  display: grid;
  gap: 1rem;
}

.calendar-year-heading {
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--soft-gold);
  color: var(--emerald);
  font-size: 2rem;
  text-align: left;
}

.calendar-month {
  display: grid;
  gap: 0.75rem;
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.calendar-month-heading {
  margin: 0;
  color: var(--ruby);
  font-size: 1.25rem;
  text-align: left;
}

.calendar-month .date-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.date-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 112px;
  padding: 1.25rem;
  background: var(--warm-white);
  border-left: 4px solid var(--ruby);
  box-shadow: 0 6px 14px rgba(43, 43, 43, 0.08);
  text-align: left;
}

.date-card time {
  min-width: 4.5rem;
  color: var(--ruby);
  font-size: 1.1rem;
  font-weight: bold;
}

.date-card strong,
.date-card span { display: block; }
.date-card span { margin-top: 0.3rem; color: #68645e; font-size: 0.9rem; }
.date-card time span { margin-top: 0.2rem; color: #68645e; font-size: 0.85rem; font-weight: normal; }
.date-card button { width: auto; margin: 0 0 0 auto; padding: 0.35rem 0.55rem; background: transparent; color: var(--ruby); font-size: 1.2rem; }

.checklist-sections {
  display: grid;
  gap: 1.5rem;
}

.checklist-period {
  padding: 1.25rem;
  background: rgba(255, 253, 249, 0.9);
  border-top: 4px solid var(--emerald);
  text-align: left;
}

.checklist-period h2 { margin: 0 0 1rem; color: var(--emerald); }
.checklist-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem 1.5rem; }
.checklist-item { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; font-weight: normal; line-height: 1.35; }
.checklist-item input { flex: 0 0 auto; width: auto; margin: 0.15rem 0 0; accent-color: var(--emerald); }
.checklist-item input:checked + span { color: #777; text-decoration: line-through; }

@media (max-width: 760px) {
  .planning-form, .calendar-months, .calendar-month .date-list { grid-template-columns: 1fr; }
  .checklist-items { grid-template-columns: 1fr; }
  .budget-dashboard, .supplier-details, .supplier-form { grid-template-columns: 1fr; }
  .budget-payments-due, .budget-projected { grid-column: auto; }
  .payment-builder-row, .schedule-list-item { grid-template-columns: 1fr; }
  .supplier-form-wide { grid-column: auto; }
  .supplier-card-header { display: block; }
  .supplier-status { display: inline-block; margin-bottom: 1rem; }
}

.decorations-header::after {
  background: rgba(255, 255, 255, 0.35);
}

.page-kicker {
  margin: 0.5rem 0 !important;
  color: var(--soft-gold);
  font-family: Garamond, serif;
  font-size: 0.85rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scrapbook-content { max-width: 1050px; }
.intro-copy { font-size: 1.25rem !important; line-height: 1.6; }

.scrapbook-jump {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem auto 3rem;
}

.scrapbook-jump a {
  border-bottom: 2px solid var(--soft-gold);
  color: var(--emerald);
  padding: 0.4rem 0.8rem;
  text-decoration: none;
}

.scrapbook-section { margin: 4rem 0; scroll-margin-top: 4rem; }
.section-heading { max-width: 42rem; margin: 0 auto 2rem; text-align: center; }
.section-heading h2 { color: var(--emerald); font-size: 2rem; margin: 0.25rem 0; }

.scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.scrapbook-card {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  background: var(--warm-white);
  box-shadow: 0 8px 18px rgba(43, 43, 43, 0.1);
  transform: rotate(-1deg);
}

.scrapbook-card:nth-child(3n) { transform: rotate(1.2deg); }
.scrapbook-card:nth-child(4n) { transform: rotate(-0.4deg); }
.scrapbook-card-tall { grid-column: span 5; }
.scrapbook-card-wide { grid-column: span 7; }
.scrapbook-card-note { grid-column: span 4; }

.scrapbook-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
}

.scrapbook-card-tall img { aspect-ratio: 3 / 4; }
.scrapbook-card-wide img { aspect-ratio: 16 / 9; }
.scrapbook-card figcaption { display: grid; gap: 0.2rem; padding: 1rem; text-align: left; }
.scrapbook-card figcaption span, .link-card small { color: #68645e; font-size: 0.9rem; }

.note-paper { min-height: 215px; padding: 1.5rem 1.25rem; background: rgba(70, 146, 121, 0.65); text-align: left;}
.note-label { color: var(--ruby); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.note-paper h3 { color: var(--emerald); margin: 1.5rem 0 0.5rem; }

.link-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.link-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8rem; min-height: 100px; padding: 1rem; border-left: 4px solid var(--ruby); background: var(--warm-white); color: var(--charcoal); text-align: left; text-decoration: none; box-shadow: 0 6px 14px rgba(43, 43, 43, 0.08); }
.link-card:hover { border-left-color: var(--soft-gold); }
.link-card span:not(.link-number):not(.link-arrow) { display: grid; gap: 0.25rem; }
.link-number { color: var(--ruby); font-size: 1.2rem; font-weight: bold; }
.link-arrow { color: var(--emerald); font-size: 1.4rem; }

.supplier-content { max-width: 1100px; }
.budget-dashboard { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 3rem; text-align: left; }
.budget-dashboard > div { min-width: 0; min-height: 115px; padding: 1rem; background: var(--warm-white); border-top: 4px solid var(--emerald); box-shadow: 0 6px 14px rgba(43, 43, 43, 0.08); }
.budget-total { display: grid; align-content: center; gap: 0.4rem; color: var(--emerald); }
.budget-total strong { font-size: 1.35rem; white-space: nowrap; }
.budget-total small { color: #68645e; font-size: 0.9rem; }
.budget-total input { width: 100%; max-width: 5rem; margin: 0; padding: 0.15rem 0.3rem; border: 0; border-bottom: 1px solid var(--soft-gold); background: transparent; color: inherit; font: inherit; }
.budget-remaining { display: grid; align-content: center; gap: 0.4rem; }
.budget-remaining strong { color: var(--ruby); font-size: 1.1rem; }
.budget-remaining span, .budget-stat span { color: #68645e; font-size: 0.78rem; }
.budget-stat { display: grid; align-content: center; gap: 0.35rem; }
.budget-stat strong { color: var(--ruby); font-size: 1.35rem; }
.budget-stat:nth-last-child(2) strong { color: #b06b2c; }
.budget-stat:last-child strong { color: var(--emerald); }
.budget-projected strong { color: var(--amethyst); font-size: 1.35rem; white-space: nowrap; }
.budget-projected span { color: #68645e; }
.supplier-form-section { margin-bottom: 3rem; padding: 1.5rem; background: rgba(255, 253, 249, 0.75); border-top: 4px solid var(--emerald); }
.supplier-section-heading { margin-bottom: 1.5rem; }
.supplier-section-heading h2 { color: var(--emerald); }
.supplier-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; text-align: left; }
.supplier-form label { margin: 0; }
.supplier-form-wide { grid-column: 1 / -1; }
.supplier-form label small { display: block; margin-top: 0.25rem; color: #68645e; font-size: 0.8rem; font-weight: normal; }
.payment-builder-wrap { display: grid; gap: 0.75rem; }
.payment-builder-label { margin: 0; }
.payment-builder { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid rgba(15, 61, 46, 0.12); border-radius: 0.9rem; background: rgba(255, 255, 255, 0.68); }
.payment-builder-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.6fr) minmax(4.5rem, auto); gap: 0.75rem; align-items: end; }
.payment-builder-row label { display: grid; gap: 0.4rem; font-size: 0.85rem; }
.payment-builder-row label,
.payment-builder-row input { min-width: 0; }
.payment-builder-row span { color: var(--emerald); font-weight: 700; }
.payment-builder-row input { margin-top: 0; }
.payment-builder-row .secondary-button { margin: 0; width: auto; min-width: 80px; }
.payment-schedule-list { display: grid; gap: 0.5rem; }
.schedule-empty { margin: 0; color: #68645e; }
.schedule-list-item { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(100px, 0.8fr) minmax(140px, 1.6fr) auto; align-items: center; gap: 0.75rem; padding: 0.7rem 0.75rem; border: 1px solid rgba(15, 61, 46, 0.1); border-radius: 0.7rem; background: rgba(244, 241, 236, 0.6); }
.schedule-list-item strong { color: var(--emerald); }
.schedule-remove { min-width: 90px; }
.supplier-form-actions { display: flex; gap: 0.75rem; }
.secondary-button { background: var(--sapphire); }
.supplier-list { display: grid; gap: 1.5rem; }
.supplier-card { padding: 1.5rem 1.5rem 1.2rem; background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(15, 61, 46, 0.12); border-left: 5px solid var(--emerald); border-radius: 0.9rem; box-shadow: 0 10px 24px rgba(43, 43, 43, 0.07); text-align: left; }
.supplier-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(15, 61, 46, 0.14); }
.supplier-card .page-kicker { margin: 0 0 0.35rem !important; color: var(--emerald); font-size: 0.76rem !important; letter-spacing: 0.12em; }
.supplier-card-header h3 { margin: 0; color: var(--emerald); font-size: 1.6rem; }
.supplier-status { display: inline-flex; align-items: center; padding: 0.45rem 0.8rem; color: var(--charcoal); background: rgba(15, 61, 46, 0.06); border: 1px solid rgba(15, 61, 46, 0.12); border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.supplier-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem 1rem; margin: 1.2rem 0 1.25rem; }
.supplier-details p, .supplier-notes { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.supplier-details p { padding: 0.8rem 0.9rem; border: 1px solid rgba(15, 61, 46, 0.08); border-radius: 0.7rem; background: rgba(244, 241, 236, 0.55); }
.supplier-details strong, .supplier-payments > strong, .supplier-notes strong { display: block; margin-bottom: 0.25rem; color: var(--emerald); }
.supplier-payments { padding: 1rem; background: rgba(244, 241, 236, 0.72); border: 1px solid rgba(15, 61, 46, 0.08); border-radius: 0.8rem; }
.supplier-payments ul { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.supplier-payments li { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px dashed rgba(15, 61, 46, 0.14); }
.supplier-payments li:last-child { border-bottom: none; }
.supplier-payments label { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; width: 100%; margin: 0; font-weight: 500; }
.supplier-payments strong { display: inline; color: var(--charcoal); }
.payment-paid-toggle { width: 1rem; height: 1rem; margin: 0; accent-color: var(--emerald); }
.supplier-payments p { margin: 0.5rem 0 0; color: #68645e; }
.payment-paid { display: inline-block; padding: 0.18rem 0.5rem; border-radius: 999px; background: rgba(15, 61, 46, 0.08); color: var(--emerald); font-size: 0.75rem; font-weight: 700; }
.supplier-notes { margin-top: 1rem; padding: 1rem 1rem 0.9rem; border: 1px solid rgba(15, 61, 46, 0.08); border-radius: 0.8rem; background: rgba(248, 244, 238, 0.9); }
.supplier-card-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.supplier-card-actions button { width: auto; min-width: 120px; margin: 0; border-radius: 0.7rem; font-weight: 700; }
.empty-state { padding: 2rem; background: rgba(255, 253, 249, 0.7); color: #68645e; }

@media (max-width: 760px) {
  .main-content.planning-content {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .topnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topnav a,
  .nav-dropdown {
    min-width: 0;
  }

  .topnav a,
  .nav-dropdown summary {
    padding: 0.75rem 0.45rem;
    font-size: 0.85rem;
  }

  .nav-dropdown {
    grid-column: 1 / -1;
  }

  .nav-dropdown-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .nav-dropdown-menu a {
    justify-content: flex-start;
    padding: 0.65rem 0.8rem;
  }

  .budget-dashboard,
  .supplier-details,
  .supplier-form,
  .payment-builder-row,
  .schedule-list-item {
    grid-template-columns: 1fr;
  }

  .budget-dashboard > div {
    min-width: 0;
  }

  .supplier-form-section,
  .supplier-card {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .supplier-card-header {
    display: block;
  }

  .supplier-status {
    display: inline-flex;
    max-width: 100%;
    margin-top: 0.75rem;
    white-space: normal;
  }

  .supplier-card-header h3,
  .supplier-details p,
  .supplier-payments,
  .supplier-notes {
    overflow-wrap: anywhere;
  }

  .supplier-form-actions,
  .supplier-card-actions {
    flex-direction: column;
  }

  .supplier-form-actions button,
  .supplier-card-actions button,
  .payment-builder-row .secondary-button {
    width: 100%;
  }
}

.setup-section { border-top: 1px solid rgba(15, 61, 46, 0.2); padding-top: 3rem; }
.setup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.setup-card { padding: 1.5rem; background: var(--warm-white); border-top: 4px solid var(--emerald); text-align: left; }
.setup-number { color: var(--soft-gold); font-size: 1.5rem; font-weight: bold; }
.setup-card h3 { color: var(--emerald); margin: 0.5rem 0; }
.setup-card label { display: block; margin: 0.7rem 0 0; font-weight: normal; }
.setup-card input { width: auto; margin: 0 0.5rem 0 0; accent-color: var(--emerald); }
.scrapbook-note { max-width: 45rem; margin: 3rem auto 0 !important; padding: 1rem 1.25rem; border: 1px dashed var(--soft-gold); background: rgba(255, 253, 249, 0.7); }

.footer-content {
  position: relative;
  color: white;
  text-align: center;
  padding: 2rem 1.25rem;
}

.footer-content p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.topnav {
  background-color: #333;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 140px;
  min-width: 120px;
  padding: 0.85rem 1rem;
  color: #f2f2f2;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-family: Garamond, sans-serif;
  line-height: 1.2;
}

.topnav a:hover {
  color: #99ddff;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1 1 140px;
  min-width: 140px;
  color: #f2f2f2;
  font-family: Garamond, sans-serif;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  text-align: center;
  font-size: 1rem;
  line-height: 1.2;
}

.nav-dropdown summary::marker,
.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown[open] summary,
.nav-dropdown summary:hover {
  color: #99ddff;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1001;
  display: grid;
  min-width: 200px;
  padding: 0.35rem;
  background: #333;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.nav-dropdown-menu a {
  display: block;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  color: #f2f2f2;
  text-align: left;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #444;
  color: #99ddff;
}

.active {
  background-color: #333333;
  color: #f2f2f2 !important;
  border-radius: 0.25rem;
}

.divider {
  width: 4rem;
  height: 3px;
  margin: 1.5rem auto;
  background: linear-gradient(
    to right,
    var(--emerald),
    var(--sapphire),
    var(--amethyst),
    var(--ruby)
  );
}

.countdown-container {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.95);
}

.countdown-container h3 {
  color: var(--charcoal);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  flex: 1 1 100px;
}

.countdown-value {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--ruby);
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-top: 0.25rem;
  text-transform: uppercase;
}

.gallery-section {
  margin-top: 2rem;
}

.gallery-section h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.gallery-item img,
.gallery-item video,
iframe {
  width: 100%;
  max-width: 100%;
  display: block;
}

.gallery-item img,
.gallery-item video {
  object-fit: cover;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item video {
  height: auto;
}

/* ================= FEATURE OVERLAY ================= */

#featureOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 99999;

  opacity: 1;
  pointer-events: auto;

  transition: opacity 0.6s ease;
}

#featureOverlay img,
#featureOverlay video {
  opacity: 1 !important;

  max-width: 90vw;
  max-height: 90vh;

  border-radius: 20px;

  box-shadow:
    0 0 80px rgba(255,255,255,0.5);

  filter: brightness(1) !important;

  transform: none !important;
}


iframe {
  min-height: 360px;
  border: none;
}

form {
  max-width: 500px;
  margin: 2rem auto;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 1.2rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.35rem;
}

button {
  margin-top: 1.5rem;
  padding: 0.9rem;
  width: 100%;
  background: var(--emerald);
  color: white;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
}

button:hover,
button:focus {
  opacity: 0.95;
}

.guest-rsvp-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 42rem;
  margin: 1.5rem auto;
}

.guest-contact-section {
  max-width: 56rem;
  margin: 2.5rem auto;
  padding: 1.5rem;
  border-top: 4px solid var(--emerald);
  background: rgba(255, 253, 249, 0.85);
  text-align: center;
}

.guest-contact-section > p {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

#rsvpReceivedSection {
  max-width: 46rem;
  padding: 2rem;
  border-top-color: var(--ruby);
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.08);
}

#rsvpReceivedSection h2 {
  color: var(--emerald);
}

#rsvpReceivedSection #lastUpdatedText {
  width: fit-content;
  margin: 1.25rem auto 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--soft-gold);
  color: #68645e;
  font-size: 0.9rem;
}

#rsvpReceivedSection .guest-rsvp-actions {
  grid-template-columns: minmax(0, 1fr);
  max-width: 18rem;
  margin-top: 1.5rem;
}

#contactDetailsContainer {
  display: grid;
  gap: 1.25rem;
}

.guest-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(15, 61, 46, 0.18);
  background: var(--warm-white);
  text-align: left;
}

.guest-contact h3 {
  grid-column: 1 / -1;
  margin: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--soft-gold);
  color: var(--emerald);
}

.guest-contact label {
  margin: 0;
  color: var(--charcoal);
  font-weight: bold;
}

.guest-contact input {
  margin-top: 0.4rem;
  background: #fff;
}

.guest-dietary-group {
  margin-bottom: 1rem;
}

.guest-dietary-name {
  margin: 0 0 0.6rem;
  color: var(--emerald);
  font-size: 1.2rem;
  text-align: left;
}

.guest-dietary {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(15, 61, 46, 0.18);
  background: var(--warm-white);
  text-align: left;
}

.guest-dietary label {
  margin: 0;
}

.guest-dietary textarea {
  margin-top: 0;
}

.guest-review-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}

.guest-review-group {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid rgba(15, 61, 46, 0.12);
  border-left: 5px solid var(--emerald);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(43, 43, 43, 0.06);
}

.guest-review-group h3 {
  min-width: 0;
  margin: 0;
  color: var(--emerald);
  overflow-wrap: anywhere;
}

.review-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-edit-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 3.5rem;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 0.2rem;
  background: var(--emerald);
  font-size: 0.8rem;
  line-height: 1.2;
}

.review-edit-button:hover {
  background: var(--ruby);
  opacity: 1;
}

.guest-review-group p {
  margin: 0.4rem 0;
  overflow-wrap: anywhere;
  text-align: left;
}

#reviewSection .guest-rsvp-actions {
  grid-template-columns: minmax(0, 1fr);
  max-width: 18rem;
  margin-top: 1.5rem;
}

.child-rsvp + .child-rsvp {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--soft-gold);
}

.child-rsvp h3 {
  margin: 0;
  color: var(--emerald);
  text-align: left;
}

.guest-rsvp-name {
  max-width: 100%;
  margin: 1rem auto 1.5rem;
  color: var(--ruby);
  font-size: 1.7rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--soft-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3rem;
}

.guest-rsvp-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #d6ccad;
  border-left: 4px solid var(--soft-gold);
  background: var(--warm-white);
  color: var(--charcoal);
  font-weight: normal;
  text-align: left;
  cursor: pointer;
}

.guest-rsvp-option:hover,
.guest-rsvp-option:focus-within {
  border-color: var(--emerald);
}

.guest-rsvp-option input[type="radio"] {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  accent-color: var(--ruby);
}

.guest-rsvp-button {
  display: inline-block;
  width: auto;
  min-width: 12rem;
  margin: 1rem auto 0;
  padding: 0.85rem 1.5rem;
  border-radius: 0.2rem;
  background: var(--emerald);
  font: inherit;
  font-weight: bold;
}

.guest-rsvp-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 26rem;
  margin: 1rem auto 0;
}

.guest-rsvp-actions .guest-rsvp-button {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.guest-rsvp-button:hover {
  background: var(--ruby);
  opacity: 1;
}

.guest-rsvp-button:focus-visible {
  outline: 3px solid var(--soft-gold);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .guest-rsvp-options {
    grid-template-columns: 1fr;
  }

  .guest-contact-section {
    padding: 1rem;
  }

  .guest-contact {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .guest-review-container {
    grid-template-columns: 1fr;
  }

  .guest-rsvp-button {
    min-width: 0;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: min(90%, 700px);
  max-width: 700px;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #f1f1f1;
  font-size: 2.5rem;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 640px) {
  .main-content {
    padding: 3rem 2rem;
  }

  .header-content {
    padding: 3rem 1.5rem;
  }

  .divider {
    width: 6rem;
  }

  .countdown-value {
    font-size: 3rem;
  }
}

@media (min-width: 960px) {
  .header-content h1 {
    font-size: 3.2rem;
  }

  .header-content h2 {
    font-size: 1.6rem;
  }

  .topnav a {
    font-size: 1rem;
  }
}

@media (max-width: 639px) {
  .scrapbook-card, .scrapbook-card-tall, .scrapbook-card-wide, .scrapbook-card-note { grid-column: span 12; }
  .link-board, .setup-grid { grid-template-columns: 1fr; }
}
