/**
 * Domicill global Contact Form 7 foundation
 * Version: 0.4.0
 *
 * Safe, low-specificity form primitives only. This file deliberately does not
 * change the display mode of .wpcf7-form or the widths of CF7M columns, so
 * existing Divi layouts, popup forms and specialised forms keep their layout.
 */

:where(.wpcf7) {
    --dc-cf7-navy: #082b49;
    --dc-cf7-gold: #b68b56;
    --dc-cf7-gold-light: #d3b27d;
    --dc-cf7-ink: #24303a;
    --dc-cf7-muted: #69747c;
    --dc-cf7-line: rgba(8, 43, 73, .16);
    --dc-cf7-danger: #a13d34;
    --dc-cf7-body: Lato, Arial, Helvetica, sans-serif;
    color: var(--dc-cf7-ink);
    font-family: var(--dc-cf7-body);
}

:where(.wpcf7),
:where(.wpcf7) *,
:where(.wpcf7) *::before,
:where(.wpcf7) *::after {
    box-sizing: border-box;
}

:where(.wpcf7) .hidden-fields-container,
:where(.wpcf7) input[type="hidden"] {
    display: none !important;
}

:where(.wpcf7) .wpcf7-form-control-wrap {
    display: block;
    max-width: 100%;
}

:where(.wpcf7) form > .cf7m-row {
    max-width: 100%;
    margin-bottom: 16px;
}

:where(.wpcf7) label {
    color: var(--dc-cf7-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

:where(.wpcf7) :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="url"],
    input[type="date"],
    input[type="search"],
    select,
    textarea
) {
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    margin-top: 7px;
    padding: 13px 14px;
    border: 1px solid var(--dc-cf7-line);
    border-radius: 6px;
    outline: 0;
    background: #fff;
    color: var(--dc-cf7-ink);
    font: 400 14px/1.45 var(--dc-cf7-body);
    box-shadow: 0 1px 1px rgba(8, 43, 73, .02);
    transition: border-color .2s ease, box-shadow .2s ease;
}

:where(.wpcf7) textarea {
    min-height: 135px;
    resize: vertical;
}

:where(.wpcf7) :is(input, textarea)::placeholder {
    color: #8a9399;
    opacity: 1;
}

:where(.wpcf7) :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="url"],
    input[type="date"],
    input[type="search"],
    select,
    textarea
):focus {
    border-color: var(--dc-cf7-gold);
    box-shadow: 0 0 0 3px rgba(182, 139, 86, .13);
}

:where(.wpcf7) :is(.wpcf7-checkbox, .wpcf7-radio, .wpcf7-acceptance) label {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--dc-cf7-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
}

:where(.wpcf7) :is(input[type="checkbox"], input[type="radio"]) {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 1px 0 0;
    accent-color: var(--dc-cf7-gold);
}

:where(.wpcf7) .wpcf7-list-item {
    margin: 0 18px 8px 0;
}

:where(.wpcf7) a {
    color: var(--dc-cf7-navy);
    text-decoration-color: var(--dc-cf7-gold);
    text-underline-offset: 2px;
}

:where(.wpcf7) input[type="submit"] {
    min-height: 52px;
    padding: 13px 27px;
    border: 1px solid var(--dc-cf7-gold);
    border-radius: 7px;
    background: var(--dc-cf7-gold);
    color: #fff;
    cursor: pointer;
    font: 700 12px/1.2 var(--dc-cf7-body);
    letter-spacing: .035em;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

:where(.wpcf7) input[type="submit"]:hover {
    border-color: var(--dc-cf7-gold-light);
    background: var(--dc-cf7-gold-light);
    transform: translateY(-1px);
}

:where(.wpcf7) input[type="submit"]:disabled,
:where(.wpcf7) form.submitting input[type="submit"] {
    cursor: not-allowed;
    opacity: .62;
    transform: none;
}

:where(.wpcf7) .wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

:where(.wpcf7) .wpcf7-not-valid {
    border-color: rgba(161, 61, 52, .62) !important;
}

:where(.wpcf7) .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: var(--dc-cf7-danger);
    font-size: 12px;
    line-height: 1.4;
}

:where(.wpcf7) .wpcf7-response-output {
    margin: 18px 0 0 !important;
    padding: 13px 16px !important;
    border-width: 1px !important;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.5;
}

:where(.wpcf7) form.sent .wpcf7-response-output {
    border-color: #3d8c68 !important;
    background: rgba(61, 140, 104, .08);
}

:where(.wpcf7) form.invalid .wpcf7-response-output,
:where(.wpcf7) form.failed .wpcf7-response-output,
:where(.wpcf7) form.unaccepted .wpcf7-response-output {
    border-color: var(--dc-cf7-danger) !important;
    background: rgba(161, 61, 52, .06);
}

:where(.wpcf7) .wpcf7-turnstile {
    max-width: 100%;
    margin: 18px 0;
}

/*
 * Divi Plus/Divi Supreme CF7 Styler compatibility. Its generated per-module
 * rules have much higher specificity than the global foundation above. These
 * overrides still style controls only; they do not change row/column layout or
 * popup behaviour.
 */
body .dvppl_cf7_styler .dipe-cf7-container .wpcf7 label {
    color: var(--dc-cf7-navy);
    font: 700 13px/1.45 var(--dc-cf7-body);
}
body .dvppl_cf7_styler .dipe-cf7-container .wpcf7 :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="url"],
    input[type="date"],
    input[type="search"],
    select,
    textarea
) {
    min-height: 52px;
    padding: 13px 14px !important;
    border: 1px solid var(--dc-cf7-line) !important;
    border-radius: 8px !important;
    outline: 0;
    background: #fff !important;
    color: var(--dc-cf7-ink) !important;
    font: 400 14px/1.45 var(--dc-cf7-body) !important;
    box-shadow: 0 1px 1px rgba(8,43,73,.02) !important;
}
/* Match the high-specificity input selector generated by CF7 Styler itself. */
body .dvppl_cf7_styler[class*="dvppl_cf7_styler_"] .dipe-cf7-container .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
    min-height: 52px;
    padding: 13px 14px !important;
    border: 1px solid var(--dc-cf7-line) !important;
    border-radius: 8px !important;
    outline: 0;
    background: #fff !important;
    color: var(--dc-cf7-ink) !important;
    font: 400 14px/1.45 var(--dc-cf7-body) !important;
    box-shadow: 0 1px 1px rgba(8,43,73,.02) !important;
}
body .dvppl_cf7_styler .dipe-cf7-container .wpcf7 :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="url"],
    input[type="date"],
    input[type="search"],
    select,
    textarea
):focus {
    border-color: var(--dc-cf7-gold) !important;
    box-shadow: 0 0 0 3px rgba(182,139,86,.13) !important;
}
body .dvppl_cf7_styler[class*="dvppl_cf7_styler_"] .dipe-cf7-container .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus {
    border-color: var(--dc-cf7-gold) !important;
    box-shadow: 0 0 0 3px rgba(182,139,86,.13) !important;
}
body .dvppl_cf7_styler .dipe-cf7-container .wpcf7 textarea { min-height: 135px; }
body .dvppl_cf7_styler .dipe-cf7-container .wpcf7 input[type="submit"] {
    min-height: 52px !important;
    padding: 13px 27px !important;
    border: 1px solid var(--dc-cf7-gold) !important;
    border-radius: 7px !important;
    background: var(--dc-cf7-gold) !important;
    color: #fff !important;
    font: 700 12px/1.2 var(--dc-cf7-body) !important;
    letter-spacing: .035em !important;
    text-transform: uppercase !important;
}
body .dvppl_cf7_styler .dipe-cf7-container .wpcf7 input[type="submit"]:hover {
    border-color: var(--dc-cf7-gold-light) !important;
    background: var(--dc-cf7-gold-light) !important;
}

/*
 * Shared visual shell for every Divi CF7 Styler module.
 *
 * The live website puts the marker class on different ancestors depending on
 * the page (section on Contact/Podcasts, module on Rentmeesterschap, and no
 * marker at all inside Divi Areas popups). Targeting the real CF7 Styler
 * module gives every instance the same obvious branded card without changing
 * the CF7 markup, field order, grid columns or popup behaviour.
 */
body #page-container .et_pb_section .dvppl_cf7_styler.dvppl_cf7_styler {
    padding: clamp(24px, 3vw, 40px) !important;
    border: 1px solid rgba(8, 43, 73, .13) !important;
    border-top: 4px solid var(--dc-cf7-gold, #b68b56) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 18px 55px rgba(8, 43, 73, .11) !important;
}

body #page-container .et_pb_section .dvppl_cf7_styler .wpcf7-form :is(h2, h3, h4) {
    margin: 0 0 20px !important;
    color: var(--dc-cf7-navy) !important;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
    font-size: clamp(28px, 2.5vw, 36px) !important;
    font-weight: 600 !important;
    line-height: 1.05 !important;
    letter-spacing: -.02em !important;
}

body #page-container .et_pb_section .dvppl_cf7_styler .wpcf7-form :is(h2, h3, h4)::after {
    display: block;
    width: 38px;
    height: 2px;
    margin-top: 12px;
    background: var(--dc-cf7-gold);
    content: "";
}

body #page-container .et_pb_section .dvppl_cf7_styler .wpcf7 .wpcf7-list-item-label {
    color: var(--dc-cf7-muted) !important;
    font: 400 13px/1.55 var(--dc-cf7-body) !important;
}

/*
 * Divi writes page-specific rules after external stylesheets. The additional
 * #page-container and wrapper selectors intentionally outrank those cached
 * rules, including the blue Podcasts submit-button rule.
 */
body #page-container .et_pb_section .dvppl_cf7_styler[class*="dvppl_cf7_styler_"] .dipe-cf7-container .wpcf7 .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body #page-container .et_pb_section .dvppl_cf7_styler[class*="dvppl_cf7_styler_"] .dipe-cf7-container .wpcf7 .wpcf7-form select,
body #page-container .et_pb_section .dvppl_cf7_styler[class*="dvppl_cf7_styler_"] .dipe-cf7-container .wpcf7 .wpcf7-form textarea {
    min-height: 52px !important;
    padding: 13px 14px !important;
    border: 1px solid var(--dc-cf7-line) !important;
    border-radius: 8px !important;
    outline: 0 !important;
    background: #fff !important;
    color: var(--dc-cf7-ink) !important;
    font: 400 14px/1.45 var(--dc-cf7-body) !important;
    box-shadow: 0 1px 1px rgba(8, 43, 73, .02) !important;
}

body #page-container .et_pb_section .dvppl_cf7_styler[class*="dvppl_cf7_styler_"] .dipe-cf7-container .wpcf7 .wpcf7-form textarea {
    min-height: 135px !important;
}

body #page-container .et_pb_section .dvppl_cf7_styler[class*="dvppl_cf7_styler_"] .dipe-cf7-container .wpcf7 .wpcf7-form :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
    border-color: var(--dc-cf7-gold) !important;
    box-shadow: 0 0 0 3px rgba(182, 139, 86, .13) !important;
}

body #page-container .et_pb_section .dvppl_cf7_styler[class*="dvppl_cf7_styler_"] .dipe-cf7-container .wpcf7 .wpcf7-form input.wpcf7-submit[type="submit"] {
    min-height: 52px !important;
    padding: 13px 27px !important;
    border: 1px solid var(--dc-cf7-gold) !important;
    border-radius: 7px !important;
    background: var(--dc-cf7-gold) !important;
    color: #fff !important;
    font: 700 12px/1.2 var(--dc-cf7-body) !important;
    letter-spacing: .035em !important;
    text-transform: uppercase !important;
}

body #page-container .et_pb_section .dvppl_cf7_styler[class*="dvppl_cf7_styler_"] .dipe-cf7-container .wpcf7 .wpcf7-form input.wpcf7-submit[type="submit"]:hover {
    border-color: var(--dc-cf7-gold-light) !important;
    background: var(--dc-cf7-gold-light) !important;
}

/* Make the two visible full-page forms read as intentional conversion areas. */
body.page-id-710 #dc-contact-native-form,
body.page-id-15187 .et_pb_section:has(.dc-contact-native-form) {
    background: #f7f4ef !important;
}

/* Divi Areas popup forms: visual treatment only, no display/position rules. */
body .area-outer-wrap.popup_outer_wrap:has(.wpcf7) {
    border: 1px solid rgba(182, 139, 86, .32);
    border-radius: 18px;
    background: #f7f4ef;
    box-shadow: 0 28px 90px rgba(5, 29, 49, .3);
}

body .et_pb_section.popup:has(.wpcf7) {
    background: linear-gradient(145deg, #fff 0%, #f7f4ef 100%) !important;
}

body .et_pb_section.popup:has(.wpcf7) :is(.et_pb_text h1, .et_pb_text h2, .et_pb_text h3) {
    color: var(--dc-cf7-navy, #082b49) !important;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
    font-weight: 600 !important;
    letter-spacing: -.02em !important;
}

body .area-outer-wrap.popup_outer_wrap:has(.wpcf7) .da-close {
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 50% !important;
    background: var(--dc-cf7-navy, #082b49) !important;
    color: #fff !important;
    font-size: 27px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(5, 29, 49, .22) !important;
    place-items: center;
}

@media (max-width: 680px) {
    :where(.wpcf7) form > .cf7m-row {
        margin-bottom: 13px;
    }

    :where(.wpcf7) .cf7m-col-md-6,
    :where(.wpcf7) .cf7m-col-lg-6 {
        width: 100%;
    }

    :where(.wpcf7) input[type="submit"] {
        width: 100%;
    }

    body #page-container .et_pb_section .dvppl_cf7_styler.dvppl_cf7_styler {
        padding: 22px 18px !important;
        border-radius: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(.wpcf7) *,
    :where(.wpcf7) *::before,
    :where(.wpcf7) *::after {
        transition-duration: .01ms !important;
    }
}
