.invitation { position: relative; width: min(100%, 900px); min-height: 100vh; margin: 0 auto; overflow: hidden; opacity: 0; background: linear-gradient(100deg, #e7f5ff 0%, #f5fbff 48%, #deeffc 100%); box-shadow: 0 0 45px rgba(64, 99, 133, .16); transition: opacity .75s cubic-bezier(0.2, 0.8, 0.25, 1); }
.invitation.is-visible { opacity: 1; }
.hero { position: relative; min-height: 550px; padding-top: 18px; text-align: center; overflow: hidden; }
.hero__flower { position: absolute; z-index: 0; width: 145px; left: -24px; top: -28px; transform: rotate(-3deg); }
.hero__heartline { position: absolute; z-index: 0; width: 205px; height: 68px; object-fit: contain; right: -18px; top: 108px; }
.hero > *:not(.hero__flower, .hero__heartline) { position: relative; z-index: 1; }
.hero__title { margin: 2px 0 4px; font-size: 48px; line-height: 1.15; color: #1e598c; }
.hero__subtitle { margin: 6px 0 0; font-size: 31px; line-height: 1.15; color: #2e6fa8; }
.portrait-wrap { position: relative; width: 330px; height: 330px; margin: 14px auto 32px; border: 4px solid rgba(113,169,215,.45); border-radius: 50%; background: white; box-shadow: inset 0 0 0 7px rgba(255,255,255,.8), 0 10px 28px rgba(45, 89, 129, .16); }
.portrait { width: 100%; height: 100%; padding: 4px; object-fit: cover; object-position: 66% center; border-radius: 50%; }
.portrait-flower { position: absolute; width: 140px; right: -38px; bottom: -38px; transform: rotate(-21deg); }
.host-name { margin: 16px 0 6px; font-size: 44px; line-height: 1.25; color: #174f83; }
.class-pill { display: inline-flex; gap: 10px; align-items: center; margin: 6px auto 14px; padding: 6px 22px; border: 1.5px solid #9dc8ee; border-radius: 999px; background: rgba(255,255,255,.92); font: 600 14.5px/1 "Be Vietnam Pro", sans-serif; font-variant-numeric: lining-nums proportional-nums; color: #174a7d; box-shadow: 0 2px 8px rgba(45, 89, 129, .08); }
.class-pill span:first-child { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.class-pill i { font-style: normal; color: #5b9ed2; font-size: 12px; }
.intro { margin: 6px 0 8px; font: 500 16px/1.3 "Be Vietnam Pro", sans-serif; color: #1e5280; }
blockquote { position: relative; max-width: 560px; margin: 10px auto 16px; padding: 6px 26px; font: italic 500 14.5px/1.65 "Be Vietnam Pro", sans-serif; color: #1a4872; white-space: pre-line; }
blockquote::before, blockquote::after { position: absolute; color: #4a91cc; font: 700 36px/1 Georgia, serif; opacity: .9; }
blockquote::before { content: "“"; left: 0; top: -6px; }
blockquote::after { content: "”"; right: 0; bottom: -14px; }

.about { padding-top: 6px; text-align: center; }
.about-card {
  margin: 10px auto 0;
  max-width: 560px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.about-slider-wrap,
.about-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}
.about-carousel {
  position: relative;
  width: 100%;
  height: 380px;
  perspective: 1000px;
  overflow: visible;
  margin: 6px 0 16px;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  transition: height 0.35s ease;
}
.about-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: block;
}
.about-carousel__slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(235px, 58vw);
  height: 100%;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(33, 80, 122, 0.28);
  border: 3.5px solid #ffffff;
  background: #edf5fc;
  transition: transform 1.1s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.1s ease, filter 1.1s ease, width 0.35s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.about-slider-wrap.is-landscape .about-carousel {
  height: 260px;
}
.about-slider-wrap.is-landscape .about-carousel__slide {
  width: min(340px, 75vw);
}
.about-carousel__slide img,
.about-slide img,
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.about-slider__dots,
.about-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 10px;
}
.about-slider__dot,
.about-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(95, 159, 209, 0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.about-slider__dot.is-active,
.about-carousel__dot.is-active {
  width: 22px;
  background: #367eb7;
  box-shadow: 0 1px 5px rgba(45, 89, 129, 0.32);
}

/* ========================================================
   HIỆU ỨNG XUẤT HIỆN KHI MỚI LOAD & CUỘN TỚI (ENTRANCE ANIMATION)
   - Ảnh giữa: từ DƯỚI trượt lên trên
   - Ảnh trái: từ TRÁI trượt qua phải
   - Ảnh phải: từ PHẢI trượt qua trái
   ======================================================== */
.about-slider-wrap.is-unrevealed .about-carousel__slide {
  opacity: 0 !important;
  pointer-events: none;
  filter: blur(6px) !important;
}
.about-slider-wrap.is-unrevealed .about-carousel__slide[data-entrance="center"] {
  transform: translateX(-50%) translateY(160px) translateZ(0px) rotateY(0deg) scale(0.85) !important;
}
.about-slider-wrap.is-unrevealed .about-carousel__slide[data-entrance="left"] {
  transform: translateX(calc(-50% - 340px)) translateY(30px) translateZ(-100px) rotateY(55deg) scale(0.65) !important;
}
.about-slider-wrap.is-unrevealed .about-carousel__slide[data-entrance="right"] {
  transform: translateX(calc(-50% + 340px)) translateY(30px) translateZ(-100px) rotateY(-55deg) scale(0.65) !important;
}
.about-slider-wrap.is-unrevealed .about-carousel__slide[data-entrance="other"] {
  transform: translateX(-50%) translateZ(-260px) scale(0.4) !important;
}
.about-slider-wrap.is-unrevealed .about-slider__dots {
  opacity: 0;
  transform: translateY(22px);
}

/* Trong khi đang chạy hiệu ứng xuất hiện (Entering Animation) */
.about-slider-wrap.is-animating-entrance .about-carousel__slide[data-entrance="center"] {
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.05s, opacity 1.5s ease 0.05s, filter 1.5s ease 0.05s !important;
}
.about-slider-wrap.is-animating-entrance .about-carousel__slide[data-entrance="left"] {
  transition: transform 1.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, opacity 1.6s ease 0.2s, filter 1.6s ease 0.2s !important;
}
.about-slider-wrap.is-animating-entrance .about-carousel__slide[data-entrance="right"] {
  transition: transform 1.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, opacity 1.6s ease 0.2s, filter 1.6s ease 0.2s !important;
}
.about-slider-wrap.is-animating-entrance .about-slider__dots {
  transition: opacity 1.2s ease 0.45s, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.45s !important;
  opacity: 1;
  transform: translateY(0);
}
.about-content {
  width: 100%;
  max-width: 560px;
  text-align: left;
}
.about-text {
  margin: 0;
  font: italic 500 14px/1.7 "Be Vietnam Pro", sans-serif;
  color: #17446f;
  white-space: pre-line;
  text-align: justify;
}
.about-quote-box {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(124, 175, 216, 0.45);
  box-shadow: 0 4px 14px rgba(45, 89, 129, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.about-quote-box .quote-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #3176b0;
}
.about-quote {
  margin: 0;
  font: italic 500 13.5px/1.6 "Be Vietnam Pro", sans-serif;
  color: #144573;
  text-align: left;
  white-space: pre-line;
}

.details { padding-top: 10px; }
.info-card { display: grid; grid-template-columns: 64px 1fr; align-items: center; min-height: 72px; max-width: 560px; margin: 8px auto; padding: 8px 16px 8px 10px; border: 1px solid rgba(124,175,216,.4); border-radius: 12px; background: rgba(255,255,255,.85); box-shadow: 0 4px 10px rgba(45, 89, 129, .12); }
.info-card img { width: 55px; height: 55px; object-fit: contain; }
.info-card div { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.info-card small { font: 700 11px "Be Vietnam Pro", sans-serif; letter-spacing: .08em; color: #386f9d; }
.info-card strong { font: 700 16px/1.25 "Be Vietnam Pro", sans-serif; font-variant-numeric: lining-nums proportional-nums; color: #133f6b; margin-top: 2px; }
.info-card span { font: 500 13px/1.35 "Be Vietnam Pro", sans-serif; font-variant-numeric: lining-nums proportional-nums; margin-top: 2px; color: #265985; }
.info-card a { margin-top: 6px; padding: 5px 13px; border: 1px solid #5594cc; border-radius: 999px; color: #1f5b8e; text-decoration: none; font: 600 11.5px "Be Vietnam Pro", sans-serif; background: rgba(255,255,255,.7); }
.map-embed-wrap { width: 100%; max-width: 560px; height: 240px; margin: 10px auto 12px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(124,175,216,.45); background: rgba(255,255,255,.85); box-shadow: 0 4px 12px rgba(45, 89, 129, .12); }
.map-embed-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.details-actions { display: flex; justify-content: center; margin-top: 14px; }
.btn-rsvp-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 200px;
  max-width: 260px;
  margin: 0 auto;
  min-height: 42px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #3d80b7, #5998cb);
  box-shadow: 0 4px 14px rgba(33, 88, 135, .25);
  cursor: pointer;
  font: 600 13.5px "Be Vietnam Pro", sans-serif;
  transition: all .2s ease;
}
.btn-rsvp-confirm:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(33, 88, 135, .32);
}
.countdown-section { padding-top: 9px; text-align: center; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 560px; gap: 8px; margin: 10px auto 12px; }
.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(124, 175, 216, .4);
  box-shadow: 0 4px 10px rgba(45, 89, 129, .09);
  transition: transform .2s ease;
}
.countdown-box:hover { transform: translateY(-2px); }
.countdown-box strong { font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif; font-size: 28px; font-weight: 700; color: #174a7d; font-variant-numeric: lining-nums; line-height: 1; }
.countdown-box span { font: 600 11px/1.2 "Be Vietnam Pro", sans-serif; letter-spacing: .06em; color: #4377a2; margin-top: 5px; text-transform: uppercase; }
.countdown-note { margin: 6px 0 0; font: italic 500 13px/1.5 "Be Vietnam Pro", sans-serif; color: #2b618e; }
.dress-code { padding-top: 9px; text-align: center; }
.dress-code .section-divider { height: 23px; }
.palette {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12px 18px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.palette__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 52px;
  max-width: 88px;
  text-align: center;
}
.palette__swatch {
  display: block;
  width: 39px;
  height: 39px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(31, 76, 117, 0.22);
  transition: transform 0.2s ease;
}
.palette__item:hover .palette__swatch {
  transform: scale(1.08);
}
.palette__label {
  display: block;
  width: 100%;
  color: #225a8a;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.timeline { position: relative; min-height: 330px; padding-top: 10px; text-align: center; }
.timeline__list {
  position: relative;
  width: max-content;
  max-width: calc(100% - 30px);
  margin: 18px auto 0;
  padding: 0 0 0 28px;
}
.timeline__list::before { content: ""; position: absolute; top: 6px; bottom: 12px; left: 4px; border-left: 1px solid #347cbb; }
.timeline-row { position: relative; display: grid; grid-template-columns: 62px auto; column-gap: 14px; align-items: center; min-height: 48px; text-align: left; }
.timeline-row::before { content: ""; position: absolute; left: -28px; width: 7px; height: 7px; border: 1.5px solid #387db9; border-radius: 50%; background: #eff8ff; }
.timeline-row time { padding: 6px 8px; border-radius: 999px; background: rgba(188, 221, 246, 0.75); font: 700 12px "Be Vietnam Pro", sans-serif; text-align: center; color: #164673; }
.timeline-row strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; color: #15436f; white-space: nowrap; }
.timeline__note { position: absolute; right: 6px; top: 95px; transform: rotate(-11deg); text-align: center; font: 22px/1.15 "Great Vibes", cursive; color: #265e90; pointer-events: none; opacity: 0.85; }
.timeline__camera { position: absolute; width: 105px; right: -10px; bottom: 0; transform: rotate(5deg); pointer-events: none; opacity: 0.85; }
.rsvp { padding-top: 4px; text-align: center; }
.rsvp > p { margin: 4px 0 12px; font-size: 13.5px; font-weight: 500; color: #255d8f; }
.rsvp-form { max-width: 460px; margin: 0 auto; padding: 16px 20px 18px; border: 1px solid rgba(115,167,208,.3); border-radius: 12px; background: rgba(255,255,255,.85); box-shadow: 0 5px 16px rgba(38,80,119,.12); text-align: left; }
.rsvp-form label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: #1c4b75; }
.rsvp-form label b { color: #205c92; }
.rsvp-form input, .rsvp-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #abd2ef; border-radius: 6px; outline: none; color: #15406b; background: rgba(246,251,255,.9); font: 16px/1.4 "Be Vietnam Pro", sans-serif; resize: none; }
.rsvp-form input:focus, .rsvp-form textarea:focus { border-color: #5f9fd1; box-shadow: 0 0 0 2px rgba(95,159,209,.16); }
.rsvp-form input.is-invalid, .rsvp-form textarea.is-invalid,
.rsvp-form input.is-invalid:focus, .rsvp-form textarea.is-invalid:focus { border-color: #df4747; background: #fffafa; box-shadow: 0 0 0 2px rgba(223,71,71,.16); }
.rsvp-form-actions { display: flex; gap: 8px; align-items: stretch; margin-top: 4px; }
.btn-quick-wishes {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  border: 1px solid #abd2ef;
  border-radius: 6px;
  background: #eff7fe;
  color: #2b70ab;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-quick-wishes:hover {
  background: #dceeff;
  border-color: #5f9fd1;
  color: #174a7d;
  transform: translateY(-1px);
}
.rsvp-form-actions .btn-submit {
  flex: 1;
  padding: 11px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(90deg, #3d80b7, #5998cb);
  box-shadow: 0 4px 10px rgba(33,88,135,.28);
  cursor: pointer;
  font: 600 13px "Be Vietnam Pro", sans-serif;
  transition: filter .15s ease;
}
.rsvp-form-actions .btn-submit:hover { filter: brightness(1.05); }
.rsvp-form-actions .btn-submit span { margin-right: 8px; }

/* Wish Modal */
.wish-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.wish-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.wish-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 37, 60, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.wish-modal__content {
  position: relative;
  z-index: 2;
  width: min(100%, 400px);
  max-height: min(78vh, 580px);
  max-height: min(78dvh, 580px);
  margin: auto;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(15, 37, 60, .32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(.92);
  transition: transform .25s cubic-bezier(.2, .8, .25, 1);
}
.wish-modal.is-open .wish-modal__content {
  transform: scale(1);
}
.wish-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e7f1f9;
  background: #f8fcff;
}
.wish-modal__header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #174a7d;
}
.wish-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eaf3fb;
  color: #386f9d;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.wish-modal__close:hover { background: #d4e7f8; color: #15416d; }
.wish-modal__list {
  padding: 14px 16px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wish-modal__list::-webkit-scrollbar { width: 5px; height: 0px; }
.wish-suggest-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #dbebf8;
  border-radius: 10px;
  background: #fbfdff;
  color: #1e4f7a;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition: all .2s ease;
  text-align: left;
}
.wish-suggest-item:hover, .wish-suggest-item:active {
  background: #eff7fe;
  border-color: #6daadc;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(45, 89, 129, .1);
}
.wish-suggest-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #3b7bb5;
}

/* Attendance Modal */
.attendance-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.attendance-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.attendance-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 37, 60, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.attendance-modal__content {
  position: relative;
  z-index: 2;
  width: min(100%, 410px);
  max-height: min(88vh, 620px);
  max-height: min(88dvh, 620px);
  margin: auto;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(15, 37, 60, .32);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(.92);
  transition: transform .25s cubic-bezier(.2, .8, .25, 1);
}
.attendance-modal__content::-webkit-scrollbar { width: 5px; height: 0px; }
.attendance-modal.is-open .attendance-modal__content {
  transform: scale(1);
}
.attendance-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e7f1f9;
  background: #f8fcff;
}
.attendance-modal__header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #174a7d;
}
.attendance-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eaf3fb;
  color: #386f9d;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.attendance-modal__close:hover { background: #d4e7f8; color: #15416d; }
.attendance-form {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.attendance-form .form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 600 13px "Be Vietnam Pro", sans-serif;
  color: #1a4a77;
  text-align: left;
}
.attendance-form .form-label span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.attendance-form .form-label b { color: #21639d; font-weight: 700; }
.attendance-form input[type="text"],
.attendance-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #abd2ef;
  border-radius: 8px;
  outline: none;
  color: #15406b;
  background: #f8fcff;
  font: 16px/1.4 "Be Vietnam Pro", sans-serif;
  resize: none;
}
.attendance-form input[type="text"]:focus,
.attendance-form textarea:focus {
  border-color: #5f9fd1;
  box-shadow: 0 0 0 2px rgba(95,159,209,.16);
}
.attendance-options-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.attendance-options-group .group-label {
  font: 600 13px "Be Vietnam Pro", sans-serif;
  color: #1a4a77;
}
.attendance-options {
  display: grid;
  gap: 8px;
}
.attendance-option {
  position: relative;
  cursor: pointer;
}
.attendance-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.attendance-option .option-card {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border: 1.5px solid #d4e7f8;
  border-radius: 10px;
  background: #f9fcff;
  transition: all .2s ease;
}
.attendance-option .option-card .icon {
  font-size: 16px;
  font-style: normal;
  margin-bottom: 2px;
}
.attendance-option .option-card strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #174a7d;
}
.attendance-option .option-card small {
  font-size: 11.5px;
  color: #5383ab;
  margin-top: 2px;
}
.attendance-option input[type="radio"]:checked + .option-card {
  border-color: #3b7bb5;
  background: #eef7ff;
  box-shadow: 0 3px 10px rgba(45, 89, 129, .12);
}
.btn-confirm-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #3d80b7, #5998cb);
  box-shadow: 0 4px 12px rgba(33, 88, 135, .28);
  cursor: pointer;
  font: 600 14px "Be Vietnam Pro", sans-serif;
  transition: filter .15s ease;
}
.btn-confirm-submit:hover { filter: brightness(1.06); }

.btn-confirm-submit.is-submitting {
  opacity: 0.88;
  cursor: wait;
  pointer-events: none;
  filter: none;
}

.btn-confirm-submit .rsvp-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: rsvp-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.attendance-modal.is-submitting {
  cursor: wait;
}

.attendance-modal.is-submitting .attendance-modal__close {
  opacity: 0.45;
  pointer-events: none;
}

@keyframes rsvp-spin {
  to { transform: rotate(360deg); }
}

.guestbook { padding-top: 24px; padding-bottom: 25px; text-align: center; }
.guestbook__list {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  max-height: clamp(260px, 45vh, 380px);
  padding: 2px 4px 2px 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #80acd0 rgba(214,233,247,.65);
}
.guestbook__list::-webkit-scrollbar { width: 5px; height: 0px; }
.guestbook__list::-webkit-scrollbar-track { border-radius: 999px; background: rgba(214,233,247,.45); }
.guestbook__list::-webkit-scrollbar-thumb { border-radius: 999px; background: #80acd0; }
.guest-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 2px 6px rgba(45, 89, 129, .08);
  text-align: left;
  overflow-x: hidden;
}
.guest-entry > div {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.guest-entry strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #15416d;
  overflow-wrap: break-word;
  word-break: break-word;
}
.guest-entry p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #23527c;
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: break-word;
}
.guest-entry time {
  align-self: start;
  font-size: 10.5px;
  color: #648fad;
  font-weight: 500;
  white-space: nowrap;
}
.section-divider--end { margin-top: 20px; margin-bottom: 8px; }
.thank-you { margin: 0; font-size: 23px; color: #1d598e; }
.footer-credit { margin: 10px 0 0; font: 500 11.5px/1.4 "Be Vietnam Pro", sans-serif; letter-spacing: .06em; color: #6892b5; text-align: center; }

.site-footer {
  display: block;
  text-align: center;
  width: 100%;
  padding: 8px 16px 28px;
  margin: 0 auto;
  background: transparent;
}

/* Floating Music Button */
.music-toggle {
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #387db9, #5fa0d3);
  box-shadow: 0 4px 14px rgba(27, 72, 112, 0.35);
  color: #ffffff;
  cursor: pointer;
  outline: none;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.music-toggle:hover {
  transform: scale(1.08);
}
.music-toggle:active {
  transform: scale(0.95);
}
.music-toggle.playing {
  animation: musicSpin 4.5s linear infinite;
}
.music-toggle.paused {
  opacity: 0.8;
  background: linear-gradient(135deg, #749bbd, #9ebfdc);
  animation-play-state: paused;
}
.music-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}
@keyframes musicSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 620px) {
  .music-toggle {
    bottom: 18px;
    right: 15px;
    width: 38px;
    height: 38px;
  }
  .music-toggle svg {
    width: 18px;
    height: 18px;
  }
}
