﻿.accordion .card-header {
	cursor: pointer;
}

.accordion .card-header h5 button {
	color: #000;
	text-decoration: none;
	width: 100%;
	text-align: left;
	padding: 0.75rem 1.25rem;
	min-height: 60px;
}

.accordion .card-header h5 button:hover {
	text-decoration: none;
}

.accordion .card-header .fa-chevron-down {
	transition: transform 0.3s ease;
}

.accordion .card-header .collapsed .fa-chevron-down {
	transform: rotate(-90deg);
}

.nav-link {
	font-weight: 500;
}
.f1-progress {
	position: absolute; /* Penting untuk memposisikan garis di belakang steps */
	width: calc(
		100% - 80px
	); /* Lebar garis, sesuaikan dengan lebar total steps dikurangi margin */
	left: 40px; /* Sesuaikan posisi awal garis */
	top: 50%; /* Posisikan di tengah vertikal dari .f1-steps */
	transform: translateY(
		-50%
	); /* Geser ke atas setengah tinggi sendiri agar benar-benar di tengah */
	height: 5px;
	background-color: #a1a1a1;
	border-radius: 9999px;
	z-index: 1; /* Pastikan garis di bawah step icons */
}
/* Styling Umum (untuk semua ukuran layar) */

/* Container utama form, gunakan padding yang responsif */
.f1 {
    padding: 2px; /* Padding default */
}
.fa-2x {
    font-size: 1.2em !important;
}
/* Styling untuk garis progress, tetap sama */
.f1-progress {
    position: absolute;
    width: calc(100% - 80px); /* Lebar garis, sesuaikan dengan lebar total steps dikurangi margin */
    left: 40px;
    top: 31%;
    transform: translateY(-31%);
    height: 5px;
    background-color: #a8a8a8;
    border-radius: 9999px;
    z-index: 1;
}

.f1-progress-line {
    height: 100%;
    background-color: #10b981;
    transition: width 0.3s ease-in-out;
    border-radius: 9999px;
}

/* Container untuk steps */
.f1-steps {
    display: flex;
    flex-wrap: wrap; /* Penting! Ini memungkinkan item "pecah" ke baris baru */
    justify-content: center; /* Pusatkan items saat ada ruang lebih */
    align-items: flex-start; /* Pastikan semua step sejajar di bagian atas */
    position: relative;
    padding: 20px 0;
    z-index: 5;
    gap: 20px; /* Memberi jarak antar item secara responsif */
}

/* Styling untuk setiap step */
.f1-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    position: relative;
    z-index: 10;
    text-align: center;
    flex: 0 0 auto; /* Default: tidak membesar, tidak menyusut, lebar otomatis */
    width: 120px; /* Lebar minimum untuk setiap step, sesuaikan jika perlu */
}

/* Styling untuk icon step */
.f1-step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #a1a1a1;
    color: #fff;
    border-radius: 9999px;
    margin-bottom: 8px;
    transition: background-color 0.3s, color 0.3s;
    border: 3px solid #e5e7eb;
    box-shadow: 0 0 0 3px #fff;
}

/* Styling untuk step aktif */
.f1-step.active .f1-step-icon {
    background-color: #10b981;
    border-color: #10b981;
}

.f1-step.active p {
    color: #10b981;
    font-weight: bold;
}

/* Media Query untuk Mobile (Contoh: layar kurang dari 768px) */
/* Pada layar kecil, kita bisa menyembunyikan garis karena step akan pecah baris */
@media (max-width: 767px) {
    .f1-progress {
        display: none; /* Sembunyikan garis di mobile */
    }

    .f1-steps {
        justify-content: space-around; /* Lebih merata di mobile */
        gap: 15px; /* Kurangi gap di mobile */
    }

    .f1-step {
        width: 30%; /* Setiap step mengambil sekitar 30% lebar, sehingga 3 step per baris */
        /* Anda bisa menyesuaikan persentase ini berdasarkan jumlah step yang diinginkan per baris */
    }
}

/* Media Query untuk Desktop (Contoh: layar 768px atau lebih besar) */
/* Pada desktop, kita aktifkan kembali garis dan tata letak horizontal */
@media (min-width: 768px) {
    .f1-progress {
        display: block; /* Tampilkan garis di desktop */
    }

    .f1-steps {
        justify-content: space-between; /* Untuk distribusi merata di desktop */
        gap: 0; /* Hapus gap di desktop */
    }

    .f1-step {
        flex: 1; /* Agar setiap step memiliki lebar yang sama dan merata */
        max-width: 150px; /* Batasi lebar maksimum per step agar tidak terlalu lebar di layar super besar */
    }
}

/* CSS lainnya yang sudah ada */
fieldset {
    display: none;
}

fieldset.active {
    display: block;
}
