/***** Nieuwsbrief: velden + knop op 1 rij (desktop) *****/
@media (min-width: 767px) {
    .et_pb_newsletter_fields {
        display: flex;
        gap: 10px; /* optioneel: ruimte tussen veld en knop */
        align-items: center;
    }
    .et_pb_newsletter_fields .et_pb_newsletter_field {
        flex: 1 1 auto !important;   /* veld neemt resterende ruimte */
        min-width: 0;                 /* voorkomt overflow bij smalle kolommen */
    }
    .et_pb_newsletter_fields .et_pb_newsletter_button_wrap {
        flex: 0 0 210px !important;   /* vaste breedte voor de knop */
    }
}

/***** Veld-styling *****/
.veld {
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0 10px;
    font-family: inherit;
    background-color: #fff;
    height: 35px;
    min-width: 0;
    flex: 1 1 auto;
}

/***** Nieuwsbrief-knop (contact submit) *****/
.et_pb_contact_submit {
    color: #36a9e1 !important;
    border: 0 !important;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    background-image: url(https://www.theoryinamsterdam.nl/wp-content/uploads/2021/10/Inschrijven-background.png) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: normal;
    height: 50px;
    display: flex;
    align-items: center;     /* verticale centrering tekst */
    justify-content: center; /* horizontale centrering tekst */
    transition: transform 300ms ease;
}

/* Let op: dit geldt nu voor ALLE Divi-knoppen */
.et_pb_button:hover {
    border: 2px solid transparent;
    padding: .3em 1em !important; /* vaste padding om layout shift te beperken */
    transform: scale(1.2);
}

/***** Menu: lange mobiele menu's laten scrollen *****/
/* Standaard Divi mobiel menu */
.et_mobile_menu {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Theme Builder Menu Module */
.et_pb_menu .et_mobile_menu {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Start altijd dicht */
.et_mobile_menu .menu-item-has-children > ul {
    display: none;
}

.et_mobile_menu .menu-item-has-children.open > ul {
    display: block;
}

/* Pijltje (draait bij open) */
.et_mobile_menu .menu-item-has-children > a:after {
    content: "▸";
    float: right;
    transition: transform 0.2s ease;
}

.et_mobile_menu .menu-item-has-children.open > a:after {
    transform: rotate(90deg);
}

/***** Hamburger Menu Icons *****/
/* Zorg dat currentColor logisch is (pakt meestal automatisch de menu-kleur) */
.mobile_menu_bar {
    color: inherit;
}

/* Divi hamburger: vervang icon-font door inline SVG (data URI) */
.mobile_menu_bar:before {
    content: "" !important;
    display: inline-block;
    width: 26px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    /* 3-lijnen hamburger SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20' viewBox='0 0 26 20'%3E%3Crect x='0' y='0' width='26' height='3' rx='1.5'/%3E%3Crect x='0' y='8.5' width='26' height='3' rx='1.5'/%3E%3Crect x='0' y='17' width='26' height='3' rx='1.5'/%3E%3C/svg%3E") !important;

    /* Kleur overnemen van tekstkleur */
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20' viewBox='0 0 26 20'%3E%3Crect x='0' y='0' width='26' height='3' rx='1.5'/%3E%3Crect x='0' y='8.5' width='26' height='3' rx='1.5'/%3E%3Crect x='0' y='17' width='26' height='3' rx='1.5'/%3E%3C/svg%3E") !important;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20' viewBox='0 0 26 20'%3E%3Crect x='0' y='0' width='26' height='3' rx='1.5'/%3E%3Crect x='0' y='8.5' width='26' height='3' rx='1.5'/%3E%3Crect x='0' y='17' width='26' height='3' rx='1.5'/%3E%3C/svg%3E") !important;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/* Als menu open is, toon X */
.mobile_nav.opened .mobile_menu_bar:before {
    width: 22px;
    height: 22px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M2 2 L20 20 M20 2 L2 20' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") !important;

    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M2 2 L20 20 M20 2 L2 20' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M2 2 L20 20 M20 2 L2 20' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

/***** WhatsApp Floating Button *****/
.ntc-whatsapp-float {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    width: 60px !important;
    height: 60px !important;
    z-index: 99999 !important;
    display: block !important;
    transition: transform 0.3s ease !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 50% !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.ntc-whatsapp-float img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    pointer-events: none !important;
    border-radius: 50% !important;
    max-width: none !important;
    max-height: none !important;
}

.ntc-whatsapp-float:hover {
    transform: scale(1.1) !important;
    opacity: 1 !important;
}

/* Responsive aanpassingen voor mobiel */
@media (max-width: 767px) {
    .ntc-whatsapp-float {
        width: 56px !important;
        height: 56px !important;
        bottom: 20px !important;
        left: 20px !important;
    }
}