/* =========================================================
 * BritCham Job Board - Public Styles v3
 * Prefix: .bcjb-
 * Navy: #0a1045 | Red: #e31e26
 * No custom fonts, no border-radius on buttons
 * ========================================================= */
.bcjb-wrap, .bcjb-wrap * { box-sizing: border-box; }
.bcjb-wrap {
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
    line-height: 1.6;
}

/* === SECTION INTRO === */
.bcjb-section-intro { font-size: 14px; color: #444; line-height: 1.8; margin-bottom: 16px; }
.bcjb-section-intro p { margin: 0 0 6px; }

/* === DIVIDER === */
.bcjb-divider { border: none; border-top: 1px solid #ddd; margin: 24px 0; }

/* =========================================================
 * NAV BUTTONS — compact
 * ========================================================= */
.bcjb-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 12px;
    background: #f5f6f8;
    border: 1px solid #e0e2e6;
    flex-wrap: wrap;
}
.bcjb-nav-btn {
    display: inline-block;
    padding: 11px 36px;
    background: #0a1045;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    transition: background 0.2s;
    text-align: center;
    min-width: 180px;
}
.bcjb-nav-btn:hover { background: #151b5e; }
.bcjb-nav-btn--active { background: #e31e26; }
.bcjb-nav-btn--active:hover { background: #c91920; }

/* =========================================================
 * BUTTONS — square
 * ========================================================= */
.bcjb-btn {
    display: inline-block;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.4;
}
.bcjb-btn--primary { background: #e31e26; color: #fff !important; border-color: #e31e26; }
.bcjb-btn--primary:hover { background: #b5171e; border-color: #b5171e; }
.bcjb-btn--outline { background: transparent; color: #0a1045 !important; border-color: #0a1045; }
.bcjb-btn--outline:hover { background: #0a1045; color: #fff !important; }
.bcjb-btn--sm { padding: 5px 12px; font-size: 12px; }
.bcjb-btn--lg { padding: 11px 32px; font-size: 14px; }

/* =========================================================
 * SEARCH / FILTER — compact
 * ========================================================= */
.bcjb-search-bar {
    background: #f5f6f8;
    border: 1px solid #e0e2e6;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.bcjb-filter-form { width: 100%; }
.bcjb-filter-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.bcjb-filter-field { flex: 1; min-width: 150px; }
.bcjb-filter-field label:not(.bcjb-checkbox-label) {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bcjb-filter-field input[type="text"],
.bcjb-filter-field select {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    font-size: 13px;
    color: #333;
    background: transparent;
    transition: border-color 0.15s;
    height: 36px;
}
.bcjb-filter-field input[type="text"]:focus,
.bcjb-filter-field select:focus { border-bottom-color: #0a1045; outline: none; }
.bcjb-filter-field--remote { flex: 0 0 auto; min-width: auto; display: flex; align-items: center; padding-bottom: 2px; }
.bcjb-filter-field--submit { flex: 0 0 auto; min-width: auto; }

/* =========================================================
 * CHECKBOX & RADIO — custom styled (override theme)
 * ========================================================= */
.bcjb-checkbox-label,
.bcjb-radio-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #333 !important;
    cursor: pointer !important;
    margin-right: 18px !important;
    margin-bottom: 4px !important;
    line-height: 1 !important;
    -webkit-user-select: none;
    user-select: none;
}

/* Custom checkbox + radio — SVG background approach */
.bcjb-wrap input[type="checkbox"].bcjb-custom-check,
.bcjb-wrap input[type="radio"].bcjb-custom-radio {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    border: 2px solid #888 !important;
    background-color: #fff !important;
    background-image: none !important;
    background-size: 12px 12px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    position: static !important;
    display: inline-block !important;
    vertical-align: middle !important;
    outline: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
}
/* Kill ALL pseudo elements */
.bcjb-wrap input.bcjb-custom-check::before,
.bcjb-wrap input.bcjb-custom-check::after,
.bcjb-wrap input.bcjb-custom-radio::before,
.bcjb-wrap input.bcjb-custom-radio::after,
.bcjb-wrap .bcjb-checkbox-label::before,
.bcjb-wrap .bcjb-checkbox-label::after,
.bcjb-wrap .bcjb-radio-label::before,
.bcjb-wrap .bcjb-radio-label::after,
.bcjb-wrap .bcjb-checkbox-label span::before,
.bcjb-wrap .bcjb-checkbox-label span::after,
.bcjb-wrap .bcjb-radio-label span::before,
.bcjb-wrap .bcjb-radio-label span::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
.bcjb-wrap input[type="checkbox"].bcjb-custom-check {
    border-radius: 0 !important;
}
.bcjb-wrap input[type="checkbox"].bcjb-custom-check:checked {
    background-color: #0a1045 !important;
    border-color: #0a1045 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E") !important;
    background-size: 12px 12px !important;
}
.bcjb-wrap input[type="radio"].bcjb-custom-radio {
    border-radius: 50% !important;
}
.bcjb-wrap input[type="radio"].bcjb-custom-radio:checked {
    border-color: #0a1045 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='4' fill='%230a1045'/%3E%3C/svg%3E") !important;
    background-size: 14px 14px !important;
}
.bcjb-wrap input.bcjb-custom-check:focus,
.bcjb-wrap input.bcjb-custom-radio:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(10,16,69,0.25) !important;
}

.bcjb-radio-group, .bcjb-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 4px;
}

/* =========================================================
 * TYPE TABS
 * ========================================================= */
.bcjb-type-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.bcjb-tab {
    display: inline-block;
    padding: 6px 14px;
    background: #0a1045;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 700;
    border-radius: 0;
    transition: background 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bcjb-tab:hover { background: #151b5e; }
.bcjb-tab--active { background: #e31e26; }

/* =========================================================
 * JOB CARDS
 * ========================================================= */
.bcjb-job-list { display: flex; flex-direction: column; gap: 10px; }
.bcjb-job-card {
    background: #fff;
    border: 1px solid #e0e2e6;
    padding: 16px 18px;
    transition: border-color 0.15s;
}
.bcjb-job-card:hover { border-color: #0a1045; }
.bcjb-job-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.bcjb-job-card__title { font-size: 15px; font-weight: 700; color: #0a1045; margin: 0; }
.bcjb-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.bcjb-badge--full-time { background: #dbeafe; color: #1e40af; }
.bcjb-badge--part-time { background: #fef3c7; color: #92400e; }
.bcjb-badge--temporary { background: #e0e7ff; color: #3730a3; }
.bcjb-badge--freelance { background: #d1fae5; color: #065f46; }
.bcjb-badge--internship { background: #fce7f3; color: #9d174d; }
.bcjb-job-card__meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.bcjb-meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #777; }
.bcjb-meta-item svg { flex-shrink: 0; }
.bcjb-job-card__excerpt { font-size: 13px; color: #555; margin-bottom: 12px; line-height: 1.6; }
.bcjb-job-card__footer { display: flex; gap: 6px; flex-wrap: wrap; }

/* =========================================================
 * CV GRID
 * ========================================================= */
.bcjb-cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bcjb-cv-card {
    background: #fff;
    border: 1px solid #e0e2e6;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.15s;
}
.bcjb-cv-card:hover { border-color: #0a1045; }
.bcjb-cv-card__avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin-bottom: 12px; }
.bcjb-cv-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bcjb-cv-card__avatar-placeholder {
    width: 100%; height: 100%;
    background: #0a1045; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700;
}
.bcjb-cv-card__info { margin-bottom: 12px; }
.bcjb-cv-card__name { font-size: 14px; font-weight: 700; color: #0a1045; margin: 0 0 2px; }
.bcjb-cv-card__title { font-size: 12px; color: #777; margin: 0 0 3px; }
.bcjb-cv-card__location { font-size: 11px; color: #999; margin: 0; }
.bcjb-cv-card__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* =========================================================
 * FORMS — compact
 * ========================================================= */
.bcjb-form { max-width: 100%; }
.bcjb-form-section {
    background: #fff;
    border: 1px solid #e0e2e6;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.bcjb-form-section__title {
    font-size: 14px;
    font-weight: 700;
    color: #0a1045;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.bcjb-form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.bcjb-form-group { flex: 1; min-width: 200px; margin-bottom: 12px; }
.bcjb-form-group--action { flex: 0 0 32px; min-width: 32px; display: flex; align-items: flex-end; padding-bottom: 14px; }
.bcjb-label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 4px; }
.bcjb-required { color: #e31e26; }
.bcjb-optional { color: #999; font-weight: 400; font-size: 12px; }
.bcjb-input, .bcjb-select, .bcjb-textarea {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    font-size: 13px;
    color: #333;
    background: transparent;
    transition: border-color 0.15s;
}
.bcjb-input:focus, .bcjb-select:focus, .bcjb-textarea:focus { border-bottom-color: #0a1045; outline: none; }
.bcjb-textarea { resize: vertical; min-height: 50px; border: 1px solid #ccc; background: #fff; padding: 8px 10px; }
.bcjb-textarea:focus { border-color: #0a1045; }
.bcjb-select { background: #fff; border: 1px solid #ccc; }
.bcjb-select:focus { border-color: #0a1045; }
.bcjb-input-file {
    width: 100%;
    padding: 7px;
    border: 1px dashed #ccc;
    border-radius: 0;
    font-size: 12px;
    background: #fafbfc;
    cursor: pointer;
}
.bcjb-input-file:hover { border-color: #0a1045; background: #f5f6ff; }
.bcjb-help-text { display: block; font-size: 11px; color: #999; margin-top: 2px; }

/* Repeatable */
.bcjb-repeatable-row {
    border: 1px solid #eee;
    padding: 12px;
    margin-bottom: 8px;
    background: #fafbfc;
    position: relative;
}
.bcjb-btn-add {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0a1045;
    background: transparent;
    border: 1px dashed #0a1045;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}
.bcjb-btn-add:hover { background: #f0f1ff; }
.bcjb-btn-remove {
    width: 24px; height: 24px;
    border-radius: 0;
    border: 1px solid #ddd;
    background: #fff;
    color: #e31e26;
    font-size: 15px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; line-height: 1;
    transition: all 0.15s;
}
.bcjb-btn-remove:hover { background: #fef2f2; border-color: #e31e26; }
.bcjb-btn-remove--block { width: auto; padding: 2px 8px; font-size: 11px; margin-top: 4px; }

/* Submit */
.bcjb-form-submit { text-align: center; padding: 14px 0; }
.bcjb-submit-note { font-size: 12px; color: #777; margin-top: 6px; font-style: italic; }

/* Account Info */
.bcjb-account-info {
    background: #f0f5ff;
    border-left: 3px solid #3b82f6;
    padding: 8px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #1a4d8f;
}
.bcjb-account-info a { color: #0a1045; font-weight: 700; }

/* Notices */
.bcjb-notice { padding: 10px 14px; margin-bottom: 14px; font-size: 13px; border-left: 4px solid; }
.bcjb-notice--success { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.bcjb-notice--error { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
.bcjb-notice--info { background: #f0f5ff; border-color: #3b82f6; color: #1e40af; }
.bcjb-notice a { font-weight: 700; text-decoration: underline; }

/* No Results */
.bcjb-no-results { text-align: center; padding: 40px 20px; color: #999; grid-column: 1 / -1; }
.bcjb-no-results p { font-size: 14px; margin-top: 8px; }

/* Pagination */
.bcjb-pagination { text-align: center; margin: 20px 0; }
.bcjb-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.15s;
}
.bcjb-pagination .page-numbers:hover { background: #f5f6ff; border-color: #0a1045; }
.bcjb-pagination .page-numbers.current { background: #0a1045; color: #fff; border-color: #0a1045; }

/* WP Editor in forms */
.bcjb-form .wp-editor-wrap { border: 1px solid #ccc; border-radius: 0; overflow: hidden; }
.bcjb-form .mce-tinymce { border: none !important; border-radius: 0 !important; }
.bcjb-form .wp-editor-container { border: none; }
.bcjb-form .wp-editor-tabs { float: right; }
.bcjb-form .mce-top-part, .bcjb-form .mce-toolbar-grp { border-radius: 0 !important; }

/* =========================================================
 * RESPONSIVE
 * ========================================================= */
@media (max-width: 1024px) {
    .bcjb-nav-btn { padding: 10px 24px; min-width: 150px; font-size: 11px; }
}
@media (max-width: 768px) {
    .bcjb-nav-buttons { flex-direction: column; align-items: stretch; gap: 5px; padding: 10px; }
    .bcjb-nav-btn { min-width: auto; padding: 10px 16px; }
    .bcjb-filter-row { flex-direction: column; gap: 8px; }
    .bcjb-filter-field { min-width: 100%; }
    .bcjb-filter-field--submit { width: 100%; }
    .bcjb-filter-field--submit .bcjb-btn { width: 100%; }
    .bcjb-job-card__header { flex-direction: column; }
    .bcjb-job-card__meta { flex-direction: column; gap: 4px; }
    .bcjb-job-card__footer { flex-direction: column; }
    .bcjb-job-card__footer .bcjb-btn { width: 100%; text-align: center; }
    .bcjb-cv-grid { grid-template-columns: 1fr; }
    .bcjb-form-row { flex-direction: column; gap: 0; }
    .bcjb-form-group { min-width: 100%; }
    .bcjb-form-group--action { min-width: 100%; padding-bottom: 0; justify-content: flex-end; }
}
@media (max-width: 480px) {
    .bcjb-search-bar { padding: 10px; }
    .bcjb-job-card { padding: 12px 14px; }
    .bcjb-form-section { padding: 12px 14px; }
    .bcjb-btn--lg { padding: 10px 20px; font-size: 13px; width: 100%; }
}


[type=checkbox]+span:not(.lever) {
    padding-left: 5px !important;
}

/* =========================================================
 * MODAL POPUP
 * ========================================================= */
.bcjb-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.bcjb-modal {
    background: #fff; width: 100%; max-width: 700px; max-height: 85vh;
    overflow-y: auto; position: relative; padding: 28px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.bcjb-modal-close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: none; font-size: 28px; color: #999;
    cursor: pointer; line-height: 1; padding: 0;
}
.bcjb-modal-close:hover { color: #333; }
.bcjb-modal-title {
    font-size: 20px; font-weight: 700; color: #0a1045;
    margin: 0 0 14px; padding-right: 30px; line-height: 1.3;
}
.bcjb-modal-body h4 {
    font-size: 14px; font-weight: 700; color: #0a1045;
    margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #eee;
}
.bcjb-popup-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.bcjb-popup-tag { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.bcjb-popup-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #666; margin-bottom: 14px; }
.bcjb-popup-tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 6px; }
.bcjb-popup-tbl th { text-align: left; padding: 7px 10px; background: #f9fafb; border: 1px solid #e0e2e6; color: #555; font-weight: 600; width: 140px; }
.bcjb-popup-tbl td { padding: 7px 10px; border: 1px solid #e0e2e6; color: #333; }
.bcjb-popup-tbl td a { color: #0a1045; }
.bcjb-popup-content { font-size: 13px; line-height: 1.7; color: #444; }
.bcjb-popup-content p { margin: 0 0 8px; }
.bcjb-popup-apply { text-align: center; margin: 16px 0 4px; }
.bcjb-popup-profile { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.bcjb-popup-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.bcjb-popup-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bcjb-popup-avatar-ph { width: 100%; height: 100%; background: #0a1045; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.bcjb-popup-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.bcjb-popup-badge { display: inline-block; padding: 1px 6px; font-size: 10px; font-weight: 600; background: #f0f5ff; color: #1a4d8f; }
.bcjb-popup-item { padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.bcjb-popup-item:last-child { border-bottom: none; }
@media (max-width: 768px) {
    .bcjb-modal { padding: 20px 16px; max-height: 90vh; }
    .bcjb-popup-profile { flex-direction: column; text-align: center; }
}

.bcjb-select {
    display: block !important;
}
