/* =====================================================
   DRIVE BY DAAN - CONTACT
===================================================== */


/* =====================================================
   SECTIE
===================================================== */

.contact {
    position: relative;

    overflow: hidden;

    padding: 95px 0 105px;

    background:
        linear-gradient(
            180deg,
            #0e0f11 0%,
            #111216 100%
        );

    color: #ffffff;
}

.contact::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -170px;
    top: -180px;

    border-radius: 50%;

    background: rgba(227, 6, 19, .07);

    filter: blur(35px);

    pointer-events: none;
}

.contact .container {
    position: relative;

    z-index: 2;

    width: min(1180px, calc(100% - 64px));

    margin-inline: auto;
}


/* =====================================================
   SECTION HEADER
===================================================== */

.contact .section-header {
    max-width: 800px;

    margin: 0 auto 48px;

    text-align: center;
}

.contact .section-title {
    display: block;

    margin: 0 0 11px;

    color: #ff1a1a;

    font-size: 13px;
    line-height: 1.2;

    font-weight: 900;

    letter-spacing: 4px;

    overflow-wrap: anywhere;
}

.contact .section-heading {
    margin: 0 0 15px;

    color: #ffffff;

    font-size: clamp(38px, 4vw, 52px);
    line-height: 1.05;

    font-weight: 900;

    letter-spacing: -1.2px;

    overflow-wrap: anywhere;
}

.contact .section-header p {
    max-width: 700px;

    margin: 0 auto;

    color: #a8a8a8;

    font-size: 17px;
    line-height: 1.65;

    overflow-wrap: anywhere;
}


/* =====================================================
   CONTACT GRID
===================================================== */

.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .85fr)
        minmax(0, 1.15fr);

    gap: 22px;

    align-items: start;
}


/* =====================================================
   CONTACT INFO
===================================================== */

.contact-info {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.info-card {
    position: relative;

    min-width: 0;
    min-height: 140px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 24px 22px;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            #1d1e20 0%,
            #17181a 100%
        );

    border: 1px solid rgba(255,255,255,.07);

    border-radius: 16px;

    box-shadow:
        0 14px 35px rgba(0,0,0,.18);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.info-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 42px;
    height: 3px;

    background: #e30613;

    border-radius: 16px 0 0 0;
}

.info-card:hover {
    transform: translateY(-4px);

    border-color: rgba(227,6,19,.24);

    box-shadow:
        0 20px 42px rgba(0,0,0,.24);
}

.info-card h4 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 16px;
    line-height: 1.25;

    font-weight: 900;

    overflow-wrap: anywhere;
}

.info-card p {
    margin: 0;

    color: #b6b6b6;

    font-size: 15px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

.info-card p a {
    color: #b6b6b6;

    text-decoration: none;

    transition: color .2s ease;
}

.info-card p a:hover {
    color: #ffffff;

    text-decoration: underline;

    text-underline-offset: 3px;
}

.info-card:nth-child(3),
.info-card:nth-child(4) {
    min-height: 126px;
}


/* =====================================================
   CONTACT FORMULIER
===================================================== */

.contact-form {
    padding: 30px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 20px 55px rgba(0,0,0,.12);
}

.contact-form form {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;
}


/* =====================================================
   FORMULIER LABELS
===================================================== */

.contact-form label {
    display: block;

    grid-column: 1 / -1;

    margin: 2px 0 -6px;

    color: #333333;

    font-size: 13px;
    line-height: 1.3;

    font-weight: 800;
}


/* =====================================================
   INPUTS & TEXTAREA
===================================================== */

.contact-form input,
.contact-form textarea {
    width: 100%;

    min-height: 52px;

    box-sizing: border-box;

    padding: 13px 15px;

    background: #f7f7f8;

    color: #111111;

    border: 1px solid #dedee1;

    border-radius: 9px;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}


/* =====================================================
   GRID POSITIES
===================================================== */

/*
   Omdat labels en velden samen in dezelfde grid zitten,
   laten we de velden expliciet over de juiste kolommen lopen.
*/

.contact-form input[name="name"],
.contact-form input[name="email"] {
    grid-column: span 1;
}

.contact-form input[name="phone"],
.contact-form textarea,
.contact-form button {
    grid-column: 1 / -1;
}


/* =====================================================
   TEXTAREA
===================================================== */

.contact-form textarea {
    min-height: 150px;

    resize: vertical;

    line-height: 1.55;
}


/* =====================================================
   FOCUS
===================================================== */

.contact-form input:focus,
.contact-form textarea:focus {
    background: #ffffff;

    border-color: #e30613;

    box-shadow:
        0 0 0 3px rgba(227,6,19,.10);
}


/* =====================================================
   PLACEHOLDERS
===================================================== */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9a9a9a;

    opacity: 1;
}


/* =====================================================
   BUTTON
===================================================== */

.contact-form button {
    min-height: 52px;

    margin-top: 2px;

    padding: 0 24px;

    border: 0;

    border-radius: 9px;

    background: #e30613;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 900;

    cursor: pointer;

    transition:
        background-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.contact-form button:hover {
    background: #c80511;

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(227,6,19,.22);
}

.contact-form button:focus-visible {
    outline: 3px solid rgba(227,6,19,.25);

    outline-offset: 3px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .contact-info {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =====================================================
   MOBIEL
===================================================== */

@media (max-width: 768px) {

    .contact {
        padding: 72px 0 78px;
    }

    .contact .container {
        width: calc(100% - 32px);
    }

    .contact .section-header {
        margin-bottom: 36px;
    }

    .contact .section-title {
        font-size: 12px;

        letter-spacing: 3.5px;
    }

    .contact .section-heading {
        font-size: 34px;

        line-height: 1.08;
    }

    .contact .section-header p {
        font-size: 16px;

        line-height: 1.6;
    }


    /* INFO KAARTEN */

    .contact-info {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .info-card,
    .info-card:nth-child(3),
    .info-card:nth-child(4) {
        min-height: 118px;
    }


    /* FORMULIER */

    .contact-form {
        padding: 24px 20px;

        border-radius: 16px;
    }

    .contact-form form {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .contact-form label {
        grid-column: 1 / -1;

        margin: 2px 0 -5px;

        font-size: 12px;
    }

    .contact-form input[name="name"],
    .contact-form input[name="email"],
    .contact-form input[name="phone"],
    .contact-form textarea,
    .contact-form button {
        grid-column: 1 / -1;
    }

    .contact-form input,
    .contact-form textarea {
        min-height: 50px;

        font-size: 15px;
    }

    .contact-form textarea {
        min-height: 135px;
    }

    .contact-form button {
        min-height: 52px;

        margin-top: 3px;
    }
}


/* =====================================================
   KLEINE TELEFOONS
===================================================== */

@media (max-width: 480px) {

    .contact {
        padding: 64px 0 70px;
    }

    .contact .section-heading {
        font-size: 31px;
    }

    .contact .section-header p {
        font-size: 15px;
    }

    .contact-form {
        padding: 22px 17px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }

    .contact-form textarea {
        min-height: 125px;
    }

    .contact-form button {
        font-size: 14px;
    }
}

/* =====================================================
   FORMULIER MELDINGEN
===================================================== */

.contact-form-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form-message strong {
    font-weight: 900;
}

.contact-form-success {
    background: #edf9f0;
    border: 1px solid #b9e5c3;
    color: #17652a;
}

.contact-form-error {
    background: #fff0f0;
    border: 1px solid #f0baba;
    color: #a3131a;
}

.contact-form-message span {
    font-weight: 500;
}



.contact-privacy-note {
    margin: 14px 0 18px;
    color: #666;
    font-size: 12px;
    line-height: 1.6;
}

.contact-privacy-note a {
    color: inherit;
    text-decoration: underline;
}
