* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #00293B;
}

.banner img,
.footer-banner img {
    width: 100%;
    max-width: 640px; /* Membatasi lebar maksimal gambar */
    display: block;
}

.form-container {
    max-width: 640px; /* Mengatur lebar form agar mengikuti lebar gambar */
    width: 100%;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.form-container h2 {
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-container p {
    font-size: 14px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Base Styles */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ECB10F;
    border-radius: 6px;
    font-size: 16px;
    background-color: transparent;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #ECB10F; /* Warna teks default */
}

/* Label Styles */
.input-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #ECB10F;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: #00293B;
    padding: 0 5px;
    transform-origin: left center;
    z-index: 1;
    font-weight: bold;
}

/* Focus/Active States */
.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: #009C31;
    outline: none;
    color: #fff; /* Warna teks saat diisi/fokus */
    font-weight: bold;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 13px;
    color: #009C31;
    transform: scale(0.9);
    background: #00293B;
}

/* Kontainer untuk input dan label */
.phone-input-container {
    position: relative;
    margin-top: 20px;
}

.phone-input-container span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
    pointer-events: none;
    font-weight: bold;
}

.phone-group input {
    padding-left: 85px;
    color: #ECB10F; /* Warna teks default untuk input telepon */
}

.phone-group label {
    left: 85px;
}

.phone-group input:focus,
.phone-group input:not(:placeholder-shown) {
    color: #fff; /* Warna teks saat diisi/fokus untuk input telepon */
    font-weight: bold;
}

.phone-group input:focus + label,
.phone-group input:not(:placeholder-shown) + label {
    left: 15px;
    transform: scale(0.9);
}

.phone-placeholder {
    display: block;
    font-size: 12px;
    color: #ECB10F;
    margin-top: 5px;
    padding-left: 2px;
    text-align: left;
    margin-bottom: 15px;
}

/* Efek tambahan untuk kode negara saat input aktif */
.phone-input-container:focus-within span {
    color: #fff; /* Warna kode negara berubah saat input aktif */
    transition: color 0.3s ease;
}

.otp-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Mengatur jarak antar-kolom OTP */
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.otp-input:focus {
    border-color: #009C31; /* Warna border saat fokus */
}

.submit-button {
    min-width: 120px;
    padding: 12px;
    background-color: #009C31;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    margin-top: 10px; /* Kurangi jarak atas */
    margin-bottom: 10px; /* Kurangi jarak bawah */
}

.submit-button:hover {
    background-color: #0056b3;
}

.resend-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.resend-link:hover {
    text-decoration: underline;
}


/* Daftar peminjam */
.borrowers-list {
    margin: 25px auto; /* Mengurangi jarak vertikal */
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px; /* Sesuaikan padding untuk mengurangi ukuran kontainer */
    max-height: 400px;
    overflow: hidden;
    width: 90%;
    text-align: center;
}


.borrowers-list h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

#borrowers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Jarak antar kolom */
    animation: scroll 30s linear infinite; /* Seamless scroll dengan durasi lebih lambat */
}

#borrowers li {
    display: flex;
    align-items: center;
    gap: 15px; /* Jarak antara gambar profil dan teks */
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    text-align: left;
}

#borrowers li img {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Membuat gambar bulat */
    object-fit: cover; /* Sesuaikan gambar */
}

#borrowers li strong {
    font-weight: bold;
    color: #333;
}

/* Keyframes untuk animasi scroll */
@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%); /* Seamless scroll hanya setengah tinggi */
    }
}

.footer-gif {
    display: flex;
    justify-content: center; /* Posisikan di tengah */
    align-items: center;
    margin-bottom: 20px; /* Tambahkan jarak dengan footer */
}

.footer-gif img {
    max-width: 100%; /* Agar responsif */
    height: auto; /* Sesuaikan tinggi proporsional */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Tambahkan bayangan */
    border-radius: 8px; /* Opsional: tambahkan radius untuk sudut */
}
