* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #111;
  color: white;
  overflow-x: hidden;

  font-family: "Cormorant Garamond", serif;
}

.lock-scroll {
  overflow: hidden;
}

:root {
  --orange: #c94e2c;
  --cream: #eee9dd;
  --dark: #151515;
  --glass: rgba(30, 30, 30, 0.72);
}

body:not(.invitation-open) .page:not(#page1) {
  display: none !important;
}

#page1 {
  min-height: 100vh;
}

.page {
  position: relative;
  width: 100%;
  min-height: 110vh;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-page,
.greeting-page,
.profile-page,
.bride-page {
  background-image: url("assets/bg.jpg");
}

.story-page,
.event-page,
.location-page {
  background-image: url(assets/bg2.jpg);
}

.gallery-page {
  background-image: url(assets/bg3.jpeg);
}

.dark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.7));
  z-index: 0;
}

.cover-page {
  background-position: center;
}

.cover-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px; /* Memberi jarak otomatis antar nama, tombol, dan ornamen */
  padding: 20px;
}

.cover-name {
  color: var(--orange);
  font-family: "Great Vibes", cursive;
  font-size: clamp(90px, 13vw, 180px);
  line-height: 0.999;
  text-align: center;
  transform: rotate(-3deg);
  text-shadow:
    2px 2px 1px #68230f,
    3px 3px 8px rgba(0, 0, 0, 0.7);
  margin-top: -50px;
}

.cover-name span {
  display: block;
}

.open-btn {
  position: absolute;
  bottom: 120px; /* Diturunkan mendekati bagian bawah layar */
  left: 50%;
  transform: translateX(-50%); /* Memastikan tombol presisi tepat di tengah */
  z-index: 3; /* Memastikan tombol selalu berada di atas ornamen */

  padding: 13px 35px;
  min-width: 190px;
  border-radius: 30px;
  border: 1px solid white;
  background: rgba(30, 30, 30, 0.7);
  color: white;
  font-family: "Special Elite", cursive;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.open-btn:hover {
  background: var(--orange);
  transform: translateX(-50%) scale(1.05); /* Efek membesar dengan tetap di tengah */
}

.ornament {
  position: absolute;
  z-index: 3;
  color: var(--cream);
  font-size: 30px;
  letter-spacing: 15px;
}

.bottom-ornament {
  position: absolute;
  bottom: 5px; /* Menempel di dasar/paling bawah layar */
  left: 50%;
  transform: translateX(-50%); /* Lurus pas di tengah secara horizontal */
  z-index: 2;
  width: 90%;
  max-width: 600px; /* Ukuran lebar pas agar tidak terlalu raksasa */
  text-align: center;
}

.bottom-ornament img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.top-ornament {
  position: absolute;
  top: 5px; /* Mengatur posisi naik lebih ke atas dari batas atas halaman */
  left: 50%; /* Memindahkan titik acuan ke tengah layar secara horizontal */
  transform: translateX(
    -50%
  ); /* Menggeser 50% ke kiri agar presisi LURUS DI TENGAH */
  z-index: 3;
  width: 90%;
  max-width: 600px; /* Mengatur ukuran lebar maksimum ornamen agar pas & rapi */
  text-align: center;
}

.top-ornament img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.top-name {
  position: absolute;
  top: 90px;
  z-index: 3;
  text-align: center;
  color: var(--orange);
  font-family: "Great Vibes", cursive;
  font-size: 90px;
  line-height: 0.9;
}

.glass-box {
  position: relative;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(0, 0, 0, 0.6)
  );

  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(7px);
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.greeting-box {
  width: min(80%, 850px);
  padding: 50px 80px;
  color: #eee;
  font-family: "Special Elite", cursive;
  font-size: 20px;
  line-height: 1.55;
  text-align: justify;
}

.greeting-box h2 {
  margin-bottom: 25px;
  font-size: 22px;
  font-family: "Cormorant Garamond", serif;
}

.greeting-box p {
  margin-bottom: 25px;
}

.profile-page {
  background-position: center;
}

.blur-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.7));
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  transform: scale(1.05);
  opacity: 0.85;
}

.profile-card {
  position: relative;
  z-index: 2;
  width: 200%;
  max-width: 1350px;
  display: flex;
  align-items: center;
  gap: 0;
}

.profile-photo {
  width: 450px;
  height: 640px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  min-height: 425px;
  flex: 1;
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    rgba(0, 0, 0, 0.65)
  );

  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0 20px 20px 0;
  backdrop-filter: blur(8px);
}

.profile-info h1 {
  color: var(--orange);
  font-family: "Great Vibes", cursive;
  font-size: clamp(45px, 5vw, 80px);
  font-weight: 400;
  margin-bottom: 25px;
}

.profile-info p {
  font-family: "Special Elite", cursive;
  font-size: 26px;
  margin-bottom: 10px;
}

.profile-info blockquote {
  margin-top: 25px;
  font-family: "Special Elite", cursive;
  font-size: 20px;
  line-height: 1.5;
  max-width: 650px;
}

.profile-photo-nad {
  width: 450px;
  height: 640px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.profile-photo-nad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.right {
  text-align: right;
  margin-top: 25px;
  font-family: "Special Elite", cursive;
  font-size: 20px;
  line-height: 1.5;
  max-width: 650px;
  margin-left: auto; /* Memindahkan seluruh kotak quote ke sisi kanan */
  align-self: flex-end; /* Memastikan perataan Flexbox berada di ujung kanan */
}

.profile-card.reverse {
  flex-direction: row-reverse;
}

.profile-card.reverse .profile-info {
  border-radius: 20px 0 0 20px;
  text-align: center;
}

.profile-card.reverse .profile-photo {
  order: 2;
}

.story-page {
  flex-direction: column;
}

.story-title {
  position: absolute;
  z-index: 3;
  top: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.story-name {
  color: var(--orange);
  font-family: "Great Vibes", cursive;
  font-size: 65px;
  line-height: 0.9;
}

.story-label {
  padding: 10px 25px;
  border-radius: 20px;
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(50, 50, 50, 0.7));

  border: 1px solid #ddd;
  font-family: "Special Elite", cursive;
  font-size: 20px;
}

.story-container {
  position: relative;
  z-index: 2;
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
}

.story-card {
  position: relative;
  width: 30%;
  background: #f2f0e7;
  padding: 10px 10px 25px;
  color: #556a58;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  transition: 0.3s;
}

.story-card:hover {
  transform: translateY(-10px) rotate(0deg);
}

.story-card img {
  display: block;
  width: 100%;
  aspect-ratio: 0.75;
  object-fit: cover;
}

.card-one {
  transform: rotate(2deg);
}

.card-two {
  transform: rotate(-4deg);
}

.card-three {
  transform: rotate(3deg);
}

.paperclip {
  position: absolute;
  top: -35px;
  left: 50%;
  font-size: 60px;
  color: #aaa;
  transform: translateX(-50%);
  z-index: 5;
}

.story-text {
  padding-top: 25px;
  text-align: center;
  font-family: "Special Elite", cursive;
  font-size: 23px;
  line-height: 1.4;
}

.story-text strong {
  display: block;
  margin-bottom: 5px;
}

/* ==========================================
   HALAMAN EVENT / ACARA (CSS GRID 3 KOLOM)
   ========================================== */

/* 1. Container Utama: Membagi 3 Kolom & Mengunci Vertikal Tengah */

/* 2. Kolom Kiri: Waktu Acara */

.date-number {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Special Elite", cursive;
  font-size: 65px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1;
}

/* ==========================================
   HALAMAN EVENT / ACARA (3 KOLOM SEJAJAR)
   ========================================== */

/* Pembungkus Utama: Memaksa Layout Horisontal */
.event-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh !important; /* Memenuhi seluruh tinggi skrin */
  min-height: 100vh !important;
  margin: 0 auto;
  padding: 0 !important; /* Buang padding supaya gambar rapat ke atas & bawah */

  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Setiap Kotak Kolom */
.event-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.event-left,
.event-right {
  flex: 1;
  min-width: 20px;
}

.event-middle {
  flex: 1.5;
  height: 100vh !important;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
}

/* Foto Tengah */
.event-img {
  width: 100%;
  height: 100vh !important; /* Memaksa gambar membentang penuh 100% tinggi skrin */
  object-fit: cover; /* Menjaga proporsi gambar supaya tidak leper/gepeng */
  border-radius: 0 !important; /* Buang lekukan bucu supaya rapat ke tepi */
  box-shadow: none;
}

/* Judul Teks */
.event-title {
  font-size: 13px;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: "Special Elite", cursive;
  font-weight: normal;
}

/* Angka Tanggal Bertumpuk (Sisi Kiri) */
.date-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-stack span {
  font-family: "Special Elite", cursive;
  font-size: 60px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1;
}

/* Countdown Baris (Sisi Kanan) */
.countdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.time-card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 55px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-card span {
  font-family: "Special Elite", cursive;
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
}

.time-card small {
  font-size: 9px;
  color: #dddddd;
  margin-top: 4px;
  letter-spacing: 1px;
}

.colon {
  font-size: 20px;
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Tombol Remind Me */
.remind-btn {
  padding: 8px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(40, 40, 40, 0.6);
  color: #ffffff;
  font-family: "Special Elite", cursive;
  font-size: 11px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: 0.3s;
}

.remind-btn:hover {
  background: #ffffff;
  color: #000000;
}

.countdown-area h3 {
  font-size: 14px;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: "Special Elite", cursive;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.count-box {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 55px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.count-box span {
  font-family: "Special Elite", cursive;
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
}

.count-box small {
  font-size: 10px;
  color: #dddddd;
  margin-top: 4px;
  letter-spacing: 1px;
}

.colon {
  font-size: 20px;
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Tombol Remind Me */
.remind-btn {
  margin-top: 0;
  padding: 8px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(40, 40, 40, 0.6);
  color: #ffffff;
  font-family: "Special Elite", cursive;
  font-size: 12px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: 0.3s;
}

.remind-btn:hover {
  background: #ffffff;
  color: #000000;
}

.location-page {
  width: 100%;
  height: 100vh !important; /* Mengunci tinggi tepat 100% layar (menimpa 110vh dari .page) */
  min-height: 100vh !important;
  display: flex !important;
  align-items: stretch !important; /* Memaksa foto kiri membentang penuh dari atas ke bawah */
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
/* KIRI */
.location-photo {
  position: relative;
  width: 68%;
  height: 100vh !important; /* Memenuhi tinggi layar penuh */
  overflow: hidden;
}

.location-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Memaksa foto memenuhi area tanpa garis/jarak hijau */
  display: block;
}

.couple-name {
  position: absolute;
  top: 60px;
  left: 45%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  color: #c94e2c;
  font-family: "Great Vibes", cursive;
  font-size: clamp(70px, 6vw, 100px);
}

.location-photo .couple-name {
  position: absolute;
  top: 60px;
  left: 45%;

  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  color: #e7e2e1;
  font-family: "Great Vibes", cursive;
  font-size: clamp(70px, 6vw, 100px);
}

.location-button {
  position: absolute;
  bottom: 30px;
  left: 35px;
  z-index: 10;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 25px 10px 10px;

  border: 2px solid white;
  border-radius: 25px;
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(50, 50, 50, 0.7));

  color: white;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.location-button a {
  text-decoration: none; /* Menghilangkan garis bawah */
  color: white; /* Warna tulisan sama seperti bordernya (putih) */
  display: block;
  transition: color 0.3s ease;
}

/* Efek saat tombol diarahkan kursor (Hover) */
.location-button:hover {
  transform: scale(1.05); /* Membesar sedikit secara responsif */
  background: rgba(
    30,
    30,
    30,
    0.85
  ); /* Background menjadi sedikit lebih gelap */
  border-color: var(--orange); /* Border berubah menjadi warna oranye tema */
}

.location-button:hover a {
  color: var(
    --orange
  ); /* Warna teks ikut berubah menjadi oranye saat di-hover */
}

/* Efek saat tombol diklik (Active) */
.location-button:active {
  transform: scale(0.95); /* Efek menekan/membal saat diklik */
}

.location-button .pin {
  font-size: 45px;
}

.location-button small,
.location-button strong {
  display: block;
  font-family: Arial, sans-serif;
  letter-spacing: 1px;
}

.location-button small {
  font-size: 11px;
}
.location-button strong {
  font-size: 13px;
}

/* KANAN */
.location-map {
  width: 32%;
  height: 100vh !important;
  min-height: 100vh !important;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("assets/bg4.jpg") center/cover;
}

.map-image {
  position: relative;
  width: 80%;
  height: 890px;
  margin-top: 5px;
  overflow: hidden;
}

.map-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-gallery {
  min-height: 100vh;
  padding: 10px;
  background-image: url(assets/bg.jpg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-wrapper {
  width: 100%;
  max-width: 1500px;
  height: 95vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 0;
  position: relative;
  overflow: hidden;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.foto1 {
  grid-column: 1 / 7;
  grid-row: 1 / 2;
  position: absolute;
  width: 400px;
  height: 470px;
  z-index: 1;
}

.foto2 {
  grid-column: 4 / 7;
  grid-row: 1 / 4;
  position: absolute;
  width: 380px;
  height: 550px;
  left: 0;
  right: 90px;
  top: 0px;
  bottom: 0px;
  z-index: 1;
}

.foto3 {
  grid-column: 7 / 10;
  grid-row: 1 / 4;
  position: absolute;
  width: 450px;
  right: 0px;
  height: 400px;
  z-index: 1;
}

.foto4 {
  grid-column: 10 / 13;
  grid-row: 1 / 5;
  position: absolute;
  right: 0px;
  width: 400px;
  height: 550px;
  z-index: 1;
}

.foto5 {
  grid-column: 1 / 4;
  grid-row: 5 / 9;
  position: absolute;
  right: 0px;
  left: 0px;
  width: 430px;
  height: 500px;
  z-index: 1;
}

.foto6 {
  grid-column: 4 / 7;
  grid-row: 4 / 9;
  position: absolute;
  right: 0px;
  left: 50px;
  width: 480px;
  height: 480px;
  bottom: 0px;

  z-index: 1;
}

.foto7 {
  grid-column: 7 / 10;
  grid-row: 4 / 9;
  position: absolute;
  right: 0px;
  left: 0px;
  width: 850px;
  height: 550px;
  bottom: 0px;

  z-index: 0;
}

.foto8 {
  grid-column: 10 / 13;
  grid-row: 5 / 9;
  position: absolute;
  right: 0px;
  left: 150px;
  width: 230px;
  height: 385px;
  bottom: 0px;
  z-index: 1;
}

.gallery-center {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 105%;
  height: 68%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-name {
  color: #d94e32;
  font-family: "Great Vibes", cursive;
  font-size: 65px;
  line-height: 0.9;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.gallery-subtitle {
  margin-top: 20px;
  padding: 7px 20px;
  background: rgba(100, 100, 100, 0.5);
  color: white;
  font-family: "Special Elite", cursive;
  font-size: 14px;
  letter-spacing: 5px;
  z-index: 1;
}

.movie-page {
  background-image: url(assets/bg4.jpg);
}

.movie-content {
  position: relative;
  z-index: 2;
  width: 195%;
  max-width: 1400px;
  text-align: center;
  margin-bottom: 50px;
  margin-top: 50px;
}

.movie-title {
  color: var(--orange);
  font-family: "Great Vibes", cursive;
  font-size: 80px;
  margin-bottom: 30px;
}

.movie-title span {
  display: block;
  color: white;
  font-family: "Special Elite", cursive;
  font-size: 25px;
}

.movie-box {
  width: 100%;
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.movie-box video {
  display: block;
  width: 100%;
}

.wish-page {
  background-image: url("assets/bg3.jpeg"); /* Pastikan foto latar adalah foto taman pasangan */
  background-size: cover;
  background-position: center;
}

.wish-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  padding: 40px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 30px;
}

/* 1. KARTU KACA TRANSPARAN (SISI KIRI) */
.wish-glass-card {
  width: 550px; /* Lebar naik dari 440px ke 550px */
  max-width: 90%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px; /* Sudut lebih membulat */
  padding: 35px 32px; /* Area dalam lebih lapang */
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.wish-card-title {
  font-family: "Special Elite", cursive, sans-serif;
  font-size: 22px !important;
  letter-spacing: 2px;
  margin-bottom: 22px;
  color: #ffffff;
  font-weight: normal;
}

/* Input & Textarea Oval */
.wish-input-group {
  margin-bottom: 18px;
}

.wish-input-group label {
  display: block;
  font-family: "Special Elite", cursive, sans-serif;
  font-size: 14px !important;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  color: #ffffff;
}

.wish-input-group input {
  width: 100%;
  height: 48px; /* Kotak nama lebih tinggi */
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 10px 18px;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.wish-input-group textarea {
  width: 100%;
  height: 110px; /* Kotak pesan lebih tinggi */
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 12px 18px;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  resize: none;
  box-sizing: border-box;
}

.wish-input-group input:focus,
.wish-input-group textarea:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

/* Tombol Kirim di Kanan Bawah Form */
.wish-btn-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  margin-bottom: 22px;
}

.wish-submit-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 25px;
  padding: 6px 32px; /* Tombol lebih tebal dan mantap */
  color: #ffffff;
  font-family: "Special Elite", cursive, sans-serif;
  font-size: 28px !important; /* Ukuran teks tombol naik dari 22px ke 28px */
  cursor: pointer;
  transition: 0.3s;
}

.wish-submit-btn:hover {
  background: #ffffff;
  color: #111111;
}

/* Footer QR Code & Cashless Text */
.wish-cashless-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.qr-img {
  width: 110px !important; /* QR Code naik dari 80px ke 110px */
  height: 110px !important;
  background: #ffffff;
  padding: 5px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.gift-text {
  font-size: 12px !important; /* Teks cashless naik dari 9px ke 12px */
  line-height: 1.5;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.95);
  font-family: "Special Elite", cursive, sans-serif;
  text-transform: uppercase;
  margin: 0;
}

/* 2. TULISAN NAMA PASANGAN (DIPERBESAR SANGAT SIGNIFIKAN) */
.wish-couple-name {
  position: absolute;
  top: 7%; /* Posisi sedikit lebih tinggi */
  right: 15%; /* Lebih rapat ke kanan */
  font-family: "Caveat", "Great Vibes", cursive;
  font-size: 100px !important; /* Ukuran nama naik dari 90px ke 140px */
  color: #ffffff !important;
  line-height: 0.82;
  text-align: left;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

#wishForm textarea {
  height: 100px;
  resize: none;
}

.thank-page {
  background-image: url(assets/gallery6.jpeg);
}

.thank-page {
  background-image: url("assets/gallery6.jpeg");
  background-size: cover;
  background-position: center;
}

.thank-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
}

/* 1. UCAPAN THANK YOU (KIRI BAWAH - WARNA SAGE/HIJAU ABU-ABU) */
.thank-left {
  position: absolute;
  left: 5%;
  bottom: 22%;
  text-align: left;
}

.thank-left h1 {
  font-family: "Special Elite", cursive, sans-serif;
  font-size: 50px;
  letter-spacing: 3px;
  color: #728675 !important; /* Warna hijau sage / abu kehijauan sesuai mockup */
  margin-bottom: 8px;
  font-weight: bold;
}

.thank-left p {
  font-family: "Special Elite", cursive, sans-serif;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: #728675 !important; /* Disamakan warnanya dengan judul */
  line-height: 1.5;
  margin: 0;
}

/* 2. NAMA PASANGAN (KANAN ATAS - WARNA PUTIH) */
.thank-right-name {
  position: absolute;
  top: 40%;
  right: 10%;
  font-family: "Caveat", "Great Vibes", cursive;
  font-size: 120px;
  color: #ffffff !important; /* Diubah dari oranye ke warna putih bersih */
  line-height: 0.85;
  text-align: left;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.music-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid white;
  background: rgba(20, 20, 20, 0.7);
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* ==========================================
   MEDIA QUERY VERSI MOBILE (<= 768px)
   Berdasarkan Mockup Mobile (Halaman 1–11)
   ========================================== */

@media screen and (max-width: 768px) {
  /* --- 0. TAMPILAN HALAMAN DENGAN UTAMA --- */
  .page {
    min-height: 100vh;
    padding: 30px 15px;
    background-attachment: scroll; /* Mencegah bug background fixed di browser mobile */
  }

  /* --- 1. COVER PAGE (HALAMAN 1) --- */
  .cover-content {
    justify-content: center;
    gap: 20px;
    padding: 20px 15px;
  }

  .cover-name {
    font-size: clamp(60px, 16vw, 90px);
    margin-top: -30px;
  }

  .open-btn {
    bottom: 70px;
    padding: 10px 25px;
    font-size: 14px;
    min-width: 160px;
  }

  .bottom-ornament,
  .top-ornament {
    width: 90%;
    max-width: 360px;
  }

  /* --- 2. GREETING / SALAM HANGAT (HALAMAN 2) --- */
  .greeting-page {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 50px;
  }

  .top-name {
    position: relative;
    top: auto;
    font-size: 55px;
    margin-bottom: 20px;
  }

  .greeting-box {
    width: 100%;
    max-width: 400px;
    padding: 25px 20px;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 20px;
  }

  .greeting-box h2 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
  }

  .greeting-box p {
    margin-bottom: 15px;
    text-align: justify;
  }

  /* --- 3 & 4. PROFILE / PENGANTIN (HALAMAN 3 & 4) --- */
  .profile-page {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .profile-card,
  .profile-card.reverse {
    flex-direction: column !important;
    width: 100%;
    max-width: 360px;
    gap: 20px;
  }

  .profile-photo,
  .profile-photo-nad {
    width: 100%;
    max-width: 270px;
    height: 360px;
    border-radius: 135px 135px 20px 20px; /* Lengkungan bentuk arch/kubah sesuai mockup */
  }

  .profile-info {
    width: 100%;
    min-height: auto;
    padding: 25px 20px;
    border-radius: 20px !important;
    text-align: center !important;
  }

  .profile-info h1 {
    font-size: 38px;
    margin-bottom: 15px;
  }

  .profile-info p {
    font-size: 14px;
    text-align: center !important;
  }

  .profile-info blockquote,
  .right {
    font-size: 13px;
    max-width: 100%;
    margin-top: 15px;
    margin-left: 0 !important;
    text-align: center !important;
    align-self: center !important;
  }

  /* --- 5. LOVE STORY (HALAMAN 5) --- */
  .story-page {
    padding-top: 30px;
  }

  .story-title {
    position: relative;
    top: auto;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
  }

  .story-name {
    font-size: 48px;
  }

  .story-label {
    font-size: 14px;
    padding: 6px 18px;
  }

  .story-container {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 35px;
    margin-top: 10px;
  }

  .story-card {
    width: 100%;
  }

  .story-text {
    font-size: 15px;
  }

  /* --- 6. EVENT / WAKTU & COUNTDOWN (HALAMAN 6) --- */
  .event-wrapper {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh !important;
    padding: 40px 15px !important;
    gap: 25px;
  }

  .event-left,
  .event-right,
  .event-middle {
    flex: none;
    width: 100%;
    height: auto !important;
  }

  .date-stack {
    flex-direction: row;
    gap: 15px;
    justify-content: center;
  }

  .date-stack span {
    font-size: 40px;
  }

  .event-middle {
    margin: 10px 0;
  }

  .photo-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .event-img {
    height: 300px !important;
    border-radius: 20px !important;
  }

  .event-middle h1,
  .event-middle .couple-name,
  .photo-container .couple-name {
    position: absolute !important;
    font-size: 35px !important;
    top: 15px !important;
    left: 10px !important;
    transform: none !important;
    line-height: 1.1 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 5;
  }

  .countdown-row {
    justify-content: center;
    gap: 6px;
  }

  .time-card {
    min-width: 50px;
    padding: 6px 8px;
  }

  .time-card span {
    font-size: 20px;
  }

  /* --- 7. LOKASI ACARA (HALAMAN 7) --- */
  .location-page {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh !important;
  }

  .location-photo {
    width: 100%;
    height: 45vh !important;
  }

  .location-photo .couple-name {
    font-size: 55px;
    top: 25px;
    left: 50%;
  }

  .location-button {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    padding: 8px 18px;
    width: max-content;
  }

  .location-button .pin {
    font-size: 30px;
  }

  .location-map {
    width: 100%;
    height: 55vh !important;
    padding: 20px 15px;
  }

  .map-image {
    width: 100%;
    height: 100%;
  }

  /* --- 8. WEDDING GALLERY (HALAMAN 8) --- */
  .page-gallery {
    padding: 30px 15px;
    height: auto;
  }

  .gallery-wrapper {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
  }

  .gallery-center {
    order: -1;
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    pointer-events: auto;
  }

  .gallery-name {
    font-size: 48px;
  }

  .gallery-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
    margin-top: 10px;
  }

  .gallery-item {
    position: relative !important;
    width: 100% !important;
    height: 240px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    inset: auto !important;
    border-radius: 12px;
    overflow: hidden;
  }

  /* --- 9. WEDDING MOVIE (HALAMAN 9) --- */
  .movie-content {
    width: 100%;
    max-width: 360px;
  }

  .movie-title {
    font-size: 50px;
    margin-bottom: 20px;
  }

  .movie-title span {
    font-size: 18px;
  }

  .movie-box {
    border-width: 3px;
  }

  /* --- 10. KIRIM UCAPAN & CASHLESS (HALAMAN 10) --- */
  .wish-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding: 40px 20px;
    margin-left: 0;
    gap: 20px;
    align-items: center;
    justify-content: center;
  }

  .wish-couple-name {
    position: relative;
    top: auto;
    right: auto;
    font-size: 55px !important;
    text-align: center;
    order: -1; /* Menampilkan judul nama pasangan di atas kartu ucapan */
  }

  .wish-glass-card {
    width: 100%;
    max-width: 360px;
    padding: 25px 20px;
    border-radius: 24px;
  }

  .wish-card-title {
    font-size: 18px !important;
    margin-bottom: 15px;
  }

  .wish-input-group label {
    font-size: 12px !important;
  }

  .wish-input-group input {
    height: 42px;
    font-size: 14px;
  }

  .wish-input-group textarea {
    height: 80px;
    font-size: 14px;
  }

  .wish-submit-btn {
    font-size: 20px !important;
    padding: 4px 24px;
  }

  .qr-img {
    width: 75px !important;
    height: 75px !important;
  }

  .gift-text {
    font-size: 10px !important;
  }

  /* --- 11. THANK YOU PAGE (HALAMAN 11) --- */
  .thank-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    height: 100vh;
  }

  .thank-right-name {
    order: -1;
    position: relative;
    top: auto;
    right: auto;
    font-size: 75px;
    text-align: center;
    margin-top: 30px;
  }

  .thank-left {
    position: relative;
    left: auto;
    bottom: auto;
    text-align: center;
    margin-bottom: 30px;
  }

  .thank-left h1 {
    font-size: 40px;
  }

  .thank-left p {
    font-size: 14px;
  }

  /* --- TOMBOL MUSIK FLOATING --- */
  .music-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
    right: 15px;
    bottom: 15px;
  }
}
