:root {
    --primary: #00b894;
    --danger: #d63031;
    --dark: #2d3436;
    --light: #f5f6fa;
    --white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #00b894 0%, #00d2d3 100%);
}

* { 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
    margin: 0;
    padding: 0;
}

body { 
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.container {
    background: rgba(240, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    padding: 35px 25px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 500px; /* Batas maksimal di desktop */
    text-align: center;
    transition: all 0.3s ease;
}

.logo { 
    width: 90px; 
    height: auto;
    margin-bottom: 20px; 
}

h2 { 
    color: var(--dark); 
    margin-bottom: 8px; 
    font-weight: 800; 
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

p.subtitle { 
    color: #636e72; 
    margin-bottom: 30px; 
    font-size: 0.85rem; 
    font-weight: 600;
}

.form-group { 
    text-align: left; 
    margin-bottom: 20px; 
}

label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 700; 
    color: var(--dark);
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: 0.3s;
    font-size: 1rem;
    background: #fff;
}

input:focus { 
    border-color: #00b894; 
    outline: none; 
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.2);
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    margin-top: 10px;
}

.btn-primary { 
    background: #6c5ce7; 
    color: white; 
}

.btn-primary:hover { 
    background: #5849c4; 
    transform: translateY(-1px); 
}

/* Card Hasil Kelulusan */
.card-result {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    color: white;
    margin: 25px 0;
    gap: 15px;
    text-align: left;
}

.lulus { 
    background: var(--primary); 
    border: 3px solid #55efc4; 
}

.tidak-lulus { 
    background: var(--danger); 
    border: 3px solid #ff7675; 
}

/* Kotak Logo Kemenag Pengganti Barcode */
.logo-kemenag-box { 
    background: white; 
    padding: 10px; 
    border-radius: 14px; 
    width: 110px;
    min-width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.logo-kemenag-box img { 
    width: 100%; 
    height: 110px;
    width: 110px;
    display: flex; 
}

.info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.info p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- RESPONSIVE BREAKPOINT UNTUK HP --- */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 30px 15px;
        max-width: 100%; /* Memaksa kartu melebar penuh mengikuti layar HP */
        border-radius: 20px;
    }
    h2 {
        font-size: 1.4rem;
    }
    input, select, .btn {
        padding: 16px; /* Di HP ukuran tombol/input dibuat lebih besar agar mudah ditekan */
        font-size: 1.05rem;
    }
    .card-result {
        flex-direction: column; /* Logo Kemenag berada di atas text jika layar terlalu sempit */
        text-align: center;
        gap: 15px;
    }
    .logo-kemenag-box {
        margin: 0 auto;
    }
}