/* ConnectGlobe Bali eSIM - Final Optimized CSS
    Architecture: Modular Responsive Design
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --bg: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

section {
    margin-bottom: 50px; /* Menjaga jarak antar section tetap konsisten */
}

/* --- Base Styles --- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (max-width: 768px) { html { font-size: 14px; } }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

h1, h2, h3 { margin-top: 0; }

.hidden { display: none !important; }

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.nav-logo span { color: var(--primary); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav-link:hover { color: var(--primary); }

.btn-nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), 
                url('https://images.unsplash.com/photo-1537996194471-e657df975ab4?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 800px; margin-inline: auto; }

.cta-button { 
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.cta-button:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* --- How to Buy (4 Columns) --- */
.section-title { text-align: center; margin: 4rem 0 3rem; font-size: 2.5rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-item {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--light-gray);
    position: relative;
    transition: 0.3s;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* --- Package Grid --- */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.card:hover { border-color: var(--primary); transform: translateY(-5px); }

/* --- Forms --- */
.form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    margin: 4rem auto;
    box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.selected-pkg-info {
    background: #eff6ff;
    border: 1px solid var(--primary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

input, select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.btn-primary, .btn-success {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }

/* --- Footer --- */
.pro-footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 80px 0 30px;
    /* Memberikan jarak antara konten body terakhir dengan footer */
    margin-top: 100px; 
    border-top: 1px solid rgba(255,255,255,0.05); /* Garis halus opsional */
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand h3 { color: var(--white); font-size: 1.8rem; }
.footer-links h4, .footer-contact h4 { color: var(--white); margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: inherit; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--white); }

/* --- Responsive Media Queries --- */

/* Desktop Connector Lines for How to Buy */
@media (min-width: 1025px) {
    .feature-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 70px;
        right: -15px;
        width: 30px;
        height: 2px;
        background: var(--light-gray);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active { right: 0; }

    .hero-content h1 { font-size: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .form-card { padding: 1.5rem; }
}