/* Career Fixx — job board, glossy finish on top of cf-jobs.css: job cards, the job detail
   layout, search filters, categories, "How it works" and the job seeker register form.
   Uses the tokens from cf-gloss-site.css; loaded through @stack('css-last') (frontend/job/assets). */

.cfj { --j-soft: #f4effe; --j-pill: var(--gl-light); }
html[data-theme="dark"] .cfj { --j-soft: #221c3d; }

/* ══ Job card ═════════════════════════════════════════════════════════ */
html body .cfj .cfj-job { padding: 20px; border-color: transparent; border-radius: 28px; background: var(--gl-card); box-shadow: var(--gl-clay); }
html body .cfj .cfj-job:hover { border-color: transparent; box-shadow: var(--gl-clay-hover); }
.cfj .cfj-logo { border: 0; background: var(--gl-light); box-shadow: var(--gl-light-shadow); color: var(--gl-accent); }
html[data-theme="dark"] .cfj .cfj-logo { color: #c4b5fd; }
.cfj-job-top { margin-bottom: 14px; }
.cfj .cfj-job h3 a:hover { color: var(--gl-accent); }
.cfj-company { display: flex; align-items: center; gap: 5px; font-size: 11.5px; letter-spacing: .03em; }
.cfj-company i { flex: none; font-size: 12px; }
html[data-theme="dark"] .cfj-company { color: #d8b4fe; }

.cfj-job-pay { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: 0 0 12px; }
.cfj-job-pay b { color: var(--j-ink); font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.cfj-job-pay small { color: var(--j-text); font-size: 13px; font-weight: 600; }

html body .cfj .cfj-job li { padding: 6px 11px; background: var(--gl-light); box-shadow: var(--gl-light-shadow); color: var(--j-text); font-size: 12.5px; font-weight: 600; }
html body .cfj .cfj-job li i { color: var(--gl-accent); }
html[data-theme="dark"] body .cfj .cfj-job li i { color: #c4b5fd; }
html body .cfj .cfj-job li.is-type { background: var(--j-soft); box-shadow: none; color: var(--gl-accent); }
html[data-theme="dark"] body .cfj .cfj-job li.is-type { color: #d8b4fe; }

.cfj-job-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--j-line); }
.cfj-job-age { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; color: var(--j-text); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
html body .cfj .cfj-job-foot .cfj-view { display: inline-flex; flex: none; gap: 6px; padding: 10px 16px; font-size: 13.5px; }
.cfj .cfj-job-foot:only-child,
.cfj .cfj-job-foot > .cfj-view:only-child { margin-left: auto; }

/* ══ Hero ═════════════════════════════════════════════════════════════ */
.cfj .cfj-badge { border-color: transparent; background: var(--gl-light); box-shadow: var(--gl-light-shadow); }
html[data-theme] body .cfj .cfj-search { border: 0; box-shadow: var(--gl-clay), 0 24px 50px -24px rgba(76, 29, 149, .35); }
.cfj .cfj-quick a { border-color: transparent; background: var(--gl-light); box-shadow: var(--gl-light-shadow); }
.cfj .cfj-field-icon { box-shadow: var(--gl-light-shadow); }

/* job detail hero: logo, title, company and chips in a row, apply on the right */
.cfj-hero-detail .cfj-crumbs { justify-content: flex-start; }
/* the crumbs kept the old dark hero's pale colours: readable on the lilac banner */
html[data-theme="light"] .cfj .cfj-crumbs a { color: var(--gl-accent); }
html[data-theme="light"] .cfj .cfj-crumbs a:hover { color: #5b21b6; }
html[data-theme="light"] .cfj .cfj-crumbs i { color: var(--gl-muted); }
.cfj-dh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; text-align: left; }
.cfj .cfj-dh-logo { width: 92px; height: 92px; border-radius: 28px; font-size: 36px; }
html body .cfj .cfj-hero .cfj-dh h1 { margin: 0 0 6px; font-size: clamp(28px, 3.6vw, 46px); text-align: left; }
html body .cfj .cfj-hero p.cfj-dh-company { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--gl-accent) !important; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-align: left; text-transform: uppercase; }
html[data-theme="dark"] body .cfj .cfj-hero p.cfj-dh-company { color: #d8b4fe !important; }
.cfj-dh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
html body .cfj .cfj-dh-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; background: var(--gl-light); box-shadow: var(--gl-light-shadow); color: var(--j-ink); font-size: 13.5px; font-weight: 600; }
.cfj-dh-chips i { color: var(--gl-accent); }
html[data-theme="dark"] .cfj-dh-chips i { color: #c4b5fd; }
.cfj-dh-cta { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 99px; background: var(--gl-btn); box-shadow: var(--gl-btn-shadow); color: #fff; font-size: 15.5px; font-weight: 700; white-space: nowrap; }
.cfj-dh-cta:hover { color: #fff; }
.cfj-dh-cta.is-done { background: var(--j-soft); box-shadow: none; color: var(--gl-accent); }

/* ══ Sections ═════════════════════════════════════════════════════════ */
html body .cfj .cfj-cat { border-color: transparent; border-radius: 24px; background: var(--gl-card); box-shadow: var(--gl-clay); }
.cfj .cfj-cat-icon { background: var(--gl-btn); box-shadow: inset 0 -3px 0 #3b0f86, inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 16px rgba(91, 33, 182, .22); color: #fff; }
html body .cfj .cfj-cat:hover { background: var(--gl-btn); box-shadow: var(--gl-btn-shadow); }
.cfj .cfj-cat:hover .cfj-cat-icon { background: #fff; box-shadow: var(--gl-light-shadow); color: var(--gl-accent); }
.cfj-head h2 i { display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.25em; border-radius: .38em; background: var(--gl-btn); box-shadow: inset 0 -2px 0 #3b0f86; color: #fff !important; font-size: .62em !important; }
.cfj .cfj-dots .swiper-pagination-bullet-active { background: var(--gl-accent); }

.cfj .cfj-how-box { background: radial-gradient(520px 320px at 100% 0%, rgba(155, 60, 246, .5), transparent 70%), var(--gl-sheen), var(--gl-accent-grad); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .16), inset 0 -8px 0 rgba(30, 5, 70, .2), 0 30px 60px -30px rgba(76, 29, 149, .6); }
html body .cfj .cfj-how li { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.cfj .cfj-step-icon { background: #fff; box-shadow: var(--gl-light-shadow); color: var(--gl-accent); }

/* ══ Search: filters, results bar, pages ══════════════════════════════ */
html body .cfj .cfj-filters { padding: 18px; border-color: transparent; border-radius: 28px; background: var(--gl-card); box-shadow: var(--gl-clay); }
.cfj .cfj-clear { border-radius: 99px; background: var(--gl-btn); box-shadow: var(--gl-btn-shadow); }
.cfj .cfj-filters h4 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.cfj .cfj-filters h4::before { content: ''; width: 6px; height: 16px; border-radius: 99px; background: var(--gl-accent-grad); }
html body .cfj .cfj-filters li { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 6px 8px; border-radius: 12px; transition: background .2s ease; }
.cfj .cfj-filters li:hover { background: var(--j-soft); }
.cfj .cfj-filters li:has(input:checked) { background: var(--j-soft); }
.cfj .cfj-filters li:has(input:checked) label { color: var(--j-ink); font-weight: 700; }
/* the theme hides the real boxes and draws small ones on the labels: show glossy ones instead */
.cfj .cfj-filters input:is([type=checkbox], [type=radio]) {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid var(--j-line);
    border-radius: 6px;
    background: var(--gl-light);
    box-shadow: var(--gl-light-shadow);
    opacity: 1;
    -webkit-appearance: none;
            appearance: none;
    cursor: pointer;
}
.cfj .cfj-filters input[type=radio] { border-radius: 50%; }
.cfj .cfj-filters input[type=checkbox]:checked {
    border-color: transparent;
    background: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat, var(--gl-btn);
    box-shadow: inset 0 -2px 0 #3b0f86;
}
.cfj .cfj-filters input[type=radio]:checked { border-color: transparent; background: radial-gradient(circle, #fff 0 3.5px, transparent 4px), var(--gl-btn); box-shadow: inset 0 -2px 0 #3b0f86; }
.cfj .cfj-filters input:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
html body .cfj .cfj-filters input + label { flex: 1; padding-left: 0; cursor: pointer; }
.cfj .cfj-filters input + label::before,
.cfj .cfj-filters input + label::after { display: none; }

.cfj-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; padding: 12px 18px; border-radius: 99px; background: var(--gl-light); box-shadow: var(--gl-light-shadow); }
html body .cfj .cfj-results-head p { margin: 0; color: var(--j-text); font-size: 14.5px; }
.cfj-results-head b { color: var(--gl-accent); font-size: 16px; }
html[data-theme="dark"] .cfj-results-head b { color: #d8b4fe; }
.cfj-results-head span { color: var(--j-text); font-size: 13px; font-weight: 600; }

html body .cfj .cfj-pages .page-link { border-color: transparent; border-radius: 99px; background: var(--gl-light); box-shadow: var(--gl-light-shadow); }
html body .cfj .cfj-pages .page-item.active .page-link { background: var(--gl-btn); box-shadow: var(--gl-btn-shadow); }
html body .cfj .cfj-filter-toggle { border: 0; border-radius: 99px; background: var(--gl-light); box-shadow: var(--gl-light-shadow); }

/* ══ Job detail ═══════════════════════════════════════════════════════ */
.cfj-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 24px; }
.cfj-detail-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.cfj-detail-side > .cfj-box { margin: 0; }
html body .cfj .cfj-box { padding: 26px; border-color: transparent; border-radius: 30px; background: var(--gl-card); box-shadow: var(--gl-clay); }
.cfj-box-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; background: var(--gl-btn); box-shadow: inset 0 -3px 0 #3b0f86, inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 16px rgba(91, 33, 182, .22); color: #fff; font-size: 18px; }
html body .cfj .cfj-box-head { gap: 12px; margin-bottom: 18px; }
html body .cfj .cfj-box-head h2 { font-size: 20px; }

html body .cfj .cfj-facts > div { background: var(--gl-card-2); box-shadow: inset 0 0 0 1px var(--j-line); }
html body .cfj .cfj-facts i { background: var(--gl-light); box-shadow: var(--gl-light-shadow); color: var(--gl-accent); }
html[data-theme="dark"] body .cfj .cfj-facts i { color: #c4b5fd; }
.cfj-facts { margin-bottom: 0; }

.cfj .cfj-rich ul { padding-left: 0; list-style: none; }
.cfj .cfj-rich ul li { position: relative; margin: 0 0 8px; padding-left: 26px; }
.cfj .cfj-rich ul li::before { content: ''; position: absolute; top: .62em; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gl-accent-grad); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }

/* apply card */
.cfj-apply-label { display: block; color: var(--j-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
html body .cfj p.cfj-apply-pay { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 4px 0 14px; }
.cfj-apply-pay b { background: var(--gl-accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
html[data-theme="dark"] .cfj-apply-pay b { background: linear-gradient(100deg, #c4b5fd, #e9d5ff); -webkit-background-clip: text; background-clip: text; }
.cfj-apply-pay small { color: var(--j-text); font-size: 14px; font-weight: 600; }
.cfj-apply-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px !important; }
html body .cfj .cfj-apply-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--gl-light); box-shadow: var(--gl-light-shadow); color: var(--j-ink); font-size: 13px; font-weight: 600; }
.cfj-apply-meta i { color: var(--gl-accent); }
html[data-theme="dark"] .cfj-apply-meta i { color: #c4b5fd; }
html body .cfj .cfj-apply.is-done { background: var(--j-soft); box-shadow: none; color: var(--gl-accent); }
html body .cfj p.cfj-apply-note { margin: 12px 0 0; color: var(--j-text); font-size: 13px; line-height: 1.6; text-align: center; }
.cfj-apply-note a { color: var(--gl-accent); font-weight: 700; }
html[data-theme="dark"] .cfj-apply-note a { color: #d8b4fe; }

/* recommended */
.cfj .cfj-side ul { max-height: 520px; }
html body .cfj .cfj-side li a { padding: 10px; border-radius: 16px; transition: background .2s ease; }
.cfj .cfj-side li a:hover { background: var(--j-soft); }
html body .cfj .cfj-side li + li { border-top: 0; }
.cfj .cfj-side .cfj-logo { width: 44px; height: 44px; border-radius: 14px; font-size: 18px; }

/* ══ Register (cf-auth form, job seeker fields) ═══════════════════════ */
.cfx-auth-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cfj-req { color: #e11d48; }
.cfx-auth-alert.is-ok { border-color: rgba(22, 163, 74, .3); background: rgba(22, 163, 74, .07); color: #15803d; }
html[data-theme="dark"] .cfx-auth-alert.is-ok { color: #4ade80; }
.cfj-auth .cfx-auth-side-note a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* the state list becomes a bootstrap-select dropdown (theme script); make its button sit in the field */
.cfj-auth .cfx-auth-input.is-select .bootstrap-select { flex: 1; width: 100% !important; min-width: 0; }
html body .cfj-auth .cfx-auth-input.is-select .bootstrap-select > .dropdown-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 34px 0 0;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--au-ink, var(--j-ink));
    font-size: 15px;
    font-weight: 500;
    outline: 0 !important;
}
html body .cfj-auth .cfx-auth-input.is-select .bootstrap-select > .dropdown-toggle.bs-placeholder { color: var(--au-muted, var(--j-text)); }
.cfj-auth .cfx-auth-input.is-select .filter-option { display: flex; align-items: center; padding: 0; }
.cfj-auth .cfx-auth-input.is-select .bootstrap-select > .dropdown-toggle::after { position: absolute; right: 16px; }
.cfj-auth .cfx-auth-input.is-select > select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: inherit; }
.cfj-auth .bootstrap-select > .dropdown-menu { margin-top: 10px !important; }

/* ══ Smaller screens ══════════════════════════════════════════════════ */
@media (max-width: 1199.98px) {
    .cfj-detail { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 991.98px) {
    .cfj-detail { grid-template-columns: minmax(0, 1fr); }
    .cfj-detail-side { position: static; }
    .cfj-dh { grid-template-columns: auto minmax(0, 1fr); }
    .cfj-dh-cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 767.98px) {
    .cfj-dh { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .cfj .cfj-dh-logo { width: 72px; height: 72px; border-radius: 22px; font-size: 28px; }
    .cfj-dh-cta { justify-content: center; width: 100%; }
    html body .cfj .cfj-box { padding: 20px; border-radius: 24px; }
    .cfj-results-head { border-radius: 20px; }
}
@media (max-width: 575.98px) {
    .cfx-auth-row { grid-template-columns: minmax(0, 1fr); }
    html body .cfj .cfj-job { padding: 18px; border-radius: 24px; }
}
