body {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    background: rgb(210, 210, 210);
    font-family: calibri, Open Sans, sans-serif;
    display: grid;    
}

/* General styles for the form */
form {
    font-family: Calibri, sans-serif;
    width: 100%;
    height: auto;
    margin: 10px auto;
    border: none;
}

#form_container {
    width: 350px;
    height: auto;
    margin: 10px auto;
    padding: 10px;
    border-radius: 10px;
    background: #95a5a6;
    box-shadow: 15px 15px 8px #292929;
    z-index: 3;
    border: none;
    align-items: flex-start; /* Links uitlijnen van de inhoud */
}

/* Specific styles for input fields */
input, select, textarea {
    width: calc(100% - 5px); /* Ensures space for padding and margin */
    height: 25px;
    font-size: 12px;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    margin-bottom: 10px; /* Adjust as needed */
    padding: 0px 0px 0px;
    border: 2px solid transparent;
    border-radius: 5px;
    box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
    position: relative;
}

textarea {
    width: calc(100% - 10px);
    height: 50px;
    padding: 2px 2px 2px;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 5px;
    box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
    position: relative;
    resize: none;
}

/* 'Inschrijvingsformulier' title */
#title {
    text-align: center;
    font-family: allura;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    margin: 0;
    color: white;
    text-shadow: 1px 1px 2px #292929, -1px -1px 0.5px #292929;
}

input:focus {
    outline: none;
    border: 2px solid transparent;
}

input.isRequired {
    border: 2px solid #e74c3c;
}

button {
    width: 100%;
    max-width: 250px;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color: #34495e;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 1px 1px 1px #292929, -1px -1px 1px #b2b2b2;
}

button:hover {
    background-color: #2c3e50;
}

button:focus {
    box-shadow: 1px 1px 1px #b2b2b2, -1px -1px 1px #292929;
}

.button-group,
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.label-algemeen {
    font-family: Calibri, sans-serif;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.label-notitie {
    font-family: Calibri, sans-serif;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 5px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-group label {
    font-family: Calibri, sans-serif;
    font-size: 14px;
    width: auto; /* Pas de breedte aan naar wens */
    font-weight: bold;
    margin-right: 10px; /* Ruimte tussen label en invoerveld */
}

.form-group input {
    margin-right: 10px;
}

.prefix {
    max-width: 6ch; /* Width of 5 characters */
    padding: 2px 2px 2px;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 5px;
    box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
    position: relative;
    text-align: center;
}

.tel {
    max-width: 14ch;
    padding: 2px 2px 2px;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 5px;
    box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
    position: relative;
    text-align: center;
}

.telvol {
    max-width: 20ch;
    padding: 2px 2px 2px;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 5px;
    box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
    position: relative;
    text-align: center;
}
  
.info {
    font-family: "Calibri", sans-serif;
    font-size: 11px;
    font-style: italic;
}

#gebruikerslijst {
    list-style: none;
    padding: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none;
}

#gebruikerslijst li {
    padding: 5px;
    cursor: pointer;
}

#gebruikerslijst li:hover {
    background: #f0f0f0;
}

input::placeholder {
    color: grey;
    font-style: italic;
    opacity: 1; /* Zorgt dat het niet te licht is */
    }
	
.foutmelding {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 5px;
    display: none;
	}
input.fout {
    border: 2px solid #ff4d4d;
	}

/* Mobiele optimalisatie voor schermen = 400px */
@media screen and (max-width: 400px) {
    html, body {
        margin: 0;
        padding: 0;
        font-size: 16px;
        line-height: 1.5;
        font-family: Arial, sans-serif;
        background-color: #f9f9f9;
    }

    #form_container {
        padding: 15px;
        box-sizing: border-box;
        width: 100%;
    }

    h1, h2, h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    p {
        font-size: 1em;
        margin-bottom: 10px;
    }

    input, select, textarea {
        width: 100%;
        font-size: 16px;
        padding: 10px;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    button {
        font-size: 16px;
        padding: 10px 15px;
        width: 100%;
        background-color: #007BFF;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    button:hover {
        background-color: #0056b3;
    }

    #gebruikerslijst {
        max-height: 300px;
        overflow-y: auto;
        font-size: 16px;
        background-color: #fff;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .alert, .error, .success {
        font-size: 14px;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 5px;
    }

    .alert { background-color: #ffecb3; }
    .error { background-color: #f8d7da; color: #721c24; }
    .success { background-color: #d4edda; color: #155724; }
}
