:root {
    --lp3i-blue: #004269;
    --lp3i-teal: #009da5;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

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

body {
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&q=80') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.main-screen {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    padding: 20px;
    min-height: 100vh;
}

/* iOS Header Section */
/* Container Header */
.ios-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 5px;
}

/* Banner dengan efek Glass Overlay di bagian bawah */
.banner-box {
    height: 160px;
    /* Sedikit lebih tinggi agar lebih lega */
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.banner-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

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

.profile-container {
    margin-top: -45px;
}

/* Avatar ala Apple Profile */
.avatar-wrapper {
    width: 95px;
    height: 95px;
    background: #ffffff;
    margin: 0 auto;
    padding: 5px;
    border-radius: 24px;
    /* iOS Squircle Look */
    position: relative;
    z-index: 10;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* Tipografi */
h1 {
    color: var(--lp3i-blue);
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 12px;
    letter-spacing: -0.5px;
}

.status {
    font-size: 0.85rem;
    color: var(--lp3i-blue);
    font-weight: 600;
    background: rgba(0, 157, 165, 0.1);
    /* Background tipis warna Teal */
    display: inline-block;
    padding: 4px 15px;
    border-radius: 20px;
    margin-top: 5px;
}

/* Dock Social Media */
.social-dock {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 12px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.dock-item {
    color: var(--lp3i-blue);
    font-size: 1.4rem;
    transition: 0.3s;
}

.dock-item:hover {
    transform: scale(1.3) translateY(-5px);
    color: var(--lp3i-teal);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bento-item {
    padding: 20px;
    border-radius: 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    color: var(--lp3i-blue);
}

.bento-item.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-item.gradient-blue {
    background: var(--lp3i-blue);
    color: white;
}

.bento-item.teal-solid {
    background: var(--lp3i-teal);
    color: white;
}

.bento-item:hover {
    transform: scale(0.96);
    opacity: 0.9;
}

.bento-icon {
    font-size: 1.5rem;
}

.location-widget {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid var(--glass-border);
}

.location-widget iframe {
    border-radius: 16px;
    margin-bottom: 12px;
}

.location-info p {
    font-size: 0.75rem;
    color: var(--lp3i-blue);
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
}

.btn-route {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--lp3i-blue);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    transition: 0.3s;
}

.btn-route:hover {
    background: var(--lp3i-teal);
    transform: translateY(-2px);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--lp3i-blue);
    font-weight: 800;
}


/* Container Utama Modal */
/* Pastikan modal tersembunyi secara default */
.modal {
    display: none;
    /* Jangan diubah menjadi flex di sini */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    /* Gelap transparan */
    backdrop-filter: blur(8px);
    z-index: 9999;
    /* Pastikan di atas segalanya */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    /* Responsif untuk mobile */
    max-height: 85vh;
    /* Batasi tinggi modal 85% dari layar */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    /* Memisahkan header dan body */
    overflow: hidden;
    /* Mencegah isi keluar dari radius border */
    position: relative;
}

/* Container Modal Modern */
.modal-content {
    max-width: 500px;
    border-radius: 24px;
    padding: 25px;
    overflow: hidden;
}

/* Bagian Header Tetap Diam (Sticky) */
.modal-header {
    padding: 20px 25px 15px;
    background: white;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

/* Bagian Body yang Bisa Di-scroll */
.modal-body {
    padding: 0 25px 25px;
    overflow-y: auto;
    /* Aktifkan scroll vertikal */
    -webkit-overflow-scrolling: touch;
    /* Scroll halus di iPhone */
}

/* Kustomisasi Scrollbar agar terlihat Profesional (Minimalis) */
.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* Info Grid Syarat & Biaya */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.info-card {
    background: rgba(0, 0, 0, 0.03);
    padding: 15px;
    border-radius: 16px;
}

.info-card h4 {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #555;
}

.info-card ul {
    list-style: none;
    padding: 0;
    font-size: 0.75rem;
    color: #666;
}

.info-card.highlight {
    background: #009DA5;
    color: white;
    text-align: center;
}

.info-card.highlight h4 {
    color: white;
}

.price {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 5px 0;
}

/* Tambahan: Agar section title lebih tegas */
.section-title {
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #222;
}

/* Container Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    padding-left: 5px;
    /* Memberi ruang untuk garis dekoratif jika diinginkan */
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    /* Memastikan angka tetap di atas saat teks panjang */
    gap: 15px;
    text-align: left;
    /* Paksa rata kiri */
}

.step-num {
    flex-shrink: 0;
    /* Angka tidak akan gepeng */
    width: 26px;
    height: 26px;
    background: #002d5b;
    /* Navy LP3I */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 2px;
    /* Penyesuaian agar sejajar dengan baris pertama teks */
}

/* Konten Teks */
.step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-content strong {
    font-size: 0.9rem;
    color: #333;
}

.step-content p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.step-content span {
    color: #009DA5;
    /* Teal aksen untuk link/domain */
    font-weight: 600;
}

/* Button WA */
.btn-wa-full {
    display: block;
    text-align: center;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-wa-full:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.glass-modal {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 30px;
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.cost-box {
    background: var(--lp3i-teal);
    color: white;
    padding: 10px;
    border-radius: 12px;
    margin-top: 15px;
    font-weight: 800;
}

/* Page Loader Wrapper */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    /* Pastikan di atas segalanya */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Animasi Logo Berdenyut (Pulse) */
.loader-wrapper img {
    width: 150px;
    /* Sesuaikan ukuran logo */
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

/* Spinner Modern (Looping) */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 66, 105, 0.1);
    /* Indigo Dye transparan */
    border-top: 3px solid var(--lp3i-blue);
    /* Warna utama */
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

/* Keyframes Animasi */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

footer {
    text-align: center;
    padding: 30px;
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
}

/* Styling Modal PDF Viewer */
.modal-pdf {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 15px;
    align-items: center;
    justify-content: center;
}

.modal-content-pdf {
    width: 100%;
    max-width: 400px;
    height: 85vh;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-nav {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}

.modal-title-text {
    font-weight: 800;
    color: var(--lp3i-blue);
    font-size: 0.9rem;
}

.close-pdf {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--lp3i-blue);
    cursor: pointer;
}

.pdf-body {
    flex-grow: 1;
    position: relative;
    background: #f1f1f1;
}

#pdfFrame {
    width: 100%;
    height: 100%;
    display: none;
    /* Disembunyikan sampai loader selesai */
}

.modal-footer-pdf {
    padding: 15px;
    background: var(--white);
    display: flex;
    justify-content: center;
}

.btn-download {
    background: var(--lp3i-teal);
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-download:hover {
    background: var(--lp3i-blue);
    transform: scale(1.05);
}

.spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top-color: var(--lp3i-teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 45%;
    left: 45%;
}