/* ============================================================
   DirectClinics — Contact Form 7 uitstraling (sitewide).
   Scope = .wpcf7. Teal #6ba8ae / petrol #32666B, dc-base-tokens.
   ============================================================ */

.wpcf7 {
    --dccf-teal: #6ba8ae;
    --dccf-petrol: #32666B;
    --dccf-ink: #2A2A2A;
    --dccf-line: #e0dbd3;
    --dccf-muted: #5f6f73;
    --dccf-radius: 99px;
    font-family: inherit;
}

/* ---------- Labels ---------- */
.wpcf7 .form-label,
.wpcf7 label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dccf-ink);
    margin-bottom: 5px;
    margin-top: 5px;
}

/* ---------- Tekstvelden + textarea ---------- */
.wpcf7 .form-control,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea {
    width: 100%;
    background: #f7f5f2;
    border: 1px solid var(--dccf-line);
    border-radius: var(--dccf-radius);
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--dccf-ink);
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
    transition: border-color .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
    appearance: none;
}
.wpcf7 textarea { border-radius: 18px; resize: vertical; min-height: 130px; }

.wpcf7 .form-control::placeholder,
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #9aa4a6;
    opacity: 1;
}

/* ---------- Focus / hover ---------- */
.wpcf7 .form-control:hover,
.wpcf7 .form-select:hover,
.wpcf7 input:hover,
.wpcf7 textarea:hover {
    border-color: var(--dccf-teal);
}
.wpcf7 .form-control:focus,
.wpcf7 .form-select:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--dccf-teal);
    box-shadow: 0 0 0 3px rgba(107,168,174,.18);
}

/* ---------- Select (pill met eigen teal chevron) ---------- */
.wpcf7 .form-select,
.wpcf7 select {
    width: 100%;
    background: #f7f5f2;
    border: 1px solid var(--dccf-line);
    border-radius: var(--dccf-radius);
    padding: 14px 46px 14px 18px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--dccf-ink);
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
    transition: border-color .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%236ba8ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}
.wpcf7 select option[disabled] {
    color: var(--dccf-muted);
    font-weight: 600;
}

/* ---------- Checkboxes / radio's + acceptance (consent-vragen) ---------- */
.wpcf7 .wpcf7-acceptance,
.wpcf7 .wpcf7-checkbox,
.wpcf7 .wpcf7-radio {
    display: block;
}
.wpcf7 .wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 4px 0;
}
/* Consent-teksten italic */
.wpcf7 .wpcf7-list-item-label,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
    font-size: 14px;
    color: var(--dccf-muted);
    line-height: 1.5;
    font-style: italic;
}
.wpcf7 .wpcf7-acceptance {
    margin-bottom: 4px;
}
.wpcf7 .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    font-style: italic;
}
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid var(--dccf-teal);
    background: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .15s ease;
}
.wpcf7 input[type="checkbox"] { border-radius: 99px; }
.wpcf7 input[type="radio"] { border-radius: 999px; }
.wpcf7 input[type="checkbox"]:checked,
.wpcf7 input[type="radio"]:checked {
    background: var(--dccf-teal);
    border-color: var(--dccf-teal);
}
.wpcf7 input[type="checkbox"]:checked::after {
    content: "";
    display: block;
    width: 5px; height: 10px;
    margin: 2px auto 0;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.wpcf7 input[type="radio"]:checked::after {
    content: "";
    display: block;
    width: 8px; height: 8px;
    margin: 5px auto 0;
    border-radius: 999px;
    background: #fff;
}

/* ---------- Knop ----------
   Submit gebruikt de THEMA-default teal button (.dc-dh-cta) via de HTML-class.
   Hier alleen CF7-correcties zodat een <input>/<button> submit zich zo gedraagt. */
.wpcf7 .dc-dh-cta {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ---------- Validatie / meldingen ---------- */
.wpcf7 .wpcf7-not-valid {
    border-color: #c0392b !important;
}
.wpcf7 .wpcf7-not-valid-tip {
    color: #c0392b;
    font-size: 13px;
    margin-top: 5px;
}
.wpcf7 form .wpcf7-response-output {
    border-radius: 12px;
    border-width: 1px;
    padding: 12px 18px;
    margin: 18px 0 0;
    font-size: 14px;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--dccf-teal);
    background: rgba(107,168,174,.08);
    color: var(--dccf-petrol);
}

/* ---------- Spinner ---------- */
.wpcf7 .wpcf7-spinner { background-color: var(--dccf-teal); }

/* ---------- Intro-tekst ---------- */
.dc-cf7-intro {
    margin-bottom: 26px;
}
.dc-cf7-intro p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dccf-muted);
    margin: 0;
}
.dc-cf7-intro a {
    color: var(--dccf-teal);
    text-decoration: underline;
}
.dc-cf7-intro a:hover { color: var(--dccf-petrol); }

/* ---------- Submit-rij: knop + geruststelling naast elkaar ----------
   CF7 wrapt de [submit] soms in een <p>. Daarom niet leunen op de span als
   directe flex-sibling, maar de hele rij als flex opzetten en de <p> die CF7
   erin stopt meenemen als flex-child. */
.dc-cf7-submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.dc-cf7-submit-row p { margin: 0; display: inline-flex; }
/* Knop krimpt nooit (anders wordt de pill een blob); de toelichting neemt
   de restruimte en valt onder de knop zodra die te smal wordt. */
.dc-cf7-submit-row > p {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.dc-cf7-submit-row .wpcf7-submit,
.dc-cf7-submit-row .dc-dh-cta {
    flex: 0 0 auto;
    white-space: nowrap;
}
.dc-cf7-reassurance {
    font-size: 15px;
    color: var(--dccf-muted);
    flex: 1 1 220px;
    min-width: 0;
    white-space: normal;
}


/* ============================================================
   Formulier-card + grid.
   ============================================================ */

/* ---------- Witte card om het formulier ---------- */
.wpcf7 form {
    background: #fff;
    border-radius: 20px;
    padding: 48px 56px;
    box-shadow: 0 18px 50px rgba(20, 30, 35, .10);
    margin: 0 auto;
}
span.dc-cf7-reassurance {
    display: flex;
    align-items: center;
}
/* ---------- Grid ---------- */
@media (min-width: 576px) {
    .wpcf7 .row > .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    .dc-cf7-half .form-select {
        width: 50%;
    }
}

/* ---------- Mobiel: knop en toelichting onder elkaar ---------- */
@media (max-width: 767px) {
    .dc-cf7-submit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .dc-cf7-submit-row p {
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .dc-cf7-submit-row .wpcf7-submit,
    .dc-cf7-submit-row .dc-dh-cta {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
    .dc-cf7-submit-row .dc-cf7-reassurance,
    span.dc-cf7-reassurance {
        flex: none;
        justify-content: center;
        text-align: center;
    }
}


/* CF7 stopt soms een <p> om losse regels; die mag geen extra hoogte geven */
.wpcf7 form p { margin: 0; }

/* ---------- Autofill (Chrome overplakken met veld-achtergrond) ---------- */
.wpcf7 input:-webkit-autofill,
.wpcf7 input:-webkit-autofill:hover,
.wpcf7 input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f7f5f2 inset !important;
    box-shadow: 0 0 0 1000px #f7f5f2 inset !important;
    -webkit-text-fill-color: var(--dccf-ink) !important;
    caret-color: var(--dccf-ink);
    transition: background-color 9999s ease-out 0s;
}