/* contact form */
.container-contact {
    flex: 1;
    max-width: 700px;
    background: linear-gradient(to right, #ffa100, #e34e1e);
    border-radius: 3px;
    padding: 2rem;
    border: 1px solid #ffa100;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    /* geen auto-centering */
}

.container-contact form .descr {
    font-size: 50px;
    font-weight: 500;
    color: #e8e8e8;
    margin-bottom: 100px;
    margin-top: 25px;
    text-align: center;
}

.form-contact {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 600px;
}

.input,
textarea {
    margin: 1em 0;
    width: 100%;
    position: relative;
}

.input input,
textarea {
    font-size: 100%;
    padding: 0.7em;
    outline: none;
    color: #e8e8e8;
    border: none;
    border-bottom: 2px solid #e8e8e8;
    background: transparent;
    border-radius: none;
    width: 100%;
    resize: none;
}

.input label {
    font-size: 100%;
    position: absolute;
    left: 0;
    color: #e8e8e8;
    padding: 0.7em;
    margin-left: 0.1em;
    pointer-events: none;
    transition: all 0.5s ease;
    text-transform: uppercase;
    top: 0.7em;
}

.input :is(input:focus, input:valid)~label {
    transform: translateY(-50%) scale(.9);
    margin: 0em;
    padding: 0.4em;
    background: transparent;
    top: 0;
}

.input textarea:focus~label,
.input textarea:valid~label {
    transform: translateY(-50%) scale(.9);
    margin: 0em;
    padding: 0.4em;
    background: transparent;
    top: 0;
}

.input :is(input:focus, input:valid) {
    border-color: rgb(227, 78, 30);
}

.input textarea:focus,
.input textarea:valid {
    border-color: rgb(227, 78, 30);
}

.form-contact button {
    color: #e8e8e8;
    font-size: 15px;
    align-self: flex-start;
    padding: 0.6em;
    border: none;
    cursor: pointer;
    margin-bottom: 50px;
    background: transparent;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.form-contact button:before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e8e8e8;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.form-contact button:hover:before {
    opacity: 0.2;
}

.form-contact button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Maak .input een container met position: relative, zodat labels absoluut kunnen */
.input {
    position: relative;
}

.contact-columns {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 2rem;
    height: 100%;
}

.form-contact {
    flex: 1;
}

.contact-page-layout {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 1rem;
}

/* Linkse kolom bevat kaart + contactgegevens onder elkaar */
.left-column {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    flex: 1;
}

.contact-map {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.contact-info {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    max-width: 700px;
    padding: 1rem;
}

.contact-info a {
    text-decoration: none;
    color: black;
}

.contact-info a:hover {
    color: #e34e1e;
    text-decoration: none;
    transition: all 0.5s;
}

@media (max-width: 576px) {
    .container-contact {
        width: 95%;
        padding: 1rem;
    }

    .form-contact {
        padding: 0;
    }

    .form-contact button {
        font-size: 1rem;
    }

    .descr {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        color: #000;
        /* zwart zoals eerder gevraagd */
    }

    #response {
        font-size: 1rem;
        text-align: center;
        word-wrap: break-word;
    }

    .contact-info {
        max-width: 95%;
        /* past mee met kaart */
        margin: 0;
        /* geen automatische centrering */
        padding-left: 0;
        text-align: left;
        /* altijd links */
        align-self: flex-start;
        /* als flex item */
    }

    .contact-columns {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-page-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-map {
        width: 95%;
        max-width: 400px;
        height: 100%;
    }
}

@media (max-width: 1024px) and (min-width: 577px) {
    .contact-page-layout {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .contact-columns {
        flex-direction: column;
        gap: 1.5rem;
    }

    .container-contact {
        width: 100%;
        padding: 1rem;
        margin: 0 auto;
    }

    .form-contact {
        max-width: 100%;
    }

    .contact-map {
        width: 100%;
        max-width: 100%;
        height: 300px;
        /* of auto, afhankelijk van je voorkeur */
    }

    .left-column {
        max-width: 100%;
    }

    .descr {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .contact-info {
        font-size: 1rem;
        padding-left: 0;
    }
}