/*
 * Zoekformulier "Hou me op de hoogte" (modules/zoekformulier.php).
 *
 * Hand-maintained, not part of the gulp build (see homies-forms.css for the form fields themselves).
 */

/* Block on a page: [homies_zoekformulier] */
.homies-zf {
    background: var(--white);
    padding: var(--large-gutter);
    scroll-margin-top: 96px;
}
/* Already inside a white row (WPBakery row class "free-estimate-wrapper"): no second panel. */
.free-estimate-wrapper .homies-zf {
    background: none;
    padding: 0;
}

.homies-zf--met-uitleg {
    display: grid;
    gap: 32px;
}
@media screen and (min-width: 1024px) {
    .homies-zf--met-uitleg {
        align-items: start;
        gap: var(--huge-gutter);
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
    .homies-zf__uitleg {
        position: sticky;
        top: 120px;
    }
}

.homies-zf__uitleg-binnen {
    background: var(--beige);
    padding: 32px;
}
@media screen and (max-width: 767px) {
    /* Mobile: no beige box inside the white panel, the text gets the full width. */
    .homies-zf__uitleg-binnen {
        background: none;
        padding: 0;
    }
    /* Mobile: the form should come quickly, so the steps only show their title. */
    body .homies-zf .homies-zf__stappen {
        margin-top: 20px;
    }
    body .homies-zf .homies-zf__stappen li {
        padding: 10px 0;
    }
    body .homies-zf .homies-zf__stappen span {
        display: none;
    }
    body .homies-zf .homies-zf__stappen li::before {
        grid-row: auto;
    }
    body .homies-zf .homies-zf__intro {
        font-size: 1rem;
    }
}

body .homies-zf .homies-zf__kicker {
    color: var(--red);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4;
    margin: 0 0 12px;
    text-transform: uppercase;
}
body .homies-zf .homies-zf__titel {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 16px;
    text-wrap: balance;
}
@media screen and (min-width: 1024px) {
    body .homies-zf .homies-zf__titel {
        font-size: 2.1875rem;
    }
}
body .homies-zf .homies-zf__intro {
    font-size: 1.0625rem;
    line-height: 1.55;
    margin: 0;
}

.homies-zf__kop {
    margin-bottom: 32px;
    max-width: 640px;
}

/* Three steps */
body .homies-zf .homies-zf__stappen {
    border-top: 1px solid var(--medium-gray);
    counter-reset: homies-zf-stap;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}
body .homies-zf .homies-zf__stappen li {
    border-bottom: 1px solid var(--medium-gray);
    counter-increment: homies-zf-stap;
    display: grid;
    gap: 2px 16px;
    grid-template-columns: 32px 1fr;
    margin: 0;
    padding: 16px 0;
}
body .homies-zf .homies-zf__stappen li::before {
    color: var(--red);
    content: counter(homies-zf-stap, decimal-leading-zero);
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    grid-row: span 2;
    line-height: 1.5;
}
body .homies-zf .homies-zf__stappen strong {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}
body .homies-zf .homies-zf__stappen span {
    color: var(--dark-gray);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Button: [homies_zoekformulier_knop] */
.homies-zf-knop {
    margin: 0;
}
.homies-zf-knop.vc_btn3-center {
    text-align: center;
}
.homies-zf-knop.vc_btn3-right {
    text-align: right;
}
.homies-zf-knop a.vc_btn3 {
    display: inline-block;
}
.homies-zf-knop a.vc_btn3-color-homies-rand {
    background: transparent;
    border: 1px solid var(--black);
    color: var(--black) !important;
    font-weight: 600;
    line-height: 1;
    padding: 13px 23px;
    text-decoration: none;
    transition: background-color 0.2s var(--ease-out-quad), color 0.2s var(--ease-out-quad);
}
@media (hover: hover) {
    .homies-zf-knop a.vc_btn3-color-homies-rand:hover {
        background: var(--black);
        color: var(--white) !important;
    }
}
.homies-zf-knop a.vc_btn3:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

/* Modal: <dialog id="homies-zf-venster"> */
html.homies-zf-open {
    overflow: hidden;
}

.homies-zf-venster {
    background: var(--white);
    border: 0;
    box-shadow: 0 24px 64px rgba(38, 36, 32, 0.28);
    color: var(--black);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    max-width: 760px;
    overflow: hidden;
    padding: 0;
    width: calc(100% - 48px);
}
.homies-zf-venster::backdrop {
    background: rgba(38, 36, 32, 0.6);
}
.homies-zf-venster[open] {
    animation: homies-zf-in 0.25s var(--ease-out-quad);
}
.homies-zf-venster[open]::backdrop {
    animation: homies-zf-fade 0.25s var(--ease-out-quad);
}
@keyframes homies-zf-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}
@keyframes homies-zf-fade {
    from {
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .homies-zf-venster[open],
    .homies-zf-venster[open]::backdrop {
        animation: none;
    }
}

.homies-zf-venster__paneel {
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

.homies-zf-venster__kop {
    align-items: flex-start;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    flex: none;
    gap: 24px;
    justify-content: space-between;
    padding: 28px 32px 20px;
}
body .homies-zf-venster .homies-zf-venster__titel {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 8px;
}
body .homies-zf-venster .homies-zf-venster__intro {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    max-width: 560px;
}

.homies-zf-venster__sluit {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--black);
    cursor: pointer;
    display: inline-flex;
    flex: none;
    height: 44px;
    justify-content: center;
    margin: -8px -12px 0 0;
    padding: 0;
    transition: background-color 0.15s;
    width: 44px;
}
@media (hover: hover) {
    .homies-zf-venster__sluit:hover {
        background: var(--beige);
    }
}
.homies-zf-venster__sluit:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: -2px;
}

.homies-zf-venster__inhoud {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 32px 32px;
}

/* Small screens (only when the form page is not published): full screen. */
@media screen and (max-width: 767px) {
    .homies-zf-venster {
        height: 100%;
        max-height: 100%;
        max-width: 100%;
        width: 100%;
    }
    .homies-zf-venster__paneel {
        height: 100%;
    }
    .homies-zf-venster__kop {
        padding: 20px 20px 16px;
    }
    body .homies-zf-venster .homies-zf-venster__titel {
        font-size: 1.3125rem;
    }
    .homies-zf-venster__inhoud {
        padding: 20px 20px 32px;
    }
}

/* Confirmation after sending */
.homies-zf .gform_confirmation_message,
.homies-zf-venster .gform_confirmation_message {
    background: var(--beige);
    border-left: 4px solid var(--red);
    font-size: 1.0625rem;
    line-height: 1.55;
    padding: 24px;
}
