/* HQ Workforce Frontend Styles */
.hqwf-wrap { max-width: 800px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.hqwf-title { font-size: 1.5rem; font-weight: 700; color: #1a1a2e; margin-bottom: 1.5rem; }
.hqwf-notice { padding: .75rem 1rem; border-radius: .5rem; font-size: .9rem; margin-bottom: 1rem; background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; }
.hqwf-notice--error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.hqwf-fieldset { border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1.5rem; margin-bottom: 1.5rem; }
.hqwf-fieldset legend { font-weight: 600; color: #374151; padding: 0 .5rem; font-size: 1rem; }
.hqwf-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hqwf-col { flex: 1; min-width: 200px; }
.hqwf-col--full { flex: 0 0 100%; }
.hqwf-col label { display: block; font-size: .85rem; font-weight: 500; color: #374151; margin-bottom: .35rem; }
.hqwf-col input, .hqwf-col select, .hqwf-col textarea { width: 100%; padding: .5rem .75rem; border: 1px solid #d1d5db; border-radius: .5rem; font-size: .9rem; box-sizing: border-box; transition: border-color .15s; }
.hqwf-col input:focus, .hqwf-col select:focus, .hqwf-col textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.required { color: #ef4444; }
.hqwf-checkbox-row { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .75rem; }
.hqwf-checkbox-row input[type="checkbox"] { margin-top: .2rem; width: 1rem; height: 1rem; }
.hqwf-submit-row { display: flex; align-items: center; gap: 1rem; }
.hqwf-btn { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1.5rem; border-radius: .5rem; font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .15s; border: none; }
.hqwf-btn--primary { background: #2563eb; color: #fff; }
.hqwf-btn--primary:hover { background: #1d4ed8; }
.hqwf-btn--outline { background: transparent; color: #2563eb; border: 1px solid #2563eb; }
.hqwf-btn--outline:hover { background: #eff6ff; }
.hqwf-spinner { width: 1.25rem; height: 1.25rem; border: 2px solid #e5e7eb; border-top-color: #2563eb; border-radius: 50%; animation: hqwf-spin .6s linear infinite; }
@keyframes hqwf-spin { to { transform: rotate(360deg); } }
.hqwf-job-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.hqwf-job-filters__search { position: relative; flex: 1 1 280px; min-width: 220px; }
.hqwf-job-filters__clear { font-size: .85rem; color: #6b7280; text-decoration: underline; }
.hqwf-job-filters .hqwf-btn { padding: .6rem 1.25rem; }
.hqwf-input, .hqwf-select { width: 100%; padding: .6rem .85rem; border: 1px solid #e5e7eb; border-radius: .5rem; font-size: .9rem; color: #1a1a2e; background: #fff; }
.hqwf-input:focus, .hqwf-select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.hqwf-select { width: auto; min-width: 180px; }
.hqwf-autocomplete-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid #e5e7eb; border-radius: .5rem; box-shadow: 0 8px 24px rgba(0,0,0,.08); max-height: 320px; overflow-y: auto; }
.hqwf-autocomplete-item { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem .85rem; font-size: .85rem; color: #1a1a2e; text-decoration: none; border-bottom: 1px solid #f3f4f6; }
.hqwf-autocomplete-item:last-child { border-bottom: none; }
.hqwf-autocomplete-item:hover { background: #f9fafb; color: #2563eb; }
.hqwf-autocomplete-item__meta { color: #9ca3af; font-size: .78rem; white-space: nowrap; }
.hqwf-jobs-list { display: flex; flex-direction: column; gap: 1rem; }
.hqwf-job-card { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.hqwf-job-card__title { font-size: 1.1rem; font-weight: 600; margin: 0 0 .5rem; }
.hqwf-job-card__title a { color: #1a1a2e; text-decoration: none; }
.hqwf-job-card__title a:hover { color: #2563eb; }
.hqwf-job-card__meta { font-size: .85rem; color: #6b7280; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.hqwf-meta-item { display: inline-flex; align-items: center; gap: .25rem; }
.hqwf-badge { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 1rem; font-size: .75rem; font-weight: 600; background: #eff6ff; color: #2563eb; }
.hqwf-pagination { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1.5rem; }
.hqwf-pagination .hqwf-btn { padding: .5rem 1.1rem; }
.hqwf-pagination__status { font-size: .85rem; color: #6b7280; }

/* Single job detail page (job-detail.php) -- unreachable before the
   /careers/{slug} route existed, so this never had matching CSS written
   for it and fell back to bare browser defaults for every heading and
   paragraph. */
.hqwf-job-detail { margin-top: 6rem; }
.hqwf-job-detail__title { font-size: 1.6rem; font-weight: 700; color: #1a1a2e; line-height: 1.25; margin: 0 0 .75rem; }
.hqwf-job-detail__meta { font-size: .9rem; color: #6b7280; display: flex; flex-wrap: wrap; gap: .9rem; margin: 0 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e5e7eb; }
.hqwf-job-detail__section { margin-bottom: 1.75rem; }
.hqwf-job-detail__section h2 { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid #e5e7eb; }
.hqwf-job-detail__apply { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid #e5e7eb; }
.hqwf-job-detail__apply h2 { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; margin: 0 0 1.25rem; }
.hqwf-prose { font-size: .95rem; line-height: 1.75; color: #374151; }
.hqwf-prose p { margin: 0 0 1rem; }
.hqwf-prose a { color: #2563eb; word-break: break-word; }
.hqwf-prose a:hover { text-decoration: none; }
.hqwf-rankings-table table { width: 100%; border-collapse: collapse; }
.hqwf-rankings-table th, .hqwf-rankings-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid #e5e7eb; }
.hqwf-rankings-table thead th { background: #f9fafb; font-weight: 600; font-size: .85rem; color: #374151; }
.hqwf-rank-top { background: #fffbeb; }
.hqwf-badge { display: inline-flex; align-items: center; justify-content: center; padding: .2rem .6rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; background: #e5e7eb; color: #374151; }
.hqwf-badge--approved { background: #d1fae5; color: #065f46; }
.hqwf-badge--pending { background: #fef3c7; color: #92400e; }
.hqwf-badge--rejected { background: #fee2e2; color: #991b1b; }
.hqwf-dashboard__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.hqwf-card { background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1.5rem; }
.hqwf-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 1rem; display: flex; align-items: center; gap: .5rem; }
.hqwf-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.hqwf-table th, .hqwf-table td { padding: .5rem .75rem; border-bottom: 1px solid #f3f4f6; text-align: left; }
.hqwf-table thead th { font-weight: 600; color: #6b7280; font-size: .8rem; }

/* ── Agreement Links ─────────────────────────────────── */
/* display:inline overrides the browser default of inline-block for
   <button> -- inline-block makes the button an atomic box that a
   trailing &nbsp;* can't glue onto when the button's own text wraps
   to multiple lines, orphaning the asterisk on its own line.
   -webkit-appearance/appearance: none is required too -- Safari (and
   WebKit generally) keeps a native <button> "used" as inline-block for
   its own widget rendering even when display:inline is specified,
   unless the native appearance is explicitly stripped first. */
.hqwf-agree-link { -webkit-appearance: none; appearance: none; display: inline; background: none; border: none; padding: 0; font-size: inherit; font-family: inherit; color: #13204A; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.hqwf-agree-link:hover { color: #1b2e6b; }

/* ── Agreement Modal ─────────────────────────────────── */
.hqwf-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
body.hqwf-modal-open { overflow: hidden; }
.hqwf-modal { background: #fff; border-radius: 1rem; width: 100%; max-width: 680px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); outline: none; }
.hqwf-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid #e5e7eb; background: #13204A; border-radius: 1rem 1rem 0 0; }
.hqwf-modal-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0; }
.hqwf-modal-close { background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; padding: .25rem; display: flex; border-radius: .375rem; transition: color .15s; }
.hqwf-modal-close:hover { color: #fff; }
.hqwf-modal-body { flex: 1; overflow-y: auto; padding: 1.5rem; font-size: .9rem; line-height: 1.7; color: #374151; }
.hqwf-modal-body h4 { font-size: .95rem; font-weight: 700; color: #13204A; margin: 1.25rem 0 .4rem; }
.hqwf-modal-body p { margin: 0 0 .75rem; }
.hqwf-modal-body ul { margin: .5rem 0 .75rem 1.25rem; }
.hqwf-modal-body ul li { margin-bottom: .3rem; }
.hqwf-agreement-footer { margin-top: 1.5rem !important; padding-top: 1rem; border-top: 1px solid #e5e7eb; font-size: .8rem; color: #6b7280; }
.hqwf-modal-footer { display: flex; gap: .75rem; padding: 1rem 1.5rem; border-top: 1px solid #e5e7eb; background: #f9fafb; border-radius: 0 0 1rem 1rem; }
.hqwf-modal-footer .hqwf-btn { flex: 1; }

/* ── Login Form ──────────────────────────────────────── */
.hqwf-login-wrap { display: flex; justify-content: center; padding: 2rem 1rem; }
.hqwf-login-card { background: #fff; border-radius: 1rem; box-shadow: 0 4px 24px rgba(0,0,0,.1); width: 100%; max-width: 420px; overflow: hidden; }
.hqwf-login-header { background: #13204A; padding: 2rem 2rem 1.75rem; text-align: center; }
.hqwf-login-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: rgba(255,255,255,.12); border-radius: 50%; margin-bottom: .85rem; }
.hqwf-login-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0 0 .4rem; }
.hqwf-login-subtitle { font-size: .8rem; color: rgba(255,255,255,.7); margin: 0; line-height: 1.4; }
#hqwf-login-message { padding: 0 1.5rem; }
#hqwf-login-form { padding: 1.5rem; }
.hqwf-login-field { margin-bottom: 1rem; }
.hqwf-login-field > label { display: block; font-size: .82rem; font-weight: 600; color: #374151; margin-bottom: .35rem; }
.hqwf-input-icon-wrap { position: relative; }
.hqwf-input-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.hqwf-input-icon-wrap input { width: 100%; padding: .6rem .75rem .6rem 2.4rem; border: 1px solid #d1d5db; border-radius: .5rem; font-size: .9rem; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; background: #f9fafb; }
.hqwf-input-icon-wrap input:focus { outline: none; border-color: #13204A; box-shadow: 0 0 0 3px rgba(19,32,74,.12); background: #fff; }
.hqwf-pw-toggle { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: .25rem; color: #9ca3af; display: flex; align-items: center; }
.hqwf-pw-toggle:hover { color: #374151; }
.hqwf-login-remember { margin-bottom: 1.25rem; }
.hqwf-remember-label { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: #374151; cursor: pointer; }
.hqwf-remember-label input[type="checkbox"] { width: 15px; height: 15px; margin: 0; cursor: pointer; }
.hqwf-btn--login { width: 100%; padding: .7rem 1rem; background: #13204A; color: #fff; font-size: .9rem; font-weight: 600; border: none; border-radius: .5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .6rem; transition: background .15s; }
.hqwf-btn--login:hover:not(:disabled) { background: #1b2e6b; }
.hqwf-btn--login:disabled { opacity: .65; cursor: not-allowed; }
.hqwf-login-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: hqwf-spin .6s linear infinite; }
.hqwf-login-divider { position: relative; text-align: center; margin: 1.25rem 1.5rem; }
.hqwf-login-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid #e5e7eb; }
.hqwf-login-divider span { position: relative; background: #fff; padding: 0 .75rem; font-size: .78rem; color: #9ca3af; font-weight: 500; }
.hqwf-btn--signup { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 1.5rem; padding: .65rem 1rem; background: transparent; color: #13204A; border: 1.5px solid #13204A; border-radius: .5rem; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.hqwf-btn--signup:hover { background: #13204A; color: #fff; }
.hqwf-login-note { font-size: .75rem; color: #9ca3af; text-align: center; padding: 1rem 1.5rem; margin: 0; line-height: 1.5; border-top: 1px solid #f3f4f6; margin-top: 1.25rem; }
.hqwf-notice--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.hqwf-onboarding-unavailable { text-align: center; font-weight: 500; }
