/* ========================================================
   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;
}

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

.modal-box {
  background: #fffaf3;
  border-radius: 20px;
  width: min(440px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 24px;
  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 XÁC NHẬN THAM DỰ (LUXURY RSVP MODAL)
   ======================================================== */
.rsvp-modal-card {
  background: #ffffff;
  background-image: radial-gradient(circle at 50% 0%, rgba(215, 232, 247, 0.45) 0%, rgba(255, 255, 255, 0.98) 75%);
  border: 1px solid rgba(185, 210, 235, 0.95);
  border-radius: 24px;
  max-width: 460px;
  width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(27, 56, 88, 0.28), 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rsvp-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(185, 210, 235, 0.7);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.22s ease;
}

.rsvp-modal-close:hover {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  transform: rotate(90deg) scale(1.06);
}

.rsvp-modal-header {
  padding: 24px 22px 14px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(234, 242, 250, 0.65) 0%, rgba(255, 255, 255, 0) 100%);
}

.rsvp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42, 82, 124, 0.08);
  border: 1px solid rgba(42, 82, 124, 0.18);
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rsvp-modal-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.rsvp-modal-subtitle {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.45;
  color: #536f8a;
  max-width: 350px;
  margin: 0 auto;
}

.rsvp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.rsvp-divider span:not(.heart-icon) {
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(194, 155, 71, 0.5), transparent);
}

.rsvp-divider .heart-icon {
  font-size: 0.7rem;
  color: var(--gold);
}

/* Form layout */
.rsvp-form {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.rsvp-form-group {
  display: flex;
  flex-direction: column;
}

.rsvp-form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--primary-navy);
  margin-bottom: 5px;
}

/* Input & Select & Textarea Wrappers */
.rsvp-input-wrapper,
.rsvp-select-wrapper,
.rsvp-textarea-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.rsvp-input-wrapper .input-icon,
.rsvp-select-wrapper .input-icon {
  position: absolute;
  left: 12px;
  color: #7ca5cb;
  pointer-events: none;
  transition: color 0.2s ease;
}

.rsvp-input,
.rsvp-select,
.rsvp-textarea {
  width: 100%;
  padding: 7px 10px 7px 34px;
  background: #f8fbfe;
  border: 1.5px solid #d5e5f5;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 16px; /* >=16px: Safari iOS không auto-zoom khi focus */
  color: var(--ink);
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.rsvp-input:focus,
.rsvp-select:focus,
.rsvp-textarea:focus {
  background: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(42, 82, 124, 0.12);
}

.rsvp-input-wrapper:focus-within .input-icon,
.rsvp-select-wrapper:focus-within .input-icon {
  color: var(--primary-blue);
}

/* Select specific */
.rsvp-select-wrapper {
  cursor: pointer;
}

.rsvp-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 34px;
}

.rsvp-select-wrapper .select-chevron {
  position: absolute;
  right: 12px;
  color: #7ca5cb;
  pointer-events: none;
}

/* Textarea specific */
.rsvp-textarea {
  padding: 8px 12px;
  min-height: 64px;
  resize: vertical;
  line-height: 1.45;
}
.rsvp-input::placeholder,
.rsvp-textarea::placeholder {
  font-size: 16px; /* >=16px anti-zoom iOS */
  color: #8da4be;
  opacity: 0.95;
}
.rsvp-select option {
  font-size: 16px;
}

/* Choice Cards (Attendance Radio Chips) */
.rsvp-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rsvp-choice-card {
  position: relative;
  cursor: pointer;
}

.rsvp-choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsvp-choice-card .choice-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: #f8fbfe;
  border: 1.5px solid #d5e5f5;
  border-radius: 10px;
  text-align: center;
  transition: all 0.2s ease;
}

.rsvp-choice-card .choice-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}

.rsvp-choice-card .choice-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: #496a8a;
  line-height: 1.25;
  white-space: nowrap;
}

.rsvp-choice-card input[type="radio"]:checked + .choice-box {
  background: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 3px 12px rgba(27, 56, 88, 0.12);
}

.rsvp-choice-card input[type="radio"]:checked + .choice-box .choice-text {
  color: var(--primary-navy);
  font-weight: 700;
}

.rsvp-choice-card:hover .choice-box {
  border-color: #a8caea;
  background: #ffffff;
}

/* Submit Button */
.rsvp-btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: #ffffff;
  border: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(27, 56, 88, 0.24);
  margin-top: 4px;
  transition: all 0.25s ease;
}

.rsvp-btn-submit:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #162f4a 100%);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(27, 56, 88, 0.32);
}

.rsvp-btn-submit:active {
  transform: translateY(0);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: linear-gradient(135deg, #8f78bc 0%, #60458f 100%);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 10px 28px rgba(87, 61, 137, 0.35), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}

.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, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(160, 190, 220, 0.7);
  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: #3b6082;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(45, 75, 105, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  min-width: 64px;
  justify-content: center;
}

.lang-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(120, 160, 200, 0.9);
  color: #1e4166;
  box-shadow: 0 6px 20px rgba(45, 75, 105, 0.2);
  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, 255, 255, 0.98);
  color: #1e4166;
}

.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, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(160, 190, 220, 0.7);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(45, 75, 105, 0.18);
}

.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: #3b6082;
  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: #1e4166;
  background: rgba(79, 119, 156, 0.1);
}

.lang-btn.active {
  background: linear-gradient(135deg, #4f779c 0%, #355d82 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(45, 80, 115, 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;
  }
}

/* ========================================================
   FLOATING MUSIC PLAYER (PASTEL BLUE & WHITE)
   ======================================================== */
.floating-music {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a4c9ee 0%, #70a2d2 100%);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 
    0 8px 22px rgba(80, 125, 175, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.floating-music:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #b5d5f5 0%, #7cb0e0 100%);
  box-shadow: 0 10px 26px rgba(80, 125, 175, 0.42);
}

.floating-music .music-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.floating-music .music-icon svg {
  width: 100%;
  height: 100%;
  fill: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(25, 55, 90, 0.2));
}

.floating-music.playing .music-icon {
  animation: spin-vinyl 4s linear infinite;
}

@keyframes spin-vinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .floating-music {
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .floating-music .music-icon {
    width: 18px;
    height: 18px;
  }
}

/* ========================================================
   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(--primary-navy);
  font-family: var(--font-title);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  margin-bottom: 2px;
}

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

.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 24px;
}

.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;
  }
}

