/* ========================================================
   10. MODAL DIALOGS (RSVP & TOAST NOTIFICATION)
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 8px;
  }
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fffaf3;
  border-radius: 20px;
  width: min(460px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  position: relative;
  border: 1px solid var(--border-gold);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(81, 20, 25, 0.1);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--red-primary);
  text-align: center;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #55443c;
  text-align: center;
  margin-bottom: 22px;
}

/* Radio choices in RSVP */
.rsvp-choices {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.rsvp-choices.rsvp-choices-2cols,
.rsvp-choices-2cols {
  grid-template-columns: 1fr 1fr;
}

.rsvp-choices-2cols .rsvp-radio-label {
  justify-content: center;
  padding: 12px 10px;
}

.rsvp-radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: #ffffff;
  border: 1.5px solid rgba(81, 20, 25, 0.2);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.02rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rsvp-radio-label:has(input:checked) {
  border-color: var(--red-primary);
  background: rgba(81, 20, 25, 0.06);
  font-weight: 600;
  color: var(--red-primary);
}

.rsvp-radio-label input {
  accent-color: var(--red-primary);
  width: 18px;
  height: 18px;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--red-primary, #511419);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-sans);
  text-align: center;
  white-space: nowrap;
  width: max-content;
  max-width: min(90%, 420px);
  line-height: 1.3;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========================================================
   11. FLOATING LANGUAGE SWITCHER (DROPDOWN)
   ======================================================== */
.floating-lang {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1001;
  user-select: none;
}

.lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 160, 89, 0.65);
  border-radius: 999px;
  padding: 7px 10px 7px 12px;
  font-family: var(--font-body), "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6d4248;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(45, 10, 15, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  min-width: 64px;
  justify-content: center;
}

.lang-trigger-btn:hover {
  background: rgba(255, 252, 247, 0.98);
  border-color: rgba(197, 160, 89, 0.9);
  color: var(--red-primary);
  box-shadow: 0 6px 20px rgba(45, 10, 15, 0.25);
  transform: translateY(-1px);
}

.lang-trigger-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.floating-lang.is-open .lang-trigger-chevron {
  transform: rotate(180deg);
}

.floating-lang.is-open .lang-trigger-btn {
  background: rgba(255, 252, 247, 0.98);
  color: var(--red-primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: rgba(255, 252, 247, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 160, 89, 0.65);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(45, 10, 15, 0.2);
}

.lang-dropdown[hidden] {
  display: none;
}

.lang-btn {
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--font-body), "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: #6d4248;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover {
  color: var(--red-primary);
  background: rgba(122, 29, 37, 0.08);
}

.lang-btn.active {
  background: linear-gradient(135deg, #7a1d25 0%, #511419 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(81, 20, 25, 0.35);
}

@media (max-width: 480px) {
  .floating-lang {
    top: 14px;
    right: 14px;
  }
  .lang-trigger-btn {
    font-size: 0.68rem;
    padding: 6px 10px 6px 12px;
  }
  .lang-btn {
    font-size: 0.7rem;
    padding: 7px 12px;
  }
}

/* ========================================================
   12. DRESS CODE COMPONENT
   ======================================================== */
.dresscode-card {
  background: linear-gradient(180deg, #fffcf8 0%, #f8f3eb 100%);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(45, 10, 15, 0.08);
  position: relative;
  overflow: hidden;
}

.dresscode-card .card-heading {
  color: var(--red-primary);
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: .08em;
  margin-bottom: 2px;
}

.dresscode-icon-wrap {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(81, 20, 25, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
}

.dresscode-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: 4px;
}

.dresscode-note {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #5c4347;
  max-width: 440px;
  margin: 14px auto 20px;
}

.dresscode-palettes {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(8px, 3vw, 24px);
  margin-top: 10px;
  width: 100%;
}

.dresscode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 80px;
  min-width: 0;
  transition: transform 0.25s ease;
}

.dresscode-item:hover {
  transform: translateY(-3px);
}

.dresscode-swatch {
  width: clamp(40px, 11vw, 52px);
  height: clamp(40px, 11vw, 52px);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15), inset 0 0 0 2px rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(197, 160, 89, 0.35);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.dresscode-item:hover .dresscode-swatch {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.dresscode-name {
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
  font-weight: 600;
  color: #3b2227;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .dresscode-card {
    padding: 26px 14px;
  }
  .dresscode-palettes {
    gap: 6px;
  }
  .dresscode-name {
    font-size: 0.72rem;
  }
}

/* ========================================================
   12. NOT FOUND / ERROR SCREEN (THIỆP KHÔNG TỒN TẠI)
   ======================================================== */
.not-found-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 30%, #511419 0%, #2b0b0e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.not-found-card {
  background: #fffaf3;
  border: 1px solid var(--border-gold, #d4af37);
  border-radius: 24px;
  padding: 42px 30px;
  text-align: center;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: fadeInModal 0.4s ease forwards;
}

.not-found-icon {
  font-size: 3.4rem;
  margin-bottom: 16px;
  line-height: 1;
}

.not-found-title {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--red-primary, #511419);
  margin-bottom: 14px;
}

.not-found-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #55443c;
  margin: 0;
}


