/* Reset margin dan padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;;
}

/* Style untuk body */
body {
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Kontainer utama */
.container {
    width: 70%;
    padding: 20px;
}

/* Judul utama */
h1 {
    margin-top: 50px;
    font-size: 2rem;
    color: black;
    margin-bottom: 20px;
}

/* Style umum untuk paket */
.package {
    display: flex;
    height: 350px;
    justify-content: space-between;
    align-items: center;
    background-color: wheat;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* Responsif untuk package */
@media (max-width: 768px) {
    .package {
        flex-direction: column;
        height: auto;
        text-align: center;
    }
}

/* Style untuk teks paket */
.package-text {
    width: 70%;
}

/* Responsif untuk teks paket */
@media (max-width: 768px) {
    .package-text {
        width: 100%;
    }
}

/* Style untuk judul paket */
.package-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: black;
    margin-top: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(116, 116, 116, 0.678);
    line-height: 1.4;
}

/* Responsif untuk judul paket */
@media (max-width: 768px) {
    .package-text h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .package-text h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }
}

/* Style untuk paragraf teks paket */
.package-text p {
    font-size: 16px;
    font-weight: 600;
    color: rgb(51, 51, 51);
    margin-bottom: 10px;
}

/* Style untuk ikon di paragraf */
.package-text p i {
    color: darkmagenta;
    margin-right: 8px;
    margin-bottom: 5px;
}

/* Responsif untuk paragraf dan ikon */
@media (max-width: 768px) {
    .package-text p {
        font-size: 14px; /* Ukuran font lebih kecil untuk layar tablet */
        margin-bottom: 8px; /* Mengurangi jarak margin di bawah */
        text-align: justify;
    }

    .package-text p i {
        font-size: 14px; /* Ukuran ikon disesuaikan */
        margin-right: 6px; /* Mengurangi jarak antar ikon dan teks */
    }
}

@media (max-width: 480px) {
    .package-text p {
        font-size: 12px; /* Ukuran font lebih kecil untuk layar ponsel */
        margin-bottom: 6px; /* Margin bawah lebih kecil */
    }

    .package-text p i {
        font-size: 12px; /* Ukuran ikon lebih kecil untuk layar ponsel */
        margin-right: 4px; /* Jarak antar ikon dan teks lebih kecil */
        margin-bottom: 10px;
    }
}


/* Tombol pesan */
.pesan-btn {
    background-color: #ffffff;
    border: 2px solid darkgoldenrod;
    color: #333333;
    text-decoration: none;
    padding: 7px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

/* Hover untuk tombol pesan */
.pesan-btn:hover {
    background-color: darkgoldenrod;
    color: #ffffff;
}

/* Responsif untuk tablet */
@media (max-width: 768px) {
    .pesan-btn {
        padding: 6px 12px;  /* Kurangi padding agar lebih proporsional di tablet */
        font-size: 14px;     /* Ukuran font lebih kecil di tablet */
    }
}

/* Responsif untuk ponsel */
@media (max-width: 480px) {
    .pesan-btn {
        padding: 5px 10px;  /* Padding lebih kecil untuk layar ponsel */
        font-size: 13px;    /* Ukuran font lebih kecil di ponsel */
    }
}

/* Style untuk gambar paket */
.package-image {
    width: 25%;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    height: 150px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover untuk gambar paket */
.package-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Hover untuk gambar di dalam paket */
.package-image:hover img {
    transform: scale(1.05);
}

/* Responsif untuk gambar paket */
@media (max-width: 768px) {
    .package-image {
        width: 40%;
        height: 120px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .package-image {
        width: 60%;
        height: 100px;
        margin-top: 30px;
    }
}

/* Style untuk gambar di dalam package */
.package-image img {
    width: 100%;
    height: auto;
    border: 2px solid darkgoldenrod;
    border-radius: 8px;
    transition: transform 0.3s ease;
}


/* Gaya untuk latar belakang modal */
.modal {
    display: none; /* Default tersembunyi */
    position: fixed;
    z-index: 1000; /* Prioritas tertinggi */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Gulir jika konten melebihi tinggi */
    background-color: rgba(0, 0, 0, 0.5); /* Latar belakang transparan */
}

/* Kontainer konten modal */
.modal-content {
    background-color: #f5f7fa; /* Warna latar konten */
    margin: 10% auto; /* Jarak dari atas dan tengahkan */
    padding: 20px;
    border-radius: 10px; /* Sudut membulat */
    width: 90%; /* Lebar 90% layar */
    max-width: 400px; /* Lebar maksimum 400px */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Efek bayangan */
    animation: slide-down 0.3s ease-out; /* Animasi */
}

/* Animasi untuk modal */
@keyframes slide-down {
    from {
        transform: translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header modal */
.modal-header {
    display: flex;
    justify-content: space-between; /* Jarak antara judul dan tombol close */
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Judul modal */
.modal-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

/* Tombol close */
.modal-header .close {
    font-size: 24;
    color: #333;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-header .close:hover {
    color: #ff0000;
}

/* Body modal */
.modal-body {
    margin-top: 20px;
}

/* Gaya form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Harga total */
#total-price {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

/* Footer modal */
.modal-footer {
    display: flex;
    justify-content: flex-end; /* Tombol di sisi kanan */
    gap: 10px; /* Jarak antar tombol */
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* Tombol di modal */
.modal-footer .btn {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
}

/* Tombol Konfirmasi */
.modal-footer .btn.konfirmasi {
    background-color: darkmagenta;
    color: white;
}

/* Tombol Batal */
.modal-footer .btn.close {
    background-color:darkred;
    color: white;
}

/* Posisi tombol kembali di kanan atas */
.back-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Style untuk tombol kembali */
.back-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    background-color: darkgoldenrod;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

/* Ikon untuk tombol kembali */
.back-button a i {
    margin-right: 8px;
    font-size: 18px;
}

/* Hover untuk tombol kembali */
.back-button a:hover {
    background-color: #a77d19;
}

/* Responsif untuk tombol kembali */
@media (max-width: 768px) {
    .back-button a {
        padding: 8px 15px;
        font-size: 14px;
    }

    .back-button a i {
        font-size: 16px;
    }

    .back-button {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .back-button a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .back-button a i {
        font-size: 14px;
    }

    .back-button {
        top: 8px;
        right: 8px;
    }
}