.contact-page {
    display: flex;
    justify-content: center;
    align-items: center; /* <-- zorgt dat het verticaal gecentreerd is */
    min-height: calc(100vh - 120px); /* ruimte houden voor header/footer */
    background: #f5f5f5;
    padding: 100px 20px; /* meer ruimte rond het formulier */
}

.contact-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    padding: 50px 60px;
    max-width: 700px;
    width: 100%;
    animation: fadeIn 0.4s ease-in-out;
    margin-top: 40px; /* extra marge van de header af */
    margin-bottom: 60px; /* wat lucht boven de footer */
}

.contact-card h1 {
    color: #222;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-card .intro {
    color: #555;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form label {
    font-weight: 600;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.15);
    background: #fff;
    outline: none;
}

.contact-form button {
    background: #000;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-form button:hover {
    background: #c62828;
}

.success-msg,
.error-msg {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-msg {
    background: #e6ffed;
    color: #1b7d2f;
    border: 1px solid #a6f0b8;
}

.error-msg {
    background: #ffecec;
    color: #a12626;
    border: 1px solid #f5a7a7;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .contact-card {
        padding: 30px 20px;
        margin-top: 30px;
    }
}
