/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Background Fullscreen */
body {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: all 0.5s ease-in-out;
}

/* Container untuk setiap Step */
.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 400px;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Animasi FadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Foto Profil */
.profile-container {
    text-align: center;
    margin-bottom: 15px;
}

.profile-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Judul */
h2 {
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
}


/* Efek transisi agar step berubah dengan smooth */
.step-transition {
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
}

/* Input Fields */
input,
select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    transition: border 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

input::placeholder,
select {
    color: rgba(255, 255, 255, 0.7);
}

input:focus,
select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    color: rgba(0, 0, 0, 0.906);
}

/* Dropdown Provinsi */
select {
    appearance: none;
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

select:hover {
    border-color: #60a5fa;
}

/* Button */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

button:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: scale(1.05);
}


/* Status Pesan */
#status {
    color: red;
    font-weight: bold;
    margin-top: 10px;
    font-size: 14px;
}

/* Animasi agar Step tidak hanya hilang langsung */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Background Fullscreen */
body {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    width: 100%;
    overflow-y: auto;
    /* Pastikan bisa di-scroll */
    padding-bottom: 150px;
    /* Tambahkan lebih banyak ruang di bagian bawah */
}

/* Container utama */
.container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: 50px;
    margin-bottom: 50px;
    /* Berikan ruang ekstra untuk testimoni */
}

/* Tombol daftar */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    margin-bottom: 30px;
    /* Tambahkan ruang agar tidak tertutupi */
}

/* Pastikan Testimoni Selalu di Bawah */
.testimonials {
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    position: relative;
    bottom: 0;
}

/* Styling untuk Wrapper Testimoni */
.testimonial-wrapper {
    width: 100%;
    overflow-x: auto;
    /* Memungkinkan geser horizontal */
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    white-space: nowrap;
    /* Memastikan semua elemen tetap dalam satu baris */
}

/* Styling untuk Container Testimoni */
.testimonial-container {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    width: max-content;
    /* Pastikan kontainer cukup lebar untuk scroll */
}

/* Styling untuk Testimoni */
.testimonial {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    width: 200px;
    min-width: 200px;
    /* Pastikan semua elemen memiliki lebar tetap */
    max-width: 200px;
    /* Hindari elemen melebar terlalu besar */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}

/* Styling untuk Teks Testimoni */
.testimonial p {
    font-size: 12px;
    color: white;
    margin-bottom: 5px;
    line-height: 1.4;
    text-align: center;
}

.testimonial span {
    font-size: 10px;
    font-weight: bold;
    color: #ddd;
}

/* Pastikan Scroll Bar Tetap Aktif */
.testimonial-wrapper::-webkit-scrollbar {
    height: 10px;
}

.testimonial-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.testimonial-wrapper::-webkit-scrollbar-thumb {
    background: #60a5fa;
    border-radius: 5px;
}

.btn-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.hidden {
    display: none;
    opacity: 0;
}

/* Checkbox */
.checkbox-container input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0 8px 0 0;
    margin-top: 20px;
    margin-bottom: 20px;
}


.checkbox-container input {
    margin-right: 8px;
    flex-shrink: 0;
}

.checkbox-container label {
    color: white;
}

.spinner-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

#loadingSpinner.d-none {
    display: none !important;
}