/* ==========================================================================
   CONTACT PAGINA – style-contact.css
   Pixel-accurate op basis van PDF meting (1920px referentie)

   Layout:
   – Linkerkolom: 50% breed, pagina bg (#FFFCF7), titel + intro + formulier
   – Rechterkolom: 50% breed, foto fullscreen fixed (rechts)
   – Titel: PP Museum, ~1.77vw (~34px), gewone case
   – Intro: PP Neue Montreal, ~0.73vw (~14px), lichtgrijs
   – Formulier: velden met alleen onderlijn, label uppercase klein
   – [verzenden]: rechts uitgelijnd, zelfde stijl als andere CTA's
   ========================================================================== */


/* --------------------------------------------------------------------------
   HEADER: direct zichtbaar op contact pagina (geen hero)
   -------------------------------------------------------------------------- */
body.is-contact-page .site-header,
body.page-template-page-contact .site-header {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: all !important;
    background: transparent !important;
}

/* Hero menu knop verbergen op contact pagina */
body.is-contact-page .hero-menu-btn,
body.page-template-page-contact .hero-menu-btn {
    display: none;
}


/* --------------------------------------------------------------------------
   FOTO RECHTERKOLOM – fixed, rechts
   -------------------------------------------------------------------------- */
.contact-foto {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100svh;
    overflow: hidden;
    background: #2A2820;
    z-index: 10;
}

/* Donkere gradient bovenaan, voor leesbaarheid van het (witte) menu erover */
.contact-foto::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 180px;
    background: linear-gradient(to bottom, rgba(16, 16, 14, 0.55) 0%, rgba(16, 16, 14, 0.25) 55%, rgba(16, 16, 14, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.contact-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.contact-foto__placeholder {
    width: 100%;
    height: 100%;
    background: #D8D4CC;
}


/* --------------------------------------------------------------------------
   PAGINA LAYOUT
   -------------------------------------------------------------------------- */
.page-contact {
    min-height: 100svh;
    background: var(--c-page);
    position: relative;
}


/* --------------------------------------------------------------------------
   LINKERKOLOM – CONTENT
   Beperkt tot 50% breedte (rechterkolom is fixed foto)
   Padding: verticaal gecentreerd, horizontale marge ~9.9vw
   -------------------------------------------------------------------------- */
.contact-content {
    width: 50%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(80px, 12vh, 160px);
    padding-bottom: clamp(60px, 10vh, 120px);
    padding-left: clamp(24px, 9.9vw, 190px);
    padding-right: clamp(24px, 6vw, 115px);
    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   TITEL
   Gemeten: ~34px op 1920 = 1.77vw, PP Museum, normale case
   -------------------------------------------------------------------------- */
.contact-titel {
    font-family: var(--f-display);
    font-size: var(--fs-hero);     /* clamp(22px, 1.77vw, 34px) */
    font-weight: 300;
    line-height: 1.2;
    color: var(--c-tekst);
    margin-bottom: clamp(16px, 2vw, 32px);
}


/* --------------------------------------------------------------------------
   INTRO TEKST
   Gemeten: ~14px, PP Neue Montreal, licht grijs, normale regelhoogte
   -------------------------------------------------------------------------- */
.contact-intro p {
    font-family: var(--f-body);
    font-size: var(--fs-body);     /* clamp(12px, 0.73vw, 14px) */
    font-weight: 400;
    line-height: 1.7;
    color: var(--c-tekst);
    max-width: 38ch;
}


/* --------------------------------------------------------------------------
   FORMULIER – Contact Form 7 styling
   CF7 structuur (geen labels, enkel placeholders):
     <div class="wpcf7">
       <form class="wpcf7-form">
         <p><span class="wpcf7-form-control-wrap"><input ...></span></p>
         <p><input type="submit" ...></p>
       </form>
     </div>
   -------------------------------------------------------------------------- */
.contact-formulier {
    width: 100%;
}

/* CF7 container reset */
.contact-formulier .wpcf7 {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Form: verticale stapeling */
.contact-formulier .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    max-width: clamp(300px, 25vw, 373px);
}

/* CF7 wikkelt elk veld in een <p> */
.contact-formulier .wpcf7-form > p {
    margin: 0;
    padding: 0;
    margin-top: clamp(20px, 2.5vw, 36px);
    display: block;
}

/* span wrapper rond het input element */
.contact-formulier .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Input velden: alleen onderlijn */
.contact-formulier input[type="text"],
.contact-formulier input[type="email"],
.contact-formulier input[type="tel"] {
    display: block;
    width: 100%;
    max-width: clamp(300px, 25vw, 373px);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(16, 16, 14, 0.35);
    border-radius: 0;
    outline: none;
    font-family: var(--f-body);
    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--c-tekst);
    padding: 8px 0 10px;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.3s ease;
    box-shadow: none;
}

.contact-formulier input[type="text"]:focus,
.contact-formulier input[type="email"]:focus,
.contact-formulier input[type="tel"]:focus {
    border-bottom-color: var(--c-tekst);
    outline: none;
    box-shadow: none;
}

/* Placeholder: zelfde stijl als label in PDF – uppercase, klein, lichtgrijs */
.contact-formulier input::placeholder {
    font-family: var(--f-body);
    font-size: var(--fs-nav);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(16, 16, 14, 0.4);
    opacity: 1;
}

/* Submit wrapper: rechts uitlijnen + brackets via pseudo op de <p> */
.contact-formulier .wpcf7-form > p:last-of-type {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: clamp(28px, 3.5vw, 56px);
    position: relative;
}

/* Brackets via pseudo-elementen op de wrapper <p> */
.contact-formulier .wpcf7-form > p:last-of-type::before {
    content: '[';
    font-family: var(--f-body);
    font-size: var(--fs-nav);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-tekst);
    text-transform: uppercase;
    line-height: 1;
}

.contact-formulier .wpcf7-form > p:last-of-type::after {
    content: ']';
    font-family: var(--f-body);
    font-size: var(--fs-nav);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-tekst);
    text-transform: uppercase;
    line-height: 1;
}

/* Submit knop zelf */
.contact-formulier input[type="submit"],
.contact-formulier .wpcf7-submit {
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--f-body);
    font-size: var(--fs-nav);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-tekst);
    padding: 0;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1;
}

.contact-formulier input[type="submit"]:hover,
.contact-formulier .wpcf7-submit:hover {
    opacity: 0.45;
}

/* CF7 response berichten */
.contact-formulier .wpcf7-response-output {
    font-family: var(--f-body);
    font-size: var(--fs-nav);
    margin-top: clamp(16px, 2vw, 24px);
    padding: 0;
    border: none !important;
    color: var(--c-tekst);
    opacity: 0.6;
}

.contact-formulier .wpcf7-not-valid-tip {
    font-family: var(--f-body);
    font-size: var(--fs-nav);
    color: var(--c-tekst);
    opacity: 0.5;
    margin-top: 4px;
    display: block;
}

/* Spinner verbergen */
.contact-formulier .wpcf7-spinner {
    display: none !important;
}

/* --------------------------------------------------------------------------
   PLACEHOLDER FALLBACK (geen CF7)
   -------------------------------------------------------------------------- */
.contact-formulier__placeholder {
    display: flex;
    flex-direction: column;
}

.contact-veld {
    display: flex;
    flex-direction: column;
    margin-top: clamp(20px, 2.5vw, 36px);
}

.contact-veld__label {
    font-family: var(--f-body);
    font-size: var(--fs-nav);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-tekst);
    margin-bottom: 6px;
}

.contact-veld__lijn {
    width: clamp(200px, 19.4vw, 373px);
    height: 1px;
    background: var(--c-tekst);
    margin-top: 24px;
}

.contact-verzenden {
    margin-top: clamp(28px, 3.5vw, 56px);
    text-align: right;
    max-width: clamp(200px, 19.4vw, 373px);
}

.contact-verzenden__btn {
    font-family: var(--f-body);
    font-size: var(--fs-nav);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--c-tekst);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.contact-verzenden__btn:hover {
    opacity: 0.45;
}


/* --------------------------------------------------------------------------
   FOOTER op contact pagina: volledige breedte (niet 50%)
   -------------------------------------------------------------------------- */
body.page-template-page-contact .site-footer,
body.is-contact-page .site-footer {
    position: relative;
    z-index: 20;
}


/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {

    /* Foto: niet meer fixed, gewone block bovenaan */
    .contact-foto {
        position: relative;
        width: 100%;
        height: 66vw;
        z-index: auto;
    }

    /* Content: volledige breedte, geen extra padding-top nodig (foto staat erboven) */
    .contact-content {
        width: 100%;
        min-height: auto;
        padding-top: clamp(40px, 8vw, 80px);
        padding-bottom: clamp(40px, 8vw, 80px);
        padding-left: var(--gutter-s);
        padding-right: var(--gutter-s);
        justify-content: flex-start;
    }

    .contact-formulier input[type="text"],
    .contact-formulier input[type="email"],
    .contact-formulier input[type="tel"] {
        max-width: 100%;
        width: 100%;
    }

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

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

    .contact-intro p {
        max-width: 100%;
    }
}
