body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    /* Properti background baru */
    background-image: url('../images/bg.jpg'); /* Jalur ini sudah benar jika CSS ada di folder 'css' */
    background-repeat: repeat; /* Mengatur agar gambar background terulang */
    background-size: auto; /* Mengatur ukuran background ke ukuran aslinya */
    background-position: left top; /* Posisi awal pengulangan */
    background-attachment: fixed; /* Background tetap saat scroll */
    /* Akhir properti background baru */

    background-color: #f4f4f4; /* Ini akan ditimpa oleh background-image jika gambar terlihat */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.container {
    max-width: 900px;
    margin: 20px;
    /* background-color: #fff; */
    background-color: rgba(255, 255, 255, 0.4);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}
h1 {
    color: #0056b3;
    margin-bottom: 30px;
    font-size: 1.4em;
    font-weight: 600;
}
.top-image {
    margin-bottom: 20px;
}
.top-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.package-card {
    /* PROPERTI BACKGROUND BARU UNTUK .package-card */
    background-image: url('../images/bg2.png'); /* INI YANG DIPERBAIKI: Jalur relatif ke gambar */
    background-repeat: repeat; /* Mengatur agar gambar background berulang */
    background-size: auto; /* Mengatur ukuran background ke ukuran aslinya */
    background-position: top left; /* Posisi awal pengulangan */
    /* AKHIR PROPERTI BACKGROUND BARU */

    color: white; /* Penting: Tetap putih agar teks terbaca di atas gambar gelap */
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}
.package-card.selected {
    border: 3px solid #ffc107; /* Warna kuning */
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.7);
}
.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}
.package-card .icon {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 10px;
}
.package-card .icon img {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(170deg); /* Membuat ikon putih ke cyan */
}
.package-card h3 {
    margin: 10px 0;
    font-size: 1.4em;
    font-weight: 700;
}
.package-card .description {
    font-size: 0.7em;
    color: #ccc;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.5;
}
.package-card .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #28a745; /* Warna hijau */
    margin-bottom: 15px;
}
.package-card .select-button {
    background: linear-gradient(45deg, #007bff, #0056b3); /* Gradien biru */
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    width: 70%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.package-card .select-button:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}
.checkmark {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5em;
    color: #ffc107;
    display: none;
}
.package-card.selected .checkmark {
    display: block;
}

/* Modal Styles - Diperbarui untuk animasi dari bawah */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.0);
    backdrop-filter: blur(0px);
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
}
.modal.active {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 550px;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    overflow: hidden;
}
.modal.active .modal-content {
    transform: translateY(0);
}
@media (min-width: 768px) {
    .modal {
        align-items: center;
    }
    .modal-content {
        border-radius: 12px;
        transform: translateY(0);
        opacity: 0;
        transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    }
    .modal.active .modal-content {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(90deg, #1e90ff, #007bff);
    color: white;
    padding: 20px 30px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (min-width: 768px) {
    .modal-header {
        border-radius: 12px 12px 0 0;
    }
}
.modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    flex-grow: 1;
    text-align: center;
}
.close-button {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    position: static;
    margin-left: auto;
}
.close-button:hover,
.close-button:focus {
    color: #ffeb3b;
}
.modal-body {
    padding: 30px;
    text-align: left;
}

.modal-body .package-info {
    background-color: #fceb9a; /* Warna kuning sesuai gambar referensi */
    border: 1px solid #fbdc6f;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 25px;
    font-size: 1.15em;
    line-height: 1.6;
    color: #4a4a4a; /* Warna teks gelap agar kontras dengan kuning */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    display: flex; /* Menggunakan Flexbox untuk penataan item */
    align-items: center; /* Pusatkan item secara vertikal */
    gap: 15px; /* Jarak antar item */
}
.modal-body .package-info .info-icon { /* Style untuk kontainer ikon */
    flex-shrink: 0; /* Pastikan ikon tidak menyusut */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Ukuran kontainer ikon */
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3); /* Sedikit transparan putih */
    border-radius: 50%;
}
.modal-body .package-info .info-icon img {
    width: 35px; /* Ukuran gambar ikon WiFi di dalam modal */
    height: 35px;
    filter: none; /* Hapus filter jika sebelumnya ada untuk mengubah warna */
}
.modal-body .package-info .info-details { /* Kontainer untuk teks nama paket dan harga */
    flex-grow: 1; /* Biarkan mengisi sisa ruang */
    display: flex;
    flex-direction: column; /* Teks dalam kolom */
    align-items: flex-start; /* Rata kiri */
}
.modal-body .package-info .info-details p {
    margin: 0; /* Hapus margin default pada paragraf */
    color: #333; /* Warna teks yang jelas */
    font-weight: 500;
}
.modal-body .package-info .info-details strong {
    font-weight: 700;
}
.modal-body .package-info .info-details .package-name-text {
    font-size: 1.2em; /* Ukuran font lebih besar untuk nama paket */
    margin-bottom: 5px; /* Jarak antara nama paket dan harga */
}
.modal-body .package-info .info-details .package-price-text {
    font-size: 1.3em; /* Ukuran font lebih besar untuk harga */
    color: #28a745; /* Warna hijau untuk harga */
    font-weight: bold;
}

.modal-body .form-group {
    margin-bottom: 20px;
}
.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 1.05em;
}

/* --- BAGIAN YANG DIPERBAIKI ADA DI SINI --- */
.modal-body input[type="tel"],
.modal-body input[type="date"],
.modal-body input[type="text"] { /* DITAMBAHKAN KOMO DI BARIS SEBELUMNYA DAN MEMASUKKAN input[type="text"] */
    width: calc(100% - 24px); /* Mengambil 100% lebar dikurangi padding */
    padding: 12px;
    border: 1px solid #ccd;
    border-radius: 8px;
    box-sizing: border-box; /* Memastikan padding dan border termasuk dalam lebar */
    font-size: 1.1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-body input[type="tel"]:focus,
.modal-body input[type="date"]:focus,
.modal-body input[type="text"]:focus { /* DITAMBAHKAN KOMO DI BARIS SEBELUMNYA DAN MEMASUKKAN input[type="text"] */
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.3);
    outline: none;
}
/* --- AKHIR BAGIAN YANG DIPERBAIKI --- */

.modal-body button {
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    width: 100%;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}
.modal-body button:hover {
    background: linear-gradient(45deg, #218838, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(40, 167, 69, 0.5);
}
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    font-size: 0.95em;
}

/* Style untuk tombol Kirim Ulang Voucher */
.resend-button-wrapper { /* Kontainer untuk menempatkan tombol di kanan */
    width: 100%;
    text-align: right;
    margin-bottom: 20px; /* Jarak antara tombol dan h1 */
}

.resend-button {
    background-color: #ffc107; /* Warna kuning */
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.6em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.resend-button:hover {
    background-color: #e0a800; /* Kuning lebih gelap saat hover */
    transform: translateY(-2px);
}
/* Style untuk tombol di dalam modal kirim ulang */
.resend-modal-button {
    background: linear-gradient(45deg, #ffc107, #e0a800); /* Gradien kuning */
    color: #333;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    width: 100%;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}
.resend-modal-button:hover {
    background: linear-gradient(45deg, #e0a800, #ffc107);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 193, 7, 0.5);
}
/* Style untuk setiap item detail voucher (username/password) */
.voucher-detail-item {
    padding: 15px; /* Sedikit lebih besar padding */
    border: 1px solid #e0e0e0; /* Border lebih soft */
    background-color: #fcfcfc; /* Background sedikit berbeda */
    border-radius: 8px; /* Sudut lebih melengkung */
    margin-bottom: 10px; /* Jarak antar item */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sedikit bayangan */
    font-size: 1.1em; /* Ukuran font lebih besar */
}

.voucher-detail-item p {
    margin: 0; /* Hapus margin default pada paragraf */
    color: #333;
}

.voucher-detail-item strong {
    color: #007bff; /* Warna biru untuk data penting */
}

/* --- STYLING UNTUK TEKS BERJALAN (MARQUEE) --- */

/* Wrapper untuk menampung marquee (mirip seperti background banner) */
.announcement-wrapper {
    background-color: #f0f8ff; /* Warna latar belakang biru muda */
    border: 1px solid #1e90ff; /* Border biru */
    padding: 8px 10px; /* Padding lebih kecil agar teks berjalan tidak terlalu tebal */
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 30px;
    overflow: hidden; /* Penting untuk menjaga marquee di dalam batas */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1);
}

/* Styling untuk teks marquee itu sendiri */
.marquee-text {
    /* Pastikan tinggi marquee sama dengan tinggi konten */
    height: auto; 
    white-space: nowrap; /* Memastikan teks tidak terpotong */
    color: #0056b3; /* Warna teks biru tua */
    font-size: 1.0em;
    font-weight: 600;
    line-height: 1.5;
}

.marquee-text strong {
    color: #ff0000; /* Membuat kata 'PENGUMUMAN' lebih menonjol */
    font-weight: 800;
}

/* Menghilangkan margin di container agar lebih rapi */
.container {
    /* Menghilangkan margin atas dan bawah agar lebih dekat ke elemen lain */
    margin: 20px auto; 
}

/* --- STYLING UNTUK BANNER IKLAN (ad_banner.php) --- */
.good-news-banner {
    /* Gunakan warna yang cerah dan kontras */
    background-color: #ffe0b2; /* Oranye/kuning muda */
    border: 1px solid #ff9800;
    padding: 15px;
    margin: 10px 0 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* --- INI PROPERTI ANIMASI BARU --- */
    animation: promoBlink 2s infinite alternate; 
    /* 2s: durasi 2 detik, infinite: berulang terus, alternate: maju-mundur */
}
/*
.good-news-banner .icon {
    font-size: 1.8em;
    margin-right: 15px;
    flex-shrink: 0; /* Penting agar ikon tidak menyusut pada layar kecil */
}
*/
.good-news-banner h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #e65100; /* Warna judul yang kuat */
    font-size: 1.1em;
}

.good-news-banner p {
    margin: 0;
    color: #333;
    font-size: 0.9em;
}

.good-news-banner p strong {
    font-weight: bold;
    color: #000; /* Membuat kata yang ditekankan lebih hitam */
}
/* Styling untuk Teks di dalam Banner */
.good-news-banner .content {
    /* Biarkan konten mengisi sisa ruang yang tersedia di samping ikon */
    flex-grow: 1; 
}

.good-news-banner h3 {
    margin-top: 0; /* Pastikan tidak ada margin atas */
    margin-bottom: 5px; /* Jarak kecil antara judul dan teks utama */
    color: #e65100;
    font-size: 1.1em;
}

.good-news-banner p {
    margin: 0; /* Hapus semua margin pada paragraf */
    color: #333;
    font-size: 0.9em;
    line-height: 1.3; /* Sedikit jarak antar baris */
}

/* --- KEYFRAMES UNTUK EFEK KEDAP KEDIP --- */
@keyframes promoBlink {
    0% {
        /* Warna latar belakang awal (Orange/kuning muda) */
        background-color: #ffe0b2; 
        box-shadow: 0 0 10px rgba(255, 152, 0, 0.5); /* Bayangan soft */
    }
    50% {
        /* Warna latar belakang saat berkedip (Lebih cerah atau sedikit berbeda) */
        background-color: #fffde7; /* Kuning sangat muda/putih krem */
        box-shadow: 0 0 15px rgba(255, 152, 0, 0.8); /* Bayangan lebih kuat saat di puncak */
    }
    100% {
        /* Kembali ke warna latar belakang awal */
        background-color: #ffe0b2;
        box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
    }
}

/* --- PERBAIKAN TAMPILAN MOBILE UNTUK BANNER --- */
@media (max-width: 400px) {
    
    /* Pada layar yang sangat sempit, kurangi padding horizontal banner */
    .good-news-banner {
        padding: 10px 10px; /* Kurangi padding dari 15px */
    }

    /* Kurangi jarak antara ikon dan teks */
    .good-news-banner .icon {
        font-size: 1.5em; /* Kecilkan sedikit ikon */
        margin-right: 10px; /* Kurangi jarak kanan ikon */
    }

    /* Pastikan judul dan paragraf di dalam konten memiliki ukuran yang pas */
    .good-news-banner h3 {
        font-size: 1.0em; /* Kecilkan judul sedikit */
    }

    .good-news-banner p {
        font-size: 0.85em; /* Kecilkan teks utama sedikit */
    }
}
/* --- Styling Khusus untuk Alamat Website di Banner --- */
.good-news-banner p .website-link {
    /* Tampilan menonjol */
    font-weight: 700;
    color: #007bff; /* Warna biru cerah */
    padding: 2px 6px;
    border-radius: 4px;
    
    /* Efek background seperti highlight */
    background-color: rgba(0, 123, 255, 0.1); /* Latar belakang biru transparan */
    
    /* Tambahkan efek 3D mini */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    
    /* Pastikan tidak ada dekorasi link (jika nanti dijadikan <a>) */
    text-decoration: none; 
    
    /* Jarak vertikal yang lebih baik */
    display: inline-block;
}


/* --- FOOTER STYLING (Fixed at Bottom) --- */
.main-footer-fixed {
    /* Kunci footer di bagian bawah layar */
    position: fixed; 
    bottom: 0; 
    left: 0;
    
    width: 100%;
    
    /* Tampilan */
    padding: 10px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95); /* Background sedikit transparan */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    
    /* Font dan warna */
    color: #999;
    font-size: 0.75em; /* Ukuran lebih kecil agar tidak terlalu mencolok */
    z-index: 999; /* Pastikan footer selalu di atas konten lain */
}

/* Styling link */
.main-footer-fixed p {
    margin: 0;
}

.main-footer-fixed a {
    color: #007bff; 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-footer-fixed a:hover {
    color: #0056b3; 
    text-decoration: underline;
}