/* CV-database — werkgever-zoekomgeving (concept) */
.awcf-cvs { --cvs-accent: #c25233; --cvs-accent-dark: #a8401f; --cvs-border: #e4e8ee; --cvs-radius: 10px; }
.awcf-cvs * { box-sizing: border-box; }

/* Toolbar */
.awcf-cvs-toolbar { padding: 14px; background: #fff; border: 1px solid var(--cvs-border); border-radius: var(--cvs-radius); box-shadow: 0 1px 3px rgba(31,41,51,.06); margin-bottom: 18px; }
.awcf-cvs-searchrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.awcf-cvs-search { flex: 1 1 280px; }
/* Zoekveld 1-op-1 zoals het vacature-archief: pill-vorm, zoek-icoon links,
   focus-ring in de accentkleur. (.facetwp-icon komt van de globale module.) */
.awcf-cvs-search .facetwp-input-wrap,
.awcf-cvs-search input.facetwp-search { width: 100%; }
.awcf-cvs-search .facetwp-input-wrap { position: relative; padding-left: 0; }
.awcf-cvs-search .facetwp-icon { left: 14px; opacity: 1; }
.awcf-cvs-search input.facetwp-search {
    padding: 13px 18px 13px 52px; border: 1.5px solid var(--cvs-border);
    border-radius: 999px; font-size: 15px; width: 100%; box-sizing: border-box;
    background: #fff !important; color: #1a1a1a;
    transition: border-color .15s, box-shadow .15s;
}
.awcf-cvs-search input.facetwp-search:focus {
    border-color: var(--cvs-accent); outline: none; box-shadow: 0 0 0 3px rgba(194,82,51,.10);
}
.awcf-cvs-search input.facetwp-search::placeholder { color: #6b7280; opacity: 1; }

.awcf-cvs-filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.awcf-cvs-filters { display: contents; }
.awcf-cvs-filters__head, .awcf-cvs-filters__foot { display: none; }
.awcf-cvs-filters__body { display: contents; }

/* Filter-dropdown */
.awcf-cvs-filter { position: relative; }
.awcf-cvs .awcf-cvs-filter__btn { display: inline-flex; align-items: center; gap: 8px; background-color: #fff !important; color: inherit !important; border: 1px solid var(--cvs-border) !important; border-radius: 8px; padding: 9px 14px; font: inherit; text-decoration: none !important; box-shadow: none !important; cursor: pointer; }
.awcf-cvs .awcf-cvs-filter__btn:hover,
.awcf-cvs .awcf-cvs-filter__btn:focus,
.awcf-cvs .awcf-cvs-filter__btn:active { background-color: #f6f8f9 !important; color: inherit !important; border-color: var(--cvs-accent) !important; }
.awcf-cvs-filter__chevron { width: 8px; height: 8px; border-right: 2px solid #6b7280; border-bottom: 2px solid #6b7280; transform: rotate(45deg); margin-top: -3px; }
.awcf-cvs-filter.is-open .awcf-cvs-filter__btn { border-color: var(--cvs-accent); }
.awcf-cvs-filter__panel { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--cvs-border); border-radius: 10px; padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.awcf-cvs-filter.is-open .awcf-cvs-filter__panel { display: block; }
.awcf-cvs-filter__panelhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.awcf-cvs-filter__title { font-weight: 600; }
.awcf-cvs-filter__close { background: none; border: 0; font-size: 1.3em; line-height: 1; cursor: pointer; color: #6b7280; }

.awcf-cvs-filterstrigger { display: none; }

/* Resultsbar — count + sorteer, 1-op-1 zoals het archief. */
.awcf-cvs-resultsbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--cvs-border); }
.awcf-cvs-count .facetwp-facet { margin: 0 !important; }
.awcf-cvs-count, .awcf-cvs-count .facetwp-counts { font-size: 16px; font-weight: 700; color: #2a4a6b; }
.awcf-cvs-sort { display: flex; align-items: center; gap: 8px; }
.awcf-cvs-sort::before { content: "Sorteer:"; font-size: 13px; color: #6b7785; }
.awcf-cvs-sort select { padding: 9px 36px 9px 14px; border: 1.5px solid var(--cvs-border); border-radius: 10px; background: #fff; font-size: 14px; color: #1f2933; cursor: pointer; font-weight: 600; }
.awcf-cvs-sort select:focus { border-color: var(--cvs-accent); outline: none; }

/* Resultaten-grid */
.awcf-cvs-list { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .awcf-cvs-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .awcf-cvs-list { grid-template-columns: 1fr 1fr 1fr; } }

.awcf-cvs-card { border: 1px solid var(--cvs-border); border-radius: var(--cvs-radius); padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.awcf-cvs-card__name { font-weight: 700; font-size: 1.05em; }
.awcf-cvs-card__name.is-anon { color: #6b7280; font-style: italic; }
.awcf-cvs-card__func { display: block; color: var(--cvs-accent); font-weight: 600; font-size: 0.92em; }
.awcf-cvs-card__fields { color: #4b5563; font-size: 0.9em; }
.awcf-cvs-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.awcf-cvs-card__tag { background: #f1f3f5; color: #374151; border-radius: 999px; padding: 3px 10px; font-size: 0.78em; }
.awcf-cvs-card__avail { font-size: 0.85em; color: #1a7f44; }
.awcf-cvs-card__motiv { font-size: 0.88em; color: #4b5563; margin: 4px 0 0; }
.awcf-cvs-card__foot { margin-top: auto; padding-top: 8px; }
/* Download-link (een <a>) defensief gestyled tegen theme/Elementor-link-hovers. */
.awcf-cvs .awcf-cvs-card__dl {
    display: inline-block;
    background-color: var(--cvs-accent) !important;
    color: #fff !important;
    border: 1px solid var(--cvs-accent) !important;
    border-radius: 8px; padding: 8px 14px; font-size: 0.85em; font-weight: 600;
    text-decoration: none !important; box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.awcf-cvs .awcf-cvs-card__dl:hover,
.awcf-cvs .awcf-cvs-card__dl:focus,
.awcf-cvs .awcf-cvs-card__dl:focus-visible,
.awcf-cvs .awcf-cvs-card__dl:active {
    background-color: var(--cvs-accent-dark) !important;
    color: #fff !important;
    border-color: var(--cvs-accent-dark) !important;
}

.awcf-cvs-empty { grid-column: 1 / -1; color: #6b7280; padding: 32px 0; text-align: center; }
.awcf-cvs-empty__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #2a4a6b; }
.awcf-cvs-empty__text { margin: 0 auto; max-width: 460px; font-size: 14.5px; line-height: 1.5; }
.awcf-cvs-pager { margin-top: 20px; }
.awcf-cvs-terms-note { margin: 0 0 16px; font-size: 13px; color: #6b7683; }
.awcf-cvs-terms-note a { color: var(--cvs-accent); text-decoration: underline; }
.awcf-cvs-terms-note a:hover { color: var(--cvs-accent-dark); }
.awcf-cvs--notice p { background: #fff8e1; border: 1px solid #ffe08a; border-radius: 8px; padding: 14px; }

/* FacetWP-checkboxen in de filterpanelen — gespiegeld op het vacature-archief. */
.awcf-cvs-filter__list .facetwp-checkbox {
    display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin: 0 0 1px;
    border-radius: 8px; cursor: pointer; font-size: 14px; color: #1f2933; line-height: 1.3;
    background-image: none !important; transition: background .12s;
}
.awcf-cvs-filter__list .facetwp-checkbox:hover { background: #f3f6f9; }
.awcf-cvs-filter__list .facetwp-checkbox::before {
    content: ""; flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid var(--cvs-border);
    border-radius: 6px; background: #fff; transition: background .12s, border-color .12s;
}
.awcf-cvs-filter__list .facetwp-checkbox.checked { background: rgba(194,82,51,.08); font-weight: 600; }
.awcf-cvs-filter__list .facetwp-checkbox.checked::before {
    border-color: var(--cvs-accent);
    background: var(--cvs-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}
/* WP Rocket lazy-load-bg reïnjecteert FacetWP's default checked-sprite → overrulen. */
.awcf-cvs .facetwp-facet .facetwp-checkbox,
.awcf-cvs .facetwp-facet .facetwp-checkbox.checked { background-image: none !important; }
.awcf-cvs-filter__list .facetwp-counter { margin-left: auto; color: #6b7280; font-size: 12.5px; font-weight: 400; }

/* Kaarten: subtiele schaduw + hover-lift zoals het archief. */
.awcf-cvs-card { box-shadow: 0 1px 3px rgba(31,41,51,.06); transition: border-color .15s, box-shadow .15s; }
.awcf-cvs-card:hover { border-color: var(--cvs-accent); box-shadow: 0 4px 14px rgba(31,41,51,.1); }

/* Contactgegevens: kleine icon-buttons (mail/telefoon) naast elkaar — geen
   letterlijke adres-/nummer-tekst zichtbaar (AVG). */
.awcf-cvs-card__contacts { display: flex; flex-direction: row; gap: 8px; margin-top: 4px; }
.awcf-cvs .awcf-cvs-card__cbtn {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 8px; background-color: var(--cvs-accent) !important; color: #fff !important;
    border: 1px solid var(--cvs-accent) !important; text-decoration: none !important; box-shadow: none !important;
    transition: background-color .15s ease, border-color .15s ease;
}
.awcf-cvs .awcf-cvs-card__cbtn:hover,
.awcf-cvs .awcf-cvs-card__cbtn:focus,
.awcf-cvs .awcf-cvs-card__cbtn:focus-visible,
.awcf-cvs .awcf-cvs-card__cbtn:active { background-color: var(--cvs-accent-dark) !important; color: #fff !important; border-color: var(--cvs-accent-dark) !important; }
.awcf-cvs-card__cicon { flex: 0 0 auto; width: 18px; height: 18px; }

/* Mobiel: filters in een modal */
@media (max-width: 640px) {
    .awcf-cvs .awcf-cvs-filterstrigger { display: inline-flex; align-items: center; gap: 8px; background-color: var(--cvs-accent) !important; color: #fff !important; border: 1px solid var(--cvs-accent) !important; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none !important; box-shadow: none !important; cursor: pointer; }
    .awcf-cvs .awcf-cvs-filterstrigger:hover,
    .awcf-cvs .awcf-cvs-filterstrigger:focus,
    .awcf-cvs .awcf-cvs-filterstrigger:active { background-color: var(--cvs-accent-dark) !important; color: #fff !important; border-color: var(--cvs-accent-dark) !important; }
    .awcf-cvs-filters { display: none; }
    .awcf-cvs.is-filters-open .awcf-cvs-filters { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 1000; background: #fff; padding: 16px; overflow: auto; }
    .awcf-cvs.is-filters-open .awcf-cvs-filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
    .awcf-cvs.is-filters-open .awcf-cvs-filters__body { display: block; }
    .awcf-cvs.is-filters-open .awcf-cvs-filters__foot { display: block; margin-top: auto; padding-top: 16px; }
    .awcf-cvs.is-filters-open .awcf-cvs-filter { margin-bottom: 12px; }
    .awcf-cvs.is-filters-open .awcf-cvs-filter__panel { position: static; display: block; box-shadow: none; border: 0; padding: 8px 0 0; max-height: none; }
    .awcf-cvs.is-filters-open .awcf-cvs-filter__panelhead { display: none; }
    .awcf-cvs-filters__close { background: none; border: 0; font-size: 1.5em; cursor: pointer; }
    .awcf-cvs .awcf-cvs-filters__apply { background-color: var(--cvs-accent) !important; color: #fff !important; border: 1px solid var(--cvs-accent) !important; border-radius: 8px; padding: 12px; font: inherit; font-weight: 600; width: 100%; text-decoration: none !important; box-shadow: none !important; cursor: pointer; }
    .awcf-cvs .awcf-cvs-filters__apply:hover,
    .awcf-cvs .awcf-cvs-filters__apply:focus,
    .awcf-cvs .awcf-cvs-filters__apply:active { background-color: var(--cvs-accent-dark) !important; color: #fff !important; border-color: var(--cvs-accent-dark) !important; }
}

/* #5 — Werkgever-voorwaarden akkoord-scherm */
.awcf-cvs-terms__box { max-width: 640px; margin: 0 auto; border: 1px solid var(--cvs-border); border-radius: var(--cvs-radius); background: #fff; padding: 24px; box-shadow: 0 1px 3px rgba(31,41,51,.06); }
.awcf-cvs-terms__text { color: #1f2933; font-size: 0.95em; }
.awcf-cvs-terms__text ul { margin: 10px 0; padding-left: 20px; }
.awcf-cvs-terms__text li { margin-bottom: 6px; }
.awcf-cvs-terms__check { display: flex; align-items: center; gap: 8px; margin: 16px 0; font-weight: 600; }
.awcf-cvs-terms__check input { width: auto; }
.awcf-cvs .awcf-cvs-terms__btn { display: inline-block; background-color: var(--cvs-accent) !important; color: #fff !important; border: 1px solid var(--cvs-accent) !important; border-radius: 8px; padding: 11px 20px; font: inherit; font-weight: 600; text-decoration: none !important; box-shadow: none !important; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.awcf-cvs .awcf-cvs-terms__btn:hover, .awcf-cvs .awcf-cvs-terms__btn:focus, .awcf-cvs .awcf-cvs-terms__btn:active { background-color: var(--cvs-accent-dark) !important; color: #fff !important; border-color: var(--cvs-accent-dark) !important; }
.awcf-cvs .awcf-cvs-terms__btn:disabled { opacity: .55 !important; cursor: not-allowed; }
.awcf-cvs-terms__msg { margin: 10px 0 0; font-size: .9em; color: #9b2117; }

/* Mobiel (#5): count + sorteer netjes stapelen op smalle schermen. */
@media (max-width: 480px) {
    .awcf-cvs-resultsbar { flex-direction: column; align-items: flex-start; gap: 8px; }
}
