/* =====================================================================
   E-Recruitment (v3.1) — halaman Karir, detail lowongan, form lamaran.
   Memakai variabel tema (--primary, --white, --dark, ...) sehingga
   otomatis mengikuti mode gelap & warna dari Panel Admin.
   ===================================================================== */

.rec-hero-sub { max-width: 640px; margin: 14px auto 0; opacity: .92; font-size: 17px; }
.rec-hero-unit {
  display: inline-block; padding: 6px 14px; margin-bottom: 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.rec-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 0; padding: 0; }
.rec-chips li { background: rgba(255,255,255,.14); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600; }

/* Daftar lowongan */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.rec-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.rec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rec-card h3 { font-size: 20px; line-height: 1.3; margin: 0; }
.rec-card h3 a { color: var(--dark); text-decoration: none; }
.rec-card h3 a:hover { color: var(--primary); }
.rec-card .btn { align-self: flex-start; margin-top: auto; }
.rec-unit {
  align-self: flex-start; background: var(--primary-light); color: var(--primary);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.rec-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--gray); font-size: 14px; }

/* Keadaan tidak ada lowongan / terkirim */
.rec-closed, .rec-success {
  max-width: 560px; margin: 0 auto; text-align: center; padding: 20px 10px;
}
.rec-closed h2, .rec-success h2 { font-size: 26px; margin: 8px 0 10px; color: var(--dark); }
.rec-closed p, .rec-success p { color: var(--gray); margin-bottom: 22px; }
.rec-closed-ico { font-size: 52px; line-height: 1; }
.rec-closed-inline { padding: 10px 0; }

/* Halaman detail */
.rec-wrap { display: grid; gap: 28px; max-width: 900px; }
.rec-box {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.rec-detail h3 { font-size: 20px; margin: 26px 0 10px; color: var(--dark); }
.rec-desc { max-width: none; }
.rec-list { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 8px; }
.rec-list li { position: relative; padding-left: 26px; color: var(--gray); }
.rec-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 800;
}
.rec-back { color: var(--primary); font-weight: 600; text-decoration: none; }
.rec-apply h2 { font-size: 26px; margin: 0 0 6px; color: var(--dark); }
.rec-sub { color: var(--gray); margin-bottom: 22px; }
.rec-req { color: #d93025; }

/* Form */
.rec-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.rec-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rec-full { grid-column: 1 / -1; }
.rec-field label { font-weight: 600; font-size: 14px; color: var(--dark); }
.rec-field label small { font-weight: 400; color: var(--muted); }
.rec-field > small { color: var(--muted); font-size: 12.5px; }
.rec-field input[type="text"], .rec-field input[type="email"], .rec-field input[type="tel"],
.rec-field input[type="date"], .rec-field select, .rec-field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: inherit; background: var(--white); color: var(--dark); transition: .2s;
}
.rec-field input[type="file"] {
  width: 100%; padding: 12px; border: 1.5px dashed var(--border); border-radius: 12px;
  background: var(--primary-soft); color: var(--dark); font-family: inherit; font-size: 14px;
}
.rec-field input:focus, .rec-field select:focus, .rec-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10,138,69,.18);
}
.rec-field textarea { resize: vertical; }
.rec-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--gray); }
.rec-consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.rec-submit { margin-top: 26px; width: 100%; justify-content: center; padding: 16px; font-size: 16px; }
.rec-submit[disabled] { opacity: .65; cursor: wait; transform: none; }

/* Honeypot: tersembunyi dari manusia, terlihat oleh bot */
.rec-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Pesan galat */
.rec-alert {
  background: rgba(217,48,37,.08); border: 1px solid rgba(217,48,37,.35); color: var(--dark);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 22px;
}
.rec-alert ul { margin: 8px 0 0 18px; padding: 0; }

@media (max-width: 720px) {
  .rec-box { padding: 22px 18px; }
  .rec-row { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: 1fr; }
}
