/* --- Umum & Reset Ringan --- */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif; 
    background: #f8f8f8; 
    color: #333333;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header Utama --- */
header {
    background-color: #004d99; 
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h1 {
    font-size: 2.5rem; /* Ukuran font dikurangi */
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px; /* Letter spacing dikurangi */
    text-transform: uppercase;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Media Query untuk mengecilkan ukuran H1 di Mobile (Perangkat Sangat Sempit) */
@media (max-width: 450px) { 
    h1 {
        font-size: 1.8rem; 
    }
    header {
        padding: 30px 10px;
    }
}

/* --- Kontainer Utama --- */
.container {
    padding: 20px;
    max-width: 1000px; 
    margin: 20px auto;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
}

/* --- Styling <details> dan <summary> --- */
details {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    max-width: 900px; 
    margin: 25px auto; 
}

summary {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background-color: #f0f4f8; 
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    border-bottom: 1px solid #e0e0e0;
    -webkit-user-select: none; 
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
summary:hover {
    background-color: #e5e7eb;
}
summary:focus, summary:active {
    outline: none; 
    box-shadow: none; 
    -webkit-tap-highlight-color: transparent; 
}
summary::after {
    content: '\25BC'; 
    font-size: 1.1rem;
    color: #007bff;
    transition: transform 0.3s;
}
details[open] summary {
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}
details[open] summary::after {
    content: '\25B2'; 
    transform: rotate(0deg);
}

/* Konten di dalam details (menggunakan Grid) */
#pricelist-content, .policy-content {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    /* PERBAIKAN FINAL: Memusatkan seluruh konten grid secara horizontal dan vertikal */
    place-content: center; 
}

/* --- Styling Price Card / Policy Card --- */
.price-card, .policy-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, transform 0.3s;
    max-width: 450px; 
    justify-self: center; /* Memastikan card di tengah kolomnya */
    width: 100%;
    box-sizing: border-box;
    text-align: center; /* Memusatkan teks di dalam card */
}
.price-card:hover, .policy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Styling Judul Card */
.price-card h3, .policy-card h3 {
    font-family: 'Inter', sans-serif;
    color: #007bff; 
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #e0f2ff;
    margin-bottom: 15px;
    text-align: center; 
}
.price-card p, .policy-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}
.policy-content strong {
    color: #007bff;
}

/* Styling Daftar Harga */
.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Memusatkan blok daftar harga di dalam card */
    width: 90%; 
    max-width: 300px;
    margin: 0 auto;
}
.price-list li {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 1rem;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 5px;
}
.price-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.price-list span {
    font-weight: 500;
}
.price-list .price-range {
    color: #dc3545; 
    font-weight: 700;
    font-size: 1.05rem;
}

/* --- Adaptasi Formulir Pendaftaran --- */
#registrationForm {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #e0e0e0;
}
#registrationForm h2 {
    font-family: 'Inter', sans-serif;
    color: #004d99; 
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #333333;
    margin-bottom: 5px;
    display: block;
}

input[type="text"],
input[type="tel"],
input[type="file"],
select {
    width: 100%;
    padding: 12px 15px;
    box-sizing: border-box;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #444;
    transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
input[type="file"]::file-selector-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-right: 1px solid #d0d0d0;
    padding: 8px 12px;
    margin-right: 15px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
}
input[type="file"]::file-selector-button:hover {
    background-color: #e0e0e0;
}

#submit-btn {
    padding: 15px;
    background-color: #28a745; 
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-top: 25px;
    text-transform: uppercase;
}
#submit-btn:hover {
    background-color: #218838;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

/* Styling pesan di bawah form */
#message-container {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* Garis Pemisah */
hr {
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 40px 0;
}

/* --- Styling Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0; 
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #555555;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* --- Media Query untuk Desktop (Grid Layout) --- */
@media (min-width: 900px) {
    /* Membuat content grid 3 kolom di desktop */
    #pricelist-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Memastikan kebijakan dan S&K tetap 2 kolom per baris di dalam konten */
    .policy-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Memastikan card tetap di tengah di desktop */
    .price-card, .policy-card {
        justify-self: center; 
    }
}
