/* =========================================================
   BITO VASTGOED — FOOTER
   ========================================================= */

/* Forceer horizontale footer layout */
.custom-footer .footer-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

/* Kolommen */
.custom-footer .footer-col {
    flex: 1;
    min-width: 0;
}

/* Zorg dat theme widget geen 100% breedte forceert */
.custom-footer {
    width: 100% !important;
}

/* Mobiel */
@media (max-width: 768px) {
    .custom-footer .footer-wrapper {
        flex-direction: column !important;
        gap: 40px;
    }
}

/* Forceer consistente footer kleuren */
.custom-footer,
.custom-footer p,
.custom-footer span,
.custom-footer li {
    color: #1f2933 !important;
}

.custom-footer h4 {
    color: #072438 !important;
}

.custom-footer a {
    color: #1f2933 !important;
    text-decoration: none;
}

.custom-footer a:hover {
    color: #D4A24C !important;
}

/* Logo spacing */
.custom-footer .footer-logo {
    max-width: 170px;
    margin-bottom: 30px;
}

/* Tagline onder logo */
.custom-footer .footer-tagline {
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.custom-footer .footer-tagline strong {
    display: block;
    margin-bottom: 5px;
}

/* KvK subtieler */
.custom-footer .footer-col p:last-of-type {
    margin-top: 10px;
    opacity: 0.75;
    font-size: 14px;
}

/* Witte footer achtergrond */
.custom-footer {
    background-color: #ffffff !important;
}

/* Volledige footer wrapper wit maken */
.site-footer,
.footer-area,
.footer-sidebar {
    background-color: #ffffff !important;
}

@media (max-width: 1024px) {
    .custom-footer .footer-col:last-child {
        margin-bottom: 60px;
    }
}

/* Mobiele dropdown indicator zichtbaar maken */
@media (max-width: 1024px) {
    .icon-toggle i {
        color: #072438 !important;
    }
}



/* =========================================================
   BITO VASTGOED — DESKTOP HOOFDMENU OP ÉÉN REGEL
   ========================================================= */

@media (min-width: 1025px) {

    /* Headeronderdelen naast elkaar houden */
    #masthead .container.navigation {
        display: flex !important;
        align-items: center !important;
    }

    /* Logo neemt alleen benodigde ruimte in */
    #masthead .width-logo {
        flex: 0 0 auto !important;
    }

    /* Navigatie krijgt de beschikbare middenruimte */
    #masthead .width-navigation {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    #masthead .inner-navigation {
        width: 100% !important;
    }

    /* Werkelijke RealPro menu */
    #masthead #primary-menu.navbar-main-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        white-space: nowrap !important;
    }

    /* Ieder menu-item */
    #masthead #primary-menu.navbar-main-menu > li {
        float: none !important;
        display: block !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* Horizontale ruimte verkleinen */
    #masthead #primary-menu.navbar-main-menu > li > a {
        display: block !important;

        padding-left: 11px !important;
        padding-right: 11px !important;

        white-space: nowrap !important;
    }

    /* Rechter CTA-kolom */
    #masthead .width-header-right {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: 18px !important;
    }
}



/* =========================================================
   BITO VASTGOED — COMPACTE MOBIELE HEADER
   ========================================================= */

@media (max-width: 1024px) {

    /* Hoofdheader */
    #masthead .container.navigation {
        height: 130px !important;
        min-height: 130px !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;

        align-items: center !important;

        overflow: hidden !important;
    }

    /* Logo-kolom exact binnen de header houden */
    #masthead .width-logo {
        display: flex !important;
        align-items: center !important;

        height: 130px !important;
        min-height: 130px !important;
        max-height: 130px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;

        background: transparent !important;
    }

    /* Logo */
    #masthead .width-logo img {
        display: block !important;

        width: 175px !important;
        max-width: 175px !important;

        height: auto !important;
        max-height: 100px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* Geen extra verticale ruimte in logo-link */
    #masthead .width-logo a {
        display: flex !important;
        align-items: center !important;

        height: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        line-height: 1 !important;
    }
}



/* =========================================================
   ECHTE TELEFOONS
   ========================================================= */

@media (max-width: 600px) {

    #masthead .container.navigation {
        height: 120px !important;
        min-height: 120px !important;
    }

    #masthead .width-logo {
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
    }

    #masthead .width-logo img {
        width: 165px !important;
        max-width: 165px !important;
        max-height: 90px !important;
    }
}



/* =========================================================
   BITO FORMULIEREN
   Verkoopaanvraag + Vastgoedinformatie
   ========================================================= */


/* ---------------------------------------------------------
   ALGEMENE FORMULIERSTRUCTUUR
   --------------------------------------------------------- */

.bito-sale-form {
    width: 100%;
}

.bito-sale-form .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.bito-sale-form .bito-field > label {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}


/* ---------------------------------------------------------
   BOVENKANT FORMULIER
   --------------------------------------------------------- */

.bito-sale-form .bito-form-header {
    margin-bottom: 38px;
}

.bito-sale-form .bito-form-kicker {
    display: block;
    margin-bottom: 8px;
}

.bito-sale-form .bito-form-header h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.bito-sale-form .bito-form-header p {
    margin: 0;
    max-width: 720px;
    line-height: 1.6;
}

/* Eventuele oude voortgangstekst verbergen */
.bito-sale-form .bito-form-progress {
    display: none !important;
}


/* ---------------------------------------------------------
   SECTIES
   --------------------------------------------------------- */

.bito-sale-form .bito-form-section {
    margin-bottom: 48px;
}

.bito-sale-form .bito-form-section-head {
    display: flex !important;
    align-items: baseline !important;
    gap: 12px;
    margin-bottom: 26px;
}

.bito-sale-form .bito-form-section-head > span {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    opacity: 0.65;
}

.bito-sale-form .bito-form-section-head > div {
    flex: 1;
}

.bito-sale-form .bito-form-section-head h3 {
    margin: 0 0 8px 0 !important;
}

.bito-sale-form .bito-form-section-head p {
    margin: 0 !important;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   GRID & VELDEN
   --------------------------------------------------------- */

.bito-sale-form .bito-form-grid {
    row-gap: 26px;
}

.bito-sale-form .bito-field {
    margin-bottom: 0;
}

.bito-sale-form .bito-field-full {
    grid-column: 1 / -1;
}


/* ---------------------------------------------------------
   TEKST-, NUMMER-, DATUM- EN CONTACTVELDEN
   --------------------------------------------------------- */

.bito-sale-form input[type="text"],
.bito-sale-form input[type="email"],
.bito-sale-form input[type="tel"],
.bito-sale-form input[type="number"],
.bito-sale-form input[type="date"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

    min-height: 46px !important;

    padding: 10px 12px !important;

    box-sizing: border-box !important;

    font: inherit !important;
}


/* ---------------------------------------------------------
   TEXTAREA
   --------------------------------------------------------- */

.bito-sale-form textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

    padding: 12px !important;

    box-sizing: border-box !important;

    font: inherit !important;
}


/* ---------------------------------------------------------
   SELECTVELDEN
   --------------------------------------------------------- */

.bito-sale-form select,
.bito-sale-form select.wpcf7-select,
.bito-sale-form .wpcf7-form-control-wrap select {
    -webkit-appearance: none !important;
    appearance: none !important;

    display: block !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;

    height: 46px !important;
    min-height: 46px !important;

    padding: 10px 42px 10px 12px !important;
    margin: 0 !important;

    box-sizing: border-box !important;

    font: inherit !important;
    line-height: 1.3 !important;

    background-color: #ffffff !important;
    background-image: none !important;

    cursor: pointer !important;
}


/* Wrapper gebruiken als anker voor de dropdown-chevron */
.bito-sale-form .wpcf7-form-control-wrap:has(select) {
    position: relative !important;
}


/* Eigen Bito-chevron */
.bito-sale-form .wpcf7-form-control-wrap:has(select)::after {
    content: "";

    position: absolute;

    right: 16px;
    top: 50%;

    width: 6px;
    height: 6px;

    border-right: 1.5px solid #0b2f47;
    border-bottom: 1.5px solid #0b2f47;

    transform: translateY(-65%) rotate(45deg);

    pointer-events: none;

    z-index: 2;
}


/* Nog niet gekozen dropdownwaarde subtieler */
.bito-sale-form select:has(option:checked[value=""]) {
    color: rgba(11, 47, 71, 0.46) !important;
}


/* Werkelijke opties donker */
.bito-sale-form select option {
    color: #0b2f47 !important;
}


/* ---------------------------------------------------------
   CHECKBOXES & RADIOBUTTONS
   --------------------------------------------------------- */

.bito-sale-form .bito-check-grid {
    margin-bottom: 4px;
}

.bito-sale-form .bito-main-label {
    display: block;
    margin-bottom: 12px !important;
}

.bito-sale-form .wpcf7-checkbox,
.bito-sale-form .wpcf7-radio {
    line-height: 1.8;
}


/* ---------------------------------------------------------
   CONDITIONAL FIELDS
   BELANGRIJK: GEEN DISPLAY FORCEREN OP DE GROUP-WRAPPER
   --------------------------------------------------------- */

.bito-sale-form .wpcf7cf_group,
.bito-sale-form [data-class="wpcf7cf_group"] {
    width: 100% !important;
    max-width: 100% !important;
}


/* Conditional group binnen hoofdgrid altijd volledige breedte */
.bito-sale-form .bito-form-grid > .wpcf7cf_group,
.bito-sale-form .bito-form-grid > [data-class="wpcf7cf_group"] {
    grid-column: 1 / -1 !important;

    width: 100% !important;
    max-width: 100% !important;
}


/*
 * Alleen de INHOUD van een zichtbare conditional group
 * mag als grid worden weergegeven.
 */
.bito-sale-form .bito-conditional-grid {
    display: grid !important;

    width: 100% !important;
    max-width: 100% !important;

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

    gap: 26px 20px !important;
}

.bito-sale-form .bito-conditional-grid .bito-field {
    min-width: 0 !important;
}

.bito-sale-form .bito-conditional-grid .wpcf7-form-control-wrap {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
}


/* ---------------------------------------------------------
   DOCUMENTUPLOAD
   --------------------------------------------------------- */

.bito-sale-form input[type="file"] {
    display: block;

    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    margin-top: 7px !important;
    margin-bottom: 0 !important;
}


/* ---------------------------------------------------------
   HELPERTEKST
   --------------------------------------------------------- */

.bito-sale-form .bito-field-help {
    display: block;

    margin: 7px 0 0 0 !important;
    padding: 0 !important;

    font-size: 0.9em;
    line-height: 1.5;

    opacity: 0.72;
}


/* ---------------------------------------------------------
   SECUNDAIRE LABELTEKST
   --------------------------------------------------------- */

.bito-sale-form .bito-optional {
    display: inline-block;

    margin-left: 5px;

    font-size: 0.78em;
    font-weight: 400;

    color: rgba(11, 47, 71, 0.48);

    vertical-align: baseline;
}


/* ---------------------------------------------------------
   PRIVACY & DISCLAIMER
   --------------------------------------------------------- */

.bito-sale-form .bito-form-footer {
    margin-top: 10px;
}

.bito-sale-form .bito-privacy {
    margin-bottom: 18px;
    line-height: 1.55;
}

.bito-sale-form .bito-form-expectation {
    display: block;

    width: 100%;
    max-width: none !important;

    margin: 0 0 22px 0 !important;
    padding: 14px 16px !important;

    box-sizing: border-box;

    border: 1px solid rgba(7, 36, 56, 0.14);
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.45);

    font-size: 0.92em;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   VERZENDKNOP
   --------------------------------------------------------- */

.bito-sale-form input[type="submit"] {
    margin-top: 0 !important;
}


/* ---------------------------------------------------------
   MOBIEL
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .bito-sale-form .bito-form-header {
        margin-bottom: 30px;
    }

    .bito-sale-form .bito-form-section {
        margin-bottom: 40px;
    }

    .bito-sale-form .bito-form-section-head {
        gap: 9px;
        margin-bottom: 22px;
    }

    .bito-sale-form .bito-conditional-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }
}