body {
    background-color: #f1f1f1;
    overflow-x: hidden;
}

#form {
    background-color: #e6e6e6;
    width: 70%;
    border-radius: 5px;
    margin: 50px auto;
    padding: 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow-y: auto;
}

h1 {
    text-align: center;
    color: #333333;
    margin-bottom: 20px;
}

.form-control {
    margin-bottom: 15px;
}

#btn {
    width: 100%;
    color: #ffffff;
    background-color: grey;
    padding: 15px;
    font-size: large;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    align-self: center;
    white-space: nowrap; /* Mencegah teks untuk wrap ke baris baru */
    overflow: hidden;
    text-overflow: ellipsis; /* Menggunakan elipsis jika teks terlalu panjang */
    box-sizing: border-box;
}

#btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.form-check-label {
    margin-top: -1px;
}

input:focus,
select:focus,
textarea:focus {
    border: 1px solid #3498db;
}

/* Media queries untuk layar yang lebih kecil */
@media (max-width: 768px) {
    #form {
        width: 90%;
        padding: 20px;
        margin: 10px auto;
    }

    h1 {
        font-size: 24px;
    }

    .form-control {
        font-size: 14px;
    }

    #btn {
        padding: 0.6rem;
        font-size: 0.8rem;
        box-sizing: border-box;
    }

    .form-check-label {
        font-size: 14px;
        margin-top: -2px;
    }


    /* Penyesuaian ukuran font untuk teks tambahan di bawah checkbox */
    .form-text.text-muted {
        font-size: 0.7rem;
    }
}


/* .error-message {
    color: red;
    font-size: 12.5px;
    position: absolute;
    margin-bottom: 2px;
    margin-top: -17px; 
  }
  
#agreeError {
color: grey;
font-size: 10px;
position: absolute;
margin-top: -30px; 
} */
  