/* Reset Dasar & Pengaturan Font */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4f8; /* Latar belakang lembut */
    overflow: hidden; /* Sembunyikan scrollbar */
}

/* Wrapper Utama - Dibuat untuk Landscape */
.kiosk-wrapper {
    width: 100vw; /* Lebar penuh viewport */
    height: 100vh; /* Tinggi penuh viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Gradient background kekinian */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#kiosk-form {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Kontainer untuk setiap "Slide" Pertanyaan */
.question-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Efek transisi antar slide */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 20px; /* Padding untuk layar kecil */
    box-sizing: border-box;
}

/* Slide yang sedang aktif */
.question-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Konten di dalam slide (Kartu Putih) */
.slide-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px 40px;
    width: 90%; /* Lebar 90% */
    max-width: 900px; /* Batas maksimum */
    text-align: center;
    box-sizing: border-box; 
    max-height: 90vh; /* Batas tinggi */
    overflow-y: auto; /* Scroll jika konten terlalu tinggi */
}

h1 {
    font-size: 2.2rem; /* Ukuran font besar (responsive) */
    color: #333;
    margin-top: 0;
}
h2 {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 30px;
}
p {
    font-size: 1.1rem;
    color: #555;
}

/* Tombol Navigasi (Besar & Touch-friendly) */
.btn-next, .btn-prev, .btn-submit {
    background-color: #6a11cb; /* Ungu */
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px; /* Bentuk pil */
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

.btn-next:hover, .btn-submit:hover {
    background-color: #2575fc; /* Biru */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-prev {
    background-color: #f4f4f4;
    color: #666;
}
.btn-prev:hover {
    background-color: #e0e0e0;
}
.navigation-buttons {
    margin-top: 30px;
}

/* --- Styling untuk Tipe Pertanyaan --- */
.options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* BINTANG (STAR RATING) */
.star-rating {
    display: flex;
    flex-direction: row-reverse; /* Balik urutan agar CSS :hover berfungsi benar */
    justify-content: center;
    font-size: 3rem; /* Bintang besar */
}
.star-rating input[type="radio"] {
    display: none; /* Sembunyikan radio button asli */
}
.star-rating label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 5px;
}
/* Efek hover: warnai bintang dari kanan ke kiri */
.star-rating:not(:hover) input[type="radio"]:checked ~ label,
.star-rating:hover label:hover ~ label,
.star-rating label:hover {
    color: #ffc700; /* Warna bintang kuning */
}


/* PILIHAN GANDA (RADIO) & CEKLIS (CHECKBOX) */
.option-radio, .option-checkbox {
    display: block;
    width: 45%; /* Buat 2 kolom */
    min-width: 200px;
}
.option-radio input, .option-checkbox input {
    display: none; /* Sembunyikan radio/checkbox asli */
}
.option-radio span, .option-checkbox span {
    display: block;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Efek hover */
.option-radio span:hover, .option-checkbox span:hover {
    border-color: #6a11cb;
    background-color: #f9f6ff;
}

/* Efek saat dipilih */
.option-radio input:checked + span,
.option-checkbox input:checked + span {
    background-color: #6a11cb;
    border-color: #6a11cb;
    color: white;
    box-shadow: 0 4px 10px rgba(106, 17, 203, 0.3);
}

/* Responsif untuk layar lebih kecil (misal: tablet potrait) */
@media (max-width: 768px) {
    .slide-content {
        padding: 20px;
        width: 95%;
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    p { font-size: 1rem; }
    .option-radio, .option-checkbox {
        width: 90%; /* Jadi 1 kolom */
    }
    .btn-next, .btn-prev, .btn-submit {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .star-rating { font-size: 2.5rem; }
}
