@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* Terapkan ke elemen */
.opening-content {
    font-family: 'Montserrat', sans-serif;
}

.opening-content h1 {
    font-family: 'Playfair Display', serif;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* NON SCROLL DESKTOP */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Times New Roman", Times, serif;
  font-weight: 100;
}

h1, h2, h3, h4, p {
  font-family: "Times New Roman", Times, serif;
  font-weight: 100;
}

/* DESKTOP BACKGROUND */
.desktop-bg {
    position: fixed;
    inset: 0;
    /* Directory disesuaikan untuk Laravel */
    background: url("../../images/game/bg-desktop.jpg") center / cover no-repeat;
    filter: blur(6px);
    z-index: -1;
}

/* MOBILE FRAME */
.mobile-frame {
    width: 520px;
    height: 960px;
    margin: auto;
    background: #000;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

/* ================= OPENING ================= */
.opening-section {
    position: absolute;
    inset: 0;
    /* Directory disesuaikan untuk Laravel */
    background: url("../../images/game/backgroundutamagame.webp") center / cover no-repeat;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px 40px;
    text-align: center;
    color: #FCF5E5;
}

.opening-section.active {
    display: flex;
}

.opening-dear {
    font-size: 18px;
    letter-spacing: 1px;
    color: #FCF5E5;
}

.guest-name {
    color: #FCF5E5;
    font-weight: bold;
    text-transform: uppercase;
}

.opening-text {
    margin-top: 40px;
    font-size: 16px;
    color: #FCF5E5;
}

.couple-name {
    margin-top: 14px;
    font-size: 28px;
    color: #FCF5E5;
    line-height: 1.4;
}

/* ================= MOBILE MODE ================= */
@media (max-width: 768px) {
    .desktop-bg {
        display: none;
    }

    .mobile-frame {
        width: 100vw;
        height: 100vh;
        margin: 0;
        box-shadow: none;
    }
}

.btn-open-invitation {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 80px;
    padding: 14px 36px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Times New Roman', Times, serif;

    color: #fff;
    background: linear-gradient(135deg, #d965f7, #9b4dca);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 40px;

    cursor: pointer;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.25),
        inset 0 0 0 1px rgba(255,255,255,0.2);
}

/* Hover (desktop) */
.btn-open-invitation:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow:
        0 0 18px rgba(217, 101, 247, 0.9),
        0 12px 28px rgba(0,0,0,0.35);
}

/* Active (tap mobile) */
.btn-open-invitation:active {
    transform: translateX(-50%) scale(0.96);
}

/* Hilangkan outline jelek browser */
.btn-open-invitation:focus {
    outline: none;
}

/* Update Font & Style */
.opening-content {
    margin-top: 180px; 
    text-align: center;
    font-family: 'Playfair Display', serif;
    padding: 30px 24px;
    color: #F5E6CA; 
    text-shadow: 1px 1px 2px rgba(60, 42, 33, 0.8); 
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.opening-content p {
    font-size: 14px;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    color: #FCF5E5;
}

.opening-content .dear-line {
    font-size: 14px;
    margin-bottom: 2px;
}

.opening-content .guest-name {
    font-size: 22px;
    font-weight: 600;
    color: #FCF5E5;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.opening-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 26px; 
    font-weight: 700;
    line-height: 1.3;
    margin-top: 10px;
    color: #FCF5E5;
    font-weight: 700;
}

.opening-section,
.next-section {
    position: absolute;
    inset: 0;
    transition: opacity .8s ease, transform .8s ease;
}

.opening-section {
    opacity: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.opening-section.hide {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}


/* ICON CIRCLE (FA) */
.icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

.icon-circle i {
  font-size: 18px;
  color: #000;
}

/* HOVER EFFECT */
.icon-circle:hover {
  transform: scale(1.08);
}

/* MUSIC MUTED STATE */
.icon-music.muted i {
  color: #777;
}

/* TEXT HINT */
.interaction-hint {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #3f3e3e;
  opacity: 0.9;
  text-align: center;
  letter-spacing: 0.3px;
  z-index: 5;

  /* OUTLINE STYLE */
  padding: 4px 10px;
  border: 1px solid rgba(63, 62, 62, 0.35);
  border-radius: 999px;          /* pill shape */
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(2px);
}

.next-section {
  position: absolute;
  inset: 0;
  background-image: url("../../images/game/backgroundutamagame.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  z-index: 1;
  transition: opacity .8s ease;
}

.next-section.show {
  opacity: 1;
}


.icon-circle {
  position: absolute;
  top: 16px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  z-index: 5;
}

.icon-info {
  left: 16px;
}

.icon-music {
  right: 16px;
}

.info-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.info-modal.show {
  display: flex;
}

.info-box {
  width: 85%;
  max-height: 85%;
  background: #fff;
  border-radius: 16px;
  overflow: auto;
  position: relative;
}

.close-info {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.info-panel {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 30;
}

.info-panel.show {
  display: flex;
}

/* POPUP UTAMA */
.info-popup {
  width: 400px;          
  height: 620px;         
  background: #fff;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* HEADER FIX */
.info-header {
  flex-shrink: 0;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

.info-header button {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* BODY SCROLL */
.info-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 12px;
}

/* ITEM */
.info-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f1f1;
}

.info-item img {
  width: 44px;
}

.info-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.info-item p {
  font-size: 13px;
  color: #555;
}

/* EXTRA INFO */
.info-extra {
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.info-extra h4 {
  margin-top: 12px;
  font-size: 14px;
}

.info-extra small {
  display: block;
  margin-top: 14px;
  color: #999;
  text-align: center;
}

/* ICON FONT AWESOME */
.info-icon {
  font-size: 26px;
  color: #000;
  width: 44px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ITEM */
.info-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #f1f1f1;
}

.info-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.info-item p {
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
}

/* EXTRA INFO */
.info-extra {
  padding: 24px 18px 20px;
  font-size: 13.5px;
  line-height: 1.7;
}

/* CENTER BLOCK (Wedding song & Contact) */
.info-center-block {
  text-align: center;
  margin-bottom: 22px;
}

.info-center-block h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.info-center-block p {
  color: #444;
}

.info-note {
  font-size: 12px;
  color: #777;
}

/* FOOTER */
.info-extra small {
  display: block;
  margin-top: 26px;
  color: #999;
  text-align: center;
}

/* ================= ITEM DATES ================= */
.item-dates {
  position: absolute;
  top: 83%;
  left: 51%;
  transform: translate(-50%, -50%);
  width:120px;
  cursor: pointer;
  animation: pulseDates 2s ease-in-out infinite;
  z-index: 5;
  transition: filter .3s ease;
}

.item-dates:hover {
  filter: drop-shadow(0 0 14px #d965f7);
}



/* ANIMASI */
@keyframes pulseDates {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* ================= DATES POPUP ================= */
/* --- PopUp Core --- */
.dates-panel {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.dates-panel.show { display: flex; }

.dates-content {
    width: 90%;
    max-width: 400px;
    height: 80vh;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dates-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.dates-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #333;
    font-style: normal; /* Pastikan tidak italic */
}

.dates-header button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

/* BODY (SCROLLABLE) */
.dates-body {
    padding: 20px;
    overflow-y: auto;
}

/* SECTION */
.dates-section {
    margin-bottom: 24px;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-style: normal; /* Hapus Italic */
    font-weight: 700;
    color: #444;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wedding-date {
    font-size: 18px;
    font-weight: bold;
    color: #222;
}

/* --- Image Location (No Crop) --- */
.dates-img {
    width: 100%;
    height: auto; /* Agar tidak terpotong */
    object-fit: contain; /* Pastikan gambar utuh */
    border-radius: 12px;
    margin: 15px 0;
}

/* --- Countdown Grid --- */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.countdown-card {
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    padding: 12px 5px;
    border-radius: 12px;
}

.countdown-card span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #9b4dca;
}

.countdown-card small {
    font-size: 10px;
    text-transform: uppercase;
    color: #888;
    font-style: normal;
}

/* --- Venue Info --- */
.venue-name {
    font-weight: bold;
    font-size: 15px;
    margin-top: 5px;
}

.venue-address {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.venue-time {
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
    color: #444;
}

/* --- Button Premium (Adjusted Width) --- */
.btn-location-premium {
    display: inline-block;
    width: auto; /* Tidak menuhin lebar */
    min-width: 200px;
    padding: 12px 24px;
    margin-top: 10px;
    border: none;
    border-radius: 50px; /* Lebih rounded biar elegan */
    background: linear-gradient(135deg, #d965f7, #9b4dca);
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217, 101, 247, 0.3);
    transition: transform 0.2s ease;
}

.btn-location-premium:active {
    transform: scale(0.95);
}

/* --- Dress Code --- */
.dresscode-wrapper {
    display: flex;
    justify-content: space-around;
    background: #fafafa;
    padding: 20px 10px;
    border-radius: 18px;
    border: 1px solid #f0f0f0;
}

.dress-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.dress-palette {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dress-palette span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dress-note {
    font-size: 12px;
    color: #777;
    margin-top: 15px;
    line-height: 1.6;
    font-style: normal; /* Pastikan tidak italic */
}

.section-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

/* ================= ITEM GROOM BRIDE ================= */
.item-groombride {
  position: absolute;
  /* ATUR POSISI */
  top:57%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 160px;
  cursor: pointer;
  z-index: 5;
  animation: pulseGB 2s ease-in-out infinite;
  
}

.item-groombride:hover  {
  filter: drop-shadow(0 0 14px #d965f7);
}


@keyframes pulseGB {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* ================= PANEL ================= */
/* --- PopUp Core --- */
.groombride-panel {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.groombride-panel.show { display: flex; }

.groombride-content {
    width: 90%;
    max-width: 400px;
    height: 80vh;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.groombride-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.groombride-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #333;
    font-style: normal;
}

.groombride-header button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

/* BODY */
.groombride-body {
    padding: 20px;
    overflow-y: auto;
    text-align: center;
}

/* QUOTE SECTION */
.bible-quote {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.bible-quote p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    font-style: normal; /* No Italic */
}

.quote-author {
    display: block;
    margin-top: 8px;
    font-weight: bold;
    font-size: 12px;
    color: #9b4dca;
}

/* PERSON STYLE */
.person-frame {
    width: 50%;
    height: 50%;
    margin: 0 auto 15px;
    border-radius: 24px; 
    overflow: hidden;
}

.person-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease; 
}


.person-frame:hover img {
    transform: scale(1.05);
}

.gb-person h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.parent-name {
    font-size: 12px;
    color: #777;
    padding: 0 10px;
    line-height: 1.4;
}

.gb-ig {
    margin-top: 10px;
    color: #d62976;
    font-size: 22px;
    transition: transform 0.2s;
}

.gb-ig:active { transform: scale(0.9); }

.gb-ampersand {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #eee;
    margin: 15px 0;
}

/* STORY & GALLERY */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.story-img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Tidak terpotong */
    border-radius: 16px;
    margin-bottom: 12px;
}

.story-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.gb-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.gb-gallery img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

/* LIGHTBOX UPGRADE */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none; /* Default sembunyi */
    align-items: center;
    justify-content: center;
    z-index: 200; /* Harus lebih tinggi dari panel groombride */
    transition: all 0.3s ease;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lb-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s;
}

.lb-prev:hover, .lb-next:hover {
    color: #fff;
}

.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* ================= ITEM WEDDING GIFT ================= */
.item-weddinggift {
  position: absolute;

  /* ATUR POSISI */
  top:45%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 80px;
  cursor: pointer;
  z-index: 5;
  animation: pulseWG 2s ease-in-out infinite;
  transition: filter .3s ease;
}

.item-weddinggift:hover {
  filter: drop-shadow(0 0 14px #d965f7);
}


@media (max-width: 768px) {
  .item-weddinggift {
    width: 70px;
    left: 55%;
  }
}



@keyframes pulseWG {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* --- PopUp Core (Sama dengan Dates/Groom) --- */
.weddinggift-panel {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.weddinggift-panel.show { display: flex; }

.weddinggift-content {
    width: 90%;
    max-width: 400px;
    height: 80vh;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.weddinggift-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.weddinggift-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #333;
    font-style: normal;
}

.weddinggift-header button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

/* BODY */
.weddinggift-body {
    padding: 20px;
    overflow-y: auto;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #444;
}

.wg-text {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* --- Card Style (Sama dengan Countdown Card) --- */
.wg-card {
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 20px;
}

.wg-bank-logo {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
    filter: grayscale(10%);
}

.wg-rek {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #222;
}

.wg-an {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* --- Premium Button (Sync with Dates Panel) --- */
.btn-action-premium {
    display: inline-block;
    width: auto;
    min-width: 180px;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #d965f7, #9b4dca);
    color: white;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217, 101, 247, 0.2);
    transition: transform 0.2s ease;
}

.btn-action-premium.secondary {
    background: linear-gradient(135deg, #444, #222);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-action-premium:active { transform: scale(0.95); }

/* --- Address Box --- */
.wg-address-box {
    background: #fafafa;
    border-radius: 16px;
    padding: 15px;
    border: 1px dashed #ccc;
    margin-bottom: 15px;
}

.wg-address {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 30px 0;
}


/* ITEM */
.item-rsvpwishes {
  position: absolute;
  /* ATUR POSISI */
  top: 56%;
  left: 85%;
  transform: translate(-50%, -50%);
  width: 120px;
  cursor: pointer;
  z-index: 5;
  animation: pulsersvp 2s ease-in-out infinite;
  transition: filter .3s ease;
}

.item-rsvpwishes:hover {
  filter: drop-shadow(0 0 14px #d965f7);
}


@keyframes pulsersvp {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* PANEL */

/* GLOBAL FONT *//* --- PopUp Core (Sync with others) --- */
.rsvpwishes-panel {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.rsvpwishes-panel.show { display: flex; }

.rsvpwishes-content {
    width: 90%;
    max-width: 400px;
    height: 80vh;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.rsvpwishes-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.rsvpwishes-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #333;
    font-style: normal;
}

.rsvpwishes-header button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

/* BODY */
.rsvpwishes-body {
    padding: 24px;
    overflow-y: auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #444;
    text-align: center;
}

.rw-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

/* --- Form Inputs --- */
.input-group {
    margin-bottom: 12px;
}

.rw-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    background: #fcfcfc;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.rw-input:focus {
    border-color: #9b4dca;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(155, 77, 202, 0.05);
}

.rw-textarea {
    min-height: 100px;
    resize: none;
}

/* --- Premium Button --- */
.btn-action-premium {
    display: block;
    width: 100%; /* RSVP & Wishes tombolnya full-width biar mantap di mobile */
    padding: 14px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #d965f7, #9b4dca);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217, 101, 247, 0.2);
    transition: transform 0.2s ease;
    margin-top: 5px;
}

.btn-action-premium:active { transform: scale(0.98); }

/* --- Wish List Styling --- */
.rw-wishlist-container {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa; /* Warna lebih clean */
    border-radius: 18px;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #f0f0f0;
}

/* Custom Scrollbar biar lebih premium */
.rw-wishlist-container::-webkit-scrollbar {
    width: 4px;
}
.rw-wishlist-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.wish-item {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    /* Kunci utamanya di sini: */
    word-wrap: break-word; 
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal; /* Paksa teks kembali ke mode normal (turun ke bawah) */
}

.wish-item:last-child { border-bottom: none; }

.wish-item-name {
    font-weight: 700;
    font-size: 13px;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: block;
    text-transform: capitalize;
}

.wish-item-text {
    font-size: 13px;
    color: #4a4a4a;
    line-height: 1.6; /* Spasi antar baris lebih enak dibaca */
    display: block;
    /* Tambahan biar teks panjang beneran aman */
    width: 100%; 
}

.section-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

.rsvp-feedback {
    margin-top: 10px;
    font-size: 12px;
    color: #28a745;
    text-align: center;
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
  width: 200px; /* Lebar area loading */
  text-align: center;
}

/* Logo Favicon */
.loader-logo {
  width: 40px;
  height: auto;
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease;
}

/* Progress Bar Container */
.progress-container {
  width: 100%;
  height: 2px; /* Tipis biar elegan */
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Progress Bar Inner */
.progress-bar {
  width: 0%; /* Start dari 0 */
  height: 100%;
  background: #1a1a1a; /* Warna bar gelap premium */
  transition: width 0.4s ease; /* Transisi pas nambah % */
}

.loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888888;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.rsvp-input-guest {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: #555;
}