/* =============================================
   THE HIRWAVE JOBS — PUBLIC STYLES
   ============================================= */

:root {
  --thw-primary:  rgba(0,0,40,0.97);
  --thw-accent:   #e8a020;
  --thw-text:     #2d2d2d;
  --thw-muted:    #6c757d;
  --thw-border:   #dee2e6;
  --thw-bg:       #f8f9fa;
  --thw-white:    #ffffff;
  --thw-green:    #27ae60;
  --thw-red:      #e74c3c;
  --thw-radius:   8px;
  --thw-shadow:   0 4px 20px rgba(0,0,0,.08);
}

/* ─── Jobs Listing ─────────────────────────── */
.thw-jobs-wrap { max-width: 900px; margin: 0 auto; }

.thw-jobs-filters { background: var(--thw-white); border-radius: var(--thw-radius); box-shadow: var(--thw-shadow); padding: 20px 24px; margin-bottom: 28px; }
.thw-filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.thw-search-input, .thw-filter-select { padding: 10px 14px; border: 1px solid var(--thw-border); border-radius: 6px; font-size: 14px; flex: 1; min-width: 160px; background: #fff; }
.thw-search-input:focus, .thw-filter-select:focus { border-color: var(--thw-primary); outline: none; box-shadow: 0 0 0 3px rgba(26,60,94,.1); }

.thw-jobs-list { display: flex; flex-direction: column; gap: 16px; }

.thw-job-card { background: var(--thw-white); border-radius: var(--thw-radius); box-shadow: var(--thw-shadow); padding: 24px 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-left: 4px solid transparent; transition: transform .2s, box-shadow .2s; position: relative; }
.thw-job-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.thw-job-card.thw-featured { border-left-color: var(--thw-accent); }

.thw-featured-badge { position: absolute; top: 14px; right: 16px; background: var(--thw-accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }

.thw-job-card-main { flex: 1; }
.thw-job-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.thw-job-title a { color: var(--thw-primary); text-decoration: none; }
.thw-job-title a:hover { color: var(--thw-accent); }

.thw-job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.thw-meta-item { font-size: 13px; color: var(--thw-muted); }
.thw-meta-item.thw-icon-location::before { content: '📍 '; }
.thw-meta-item.thw-icon-deadline::before { content: '⏰ '; }
.thw-meta-item.thw-icon-salary::before   { content: '💰 '; }

.thw-job-type-badge, .thw-sector-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.thw-job-type-badge { background: #e8f0fe; color: var(--thw-primary); }
.thw-sector-badge   { background: #fff3e0; color: #b45309; }

.thw-job-excerpt { color: #555; font-size: 14px; line-height: 1.6; }
.thw-job-card-cta { display: flex; align-items: flex-start; padding-top: 4px; }

.thw-no-jobs { text-align: center; padding: 60px 20px; color: var(--thw-muted); background: var(--thw-white); border-radius: var(--thw-radius); box-shadow: var(--thw-shadow); }

/* ─── Single Job ───────────────────────────── */
.thw-single-job { max-width: 820px; }
.thw-single-job-header { border-bottom: 1px solid var(--thw-border); padding-bottom: 20px; margin-bottom: 24px; }
.thw-single-job-meta   { display: flex; flex-wrap: wrap; gap: 10px; }
.thw-single-job-body   { line-height: 1.8; color: var(--thw-text); }
.thw-single-job-apply  { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--thw-border); }
.thw-closed-notice { color: var(--thw-red); font-weight: 600; }

/* ─── Buttons ──────────────────────────────── */
.thw-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 6px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; text-decoration: none; border: 2px solid transparent;
  white-space: nowrap;
}
.thw-btn-primary { background: var(--thw-primary); color: #fff; }
.thw-btn-primary:hover, .thw-btn-primary:focus { background: #0f2840; color: #fff; }
.thw-btn-outline { background: transparent; color: var(--thw-primary); border-color: var(--thw-primary); }
.thw-btn-outline:hover { background: var(--thw-primary); color: #fff; }
.thw-btn-ghost   { background: transparent; color: var(--thw-primary); border-color: var(--thw-border); }
.thw-btn-ghost:hover { background: var(--thw-bg); }
.thw-btn-large   { padding: 14px 32px; font-size: 16px; }
.thw-btn-sm      { padding: 6px 14px; font-size: 13px; }
.thw-btn:disabled{ opacity: .6; cursor: not-allowed; }

/* ─── Forms ────────────────────────────────── */
.thw-form-wrap { max-width: 800px; margin: 0 auto; }
.thw-form-job-info { background: #e8f0fe; border-radius: 6px; padding: 12px 18px; margin-bottom: 24px; font-size: 14px; }
.thw-form-job-info .thw-applying-for { color: var(--thw-muted); margin-right: 8px; }

.thw-form-section { background: var(--thw-white); border-radius: var(--thw-radius); box-shadow: var(--thw-shadow); padding: 24px 28px; margin-bottom: 20px; }
.thw-section-title { margin: 0 0 20px; font-size: 16px; color: var(--thw-primary); border-bottom: 1px solid var(--thw-border); padding-bottom: 12px; }

.thw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.thw-field-full { grid-column: 1 / -1; }

.thw-field { display: flex; flex-direction: column; gap: 6px; }
.thw-field label { font-size: 14px; font-weight: 600; color: var(--thw-text); }
.thw-field .required { color: var(--thw-red); }
.thw-field small { font-weight: 400; color: var(--thw-muted); }
.thw-field input[type="text"],
.thw-field input[type="email"],
.thw-field input[type="tel"],
.thw-field input[type="number"],
.thw-field input[type="url"],
.thw-field select,
.thw-field textarea {
  padding: 10px 14px; border: 1px solid var(--thw-border); border-radius: 6px; font-size: 14px; width: 100%; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.thw-field input:focus, .thw-field select:focus, .thw-field textarea:focus {
  border-color: var(--thw-primary); outline: none; box-shadow: 0 0 0 3px rgba(26,60,94,.1);
}

/* Language rows */
#thw-language-rows .thw-language-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
#thw-language-rows input, #thw-language-rows select { flex: 1; }
.thw-btn-icon { background: none; border: 1px solid #ddd; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; color: #999; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.thw-btn-icon:hover { background: #f8d7da; border-color: var(--thw-red); color: var(--thw-red); }

/* File upload */
.thw-file-upload { position: relative; }
.thw-file-upload input[type="file"] { width: 100%; padding: 8px; border: 2px dashed var(--thw-border); border-radius: 6px; background: var(--thw-bg); cursor: pointer; font-size: 13px; }
.thw-file-upload input[type="file"]:focus { border-color: var(--thw-primary); }

/* Checkbox / consent */
.thw-consent-section { border-left: 4px solid var(--thw-primary); }
.thw-checkbox-label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; line-height: 1.6; }
.thw-checkbox-label input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.thw-checkbox-group { display: flex; flex-wrap: wrap; gap: 16px; }

.thw-form-actions { margin-top: 10px; text-align: center; }

/* ─── Alerts ───────────────────────────────── */
.thw-alert { border-radius: var(--thw-radius); padding: 20px 24px; margin-bottom: 20px; }
.thw-alert h3 { margin: 0 0 8px; }
.thw-alert p   { margin: 0 0 8px; }
.thw-alert p:last-child { margin: 0; }
.thw-alert-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.thw-alert-error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }

.thw-tracking-code-display { background: var(--thw-white); border: 2px solid #c3e6cb; border-radius: 6px; padding: 16px; text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 3px; color: var(--thw-primary); margin: 12px 0; }

/* ─── Status Tracker ───────────────────────── */
.thw-status-wrap { max-width: 600px; margin: 100px auto; }
#thw-check-status-btn{
  justify-content: center;
}
.grid-photos{
  height:470px;
  display:grid;
  grid-template-rows: 50% 50%;
  grid-template-columns: 1fr 1fr;
}
@media(max-width:768px){
  .thw-status-wrap{ 
    margin: 25px auto;
  }
  .grid-photos{
    height:300px;
  }
}
.thw-status-search { background: var(--thw-white); border-radius: var(--thw-radius); box-shadow: var(--thw-shadow); padding: 36px; text-align: center; }
.thw-status-search h2 { color: var(--thw-primary); margin-bottom: 8px; }
.thw-status-search p  { color: var(--thw-muted); margin-bottom: 24px; }
.thw-status-form-row { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; }
.thw-code-input { flex: 1; padding: 12px 16px; border: 2px solid var(--thw-border); border-radius: 6px; font-size: 15px; text-align: center; letter-spacing: 2px; text-transform: uppercase; }
.thw-code-input:focus { border-color: var(--thw-primary); outline: none; }

#thw-status-result { margin-top: 24px; text-align: left; }
.thw-status-card { background: var(--thw-white); border: 1px solid var(--thw-border); border-radius: var(--thw-radius); padding: 24px; margin-top: 16px; }
.thw-status-card h3 { margin: 0 0 16px; color: var(--thw-primary); }
.thw-status-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--thw-bg); font-size: 14px; }
.thw-status-row:last-child { border: none; }
.thw-status-row strong { color: var(--thw-text); }
.thw-status-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-weight: 700; font-size: 13px; }
.thw-status-pending    { background: #fef3cd; color: #856404; }
.thw-status-reviewed   { background: #d1ecf1; color: #0c5460; }
.thw-status-shortlisted{ background: #d4edda; color: #155724; }
.thw-status-rejected   { background: #f8d7da; color: #721c24; }
.thw-status-hired      { background: #d4edda; color: #155724; border: 2px solid var(--thw-green); }
.thw-status-steps { display: flex; gap: 0; margin: 20px 0; counter-reset: step; }
.thw-step { flex: 1; text-align: center; position: relative; }
.thw-step::before { content: ''; display: block; width: 24px; height: 24px; border-radius: 50%; background: #e0e0e0; border: 3px solid #fff; box-shadow: 0 0 0 2px #e0e0e0; margin: 0 auto 8px; }
.thw-step.done::before { background: var(--thw-green); box-shadow: 0 0 0 2px var(--thw-green); }
.thw-step.active::before { background: var(--thw-primary); box-shadow: 0 0 0 2px var(--thw-primary); }
.thw-step + .thw-step::after { content: ''; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: #e0e0e0; z-index: -1; }
.thw-step.done + .thw-step::after { background: var(--thw-green); }
.thw-step span { font-size: 11px; color: var(--thw-muted); display: block; }
.thw-step.active span, .thw-step.done span { font-weight: 600; color: var(--thw-text); }

/* ─── Responsive ───────────────────────────── */
@media (max-width: 680px) {
  .thw-job-card     { flex-direction: column; }
  .thw-form-grid    { grid-template-columns: 1fr; }
  .thw-status-form-row { flex-direction: column; }
  .thw-filter-row   { flex-direction: column; }
  .thw-search-input, .thw-filter-select { min-width: auto; }
  .thw-btn-large    { width: 100%; justify-content: center; }
  #thw-language-rows .thw-language-row { flex-wrap: wrap; }
}
