/*
 * FH Jobs — Frontend Styles v2.0.0
 * Scoped to .fhj-* | Brand: #f16a22 (orange)
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --fhj-primary:        #f16a22;
  --fhj-primary-hover:  #d4561a;
  --fhj-primary-light:  #fef0e6;
  --fhj-primary-dark:   #b8460f;
  --fhj-font:           'Montserrat', sans-serif;
  --fhj-text:           #0f172a;
  --fhj-text-muted:     #64748b;
  --fhj-text-light:     #94a3b8;
  --fhj-bg:             #ffffff;
  --fhj-bg-subtle:      #f8fafc;
  --fhj-border:         #e2e8f0;
  --fhj-border-strong:  #cbd5e1;
  --fhj-border-focus:   #f16a22;
  --fhj-radius-sm:      6px;
  --fhj-radius:         10px;
  --fhj-radius-lg:      14px;
  --fhj-radius-xl:      20px;
  --fhj-shadow-xs:      0 1px 2px rgba(0,0,0,.05);
  --fhj-shadow:         0 1px 3px rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.07);
  --fhj-shadow-hover:   0 8px 24px rgba(241,106,34,.14), 0 2px 8px rgba(0,0,0,.06);
  --fhj-shadow-focus:   0 0 0 3px rgba(241,106,34,.22);
  --fhj-success:        #16a34a;
  --fhj-success-bg:     #f0fdf4;
  --fhj-success-border: #bbf7d0;
  --fhj-error:          #dc2626;
  --fhj-error-bg:       #fef2f2;
  --fhj-error-border:   #fecaca;
  --fhj-info-bg:        #fef0e6;
  --fhj-info-border:    #fcd9bf;
  --fhj-transition:     0.18s ease;
  --fhj-max-width:      1300px;
}

.fhj-wrap *, .fhj-wrap *::before, .fhj-wrap *::after { box-sizing: border-box; }
.fhj-wrap { font-family: var(--fhj-font); font-size: 14px; color: var(--fhj-text); line-height: 1.6; display: block; width: 100%; -webkit-font-smoothing: antialiased; }
.fhj-hidden { display: none !important; }

/* ── Layout ───────────────────────────────────────────────────────────────────── */
.fhj-listings-wrap,
.fhj-detail-wrap,
.fhj-proposals-wrap,
.fhj-my-proposals-wrap { max-width: var(--fhj-max-width); margin: 0 auto; padding: 40px 20px 96px; }
.fhj-post-job-wrap { display: flex; justify-content: center; padding: 48px 20px 96px; }

/* ── Form box ─────────────────────────────────────────────────────────────────── */
.fhj-form-box { background: var(--fhj-bg); width: 100%; max-width: 860px; padding: 52px 60px; border: 1px solid var(--fhj-border); border-radius: var(--fhj-radius-xl); box-shadow: var(--fhj-shadow); }
@media (max-width: 640px) { .fhj-form-box { padding: 36px 24px; } }

.fhj-form-header { margin-bottom: 36px; }
.fhj-form-eyebrow { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fhj-primary); background: var(--fhj-primary-light); padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; }
.fhj-form-title { font-family: var(--fhj-font); font-size: clamp(22px,3vw,28px); font-weight: 800; letter-spacing: -.025em; color: var(--fhj-text); margin: 0 0 10px; line-height: 1.2; }
.fhj-form-subtitle { color: var(--fhj-text-muted); font-size: 14px; margin: 0; }

/* ── Form elements ────────────────────────────────────────────────────────────── */
.fhj-form { display: flex; flex-direction: column; gap: 22px; }
.fhj-field { display: flex; flex-direction: column; }
.fhj-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fhj-text); margin: 0 0 7px; display: block; }
.fhj-label--sm { font-size: 11.5px; }
.fhj-label-hint, .fhj-field-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--fhj-text-muted); font-size: 11px; }
.fhj-required { color: var(--fhj-error); margin-left: 2px; }
.fhj-field-note { font-size: 12px; color: var(--fhj-text-muted); margin: 6px 0 0; font-weight: 400; }

.fhj-wrap input.fhj-input,
.fhj-wrap select.fhj-select,
.fhj-wrap textarea.fhj-textarea {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--fhj-border) !important; border-radius: var(--fhj-radius) !important;
  font-size: 14px !important; font-family: var(--fhj-font) !important; font-weight: 500;
  color: var(--fhj-text) !important; background: var(--fhj-bg) !important;
  box-shadow: none !important; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color var(--fhj-transition), box-shadow var(--fhj-transition);
}
.fhj-wrap input.fhj-input:hover, .fhj-wrap select.fhj-select:hover, .fhj-wrap textarea.fhj-textarea:hover { border-color: var(--fhj-border-strong) !important; }
.fhj-wrap input.fhj-input:focus, .fhj-wrap select.fhj-select:focus, .fhj-wrap textarea.fhj-textarea:focus { border-color: var(--fhj-border-focus) !important; box-shadow: var(--fhj-shadow-focus) !important; }
.fhj-wrap input.fhj-input::placeholder, .fhj-wrap textarea.fhj-textarea::placeholder { color: var(--fhj-text-light); font-weight: 400; }
.fhj-wrap textarea.fhj-textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.fhj-wrap select.fhj-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; padding-right: 40px !important; cursor: pointer; }

.fhj-input-prefix-wrap { position: relative; display: flex; align-items: center; }
.fhj-input-prefix { position: absolute; left: 15px; color: var(--fhj-text-muted); font-weight: 600; font-size: 14px; pointer-events: none; }
.fhj-wrap input.fhj-input--prefixed { padding-left: 30px !important; }

.fhj-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .fhj-row { grid-template-columns: 1fr; } }
.fhj-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .fhj-row--3 { grid-template-columns: 1fr 1fr; } }

.fhj-fieldset { border: none; padding: 0; margin: 0; }
.fhj-fieldset > legend { margin-bottom: 12px; }

/* ── Radio ────────────────────────────────────────────────────────────────────── */
.fhj-radio-group { display: flex; flex-direction: column; gap: 10px; }
.fhj-radio-group--inline { flex-direction: row; flex-wrap: wrap; gap: 12px; }
.fhj-radio-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--fhj-text); padding: 10px 14px; border: 1.5px solid var(--fhj-border); border-radius: var(--fhj-radius); transition: border-color var(--fhj-transition), background var(--fhj-transition); }
.fhj-radio-label:hover { border-color: var(--fhj-primary); background: var(--fhj-primary-light); }
.fhj-radio-label:has(input:checked) { border-color: var(--fhj-primary); background: var(--fhj-primary-light); }
.fhj-radio-label input[type="radio"] { display: none; }
.fhj-radio-custom { width: 17px; height: 17px; border: 2px solid var(--fhj-border-strong); border-radius: 50%; flex-shrink: 0; position: relative; transition: border-color var(--fhj-transition); }
.fhj-radio-label input[type="radio"]:checked + .fhj-radio-custom { border-color: var(--fhj-primary); }
.fhj-radio-label input[type="radio"]:checked + .fhj-radio-custom::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 7px; height: 7px; background: var(--fhj-primary); border-radius: 50%; }

/* ── Checkbox ─────────────────────────────────────────────────────────────────── */
.fhj-checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.fhj-checkbox-label input[type="checkbox"] { display: none; }
.fhj-checkbox-custom { width: 18px; height: 18px; border: 2px solid var(--fhj-border-strong); border-radius: 5px; flex-shrink: 0; transition: background var(--fhj-transition), border-color var(--fhj-transition); display: flex; align-items: center; justify-content: center; }
.fhj-checkbox-label input[type="checkbox"]:checked + .fhj-checkbox-custom { background: var(--fhj-primary); border-color: var(--fhj-primary); }
.fhj-checkbox-label input[type="checkbox"]:checked + .fhj-checkbox-custom::after { content: ''; display: block; width: 5px; height: 9px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg) translateY(-1px); }

/* ── Certification grid ───────────────────────────────────────────────────────── */
.fhj-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 4px; }
.fhj-cert-label { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--fhj-border); border-radius: var(--fhj-radius); cursor: pointer; background: var(--fhj-bg); transition: border-color var(--fhj-transition), background var(--fhj-transition); user-select: none; }
.fhj-cert-label:hover { border-color: var(--fhj-primary); background: var(--fhj-primary-light); }
.fhj-cert-label--checked, .fhj-cert-label:has(.fhj-cert-input:checked) { border-color: var(--fhj-primary); background: var(--fhj-primary-light); }
.fhj-cert-input { display: none; }
.fhj-cert-check { width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--fhj-border-strong); background: var(--fhj-bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: transparent; transition: background var(--fhj-transition), border-color var(--fhj-transition), color var(--fhj-transition); }
.fhj-cert-label--checked .fhj-cert-check,
.fhj-cert-label:has(.fhj-cert-input:checked) .fhj-cert-check { background: var(--fhj-primary); border-color: var(--fhj-primary); color: #fff; }
.fhj-cert-name { font-family: var(--fhj-font); font-size: 12.5px; font-weight: 600; color: var(--fhj-text); line-height: 1.3; }
@media (max-width: 640px) { .fhj-cert-grid { grid-template-columns: 1fr 1fr; } }

/* ── Cert badges (job detail display) ────────────────────────────────────────── */
.fhj-cert-badges-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.fhj-cert-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid rgba(241,106,34,.25); background: var(--fhj-primary-light); color: var(--fhj-primary-dark); }
.fhj-cert-badge--met { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.fhj-cert-badge--missing { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.fhj-cert-note { font-size: 12.5px; margin: 10px 0 0; font-weight: 500; }

/* ── Messages ─────────────────────────────────────────────────────────────────── */
.fhj-messages { display: flex; flex-direction: column; gap: 8px; }
.fhj-messages:empty { display: none; }
.fhj-msg { padding: 11px 16px; border-radius: var(--fhj-radius); font-size: 13px; font-weight: 500; line-height: 1.5; }
.fhj-msg--error   { background: var(--fhj-error-bg);   border: 1px solid var(--fhj-error-border);   color: var(--fhj-error); }
.fhj-msg--success { background: var(--fhj-success-bg); border: 1px solid var(--fhj-success-border); color: var(--fhj-success); }
.fhj-msg--info    { background: var(--fhj-info-bg);    border: 1px solid var(--fhj-info-border);    color: var(--fhj-primary-dark); }
.fhj-notice { padding: 14px 18px; border-radius: var(--fhj-radius); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.fhj-notice--error { background: var(--fhj-error-bg); border: 1px solid var(--fhj-error-border); color: var(--fhj-error); }
.fhj-notice--info  { background: var(--fhj-info-bg);  border: 1px solid var(--fhj-info-border);  color: var(--fhj-primary-dark); }
.fhj-notice a { color: inherit; font-weight: 700; }

/* ── Buttons ──────────────────────────────────────────────────────────────────── */
.fhj-wrap .fhj-btn, .fhj-wrap a.fhj-btn, .fhj-wrap button.fhj-btn {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  gap: 7px; padding: 10px 22px !important; border-radius: var(--fhj-radius) !important;
  font-size: 13px !important; font-weight: 700 !important; font-family: var(--fhj-font) !important;
  cursor: pointer; border: 2px solid transparent !important; text-decoration: none !important;
  white-space: nowrap; line-height: 1 !important; user-select: none;
  transition: background var(--fhj-transition), color var(--fhj-transition),
              border-color var(--fhj-transition), box-shadow var(--fhj-transition),
              transform var(--fhj-transition) !important;
}
.fhj-wrap .fhj-btn:hover  { transform: translateY(-1px); text-decoration: none !important; }
.fhj-wrap .fhj-btn:active { transform: translateY(0); }
.fhj-wrap .fhj-btn:focus-visible { outline: none !important; box-shadow: var(--fhj-shadow-focus) !important; }
.fhj-wrap .fhj-btn:disabled { opacity: .6 !important; cursor: not-allowed !important; pointer-events: none; transform: none !important; }

.fhj-wrap .fhj-btn-primary,
.fhj-wrap button.fhj-btn-primary,
.fhj-wrap a.fhj-btn-primary {
  background: #f16a22 !important; background-color: #f16a22 !important;
  color: #ffffff !important; border-color: #f16a22 !important;
}
.fhj-wrap .fhj-btn-primary:hover {
  background: #d4561a !important; background-color: #d4561a !important;
  border-color: #d4561a !important; color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(241,106,34,.38) !important;
}
.fhj-wrap .fhj-btn-outline, .fhj-wrap a.fhj-btn-outline {
  background: transparent !important; color: #f16a22 !important; border-color: #f16a22 !important;
}
.fhj-wrap .fhj-btn-outline:hover { background: #fef0e6 !important; color: #f16a22 !important; }
.fhj-wrap .fhj-btn-ghost { background: transparent !important; color: var(--fhj-text-muted) !important; border-color: transparent !important; }
.fhj-wrap .fhj-btn-ghost:hover { background: var(--fhj-bg-subtle) !important; color: var(--fhj-text) !important; }
.fhj-wrap .fhj-btn-danger { background: var(--fhj-error) !important; color: #fff !important; border-color: var(--fhj-error) !important; }
.fhj-wrap .fhj-btn-danger:hover { background: #b91c1c !important; border-color: #b91c1c !important; color: #fff !important; }
.fhj-wrap .fhj-btn-sm  { padding: 7px 16px !important; font-size: 12px !important; }
.fhj-wrap .fhj-btn-lg  { padding: 14px 30px !important; font-size: 15px !important; border-radius: var(--fhj-radius-lg) !important; }
.fhj-wrap .fhj-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.fhj-btn-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: fhj-spin .65s linear infinite; display: inline-block; flex-shrink: 0; }

/* ── Page headers ─────────────────────────────────────────────────────────────── */
.fhj-listings-header, .fhj-proposals-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.fhj-page-title { font-family: var(--fhj-font); font-size: clamp(22px,3vw,32px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; }
.fhj-listings-count, .fhj-proposals-count { font-size: 14px; font-weight: 500; color: var(--fhj-text-muted); margin: 0; }

/* ── Filters ──────────────────────────────────────────────────────────────────── */
.fhj-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 18px 22px; background: var(--fhj-bg); border: 1px solid var(--fhj-border); border-radius: var(--fhj-radius-lg); box-shadow: var(--fhj-shadow-xs); margin-bottom: 32px; }
.fhj-filter-search { position: relative; flex: 1; min-width: 220px; }
.fhj-filter-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--fhj-text-muted); pointer-events: none; }
.fhj-filter-search .fhj-input { padding-left: 38px !important; }
.fhj-filters .fhj-select { min-width: 140px; }

/* ── Jobs grid ────────────────────────────────────────────────────────────────── */
.fhj-grid-wrap { position: relative; min-height: 200px; }
.fhj-jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* ── Job card ─────────────────────────────────────────────────────────────────── */
.fhj-card { background: var(--fhj-bg); border: 1px solid var(--fhj-border); border-radius: var(--fhj-radius-lg); box-shadow: var(--fhj-shadow); transition: box-shadow .22s ease, transform .22s ease, border-color .18s ease; animation: fhj-fade-in .3s ease both; }
.fhj-card:hover { box-shadow: var(--fhj-shadow-hover); transform: translateY(-3px); border-color: rgba(241,106,34,.25); }
.fhj-card-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.fhj-card-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fhj-posted-time { font-size: 12px; color: var(--fhj-text-light); font-weight: 500; white-space: nowrap; }
.fhj-card-title { margin: 0; }
.fhj-card-title a { font-family: var(--fhj-font); font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--fhj-text) !important; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--fhj-transition); }
.fhj-card-title a:hover { color: var(--fhj-primary) !important; }
.fhj-card-excerpt { font-size: 13px; color: var(--fhj-text-muted); line-height: 1.65; margin: 0; font-weight: 400; }
.fhj-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.fhj-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.fhj-card-stats { display: flex; align-items: center; gap: 12px; }
.fhj-proposal-count { font-size: 12px; color: var(--fhj-text-muted); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ── Badges ───────────────────────────────────────────────────────────────────── */
.fhj-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fhj-badge--budget   { background: var(--fhj-primary-light); color: var(--fhj-primary-dark); border: 1px solid rgba(241,106,34,.2); }
.fhj-badge--fixed    { background: #fef0e6; color: #b8460f; border: 1px solid #fcd9bf; font-weight: 700; }
.fhj-badge--open     { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.fhj-badge--remote   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.fhj-badge--location { background: var(--fhj-bg-subtle); color: var(--fhj-text-muted); border: 1px solid var(--fhj-border); }
.fhj-badge--scheduled { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.fhj-category-tag { display: inline-flex; align-items: center; padding: 3px 10px; background: var(--fhj-primary-light); color: var(--fhj-primary-dark); border: 1px solid rgba(241,106,34,.2); border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.fhj-skill-tag { display: inline-flex; align-items: center; padding: 4px 12px; background: var(--fhj-bg-subtle); color: var(--fhj-text-muted); border: 1px solid var(--fhj-border); border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fhj-skills-wrap { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.fhj-skills-wrap--sm .fhj-skill-tag { font-size: 11px; padding: 3px 9px; }
.fhj-flag-badge { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; border-radius: 999px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; }

/* ── Loading / Pagination / Empty ─────────────────────────────────────────────── */
.fhj-grid-loading { position: absolute; inset: 0; background: rgba(255,255,255,.85); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; border-radius: var(--fhj-radius-lg); z-index: 10; }
.fhj-spinner { width: 36px; height: 36px; border: 3px solid var(--fhj-border); border-top-color: var(--fhj-primary); border-radius: 50%; animation: fhj-spin .75s linear infinite; }
.fhj-empty-state { grid-column: 1/-1; text-align: center; padding: 72px 20px; color: var(--fhj-text-muted); }
.fhj-empty-state p { font-size: 15px; font-weight: 500; }
.fhj-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; flex-wrap: wrap; }
.fhj-page-info { font-size: 13.5px; font-weight: 600; color: var(--fhj-text-muted); }

/* ── Job detail layout ────────────────────────────────────────────────────────── */
.fhj-breadcrumb { margin-bottom: 20px; }
.fhj-breadcrumb a { font-size: 13.5px; font-weight: 600; color: var(--fhj-primary); text-decoration: none; }
.fhj-breadcrumb a:hover { text-decoration: underline; }
.fhj-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .fhj-detail-layout { grid-template-columns: 1fr; } .fhj-detail-sidebar { order: -1; } }

.fhj-detail-card { background: var(--fhj-bg); border: 1px solid var(--fhj-border); border-radius: var(--fhj-radius-xl); padding: 36px; box-shadow: var(--fhj-shadow); margin-bottom: 24px; }
@media (max-width: 640px) { .fhj-detail-card { padding: 22px 18px; } }
.fhj-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.fhj-detail-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fhj-detail-title { font-family: var(--fhj-font); font-size: clamp(20px,3vw,28px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 10px; }
.fhj-detail-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--fhj-text-muted); font-weight: 500; }
.fhj-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.fhj-detail-section { margin-bottom: 28px; }
.fhj-section-title { font-family: var(--fhj-font); font-size: 15px; font-weight: 700; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--fhj-border); }
.fhj-detail-description { font-size: 14.5px; line-height: 1.8; color: var(--fhj-text); }

/* ── Status badges ────────────────────────────────────────────────────────────── */
.fhj-status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.fhj-status-draft            { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }
.fhj-status-open             { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.fhj-status-assigned         { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.fhj-status-checked-in       { background: #fef0e6; color: #b8460f; border: 1px solid #fcd9bf; }
.fhj-status-in-progress      { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.fhj-status-pending-approval { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.fhj-status-disputed         { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.fhj-status-closed           { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* ── Sidebar card ─────────────────────────────────────────────────────────────── */
.fhj-sidebar-card { background: var(--fhj-bg); border: 1px solid var(--fhj-border); border-radius: var(--fhj-radius-lg); padding: 22px; box-shadow: var(--fhj-shadow-xs); position: sticky; top: 24px; }
.fhj-sidebar-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fhj-text-muted); margin: 0 0 16px; }
.fhj-detail-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fhj-detail-list li { display: flex; flex-direction: column; gap: 2px; }
.fhj-detail-list-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fhj-text-muted); }
.fhj-detail-list-value { font-size: 14px; font-weight: 600; color: var(--fhj-text); }
.fhj-budget-value { color: #f16a22; font-weight: 800; font-size: 16px; }

/* ── GPS Check-in card ────────────────────────────────────────────────────────── */
.fhj-checkin-card { border-left: 4px solid #f16a22; }
.fhj-checkin-status { background: var(--fhj-bg-subtle); border: 1px solid var(--fhj-border); border-radius: var(--fhj-radius); padding: 14px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.fhj-checkin-row { display: flex; justify-content: space-between; align-items: center; }
.fhj-checkin-label { font-size: 12px; font-weight: 600; color: var(--fhj-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.fhj-checkin-value { font-size: 14px; font-weight: 700; color: var(--fhj-text); display: flex; align-items: center; gap: 8px; }

/* ── Deliverables ─────────────────────────────────────────────────────────────── */
.fhj-photo-upload-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.fhj-photo-preview-item { position: relative; width: 80px; height: 80px; border-radius: var(--fhj-radius); overflow: hidden; border: 2px solid var(--fhj-border); }
.fhj-photo-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fhj-photo-preview-remove { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.fhj-photo-add-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px dashed var(--fhj-border); border-radius: var(--fhj-radius); cursor: pointer; font-family: var(--fhj-font); font-size: 13px; font-weight: 600; color: var(--fhj-text-muted); transition: border-color var(--fhj-transition), color var(--fhj-transition); }
.fhj-photo-add-btn:hover { border-color: var(--fhj-primary); color: var(--fhj-primary); }

.fhj-deliverable-notes { background: var(--fhj-bg-subtle); border: 1px solid var(--fhj-border); border-radius: var(--fhj-radius); padding: 14px 16px; margin-bottom: 14px; font-size: 14px; line-height: 1.75; }
.fhj-deliverable-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.fhj-deliverable-photo-link { display: block; border-radius: var(--fhj-radius); overflow: hidden; border: 2px solid var(--fhj-border); transition: border-color var(--fhj-transition); }
.fhj-deliverable-photo-link:hover { border-color: var(--fhj-primary); }
.fhj-deliverable-photo { width: 90px; height: 90px; object-fit: cover; display: block; }

/* ── Approval card ────────────────────────────────────────────────────────────── */
.fhj-approval-card { border-left: 4px solid #7c3aed; }
.fhj-approval-actions { display: flex; flex-direction: column; gap: 14px; }
.fhj-reject-section { display: flex; flex-direction: column; gap: 8px; }
.fhj-reject-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── Proposals list ───────────────────────────────────────────────────────────── */
.fhj-proposals-list { display: flex; flex-direction: column; gap: 20px; }
.fhj-proposal-card { background: var(--fhj-bg); border: 1px solid var(--fhj-border); border-radius: var(--fhj-radius-lg); padding: 24px; box-shadow: var(--fhj-shadow); display: flex; flex-direction: column; gap: 14px; }
.fhj-proposal-card--accepted { border-color: rgba(22,163,74,.4); background: #f8fffe; }
.fhj-proposal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fhj-proposal-freelancer { display: flex; align-items: center; gap: 14px; }
.fhj-proposal-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--fhj-border); flex-shrink: 0; display: block; }
.fhj-proposal-fl-name { font-family: var(--fhj-font); font-size: 15px; font-weight: 700; color: var(--fhj-text); text-decoration: none; display: block; margin-bottom: 5px; }
.fhj-proposal-fl-name:hover { color: var(--fhj-primary); }
.fhj-proposal-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.fhj-proposal-bid { font-family: var(--fhj-font); font-size: 18px; font-weight: 800; color: #f16a22; letter-spacing: -.02em; }
.fhj-prop-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.fhj-prop-status--pending  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.fhj-prop-status--accepted { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.fhj-prop-status--rejected { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.fhj-proposal-timeline { font-size: 13px; color: var(--fhj-text-muted); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.fhj-proposal-letter { font-size: 14px; line-height: 1.75; color: var(--fhj-text); }
.fhj-proposal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fhj-proposal-accepted-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--fhj-success); font-size: 13px; font-weight: 700; background: var(--fhj-success-bg); border: 1px solid var(--fhj-success-border); padding: 6px 14px; border-radius: 999px; width: fit-content; }
.fhj-my-proposal-job-info { display: flex; flex-direction: column; gap: 4px; }
.fhj-proposal-job-title { font-family: var(--fhj-font); font-size: 16px; font-weight: 700; color: var(--fhj-text); text-decoration: none; }
.fhj-proposal-job-title:hover { color: var(--fhj-primary); }
.fhj-my-proposal-date { font-size: 12px; color: var(--fhj-text-light); font-weight: 500; }

/* ── Animations ───────────────────────────────────────────────────────────────── */
@keyframes fhj-spin    { to { transform: rotate(360deg); } }
@keyframes fhj-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .fhj-filters { padding: 14px 16px; gap: 10px; }
  .fhj-detail-header { flex-direction: column; }
  .fhj-cert-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .fhj-cert-grid { grid-template-columns: 1fr; }
  .fhj-jobs-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   fh-jobs v2.1.0 — Escrow sidebar card
   ═══════════════════════════════════════════════════════════════════════════════ */

.fhj-escrow-sidebar-card {
  border-top: 3px solid #f16a22;
}
.fhj-escrow-sidebar-card .fhj-sidebar-title {
  color: #f16a22;
}

/* Milestone status pills inside the escrow sidebar card */
.fhj-escrow-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.fhj-escrow-status-pending   { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.fhj-escrow-status-funded     { background: #fef0e6; color: #b8460f; border: 1px solid #fcd9bf; }
.fhj-escrow-status-submitted  { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.fhj-escrow-status-approved   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.fhj-escrow-status-refunded   { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.fhj-escrow-status-disputed   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.fhj-detail-list-value { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
