@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cream: #F9F4EC;
  --cream-dark: #F5EBDC;
  --sage: #EDF3EA;
  --mahogany: #6B2D2D;
  --mahogany-dark: #4D1F1F;
  --gold: #C9A227;
  --gold-soft: #E4C98E;
  --stone: #57534E;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201, 162, 39, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(107, 45, 45, 0.10), transparent 26%),
    var(--cream);
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, "Times New Roman", serif;
}

.text-mahogany {
  color: var(--mahogany);
}

.text-gold-soft {
  color: var(--gold-soft);
}

.section-label {
  color: var(--mahogany);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 700;
}

.section-cream {
  background:
    linear-gradient(180deg, rgba(249, 244, 236, 0.96), rgba(245, 235, 220, 0.94)),
    url('../img/ornaments/bg-floral-pattern.svg');
  background-size: cover, 420px;
}

.section-sage {
  background:
    linear-gradient(180deg, rgba(237, 243, 234, 0.96), rgba(249, 244, 236, 0.96)),
    url('../img/ornaments/bg-floral-pattern.svg');
  background-size: cover, 360px;
}

.section-white {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 245, 0.98));
}

.section-mahogany {
  background:
    radial-gradient(circle at top left, rgba(228, 201, 142, 0.22), transparent 30%),
    linear-gradient(135deg, var(--mahogany), var(--mahogany-dark));
}

.cover-overlay {
  background:
    linear-gradient(180deg, rgba(38, 18, 18, 0.48), rgba(70, 26, 26, 0.78)),
    radial-gradient(circle, rgba(201, 162, 39, 0.16), transparent 55%);
}

.cover-frame {
  border: 1px solid rgba(228, 201, 142, 0.55);
  border-radius: 2rem;
  padding: 2rem;
  background: rgba(58, 24, 24, 0.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.glass-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(228, 201, 142, 0.55);
  backdrop-filter: blur(10px);
}

.btn-primary,
.btn-light {
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 14px 35px rgba(107, 45, 45, 0.20);
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--mahogany);
  color: white;
  padding: 0.85rem 1.8rem;
}

.btn-primary:hover {
  background: var(--mahogany-dark);
  transform: translateY(-1px);
}

.btn-light {
  background: #FFFFFF;
  color: var(--mahogany);
  padding: 0.85rem 2rem;
}

.btn-light:hover {
  background: var(--cream-dark);
  transform: translateY(-1px);
}

.profile-card,
.event-card,
.gift-card,
.countdown-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(228, 201, 142, 0.58);
  border-radius: 1.75rem;
  box-shadow: 0 18px 55px rgba(76, 37, 37, 0.08);
}

.profile-card {
  padding: 2rem;
}

.event-card,
.gift-card {
  padding: 2rem;
}

.countdown-card {
  padding: 1rem;
}

.avatar-ring {
  width: 11rem;
  height: 11rem;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  padding: 0.35rem;
  background: linear-gradient(135deg, var(--gold-soft), var(--mahogany));
  box-shadow: 0 18px 45px rgba(107, 45, 45, 0.18);
}

.form-control {
  width: 100%;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: 0.2s ease;
}

.form-control:focus {
  border-color: var(--mahogany);
  box-shadow: 0 0 0 4px rgba(107, 45, 45, 0.10);
}

.gallery-img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border-radius: 1.75rem;
  box-shadow: 0 18px 45px rgba(76, 37, 37, 0.12);
  border: 5px solid white;
}

.rundown-card {
  background: white;
  border: 1px solid rgba(228, 201, 142, 0.58);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 14px 40px rgba(76, 37, 37, 0.07);
}

.rundown-time {
  display: inline-block;
  background: var(--mahogany);
  color: white;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.extra-event-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(228, 201, 142, 0.50);
  border-radius: 1.25rem;
  padding: 1rem;
  color: var(--mahogany);
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(76, 37, 37, 0.06);
}

/* Animasi muncul */
.animate-fade-up {
  animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animasi bunga / daun jatuh */
.petal {
  position: fixed;
  top: -50px;
  z-index: 10;
  font-size: 24px;
  opacity: 0.62;
  pointer-events: none;
  animation-name: fallingPetal;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.petal-1 {
  left: 10%;
  animation-duration: 9s;
  animation-delay: 0s;
  color: var(--gold);
}

.petal-2 {
  left: 35%;
  animation-duration: 12s;
  animation-delay: 2s;
  color: var(--gold-soft);
}

.petal-3 {
  left: 65%;
  animation-duration: 10s;
  animation-delay: 4s;
  color: var(--mahogany);
}

.petal-4 {
  left: 85%;
  animation-duration: 14s;
  animation-delay: 1s;
}

@keyframes fallingPetal {
  0% {
    transform: translateY(-60px) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

.cover-hide {
  opacity: 0;
  visibility: hidden;
  transition: 0.8s ease;
}

@media (max-width: 640px) {
  .cover-frame {
    padding: 1.5rem;
  }

  .countdown-card {
    padding: 0.8rem 0.35rem;
  }

  .gallery-img {
    height: 15rem;
  }
}

/* Embedded Google Maps */
.map-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(228, 201, 142, 0.58);
  border-radius: 1.75rem;
  padding: 1.25rem;
  box-shadow: 0 18px 55px rgba(76, 37, 37, 0.08);
}

.map-frame {
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 4px solid #fff;
  box-shadow: inset 0 0 0 1px rgba(107, 45, 45, 0.08);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Watermark / creator credit */
.cover-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(228, 201, 142, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.cover-credit:hover {
  color: #fff;
  background: rgba(228, 201, 142, 0.18);
}

.credit-dot {
  color: var(--gold-soft);
  font-size: 0.75rem;
}

.creator-footer {
  background:
    linear-gradient(180deg, rgba(77, 31, 31, 0.98), rgba(47, 18, 18, 1));
  color: rgba(255, 255, 255, 0.82);
}

.creator-text {
  font-size: 0.82rem;
  margin-bottom: 0.9rem;
}

.creator-name {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: none;
}

.creator-name:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(228, 201, 142, 0.36);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: 0.25s ease;
}

.social-icon:hover {
  background: var(--gold-soft);
  color: var(--mahogany-dark);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .map-frame {
    height: 280px;
  }

  .cover-credit {
    font-size: 0.68rem;
  }
}


/* Watermark cover: diletakkan di bawah layar supaya tidak menghalangi tombol Buka Undangan */
.cover-credit {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  z-index: 20;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(58, 24, 24, 0.24);
  border: 1px solid rgba(228, 201, 142, 0.30);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
  white-space: nowrap;
}

.cover-credit:hover {
  color: #fff;
  background: rgba(228, 201, 142, 0.18);
}

@media (max-width: 640px) {
  .cover-credit {
    bottom: 0.75rem;
    font-size: 0.64rem;
    padding: 0.36rem 0.72rem;
  }
}

/* =========================================================
   Responsive polish: desktop, tablet, dan mobile
   ========================================================= */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
}

#cover {
  min-height: 100dvh;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
}

.cover-frame {
  width: min(100%, 31rem);
  max-height: calc(100dvh - 6rem);
  overflow: visible;
}

.cover-frame h1,
#main-couple-name,
#closing-couple-name {
  overflow-wrap: anywhere;
}

/* Social icon CDN */
.credit-icon {
  color: var(--gold-soft);
  font-size: 0.82rem;
  line-height: 1;
}

.social-icon i {
  font-size: 1.05rem;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Desktop besar */
@media (min-width: 1024px) {
  section {
    scroll-margin-top: 0;
  }

  .section-cream,
  .section-sage,
  .section-white,
  .section-mahogany {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .profile-card,
  .event-card,
  .gift-card,
  .map-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .profile-card:hover,
  .event-card:hover,
  .gift-card:hover,
  .map-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 70px rgba(76, 37, 37, 0.12);
  }

  .map-frame {
    height: 420px;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1023px) {
  .cover-frame {
    width: min(100%, 34rem);
  }

  .cover-frame h1 {
    font-size: clamp(2.8rem, 7vw, 4.8rem);
  }

  #main-couple-name,
  #closing-couple-name {
    font-size: clamp(3rem, 7vw, 5rem);
  }

  .map-frame {
    height: 340px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  body {
    font-size: 0.95rem;
  }

  #cover {
    align-items: center;
    padding: 1rem 1rem 4.2rem;
  }

  .cover-frame {
    width: 100%;
    max-height: calc(100dvh - 5.5rem);
    padding: 1.25rem 1rem;
    border-radius: 1.35rem;
  }

  .cover-frame img {
    width: 5.5rem;
    margin-bottom: 1rem;
  }

  .cover-frame h1 {
    font-size: clamp(2.35rem, 14vw, 3.6rem);
    line-height: 0.96;
    margin-bottom: 1.1rem;
  }

  .cover-frame h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .btn-light,
  .btn-primary {
    width: 100%;
    max-width: 19rem;
    padding: 0.82rem 1.2rem;
  }

  .cover-credit {
    bottom: 0.8rem;
    max-width: calc(100vw - 2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section-cream,
  .section-sage,
  .section-white,
  .section-mahogany {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-label {
    letter-spacing: 0.22em;
    font-size: 0.68rem;
  }

  .section-cream h1,
  .section-white h2,
  .section-sage h2,
  .section-mahogany h2 {
    line-height: 1.05;
  }

  #main-couple-name,
  #closing-couple-name {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .section-white h2,
  .section-sage h2,
  .section-mahogany h2,
  .section-cream h2 {
    font-size: clamp(2.05rem, 10vw, 3.1rem);
  }

  .profile-card,
  .event-card,
  .gift-card,
  .map-card {
    border-radius: 1.35rem;
    padding: 1.15rem;
  }

  .avatar-ring {
    width: 9rem;
    height: 9rem;
  }

  .profile-card h3,
  .event-card h3 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .countdown-card {
    border-radius: 1.1rem;
    padding: 0.75rem 0.25rem;
  }

  .countdown-card div {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }

  .countdown-card p {
    font-size: 0.72rem;
  }

  .map-frame {
    height: 270px;
    border-width: 3px;
    border-radius: 1rem;
  }

  .form-control {
    font-size: 1rem;
  }

  .social-icon {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 0.78rem;
  }

  .social-icon i {
    font-size: 1.12rem;
  }
}

/* Mobile kecil */
@media (max-width: 380px) {
  .grid.grid-cols-4 {
    gap: 0.45rem;
  }

  .cover-frame {
    padding: 1rem 0.85rem;
  }

  .cover-frame h1 {
    font-size: clamp(2.05rem, 13.5vw, 3rem);
  }

  .countdown-card {
    padding: 0.62rem 0.15rem;
  }

  .countdown-card p {
    font-size: 0.65rem;
  }
}


/* =========================================================
   Extra mobile refinement - v2
   Fokus: layar HP kecil, form RSVP, countdown, maps, dan cover
   ========================================================= */
:root {
  --mobile-section-y: clamp(3rem, 11vw, 4.5rem);
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(107, 45, 45, 0.16);
}

input,
select,
textarea {
  min-height: 48px;
}

@media (max-width: 767px) {
  .section-cream,
  .section-sage,
  .section-white,
  .section-mahogany {
    padding-top: var(--mobile-section-y) !important;
    padding-bottom: var(--mobile-section-y) !important;
  }

  .hero-photo-frame {
    width: min(72vw, 15.5rem) !important;
    height: min(90vw, 19.5rem) !important;
    margin-bottom: 1.5rem !important;
    border-width: 5px !important;
  }

  .glass-card {
    width: 100%;
    max-width: 22rem;
    padding: 1rem !important;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 21rem !important;
    gap: 0.75rem !important;
  }

  .countdown-card {
    min-height: 5.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .event-card,
  .profile-card,
  .gift-card,
  .map-card {
    width: 100%;
    box-shadow: 0 12px 36px rgba(76, 37, 37, 0.08);
  }

  .map-card .flex {
    flex-direction: column;
    gap: 0.5rem;
  }

  .map-frame {
    height: min(62vw, 260px) !important;
  }

  #rsvpForm {
    gap: 1rem;
  }

  #rsvpForm .form-control {
    border-radius: 0.9rem;
    padding: 0.9rem 0.95rem;
  }

  #rsvpForm textarea.form-control {
    min-height: 7.5rem;
  }

  #submitRsvp,
  #copyAccount {
    width: 100%;
  }

  .creator-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  #cover {
    padding: 0.85rem 0.85rem 4rem !important;
  }

  .cover-frame {
    max-height: calc(100dvh - 5rem);
    padding: 1rem 0.85rem !important;
  }

  .cover-frame h1 {
    font-size: clamp(2rem, 12.5vw, 3.05rem) !important;
    line-height: 0.98 !important;
  }

  .cover-frame p {
    font-size: 0.78rem;
  }

  .btn-light,
  .btn-primary {
    max-width: 100% !important;
    min-height: 48px;
  }

  .section-label {
    letter-spacing: 0.18em !important;
  }

  #main-couple-name,
  #closing-couple-name {
    font-size: clamp(2.25rem, 12vw, 3.25rem) !important;
  }

  .section-white h2,
  .section-sage h2,
  .section-mahogany h2,
  .section-cream h2 {
    font-size: clamp(1.9rem, 9.2vw, 2.65rem) !important;
  }

  .profile-card h3,
  .event-card h3 {
    font-size: clamp(1.85rem, 9vw, 2.35rem) !important;
  }

  .countdown-grid {
    gap: 0.6rem !important;
  }

  .gift-card img[alt="QR Hadiah Online"] {
    width: min(68vw, 13rem) !important;
    height: min(68vw, 13rem) !important;
  }

  #account-number {
    font-size: clamp(1.15rem, 6vw, 1.55rem) !important;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 340px) {
  .countdown-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
  }

  .countdown-card {
    min-height: 4.8rem;
  }

  .cover-credit {
    transform: translateX(-50%) scale(0.94);
  }
}


/* =========================================================
   Update: mobile typography lebih kecil + kontrol musik
   ========================================================= */
.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 45;
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(107, 45, 45, 0.92);
  border: 1px solid rgba(228, 201, 142, 0.55);
  box-shadow: 0 14px 35px rgba(76, 37, 37, 0.22);
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
  background: var(--mahogany-dark);
}

.music-toggle.hidden {
  display: none !important;
}

.music-toggle.is-paused {
  background: rgba(87, 83, 78, 0.88);
}

@media (max-width: 640px) {
  body {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  #cover {
    padding: 0.8rem 0.85rem 3.85rem !important;
  }

  .cover-frame {
    padding: 1rem 0.85rem !important;
    border-radius: 1.25rem !important;
  }

  .cover-frame img {
    width: 4.8rem !important;
    margin-bottom: 0.75rem !important;
  }

  .cover-frame h1 {
    font-size: clamp(1.85rem, 10.5vw, 2.65rem) !important;
    line-height: 1.02 !important;
    margin-bottom: 0.85rem !important;
  }

  .cover-frame h2 {
    font-size: 1.05rem !important;
    margin-bottom: 1.1rem !important;
  }

  .cover-frame p {
    font-size: 0.72rem !important;
    margin-bottom: 0.55rem !important;
  }

  .hero-photo-frame {
    width: min(58vw, 12rem) !important;
    height: min(72vw, 15rem) !important;
    margin-bottom: 1.4rem !important;
  }

  #main-couple-name,
  #closing-couple-name {
    font-size: clamp(2rem, 9.5vw, 2.85rem) !important;
    line-height: 1.05 !important;
  }

  .section-white h2,
  .section-sage h2,
  .section-mahogany h2,
  .section-cream h2 {
    font-size: clamp(1.55rem, 7.8vw, 2.25rem) !important;
    line-height: 1.12 !important;
  }

  .profile-card h3,
  .event-card h3 {
    font-size: clamp(1.55rem, 7.5vw, 2.15rem) !important;
    line-height: 1.1 !important;
  }

  .section-label {
    font-size: 0.62rem !important;
    letter-spacing: 0.15em !important;
  }

  .profile-card,
  .event-card,
  .gift-card,
  .map-card {
    padding: 1rem !important;
    border-radius: 1.2rem !important;
  }

  .avatar-ring {
    width: 7.8rem !important;
    height: 7.8rem !important;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
    max-width: 20rem !important;
  }

  .countdown-card div {
    font-size: clamp(1.35rem, 7vw, 1.9rem) !important;
  }

  .countdown-card p {
    font-size: 0.7rem !important;
  }

  .form-control {
    font-size: 0.92rem !important;
    padding: 0.78rem 0.9rem !important;
  }

  .btn-light,
  .btn-primary {
    min-height: 44px !important;
    font-size: 0.9rem !important;
    padding: 0.72rem 1rem !important;
  }

  .map-frame {
    height: 235px !important;
  }

  .music-toggle {
    width: 2.45rem;
    height: 2.45rem;
    right: 0.85rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  body {
    font-size: 0.86rem;
  }

  .cover-frame h1 {
    font-size: clamp(1.7rem, 10vw, 2.35rem) !important;
  }

  #main-couple-name,
  #closing-couple-name {
    font-size: clamp(1.85rem, 9vw, 2.5rem) !important;
  }

  .section-white h2,
  .section-sage h2,
  .section-mahogany h2,
  .section-cream h2 {
    font-size: clamp(1.45rem, 7vw, 2rem) !important;
  }
}


/* =========================================================
   Tailwind-friendly mobile fix for general invitation card
   ========================================================= */
.invitation-general-card {
  isolation: isolate;
}

.invitation-general-card h2 {
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 420px) {
  .invitation-general-card {
    width: min(100%, calc(100vw - 2rem)) !important;
    padding: 0.95rem 0.85rem !important;
    border-radius: 1.15rem !important;
  }

  .invitation-general-card h2 {
    font-size: clamp(1.08rem, 5.6vw, 1.38rem) !important;
    line-height: 1.08 !important;
  }

  .invitation-general-card p {
    font-size: 0.74rem !important;
  }
}

@media (max-width: 360px) {
  .invitation-general-card {
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
  }

  .invitation-general-card h2 {
    font-size: clamp(1rem, 5.2vw, 1.24rem) !important;
  }
}


/* =========================================================
   Toast / modal ringan untuk status RSVP
   ========================================================= */
.rsvp-toast {
  position: fixed;
  top: calc(1rem + env(safe-area-inset-top));
  left: 50%;
  z-index: 80;
  width: min(92vw, 24rem);
  transform: translate(-50%, -0.9rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rsvp-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.rsvp-toast-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(228, 201, 142, 0.62);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 55px rgba(76, 37, 37, 0.18);
  backdrop-filter: blur(10px);
}

.rsvp-toast-icon {
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--mahogany);
  margin-top: 0.05rem;
}

.rsvp-toast-box.is-error .rsvp-toast-icon {
  background: #b91c1c;
}

.rsvp-toast-box.is-info .rsvp-toast-icon {
  background: #57534e;
}

.rsvp-toast-content {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.rsvp-toast-title {
  margin: 0;
  color: var(--mahogany);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.rsvp-toast-box.is-error .rsvp-toast-title {
  color: #991b1b;
}

.rsvp-toast-message {
  margin-top: 0.15rem;
  color: var(--stone);
  font-size: 0.78rem;
  line-height: 1.45;
}

.rsvp-toast-close {
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: rgba(87, 83, 78, 0.78);
  background: rgba(87, 83, 78, 0.08);
  cursor: pointer;
  transition: 0.2s ease;
}

.rsvp-toast-close:hover {
  color: var(--mahogany);
  background: rgba(107, 45, 45, 0.10);
}

@media (max-width: 480px) {
  .rsvp-toast {
    top: calc(0.75rem + env(safe-area-inset-top));
    width: min(94vw, 22rem);
  }

  .rsvp-toast-box {
    padding: 0.75rem;
    border-radius: 1rem;
  }

  .rsvp-toast-title {
    font-size: 0.82rem;
  }

  .rsvp-toast-message {
    font-size: 0.72rem;
  }
}
