/* ============================================================
   PMFME Recruitment System – Global Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f9;
  color: #1a202c;
  font-size: 15px;
  line-height: 1.6;
}

a { color: #1a3a6b; }

/* ---- HEADER ---- */
.site-header {
  background: linear-gradient(135deg, #1a3a6b 0%, #0d2347 100%);
  color: #fff;
  padding: 0.75rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.header-logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-emblem { font-size: 2rem; }
.header-title { font-size: 1.05rem; font-weight: 700; }
.header-sub   { font-size: 0.72rem; color: #a8c0e8; }
.header-right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.scheme-tag   { background: rgba(255,255,255,0.15); border-radius: 20px; padding: 0.2rem 0.75rem; font-size: 0.75rem; font-weight: 600; }

/* ---- HERO STRIP ---- */
.hero-strip    { background: #1e4080; color: #fff; padding: 1rem 0; border-bottom: 3px solid #f59e0b; }
.hero-inner    { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.hero-inner h1 { font-size: 1.15rem; font-weight: 700; }
.hero-meta     { display: flex; gap: 1rem; margin-top: 0.3rem; font-size: 0.82rem; flex-wrap: wrap; align-items: center; }
.badge-open    { background: #22c55e; color: #fff; padding: 2px 10px; border-radius: 20px; font-weight: 600; }
.badge-closed  { background: #ef4444; color: #fff; padding: 2px 10px; border-radius: 20px; font-weight: 600; }

/* ---- CONTAINER ---- */
.container { max-width: 1000px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- SECTION HEADING ---- */
.section-heading { font-size: 1rem; font-weight: 700; color: #1a3a6b; margin-bottom: 0.75rem; border-left: 4px solid #f59e0b; padding-left: 0.6rem; }

/* ---- POSTS GRID ---- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 0.75rem; }
.post-card  { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0.9rem 1rem; border-top: 3px solid #1a3a6b; }
.post-title { font-weight: 700; font-size: 0.9rem; color: #1a3a6b; margin-bottom: 0.5rem; }
.post-meta  { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.78rem; color: #374151; margin-bottom: 0.4rem; }
.post-qual  { font-size: 0.74rem; color: #6b7280; font-style: italic; }

/* ---- STEP NAV ---- */
.step-nav { display: flex; gap: 0; margin-bottom: 0; border-radius: 10px 10px 0 0; overflow: hidden; border: 1px solid #e5e7eb; border-bottom: none; flex-wrap: wrap; }
.step-btn { flex: 1; min-width: 120px; background: #f3f4f6; border: none; border-right: 1px solid #e5e7eb; padding: 0.65rem 0.5rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; color: #6b7280; transition: all 0.15s; }
.step-btn:last-child { border-right: none; }
.step-btn.active { background: #1a3a6b; color: #fff; }
.step-btn.done   { background: #dcfce7; color: #166534; }

/* ---- FORM CARD ---- */
.form-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 0 0 10px 10px; padding: 1.5rem; margin-bottom: 1rem; }
.form-step { display: none; }
.form-step.active { display: block; }
.card-heading { font-size: 0.95rem; font-weight: 700; color: #1a3a6b; margin-bottom: 1.25rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem; }
.card-note { font-size: 0.8rem; color: #6b7280; margin-bottom: 1rem; }

/* ---- FORM ELEMENTS ---- */
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.form-group { flex: 1; min-width: 200px; margin-bottom: 0.5rem; }
.form-group.full { flex: 1 1 100%; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: #374151; margin-bottom: 0.3rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff; color: #111827;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: #1a3a6b;
  box-shadow: 0 0 0 3px rgba(26,58,107,0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.req { color: #dc2626; }

/* ---- DOC GRID ---- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.doc-item { background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 8px; padding: 0.9rem; }
.doc-item label { display: block; font-size: 0.82rem; font-weight: 700; color: #374151; margin-bottom: 0.2rem; }
.doc-hint { font-size: 0.72rem; color: #9ca3af; margin-bottom: 0.4rem; }
.doc-item input[type=file] { font-size: 0.8rem; }

/* ---- DECLARATION ---- */
.declaration-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 1rem 1.25rem; }
.declaration-box p { margin-bottom: 0.5rem; font-weight: 600; }
.declaration-box ol { padding-left: 1.25rem; font-size: 0.88rem; }
.declaration-box li { margin-bottom: 0.4rem; }
.checkbox-group label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.88rem; }

/* ---- STEP ACTIONS ---- */
.step-actions { display: flex; justify-content: flex-end; gap: 0.75rem; padding-top: 0.5rem; }

/* ---- BUTTONS ---- */
.btn-primary, .btn-next, .btn-submit {
  background: #1a3a6b; color: #fff;
  border: none; border-radius: 6px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover, .btn-next:hover, .btn-submit:hover { background: #0d2347; }
.btn-submit { background: #16a34a; font-size: 1rem; padding: 0.75rem 2rem; }
.btn-submit:hover { background: #15803d; }
.btn-prev  { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; border-radius: 6px; padding: 0.6rem 1.25rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.btn-outline { background: #fff; color: #1a3a6b; border: 1.5px solid #1a3a6b; border-radius: 6px; padding: 0.55rem 1.25rem; font-size: 0.88rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-outline:hover { background: #eff6ff; }
.btn-outline-white { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 6px; padding: 0.35rem 0.9rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-outline-white:hover { background: rgba(255,255,255,0.2); }
.btn-success { background: #16a34a; color: #fff; border: none; border-radius: 6px; padding: 0.5rem 1.25rem; font-size: 0.88rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-success:hover { background: #15803d; }
.btn-sm { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 6px; padding: 0.3rem 0.75rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-sm:hover { background: #dbeafe; }
.btn-sm.btn-success { background: #dcfce7; color: #166534; border-color: #86efac; }

/* ---- ALERTS ---- */
.alert-error { background: #fee2e2; border: 1px solid #fecaca; border-radius: 8px; padding: 0.9rem 1.1rem; color: #991b1b; font-size: 0.88rem; }
.alert-info  { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 0.9rem 1.1rem; color: #1e40af; font-size: 0.88rem; }
.alert-success { background: #dcfce7; border: 1px solid #86efac; border-radius: 8px; padding: 0.9rem 1.1rem; color: #166534; font-size: 0.88rem; }

/* ---- SUCCESS PAGE ---- */
.success-card { background: #fff; border-radius: 16px; padding: 2.5rem; box-shadow: 0 4px 24px rgba(0,0,0,0.08); text-align: center; }
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-card h2 { font-size: 1.4rem; color: #111827; margin-bottom: 0.5rem; }
.app-no-box { background: #1a3a6b; color: #fff; border-radius: 12px; padding: 1.25rem; margin: 1.5rem 0; }
.app-no-label { font-size: 0.82rem; color: #a8c0e8; margin-bottom: 0.3rem; }
.app-no-value { font-size: 1.8rem; font-weight: 800; font-family: monospace; letter-spacing: 0.05em; }
.app-no-hint  { font-size: 0.78rem; color: #a8c0e8; margin-top: 0.3rem; }
.summary-table-wrap { margin: 1.5rem 0; text-align: left; }
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.summary-table th { background: #f3f4f6; padding: 0.5rem 0.75rem; font-weight: 600; color: #374151; width: 35%; text-align: left; border: 1px solid #e5e7eb; }
.summary-table td { padding: 0.5rem 0.75rem; border: 1px solid #e5e7eb; color: #111827; }

/* ---- FOOTER ---- */
.site-footer { background: #0d2347; color: #a8c0e8; text-align: center; padding: 1.25rem; font-size: 0.78rem; margin-top: 2rem; }
.site-footer a { color: #60a5fa; }

/* ---- PRINT ---- */
@media print {
  .site-header, .hero-strip, .step-actions, .site-footer { display: none; }
  .form-card { box-shadow: none; border: 1px solid #ccc; }
}

@media (max-width: 600px) {
  .form-row { flex-direction: column; }
  .posts-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .step-btn { font-size: 0.7rem; padding: 0.5rem 0.3rem; }
}
