/* Reset Basic & Font Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Mulish', sans-serif;
    font-weight: 400;
    background-color: #d1e2c9; /* Warna hijau muda latar belakang */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: #8e8e93;
}

/* Layout Utama */
.main-wrapper {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: -60px;
}

/* Karakter Edukatif */
.character-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.character-img {
    max-height: 700px;
    width: auto;
    object-fit: contain;
    margin-right:-200px;
}

.character-img2 {
    max-height: 700px;
    width: auto;
    object-fit: contain;
    margin-right:-80px;
}

/* Container Kalkulator Kanan */
.calculator-container {
    flex: 1.5;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.calculator-containerup20 {
    flex: 1.5;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /*margin-bottom: -100px;*/
}

/* Header Tabs */
.header-tabs {
    display: flex;
    width: 350px;
    height: 120px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    margin-bottom: -20px;
    position: relative;
    z-index: 1;
}

.tab {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.tab img {
    max-width: 100px;
    height: auto;
}

.tab-left.active { background-color: #4b4b52; }
.tab-right.inactive { background-color: #5d4a3e; }

/* Card Form Utama */
.form-card {
    background-color: #ffffff;
    border-radius: 30px;
    padding: 60px 50px 40px 50px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

/* --- STYLES UNTUK HALAMAN 1 (KALKULATOR) --- */
.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

label {
    font-size: 22px;
    color: #8e8e93;
    flex: 1;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

input[type="number"], 
input[type="text"], 
.custom-select {
    width: 100%;
    background-color: #f2f2f4;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    color: #ce3939; 
    outline: none;
}

input::placeholder, .custom-select::placeholder {
    font-size: 14px;
    color: #b5b5ba;
}

.unit {
    position: absolute;
    right: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.custom-select {
    appearance: none;
    cursor: pointer;
    color: #8e8e93;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.button-center {
    justify-content: flex-end;
    margin-top: 30px;
}

button {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 35px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    color: #4a5d23;
    transition: 0.3s ease;
}

.btn-hitung { background-color: #b1d237; }
.btn-hitung:hover { background-color: #9ebf2e; }
.btn-reset { background-color: #E3EEBA; }
.btn-reset:hover { background-color: #d1e29e; }
.spacer { height: 40px; }

/* --- STYLES UNTUK HALAMAN 2 & 3 (HASIL PERHITUNGAN) --- */
.result-card {
    padding: 50px;
}


.result-section {
    text-align: left;
    width: 100%;
}

.result-section h2 {
    color: #8fb915; /* Warna hijau judul */
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.result-section h3 {
    color: #8fb915; 
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.main-desc {
    font-size: 20px;
    margin-bottom: 25px;
    color: #8e8e93;
}

.paragraph-desc {
    font-size: 20px;
    line-height: 1.6;
    color: #8e8e93;
}

.highlight-orange {
    color: #f39c12; /* Warna orange/emas untuk angka dan bulan perhitungan kurang dari 20%*/
    font-weight: 700;
}
.highlight-red {
    color: #CE3939; /* Warna merah untuk angka dan bulan perhitungan lebih 20%*/
    font-weight: 700;
}

.ml-1 {
    margin-left: 5px;
}

.checklist {
    list-style: none;
    margin-bottom: 20px;
}

.checklist li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 20px;
    color: #8e8e93;
}

.check-icon {
    min-width: 26px;
    height: 26px;
    margin-right: 15px;
}

.small-desc {
    font-size: 14px;
    color: #8e8e93;
    margin-left: 10px;
    font-weight: normal;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
    label { font-size: 22px; }
    .character-img { max-height: 500px; }
    .result-section h2 { font-size: 24px; }
    .result-section h3 { font-size: 20px; }
    .main-desc, .checklist li, .paragraph-desc { font-size: 16px; }
}

@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
    }
    
    .character-container {
        display: none; /* Sembunyikan karakter di mobile agar fokus ke konten */
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .input-wrapper { width: 100%; }
    .button-group { justify-content: center; }
    
    .result-card {
        padding: 30px 20px;
    }
    .small-desc {
        display: block; /* Agar teks kecil pindah ke bawah di layar sempit */
        margin-left: 41px; /* Sejajar dengan teks di atasnya */
        margin-top: 5px;
    }
}