/*
https://gemini.google.com/share/2c1e4d3e8e0d

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
*/

/* PENTING: Menetapkan box-sizing global untuk mencegah overflow */
* {
    box-sizing: border-box; 
}

body {
    font-family: 'Google Sans Flex', 'Inter', sans-serif; 
    background-color: white; 
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin-top: 130px; 
    margin-bottom: 20px;
    padding: 0 20px; /* BARU: Memberi padding pada body, bukan pada header, agar lebih mudah dikendalikan */
}

/* --- STICKY HEADER --- */
#sticky-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; /* Lebar penuh */
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 20px; 
    z-index: 1000;
    /* BARU: Flexbox untuk mengatur judul di tengah */
    display: flex;
    flex-direction: column;
    align-items: center; /* Memastikan konten di tengah horizontal */
    text-align: center; /* Memastikan teks di dalam h1 di tengah */
}

#sticky-header h1 {
    margin: 0 0 5px 0; /* Menghilangkan margin vertikal yang tidak perlu */
    font-size: 1.5em;
    color: #007bff;
}

/* --- PROGRESS BAR STYLES --- */
#progress-container {
    width: 100%;
    max-width: 600px; /* BARU: Batasi lebar progress bar agar rapi di desktop */
    margin-top: 10px;
    padding: 0 20px; /* Tambahkan padding agar tidak mentok di pinggir header */
}

#progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

#progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--progress-width, 0%); /* Mengambil nilai dari JavaScript */
    background-color: #28a745; 
    transition: width 0.5s ease-in-out;
}

#step-indicator {
    /* BARU: Teks indikator diubah agar posisinya di tengah */
    text-align: center; 
    font-size: 0.9em;
    font-weight: bold;
    color: #343a40;
    margin-top: 5px;
}

/* --- FORM CONTAINER STYLES --- */
#form-container {
    background: #fcfcfc;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px; 
    transition: all 0.3s ease;
}

/* ... (CSS sisanya tetap sama) ... */
#carousel-inner {
	padding-bottom: 20px;
}
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none; 
}

.carousel-item.active {
    display: block;
    opacity: 1;
    position: relative; 
}

#carousel-maskot {
	display: block;
    position: relative;
	padding-top: 50px;
}
#carousel-maskot p {
	text-align: center;
}
#maskot-bayu {
	/* 1. Responsif: Memastikan gambar tidak melebihi lebar wadahnya */
	max-width: 100%; 
	/* 2. Responsif: Memastikan tinggi menyesuaikan proporsi lebar */
	height: auto; 
	/* 3. Horizontal Tengah: Mengubah gambar menjadi elemen blok */
	display: block; 
	/* 4. Horizontal Tengah: Menerapkan margin kiri/kanan otomatis */
	margin-left: auto; 
	margin-right: auto;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.input-note {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 15px;
    padding: 8px;
    border-left: 3px solid #007bff; 
    background-color: #f8f9fa; 
    border-radius: 0 4px 4px 0;
	/*
	margin-top: -5px;
	*/
}

#konfirmasiAturanAwal,
#konfirmasiBatal,
#navigation-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    transition: background-color 0.3s;
}

#konfirmasiBatal {
    background-color: #fc413d;
    color: white;
}

#konfirmasiAturanAwal {
    background-color: #007bff;
    color: white;
}

#prev-btn {
    background-color: #f1f1f1;
    color: #333;
}

#next-btn {
    background-color: #007bff;
    color: white;
}

#submit-btn {
    background-color: #28a745;
    color: white;
}

/* --- CAPTCHA STYLES BARU --- */
#captcha-box button {
    line-height: 1; /* Agar simbol refresh terlihat rapi */
    font-size: 1.2em;
}

#captcha_input {
    text-align: center; /* Agar input jawaban Captcha berada di tengah */
    font-size: 1.2em;
    font-weight: bold;
}
/* --- AKHIR CAPTCHA STYLES --- */


@media (max-width: 768px) {
	#sticky-header h1 {
		font-size: 1.2em;
	}
    #form-container {
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }
    #navigation-buttons {
        display: flex;
        justify-content: space-between;
        /*
		display: flex !important;
		*/
    }
    #navigation-buttons button {
        flex-grow: 1;
        margin: 5px;
    }
}