/* --- General Form Styling --- */
form {
    height: auto;
    width: 90%;
    max-width: 45rem;
    background-color: rgba(255, 255, 255, 0.13);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    margin: 2rem auto;
    border-radius: 0.625rem;
    backdrop-filter: blur(0.625rem);
    border: 0.125rem solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 2.5rem rgba(8, 7, 16, 0.6);
    padding: 1.25rem 2.1875rem 2.1875rem 2.1875rem;
}

form * {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.03125rem;
    outline: none;
    border: none;
}

form h4 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 2.625rem;
    text-align: center;
}

/* Base style for form inputs */
.form-control,
.form-select,
.form-check-input {
    display: block;
    width: 100%;
    background-color: #fff;
    border: none;
    border-radius: 0.1875rem;
    padding: 0.825rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #212529;
    margin-top: 1rem;
}


.form-control::placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    background-color: #fff;
    padding: .375rem .75rem;
}

/* Special case for the file input */
#id_profile_photo {
    margin-top: 0.3125rem;
    color: #fff; /* Make the text visible on the translucent background */
    background-color: transparent; /* Remove background for file input */
}

.profile_photo label {
    margin-top:1.5rem;
    margin-bottom: 1.5rem;
    display: block;
    width: auto;
}

/* Special case for the terms checkbox */
.terms-checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    cursor: pointer; /* Indicate it's clickable */
}

.terms-checkbox-container input {
    width: auto;
    height: auto;
    margin-top: 0;
    margin-right: 0.3125rem;
}

.terms-checkbox-container label {
    margin-left: 0.3125rem;
    margin-top: 1rem;
    white-space: nowrap;
}

/* Autocomplete styling */
.ui-autocomplete {
    background-color: white;
    color: #272a30;
    border: 0.0625rem solid #ddd;
    max-height: 12.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000 !important;
    box-sizing: border-box;
}

.ui-autocomplete-input {
    width: 100%;
}

.ui-autocomplete {
    position: absolute;
}

.card-body {
    position: relative;
}

/* General button and form styling */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    font-size: 1rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004d9a;
}

.form-submit-btn {
    text-align: center;
    margin-top: 1rem;
}