/* ---------- Basis layout ---------- */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    padding: 40px;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------- Titels en intro ---------- */
h1 {
    color: #1a73e8;
    font-size: 28px;
    margin-bottom: 10px;
}

.container p {
    text-align: left;
    line-height: 1.4;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Formulierblok ---------- */
form.formulierrij {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    width: auto;
    max-width: 1100px;
    box-sizing: border-box;
}

form.formulierrij label {
    flex: 0 0 auto;
    margin-right: 8px;
    white-space: nowrap;
    font-size: 1.05rem;
}

.input-groep {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 16px;
}

.input-groep select,
.input-groep input[type="text"] {
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-size: 1.05rem;
}

.input-groep select {
    flex: 1 1 auto;
}

.input-groep input[type="text"] {
    flex: 1 1 auto;
    width: 100%;
}

.input-groep select:focus,
.input-groep input[type="text"]:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.input-groep button {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 30px;
    white-space: nowrap;
    font-size: 1.1rem;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.input-groep button:hover {
    background-color: #0f5bc3;
}

/* ---------- Mobiel weergave ---------- */
@media (max-width: 640px) {
    form.formulierrij {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .input-groep {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .input-groep select,
    .input-groep input[type="text"],
    .input-groep button {
        width: 100%;
        max-width: 100%;
    }

    .input-groep input[type="text"] {
        min-width: 0;
    }

    .formulier-met-afbeelding {
      max-width: 1100px;
      margin: 0 auto;
}

    .hero-image-rechts {
        margin-top: 20px;
    }
}
/* ---------- Mobiel weergave ---------- */
@media (max-width: 640px) {
    form.formulierrij {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .input-groep {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .input-groep select,
    .input-groep input[type="text"],
    .input-groep button {
        width: 100%;
        max-width: 100%;
    }

    .input-groep input[type="text"] {
        min-width: 0;
    }

    .formulier-met-afbeelding {
        flex-direction: column;
        align-items: center;
    }

    .hero-image-rechts {
        margin-top: 20px;
    }
}

/* ---------- Fix: hoogte van selectievak mobiel ---------- */
@media screen and (max-width: 600px) {
    select#vorm {
        height: 40px;
        padding: 6px 10px;
        font-size: 1rem;
        border-radius: 6px;
    }
}


/* ---------- Output styling ---------- */
.output p {
    margin-bottom: 1em;
}

/* ---------- Dagelijks weetje ---------- */
#wistjedat {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #555;
    animation: fadeInText 0.6s ease-in;
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Afbeelding rechts + layout fix ---------- */
.formulier-met-afbeelding {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 2rem;
}

.formulierblok {
    flex: 1 1 600px;
    min-width: 320px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formulierblok form {
    width: 100%;
}

.hero-image-rechts {
    flex: 0 0 180px;
    max-width: 200px;
    text-align: center;
}

.hero-image-rechts img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    opacity: 0.95;
}

/* ---------- Algemene animaties ---------- */
@keyframes fadeInImage {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
