/* ==========================================================================
   UTILITIES & GLOBAL STYLES
   ========================================================================== */
/* -- PERBAIKAN PERFORMA SCROLL MOBILE -- */

.scroll-lock {
    overflow: hidden;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   COVER SECTION
   ========================================================================== */

:root {
    --font-heading-cover: 'Playfair Display', serif;
    --font-body-cover: 'Montserrat', sans-serif;
}

#cover-undangan {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../img/cover/cover.webp') no-repeat center center/cover;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    font-family: var(--font-body-cover);
    transition: opacity 1.2s ease-out, visibility 1.2s ease-out;
}

#cover-undangan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cover-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

.cover-content p:first-of-type {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    animation: fadeIn 1s ease-in-out 0.2s backwards;
}

.cover-content h1 {
    font-family: var(--font-heading-cover);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    animation: fadeIn 1s ease-in-out 0.4s backwards;
}

.cover-content p:nth-of-type(2) {
    font-size: 0.9rem;
    margin-top: 2rem;
    animation: fadeIn 1s ease-in-out 0.6s backwards;
}

#nama-tamu {
    font-family: var(--font-heading-cover);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    min-height: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeIn 1s ease-in-out 0.8s backwards;
}

#tombol-masuk {
    margin-top: 2.5rem;
    padding: 12px 35px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: var(--font-body-cover);
    animation: fadeIn 1s ease-in-out 1s backwards;
}

#tombol-masuk:hover {
    background: white;
    color: #2c2c2c;
}


/* ==========================================================================
   MAIN CONTENT WRAPPER
   ========================================================================== */

.page-wrapper {
    visibility: hidden;
}

#konten-utama {
    opacity: 0;
    transition: opacity 1.2s ease-in;
}


/* ==========================================================================
   BUTTON COMPONENT (STACKING FIX)
   ========================================================================== */

.btn.w-inline-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    min-height: 40px;
}

.btn .img_paper-rip-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.btn p, .btn div {
    position: relative;
    z-index: 2;
    color: #333;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* -- COUNTDOWN TIMER (VERSI INTEGRASI) -- */

.countdown-integrated {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolom sama lebar */
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.countdown-integrated > div {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.8rem;
    border-radius: 8px;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.countdown-integrated span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem; /* Ukuran angka lebih kecil agar pas */
    font-weight: 600;
    color: #333;
}

.countdown-integrated p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem; /* Ukuran label lebih kecil */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

/* -- PERBAIKAN FONT JUDUL AGAR KONSISTEN & ELEGAN -- */

.countdown-section h2,
.lokasi-section h2 {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700; /* Pastikan tebalnya pas */
    text-transform: none; /* Menghilangkan efek ALL CAPS jika ada */
    letter-spacing: 1px; /* Sedikit jarak antar huruf */
}

/* ==========================================================================
   LOCATION & MAP SECTION
   ========================================================================== */

.lokasi-section {
    /* max-width: 900px; */
    padding: 4rem 20px;
    background-color: transparent;
    text-align: center;
}

.lokasi-section h2 {
    font-family: var(--font-heading-cover, 'Playfair Display', serif);
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: #333;
}

.peta-container {
    max-width: 900px; /* <--- INI KUNCINYA: Membatasi lebar peta */
    margin: 0 auto;   /* <--- Ini akan memposisikan peta di tengah */
    border: 5px solid white;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.peta-container iframe {
    display: block;
    width: 100%;     /* Biarkan iframe mengisi lebar container */
    height: 450px;   /* Atur tinggi peta sesuai selera */
}

/* ==========================================================================
   RSVP FORM SECTION - DESAIN ELEGAN FINAL
   ========================================================================== */

.rsvp-section {
    padding: 5rem 20px;
    text-align: center;
}

.title-decorator {
    margin-bottom: 1rem;
}
.title-decorator img {
    height: 100px;
    opacity: 0.5;
}

.rsvp-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.rsvp-subtitle {
    max-width: 500px;
    margin: 0 auto 3rem auto;
    color: #666;
    line-height: 1.6;
}

/* --- KONTROL UTAMA TATA LETAK FORM --- */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.grid-col-span-2 {
    grid-column: span 2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #444;
    font-family: 'Montserrat', sans-serif;
}

/* --- STYLE ELEGAN UNTUK INPUT & TEXTAREA --- */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px; /* Sedikit lebih melengkung */
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background-color: #fdfdfd; /* Sedikit off-white */
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a38a6a; /* Warna gold/coklat yang elegan */
    box-shadow: 0 0 8px rgba(163, 138, 106, 0.3);
}

/* --- STYLE CUSTOM UNTUK RADIO BUTTON --- */
.radio-group {
    display: flex;
    gap: 2rem;
    padding-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
}

/* Sembunyikan radio button asli */
.radio-option input[type="radio"] {
    opacity: 0;
    position: fixed;
    width: 0;
}

.radio-option label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

/* Buat lingkaran luar custom */
.radio-option label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Buat titik di dalam saat terpilih */
.radio-option input[type="radio"]:checked + label::before {
    border-color: #a38a6a;
    background-color: #a38a6a;
    box-shadow: inset 0 0 0 3px white; /* Efek titik di tengah */
}

/* Efek focus untuk aksesibilitas */
.radio-option input[type="radio"]:focus + label::before {
    box-shadow: 0 0 8px rgba(163, 138, 106, 0.3);
}

/* --- TOMBOL SUBMIT --- */
/* --- GAYA UNTUK TOMBOL SUBMIT RSVP --- */

.form-container .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 18px 25px; /* Padding lebih besar agar terasa premium */
    border: none;
    border-radius: 8px; /* Samakan dengan lengkungan input field */
    background-color: #333;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600; /* Sedikit lebih tebal */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-container .cta-button:hover {
    background-color: #a38a6a; /* Warna gold/coklat yang sama dengan efek focus */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-container .cta-button i {
    font-size: 0.9rem; /* Sesuaikan ukuran ikon jika perlu */
}

/* --- RESPONSIVE --- */
@media (max-width: 767px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .grid-col-span-2 {
        grid-column: span 1;
    }
    .radio-group {
        flex-direction: column; /* Kunci utama: Susun dari atas ke bawah */
        gap: 1rem;              /* Kurangi jarak antar pilihan */
        align-items: flex-start;/* Ratakan semua pilihan ke kiri */
    }
}

/* ==========================================================================
   WISHES SECTION - (REVISI FINAL DENGAN PAGINATION GRID 5x2)
   ========================================================================== */

.wishes-section {
    padding: 6rem 2rem;
    background-color: #f7f5f0;
    background-image: url('../img/paper-texture.webp');
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}
.wishes-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #333;
}
.wishes-section p {
    max-width: 500px;
    margin: 0 auto 3rem auto;
    color: #666;
}

.wishes-slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem 1rem;
    overflow: hidden;
}

/* KUNCI #1: Grid di dalam setiap slide diatur menjadi 5 kolom */
.wishes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 kolom */
    gap: 1rem;
}

.wish-card {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    text-align: left;
    display: flex; /* Paksa susunan vertikal */
    flex-direction: column;
}
.wish-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}
.wish-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

/* Paginasi */
.wishes-slider .swiper-pagination {
    bottom: 0;
}
.wishes-slider .swiper-pagination-bullet-active {
    background: #a38a6a;
}

/* --- RESPONSIVE UNTUK GALERI UCAPAN --- */

@media (max-width: 991px) { /* Untuk Tablet */
    .wishes-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom */
    }
}

@media (max-width: 767px) { /* Untuk HP */
    .wishes-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom */
    }
}

@media (max-width: 479px) { /* Untuk HP yang sangat kecil */
    .wishes-grid {
        grid-template-columns: 1fr; /* KUNCI #2: Ubah jadi 1 kolom */
    }
}

/* ==========================================================================
   QUOTE SECTION - REVISI AKHIR: FIX GARIS GANDA & TATA LETAK
   ========================================================================== */

.section.quote-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem; /* Padding global untuk kontainer agar tidak terlalu mepet */
    box-sizing: border-box;
    opacity: 0; /* Mulai dengan transparan untuk efek fade-in */
    transition: opacity 1.5s ease-out; /* Durasi fade-in */
}

.section.quote-section.is-active {
    opacity: 1;
}

.quote-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding: 4rem; /* Padding yang cukup besar untuk menjaga jarak dari simbol quotes */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Garis Vertikal --- */
/* HAPUS ATAU KOMENTARI SEMUA KODE UNTUK .vertical-line DI SINI */


/* --- Teks Kutipan Utama (blockquote) --- */
.quote-container blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.6;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
    max-width: 55ch; /* Lebar optimal untuk keterbacaan */
    text-wrap: balance;
    position: relative;
    z-index: 1;
    /* TIDAK ADA padding di sini agar flexbox yang mengatur */
}

/* --- Penulis Kutipan (cite) --- */
.quote-container cite {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* --- Simbol Quotes Besar (opening-quote & closing-quote) --- */
.opening-quote {
    position: absolute;
    top: 0.5rem; /* Sedikit offset dari atas */
    left: 80px;  /* **KUNCI:** Geser lebih jauh ke kanan agar tidak nabrak garis yang sudah ada */
    font-family: 'Playfair Display', serif;
    font-size: 10rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.1);
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

.closing-quote {
    position: absolute;
    bottom: 0.5rem; /* Sedikit offset dari bawah */
    right: 20px; /* Sedikit offset dari kanan */
    font-family: 'Playfair Display', serif;
    font-size: 10rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.1);
    user-select: none;
    pointer-events: none;
    z-index: 0;
}


/* --- Responsif untuk Mobile --- */
@media (max-width: 767px) {
    .quote-container {
        padding: 2.5rem 1rem;
    }

    .quote-container blockquote {
        font-size: 1.6rem;
        /* padding: 0 10px; */ /* Tidak diperlukan lagi padding di sini */
    }

    .quote-container cite {
        font-size: 0.9rem;
    }

    .opening-quote {
        font-size: 6rem;
        top: 0.2rem;
        left: 45px; /* **KUNCI:** Sesuaikan posisi left di mobile agar tidak nabrak garis */
    }

    .closing-quote {
        font-size: 6rem;
        bottom: 0.2rem;
        right: 10px;
    }

    /* HAPUS ATAU KOMENTARI JUGA ATURAN UNTUK .vertical-line DI MEDIA QUERY INI */
}

/* Perbaikan untuk font Playfair Display agar selalu bold di 700 jika Druk tidak dimuat */
.quote-container blockquote, .opening-quote, .closing-quote {
    font-family: 'Playfair Display', serif; /* Pastikan Playfair sebagai fallback */
    font-weight: 700; /* Pastikan bold */
}


/* .wrap_scrolly-middle {
    height: 200vh; 
} */
/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* -- Tampilan Desktop Kecil & Tablet -- */
@media (min-width: 768px) {
    .peta-fullscreen iframe {
        height: 450px;
    }
}

/* -- Tampilan Mobile -- */
@media screen and (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .radio-group {
        padding-top: 0;
    }
}

@media screen and (max-width: 479px) {

    /* --- Cover --- */
    .cover-content h1 {
        font-size: 2.8rem;
        line-height: 1.3;
    }
    #nama-tamu {
        font-size: 1.6rem;
    }
    #tombol-masuk {
        padding: 10px 25px;
        font-size: 0.8rem;
    }

    /* --- Scrollytelling Hero --- */
    .scrolly_hero {
        overflow-x: hidden;
        height: 100svh;
    }
    .logo_hero-lrg {
        width: 50%;
        max-width: 150px;
    }
    .text-giant.front {
        font-size: 1rem;
    }

    /* --- Countdown --- */
    #countdown {
        gap: 0.5rem;
    }
    #countdown > div {
        padding: 0.8rem;
        min-width: 70px;
        flex-basis: 75px;
    }
    #countdown span {
        font-size: 2rem;
    }
    #countdown p {
        font-size: 0.65rem;
    }



    /* --- Footer (Carousel) --- */
    .wrap_ig-carousel {
        padding-bottom: 15px;
    }
    .ig_carousel {
        padding: 0 1rem;
    }
    .img_ig-carousel {
        width: 200px;
    }
    .heading-style-h1 {
        font-size: 2.2rem;
    }

    /* --- Quote Section --- */
    .quote-section {
        padding: 6rem 20px;
    }
    .opening-quote, .closing-quote {
        font-size: 6rem;
    }
    .quote-container blockquote {
        font-size: 1.8rem;
    }
}

/* -- KONTROL MUSIK -- */
.kontrol-musik {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    background-color: rgba(44, 44, 44, 0.7);
    color: white;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    
    /* Awalnya, sembunyikan tombolnya */
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.kontrol-musik.show {
    /* Kelas ini akan ditambahkan via JS untuk menampilkan tombol */
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.kontrol-musik:hover {
    transform: scale(1.1);
}

/* -- ADD TO CALENDAR BUTTON -- */

.calendar-button-wrapper {
    position: relative; /* Penting untuk menu dropdown */
    display: flex;
    justify-content: center;
    margin-top: 2.5rem; /* Jarak dari peta */
}

.calendar-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 25px;
    border: 1px solid #333;
    background-color: #333;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.calendar-links {
    position: absolute;
    bottom: 110%; /* Muncul di atas tombol */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    /* Sembunyikan menu awalnya */
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: all 0.3s ease-out;
}

.calendar-links.show {
    /* Kelas ini akan ditambahkan via JS untuk menampilkan menu */
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.calendar-links a {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.calendar-links a:hover {
    background-color: #f5f5f5;
}

.calendar-links a:not(:last-child) {
    border-bottom: 1px solid #eee;
}

/* --- HERO STORY COMPONENT STYLES --- */

.hero-story {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    display: flex; /* Gunakan flexbox untuk positioning hero-content */
    justify-content: flex-start; /* Posisikan konten ke kiri */
    align-items: flex-start; /* Posisikan konten ke atas */
    text-align: left; /* Teks rata kiri */
    color: white;
    z-index: 10;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: brightness(0.85) contrast(1,1);
    transition: filter 0.5s ease;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(20px, 5vw, 50px); /* Padding adaptif untuk semua device */
    max-width: 90%;
    text-align: left; /* Teks rata kiri */
    /* Hapus background-color overlay jika ada */
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5rem); /* Ukuran sedikit lebih kecil agar pas di pojok */
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex; /* Gunakan flexbox agar "Our" dan "Story" bisa diatur */
    flex-direction: column; /* "Our" di atas "Story" */
    align-items: flex-start; /* Rata kiri */
}

/* Gaya untuk masing-masing kata */
.story-title span {
    display: block; /* Pastikan setiap span adalah blok terpisah */
    opacity: 0; /* Sembunyikan default untuk animasi */
}

.story-title .word-our {
    /* Styling khusus untuk "Our" jika diperlukan */
    margin-bottom: -0.1em; /* Mengatur jarak antar baris */
    font-size: 1.2em;
}

.story-title .word-story {
    /* Styling khusus untuk "Story" jika diperlukan */
    font-size: 1.2em; /* Jika ingin "Story" lebih besar */
}

/* Penyesuaian untuk perangkat mobile */
@media (max-width: 767px) {
    .story-title {
        font-size: clamp(4.0rem, 12vw, 5rem); /* Ukuran font diperbesar untuk mobile */
    }
}

/* ==========================================================================
   EVENT DETAILS SECTION - (REVISI FINAL DENGAN HEADER + 3 KOLOM)
   ========================================================================== */

.event-section {
    padding: 6rem 2rem;
    background-color: #f7f5f0;
    background-image: url('../img/paper-texture.webp');
    background-repeat: repeat;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* KUNCI #1: Header baru untuk Judul & Countdown */
.event-header {
    text-align: center;
    margin-bottom: 4rem;
}

.event-header .event-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.event-header .countdown-integrated {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 600px; /* Batasi lebar countdown */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.event-header .countdown-integrated > div { background: rgba(255, 255, 255, 0.8); padding: 1rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.event-header .countdown-integrated span { display: block; font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 600; color: #333; }
.event-header .countdown-integrated p { margin: 5px 0 0 0; font-family: 'Montserrat', sans-serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #888; }


/* KUNCI #2: Grid 3 kolom untuk detail di bawah header */
.event-details-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr; /* 3 kolom, peta sedikit lebih lebar */
    align-items: flex-start; /* Ratakan dari atas */
    gap: 3rem;
}

.event-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* GAYA UNTUK JUDUL BLOK ACARA DENGAN IKON */
.event-block-title {
    display: inline-flex; /* Agar wadah pas dengan kontennya */
    align-items: center;  /* Kunci: Menyejajarkan gambar dan teks secara vertikal */
    gap: 1rem;            /* Jarak antara gambar dan teks */
    
    /* Gaya font yang sudah ada sebelumnya */
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 1.5rem 0; /* Jarak bawah */
}

.event-block-title img {
    /* KUNCI: Ukuran gambar agar tidak terlalu besar */
    width: 35px;    /* Lebar tetap untuk gambar */
    height: auto;   /* Tinggi otomatis agar proporsi gambar terjaga */
    object-fit: contain; /* Pastikan gambar terlihat utuh */
    flex-shrink: 0; /* Penting: mencegah gambar mengecil di ruang sempit */
}

.info-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}
.info-block i { font-size: 1rem; color: #a38a6a; margin-right: 1rem; margin-top: 5px; width: 16px; text-align: center; }
.info-block h5 { margin: 0 0 4px 0; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: #888; }
.info-block p { margin: 0; font-size: 1rem; color: #444; line-height: 1.6; }


.calendar-button-wrapper {
    margin-top: 1.5rem;
}

.event-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    /* 1. Ubah layout utama menjadi 1 kolom */
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* 2. Pusatkan semua konten di dalam kolom secara default */
    .event-details-grid .event-col {
        display: flex;
        flex-direction: column;
        align-items: center; /* KUNCI: Memusatkan semua blok di dalamnya */
        text-align: center;
    }
    
    /* 3. Atur ulang blok acara agar rapi saat terpusat */
    .event-block {
        width: 100%;
        max-width: 400px; /* Batasi lebar agar tidak terlalu aneh di tablet */
    }

    /* 4. Pastikan setiap baris detail (Date, Time, Location) tersusun benar */
    .info-block {
        display: flex;      /* Tetap gunakan flex untuk ikon + teks */
        text-align: left;   /* KUNCI: Teks di dalamnya KEMBALI rata kiri agar mudah dibaca */
        width: 100%;        /* Ambil lebar penuh dari .event-block */
        margin-bottom: 1rem;
    }

    .event-map {
        width: 100%;
        max-width: 500px; /* Batasi juga lebar peta agar seimbang */
    }
}


/* --- Responsif untuk Mobile --- */
@media (max-width: 767px) {
    .event-container-grid {
        grid-template-columns: 1fr; /* Ubah jadi 1 kolom di mobile */
        gap: 3rem;
    }
    .event-info {
        text-align: center; /* Pusatkan teks di mobile */
    }
    .info-block {
        text-align: left; /* Biarkan detail tetap rata kiri */
    }
    .event-map {
        height: 350px; /* Perkecil peta di mobile */
    }
}

/* --- Responsif untuk Mobile --- */
@media (max-width: 767px) {
    .event-container {
        grid-template-columns: 1fr; /* Ubah jadi 1 kolom di mobile */
        gap: 2rem;
    }
    .event-title {
        text-align: center;
    }
    .event-schedule {
        border-left: none;
        padding-left: 0;
    }
}

/* -- PROFILE SECTION -- */
.profile-section {
    padding: 6rem 2rem;
    /* background-color: #f7f5f0; */
    overflow: hidden;
}
.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}
.profile-card {
    flex: 1;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    display: flex; /* Menggunakan flexbox agar semua item (foto & teks) rapi */
    flex-direction: column;
    align-items: center;
}
.profile-photo-wrapper {
    /* KUNCI #1: Beri ukuran yang tetap dan pasti */
    width: 250px;
    height: 250px;
    margin-bottom: 1.5rem;
    overflow: hidden; /* Penting agar gambar mengikuti bentuk border-radius */
    
    /* KUNCI #2: Ubah bentuk menjadi kotak dengan sudut tumpul */
    border-radius: 24px; 
    
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}
.profile-photo {
    /* KUNCI #3: Paksa gambar untuk mengisi wadah tanpa menjadi gepeng */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ini akan memotong sisi gambar agar pas, bukan membuatnya gepeng */
    object-position: center; /* Fokus pada bagian tengah foto (biasanya wajah) */
}
.profile-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin: 0 0 0.5rem 0;
}
.profile-details p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}
.social-link {
    color: #a38a6a;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}
.social-link:hover {
    opacity: 0.7;
}
.bride { transform: translateX(-50px); opacity: 0; }
.groom { transform: translateX(50px); opacity: 0; }

@media (max-width: 767px) {
    .profile-container {
        flex-direction: column;
        gap: 4rem;
    }
      /* TAMBAHKAN BLOK INI untuk menyesuaikan ukuran foto di mobile */
    .profile-photo-wrapper {
        width: 200px;
        height: 200px;
    }
}

/* --- SIMBOL "&" PENYATU --- */
.uniting-symbol {
    font-family: 'Playfair Display', serif; /* Font yang sama dengan judul */
    font-size: 4rem;      /* Ukuran simbol */
    color: #a38a6a;       /* Warna aksen */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;           /* Sembunyikan untuk animasi */
    transform: scale(0.8);
}

/* Penyesuaian di mobile */
@media (max-width: 767px) {
    .uniting-symbol {
        margin: -1rem 0; /* Mengatur jarak di antara profil saat vertikal */
        /* transform: rotate(90deg); */
    }
}

.form-group input[readonly] {
    background-color: #ececec; /* Warna latar sedikit abu-abu */
    color: #555;               /* Pastikan teks tetap terbaca jelas */
    cursor: not-allowed;        /* Ubah kursor untuk menandakan tidak bisa diklik */
    border-color: #ddd;
}

/* -- WEDDING GIFT SECTION (REVISI FINAL) -- */
.gift-section {
    padding: 6rem 2rem;
    /* background-color: #f7f5f0; */
    /* background-image: url('../img/paper-texture.png'); */
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}
.gift-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
}
.gift-subtitle {
    max-width: 550px;
    margin: 0 auto 3rem auto;
    color: #666;
    line-height: 1.7;
}

.gift-accounts {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.account-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    border: 1px solid #f0f0f0;
    width: 100%;
    max-width: 450px; /* Sedikit dilebarkan */
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Jarak antar elemen di dalam kartu */
}

.bank-logo {
    height: 60px; /* Ukuran logo sedikit disesuaikan */
    width: auto;
    flex-shrink: 0;
}

.account-details {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.account-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.account-name {
    font-size: 1.2rem;
    color: #777;
    text-align: center;
}

/* KUNCI PERBAIKAN: Tombol Copy yang lebih baik */
.account-card .copy-btn {
    padding: 10px 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.account-card .copy-btn:hover {
    background-color: #a38a6a;
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .account-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }

    .account-details {
        text-align: center; 
    }

}