/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Background & Font --- */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333; /* Default text color to dark gray */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    /* Menambahkan overlay tipis untuk menyamarkan gambar resolusi rendah */
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/foto_utama.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Tetap gunakan fixed untuk efek parallax */
}
/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Frosted Glass Card --- */
.view {
    display: none;
    width: 100%;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.85); /* Brighter, more solid card */
    backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* Softer shadow */
    text-align: center;
}

.view.aktif {
    display: block;
    animation: fadeIn 0.6s ease-out forwards;
}

/* --- Typography (Dark Text on Light Card) --- */
h1, h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937; /* Darker heading color */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
    color: #374151;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

p {
    color: #4b5563; /* Standard dark gray for paragraphs */
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* --- Form Elements --- */
form {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="file"] {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.5);
    color: #1f2937;
    transition: all 0.3s ease;
}

input::placeholder {
    color: #6b7280;
}

input:focus {
    outline: none;
    border-color: #4ade80; /* Green accent on focus */
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

/* --- Buttons & Links (Green Theme) --- */
.btn {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: #22c55e; /* Bright Green */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
    background-color: #16a34a; /* Darker Green */
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(34, 197, 94, 0.3);
}

.nav-link {
    color: #16a34a; /* Dark Green for links */
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #15803d;
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    body {
        padding: 1rem;
        background-attachment: scroll;
    }
    .view {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}

/* --- Navigation Bar --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    border-bottom-color: #22c55e;
    color: #22c55e;
}

/* Adjust main content position */
.view {
    margin-top: 80px; /* Add margin to avoid overlap with the header */
}
/* --- Syarat & Ketentuan --- */
.syarat-ketentuan {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.syarat-ketentuan h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: none;
}

.syarat-ketentuan ol {
    padding-left: 1.5rem;
}

.syarat-ketentuan li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
