@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap");

html {
    font-family: "Raleway";
}

body {
    background-color: black;
    margin: 0;
    padding: 0;
}

.navigatiebalk {
    background-color: rgba(24, 30, 80, 0.356);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: 120px;
    color: white;
    text-align: center;
    line-height: 80px;
    font-size: 24px;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.banner-container {
    width: 100%;
    height: 500px;
    background-image: url('/images/formbanner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    user-select: none;
    pointer-events: none;
}

.banner-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.pagina .box h2 {
    text-align: center;
    padding-left: 50px;
    padding-bottom: 45px;
    font-size: 18px;
    font-family: "Raleway";
    color: white;
}

h3 {
    text-align: center;
    color: white;
    font-size: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

label {
    display: block;
    font-size: 18px;
    color: white;
    transition: color 0.3s ease;
    margin-bottom: 5px;
}

footer {
    text-align: center;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1em 0;
}

footer a {
    color: #6f8ab7;
    text-decoration: wavy;
    transition: color 0.3s ease;
}

.pagina {
    padding: 30px;
    color: white;
    font-family: "Montserrat";
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 120px auto;
    max-width: 800px;
    box-shadow: grey 0px 0px 5px 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 90%;
}

.pagina:hover {
    transform: scale(1.01);
    box-shadow: lightgrey 0px 0px 8px 8px;
}

header {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: color 0.3s ease;
    text-align: center;
}

.pagina main form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Nieuwe grid-structuur */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    transition: all 0.3s ease;
}

/* Label + input samen */
.form-grid .form-group {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pagina main form input,
.pagina main form select,
.pagina main form button,
#plaats,
#straat {
    height: 40px;
    width: 100%;
    font-size: 18px;
    border-radius: 10px;
    border: solid white 0.5px;
    padding: 10px;
    background-color: rgb(0, 0, 0);
    box-sizing: border-box;
    color: white;
    transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}

input:focus,
select:focus {
    box-shadow: 3px 3px 15px rgb(255, 255, 255);
    outline: none;
}

button {
    background-color: #37339dab;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    border: solid white 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0f0e3dab;
    transform: scale(1.02);
}

#Verzendbutton:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.dropdown {
    position: relative;
    width: 100%;
}

#search {
    width: 100%;
    padding: 8px;
    border: 10px solid #ffffff;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.881);
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.dropdown-content a {
    padding: 10px;
    display: block;
    text-decoration: none;
    color: black;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.choices__item,
.choices__input,
.choices__dropdown .choices__item {
    color: black !important;
}

.choices__list--multiple .choices__item,
.choices__list--single .choices__item {
    background-color: transparent;
}

.choices__inner {
    width: 100% !important;
    background-color: rgba(234, 249, 255, 0.758);
    border-radius: 10px;
}

#plaats,
#straat {
    background-color: rgba(255, 255, 255, 0.758);
}

option {
    background-color: black;
    color: white;
    transition: background-color 0.3s ease;
}

option:checked,
option:focus {
    background-color: #0800ffab !important;
    color: white !important;
}

#plaatsError,
#straatError {
    color: rgb(255, 0, 0);
    font-size: 12px;
    font-weight: bold;
    font-family: "Raleway";
}

.suggestions {
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    margin-top: 5px;
    position: absolute;
    width: 100%;
    z-index: 10;
    transition: box-shadow 0.3s ease;
}

.suggestions div {
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestions div:hover {
    background-color: #f0f0f0;
}

.blue {
    background-color: #37339dab;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    border: solid white 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.blue:hover {
    background-color: #201e55ab;
    transform: scale(1.02);
}

/* Responsive styling */
@media (max-width: 768px) {
    .navigatiebalk {
        height: 80px;
        line-height: 60px;
        font-size: 18px;
    }

    header {
        font-size: 30px;
    }

    input,
    select,
    button {
        font-size: 16px;
    }

    .pagina {
        margin: 80px auto;
        width: 95%;
        padding: 20px;
    }

    /* Grid in 1 kolom voor mobiel */
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .navigatiebalk {
        height: 60px;
        line-height: 50px;
        font-size: 16px;
    }

    header {
        font-size: 24px;
    }

    .pagina {
        margin: 60px auto;
        width: 95%;
        padding: 15px;
    }

    input,
    select,
    button {
        font-size: 14px;
    }

    .pagina main form {
        flex-direction: column;
        gap: 10px;
    }
}
