/* ── RailConsult HRM — Frontend Styles ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
.hrm-page-wrap { max-width: 900px; margin: 0 auto; padding: 20px 16px; }

/* Hero */
.hrm-jobs-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
.hrm-jobs-hero { background: linear-gradient(135deg, #0d1b2e 0%, #1565c0 100%); border-radius: 16px; padding: 40px 36px; color: #fff; margin-bottom: 28px; text-align: center; }
.hrm-jobs-hero h1 { font-size: 32px; font-weight: 900; margin: 0 0 10px; }
.hrm-jobs-hero p  { color: rgba(255,255,255,.75); margin: 0 0 20px; font-size: 16px; }
.hrm-stat-pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hrm-stat-pills span { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 6px 16px; font-size: 13px; font-weight: 700; }

/* Filters */
.hrm-job-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.hrm-job-filters input, .hrm-job-filters select { flex: 1; min-width: 180px; padding: 11px 14px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 14px; outline: none; transition: border-color .2s; }
.hrm-job-filters input:focus, .hrm-job-filters select:focus { border-color: #1565c0; }

/* Job Grid */
.hrm-job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.hrm-job-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 2px 16px rgba(0,0,0,.08); border: 1.5px solid #f0f2f5; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hrm-job-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.12); border-color: #1565c0; }
.hrm-job-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.hrm-job-id    { font-size: 11px; font-weight: 800; color: #1565c0; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.hrm-job-title { font-size: 17px; font-weight: 800; color: #1a2535; margin: 0; line-height: 1.3; }
.hrm-job-type-badge { border-radius: 20px; padding: 4px 12px; font-size: 11.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.hrm-type-contract { background: #fee2d5; color: #9a3412; }
.hrm-type-perm     { background: #d1fae5; color: #065f46; }
.hrm-type-free     { background: #ede9fe; color: #5b21b6; }
.hrm-job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hrm-job-meta span { font-size: 12.5px; color: #6b7280; }
.hrm-job-desc { font-size: 13.5px; color: #6b7280; line-height: 1.6; margin: 0 0 12px; }
.hrm-job-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.hrm-job-tags span { background: #e3eeff; color: #1565c0; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 5px; }
.hrm-job-footer { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.hrm-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: all .2s; text-decoration: none; }
.hrm-btn-primary   { background: linear-gradient(135deg, #1565c0, #0d47a1); color: #fff; }
.hrm-btn-primary:hover { background: linear-gradient(135deg, #1976d2, #1565c0); transform: translateY(-1px); }
.hrm-btn-secondary { background: #f5f8fd; color: #1565c0; border: 2px solid #1565c0; }
.hrm-btn-linkedin  { background: #0a66c2; color: #fff; font-size: 12.5px; padding: 8px 14px; }
.hrm-btn-submit    { background: linear-gradient(135deg, #2e7d32, #1b5e20); color: #fff; font-size: 15px; padding: 14px 32px; }
.hrm-btn-link      { background: none; border: none; color: #1565c0; cursor: pointer; font-weight: 700; padding: 0; text-decoration: underline; }

/* Interest CTA */
.hrm-interest-cta { text-align: center; margin-top: 32px; padding: 20px; background: #f5f8fd; border-radius: 12px; }
.hrm-interest-cta a { color: #1565c0; font-weight: 700; }

/* Verify / Apply page card */
.hrm-verify-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.1); padding: 36px; max-width: 580px; margin: 0 auto; }

/* Status cards */
.hrm-status-card { text-align: center; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.1); padding: 48px 36px; max-width: 520px; margin: 0 auto; }
.hrm-status-success { border-top: 6px solid #2e7d32; }
.hrm-status-error   { border-top: 6px solid #dc2626; }
.hrm-status-icon    { font-size: 56px; display: block; margin-bottom: 12px; }
.hrm-status-card h2 { margin: 0 0 12px; font-size: 24px; }

/* Highlight box */
.hrm-highlight-box { background: linear-gradient(135deg, #e3eeff, #dbeafe); border-left: 5px solid #1565c0; border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 16px 0; font-size: 15px; font-weight: 700; color: #1565c0; }
.hrm-highlight-box span { display: block; font-size: 12px; font-weight: 700; color: #9ca3af; margin-top: 3px; }

/* Apply Form */
.hrm-apply-wrap { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.1); overflow: hidden; }
.hrm-apply-header { background: linear-gradient(135deg, #0d1b2e, #1565c0); color: #fff; padding: 28px 32px; }
.hrm-apply-header h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.hrm-apply-header p  { margin: 0; color: rgba(255,255,255,.75); }
.hrm-job-ref { background: rgba(255,255,255,.15); border-radius: 6px; padding: 2px 10px; font-size: 12px; font-weight: 700; margin-left: 8px; }

/* Steps */
.hrm-steps { display: flex; align-items: center; padding: 20px 32px; background: #f5f8fd; border-bottom: 1px solid #e9ecef; }
.hrm-step  { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hrm-step-num { width: 30px; height: 30px; border-radius: 50%; background: #ddd; color: #888; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.hrm-step-lbl { font-size: 10.5px; font-weight: 700; color: #9ca3af; text-align: center; white-space: nowrap; }
.hrm-step-active .hrm-step-num { background: #1565c0; color: #fff; }
.hrm-step-done  .hrm-step-num  { background: #2e7d32; color: #fff; }
.hrm-step-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 6px 16px; }

/* Apply form panels */
.hrm-step-panel { padding: 24px 32px; }
.hrm-step-panel h3 { margin: 0 0 20px; font-size: 17px; font-weight: 800; color: #1a2535; border-bottom: 2px solid #e3eeff; padding-bottom: 10px; }

/* Form fields */
.hrm-fe-label { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; display: block; margin-bottom: 5px; }
.hrm-fe-input { width: 100%; padding: 11px 14px; border: 2px solid #e5e7eb; border-radius: 9px; font-size: 14px; outline: none; transition: border-color .2s; box-sizing: border-box; background: #fff; }
.hrm-fe-input:focus { border-color: #1565c0; }
textarea.hrm-fe-input { resize: vertical; min-height: 80px; }

.hrm-fe-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.hrm-fe-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.hrm-fg        { display: flex; flex-direction: column; gap: 4px; }

/* Checkboxes */
.hrm-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 6px; }
.hrm-checkbox-grid label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; padding: 8px 12px; border: 1.5px solid #e5e7eb; border-radius: 8px; transition: all .15s; }
.hrm-checkbox-grid label:hover { border-color: #1565c0; background: #f0f6ff; }
.hrm-checkbox-grid input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; }

/* Upload zone */
.hrm-upload-zone { border: 2px dashed #d1d5db; border-radius: 12px; padding: 40px 20px; text-align: center; cursor: pointer; transition: all .2s; }
.hrm-upload-zone:hover, .hrm-upload-zone.dragover { border-color: #1565c0; background: #f0f6ff; }
.hrm-upload-icon { font-size: 48px; margin-bottom: 12px; }
.hrm-upload-zone h4 { margin: 0 0 6px; color: #374151; }
.hrm-upload-zone p  { margin: 4px 0; color: #9ca3af; font-size: 13px; }
.hrm-file-hidden { display: none; }

/* Review table */
.hrm-review-box { background: #f5f8fd; border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.hrm-review-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; }
.hrm-review-table tr:nth-child(even) td { background: #fff; }
.hrm-review-table td { padding: 7px 10px; }
.hrm-review-table td:first-child { font-weight: 700; color: #6b7280; width: 38%; }

/* Nav buttons */
.hrm-nav-buttons { display: flex; gap: 12px; padding: 18px 32px; background: #f5f8fd; border-top: 1px solid #e9ecef; }
.hrm-apply-agree { padding: 0 32px 6px; }
.hrm-apply-agree label { font-size: 13.5px; cursor: pointer; display: flex; gap: 8px; align-items: flex-start; }

/* Alerts */
.hrm-alert { padding: 11px 16px; border-radius: 8px; font-size: 13.5px; margin-bottom: 12px; }
.hrm-alert-err { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.hrm-alert-ok  { background: #d1fae5; border: 1px solid #86efac; color: #065f46; }

/* Overlay / Modal for apply */
.hrm-fe-overlay { position: fixed; inset: 0; background: rgba(13,27,46,.6); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.hrm-fe-modal   { background: #fff; border-radius: 16px; padding: 32px; max-width: 480px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,.3); position: relative; }
.hrm-fe-close   { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 24px; cursor: pointer; color: #9ca3af; line-height: 1; }

@media (max-width: 768px) {
    .hrm-job-grid    { grid-template-columns: 1fr; }
    .hrm-fe-grid     { grid-template-columns: 1fr; }
    .hrm-fe-grid-3   { grid-template-columns: 1fr 1fr; }
    .hrm-steps .hrm-step-lbl { display: none; }
    .hrm-step-panel  { padding: 18px 16px; }
    .hrm-nav-buttons { padding: 14px 16px; }
    .hrm-apply-agree { padding: 0 16px 6px; }
    .hrm-jobs-hero   { padding: 28px 20px; }
    .hrm-jobs-hero h1 { font-size: 24px; }
}
