:root {
  --primary: #ff5e7e;
  --secondary: #ffccd5;
  --accent: #ffd166;
  --text: #4a4a4a;
  --bg: #fff5f7;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Lebar utama dibuat seragam dan simetris (880px) */
.content-wrapper {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 25px 20px;
}

/* COVER SCREEN */
#cover-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #ffc2d1 0%, #ffe5ec 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  text-align: center;
  padding: 24px;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#cover-screen.hide {
  transform: translateY(-100%);
}

.cover-subtitle {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.cover-title {
  font-family: 'Baloo 2', cursive;
  font-size: 2.8rem;
  color: #c9184a;
  margin: 6px 0;
}

.cover-desc {
  font-size: 1.05rem;
}

.btn-open {
  margin-top: 25px;
  padding: 13px 34px;
  background: #c9184a;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(201, 24, 74, 0.3);
  transition: transform 0.2s, background 0.2s;
}

.btn-open:hover {
  background: #a4133c;
  transform: scale(1.03);
}

/* HERO SECTION (MOBILE) */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px 10px;
  gap: 20px;
}

.photo-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 7px solid white;
  box-shadow: 0 10px 25px rgba(255, 94, 126, 0.22);
  overflow: hidden;
  background: var(--secondary);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  max-width: 580px;
}

.header-sub {
  font-size: 0.95rem;
  color: #c9184a;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.child-name {
  font-family: 'Baloo 2', cursive;
  font-size: 3rem;
  color: var(--primary);
  line-height: 1.15;
  margin: 8px 0;
}

.age-badge {
  display: inline-block;
  background: var(--accent);
  color: #664d00;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 30px;
  font-size: 1.05rem;
}

.invitation-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 12px;
  color: #555;
}

/* STYLING KARTU UMUM */
.card {
  background: var(--card-bg);
  padding: 30px 24px;
  border-radius: 22px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.55rem;
  color: #c9184a;
  margin-bottom: 18px;
}

/* KARTU COUNTDOWN (TENGAH SENDIRI) */
.countdown-card {
  width: 100%;
  margin-top: 25px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.time-box {
  background: #fff0f3;
  padding: 12px 10px;
  border-radius: 14px;
  min-width: 70px;
  flex: 1;
  max-width: 90px;
}

.time-box span {
  display: block;
  font-weight: 700;
  font-size: 1.4rem;
  color: #c9184a;
}

.time-box small {
  font-size: 0.78rem;
  color: #777;
}

/* GRID BAWAH (WAKTU & LOKASI + RSVP) */
.bottom-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* WAKTU & LOKASI */
.event-card {
  display: flex;
  flex-direction: column;
}

.event-info {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-action {
  margin-top: auto; /* Memaksa tombol selalu rata di dasar kartu */
}

.btn-map {
  display: block;
  width: 100%;
  padding: 13px;
  background: #ff758f;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-map:hover {
  background: #e65c78;
}

/* RSVP */
.rsvp-card {
  display: flex;
  flex-direction: column;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.92rem;
  outline: none;
  background-color: #fafafa;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: auto; /* Memaksa tombol selalu rata di dasar kartu */
}

.btn-submit:hover {
  background: #1eb956;
}

/* WATERMARK FOOTER */
.footer-credit {
  width: 100%;
  background-color: #111111;
  color: #ffffff;
  text-align: center;
  padding: 13px;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  margin-top: 45px;
  opacity: 0.95;
}

/* ========================================================
   TAMPILAN DESKTOP & TABLET LEBAR (>= 768px)
======================================================== */
@media (min-width: 768px) {
  .content-wrapper {
    padding: 35px 20px;
  }

  /* Hero: Foto di Kiri, Detail Teks di Kanan */
  .hero-section {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
    gap: 50px;
    padding: 20px 0 35px;
  }

  .child-name {
    font-size: 3.6rem;
  }

  .photo-frame {
    width: 250px;
    height: 250px;
    border-width: 8px;
  }

  /* Bagian Bawah Menjadi 2 Kolom Sejajar dan Sama Tinggi */
  .bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .bottom-grid .card {
    padding: 32px 30px;
  }

  /* =========================================
   FITUR KOLOM KOMENTAR & BUKU TAMU
========================================= */
.wishes-card {
  margin-top: 25px;
  text-align: left;
}

.wishes-card h3 {
  text-align: center;
}

.wishes-desc {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.wishes-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.wishes-form input,
.wishes-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.92rem;
  outline: none;
  background-color: #fafafa;
  font-family: inherit;
  transition: border-color 0.2s;
}

.wishes-form textarea {
  resize: vertical;
  min-height: 80px;
}

.wishes-form input:focus,
.wishes-form textarea:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}

.wishes-header-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

/* CONTAINER SCROLLABLE UCAPAN */
.wishes-container {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
}

/* Scrollbar rapi */
.wishes-container::-webkit-scrollbar {
  width: 5px;
}
.wishes-container::-webkit-scrollbar-track {
  background: #f8f8f8;
  border-radius: 10px;
}
.wishes-container::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 10px;
}

/* BALON KOMENTAR / KARTU UCAPAN */
.wish-item {
  display: flex;
  gap: 12px;
  background: #fff9fa;
  border: 1px solid #ffe8ed;
  border-radius: 14px;
  padding: 14px;
}

.wish-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ff8fa3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.wish-body {
  flex: 1;
  min-width: 0;
}

.wish-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.wish-sender {
  font-weight: 600;
  font-size: 0.92rem;
  color: #2d3748;
}

.wish-time {
  font-size: 0.72rem;
  color: #a0aec0;
}

.wish-text {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.5;
  word-wrap: break-word;
}

.wish-empty {
  text-align: center;
  font-size: 0.88rem;
  color: #888;
  padding: 20px 0;
}

/* TOMBOL PENGINGAT (ADD TO CALENDAR) */
.countdown-action {
  margin-top: 22px;
}

.btn-reminder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, var(--primary), #ff8fa3);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 94, 126, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-reminder:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 94, 126, 0.4);
}

.btn-reminder:active {
  transform: translateY(0);
}
}