/* ================================
   WST API FORM – THEME SAFE
================================ */

/* HARD RESET BINNEN CARD */
.wst-card,
.wst-card *,
.wst-card *::before,
.wst-card *::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* Card */
.wst-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 28px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid #eef2f6;
    box-shadow: 0 8px 28px rgba(0,0,0,.06);
    overflow: hidden; /* ⬅️ BELANGRIJK */
}

/* Form wrapper */
.wst-api-form {
    margin-top: 18px;
}

/* Form rij */
.wst-form-row {
    margin-bottom: 18px;
}

/* Labels */
.wst-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2937;
    line-height: 1.4;
}

/* Verplichte ster */
.wst-form-row label span {
    color: #2563eb;
}

/* Inputs & textarea – THEME RESET */
.wst-form-row input,
.wst-form-row textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    background: #f9fbfd;
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
    outline: none;
    box-shadow: none;
    appearance: none;
}

/* Textarea */
.wst-form-row textarea {
    resize: vertical;
    min-height: 90px;
}

/* Focus */
.wst-form-row input:focus,
.wst-form-row textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Acties */
.wst-form-actions {
    margin-top: 22px;
}

/* Button */
.wst-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #ffffff;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37,99,235,.25);
    transition: transform .15s ease, box-shadow .15s ease;
}

.wst-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(37,99,235,.35);
}
/* =========================================
   WST API – THEME CONTAINER KILL
========================================= */

/* Kill ALLE theme containers rondom de API */
.wst-api-wrapper,
.wst-api-wrapper * {
    box-sizing: border-box;
}

/* Parent blocks neutraliseren */
.entry-content .wst-api-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

/* WP block wrappers uitschakelen */
.entry-content .wst-api-wrapper:before,
.entry-content .wst-api-wrapper:after,
.entry-content .wst-api-wrapper > *:before,
.entry-content .wst-api-wrapper > *:after {
    content: none !important;
    display: none !important;
}

/* Als het in een wp-block-group zit */
.entry-content .wp-block-group:has(.wst-api-wrapper),
.entry-content .wp-block-columns:has(.wst-api-wrapper) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
