/* VARIABLES & RESET */
:root {
  --bg-color: #fcf8f2; /* Warna krem lembut khas tema Spesial-06 */
  --text-dark: #333333;
  --text-muted: #666666;
  --accent-gold: #b38b4d;
  --font-serif: 'Playfair Display', serif;
  --font-title: 'Cinzel', serif;
  --font-script: 'Sacramento', cursive;
}

/* Mencegah SEMUA gambar meluap keluar dari layarnya */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-serif);
  text-align: center;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* ORNAMEN BUNGA */
.floral-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
  overflow: hidden; /* Mencegah bunga keluar garis */
}

.flower {
  position: absolute;
  width: 90px;        /* Dikecilkan dari 160px agar manis di layar HP */
  max-width: 25vw;    /* Maksimal 25% lebar layar */
  height: auto;
  opacity: 0.85;
}

.top-left     { top: -10px; left: -10px; }
.top-right    { top: -10px; right: -10px; }
.bottom-left  { bottom: -10px; left: -10px; }
.bottom-right { bottom: -10px; right: -10px; }

/* COVER / OVERLAY */
.cover-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.cover-content {
  padding: 20px;
  max-width: 450px;
}

.subtitle {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.title-couple {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--accent-gold);
  margin: 15px 0;
  line-height: 1.1;
}

.recipient-box {
  margin: 25px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.recipient-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.recipient-box h2 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-top: 5px;
}

/* BUTTONS */
.btn-primary {
  background-color: var(--accent-gold);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #96723b;
}

.btn-action {
  margin-top: 15px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
  margin-top: 10px;
}

/* MUSIC TOGGLE */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: var(--accent-gold);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 101;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* LAYOUT UTAMA */
.main-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 80px 25px 40px;
}

.quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.couple-box {
  margin-top: 20px;
}

.person h2 {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  font-size: 1.8rem;
}

.person p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.divider {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin: 15px 0;
}

/* TIMER */
.timer-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.time-card {
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  min-width: 65px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.time-card span {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.time-card small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* CARDS & FORM */
.event-card, .gift-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.account-number {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 8px 0;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.form-container input, 
.form-container select, 
.form-container textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: inherit;
  background: #ffffff;
}

.comments-list {
  margin-top: 25px;
  text-align: left;
}

.comment-item {
  background: #ffffff;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 10px;
  border-left: 3px solid var(--accent-gold);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

footer {
  padding: 40px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tampilan Desktop / Tablet */
@media (min-width: 768px) {
  .flower {
    width: 160px;
    max-width: 18vw;
  }
}