/* ── BFS Recruitment Form (public) ───────────────────────── */
.bfs-rec-wrap {
  max-width: 760px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111;
  font-size: 14px;
  line-height: 1.5;
}
.bfs-rec-wrap *,
.bfs-rec-wrap *::before,
.bfs-rec-wrap *::after {
  box-sizing: border-box;
}
.bfs-rec-loading {
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  color: #6b7280;
}
.bfs-rec-empty {
  text-align: center;
  padding: 60px 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px dashed #d1d5db;
}
.bfs-rec-empty h2 { font-size: 18px; margin: 0 0 10px; }
.bfs-rec-empty p { color: #6b7280; }

.bfs-rec-form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.bfs-rec-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  padding: 24px;
  border-radius: 12px 12px 0 0;
  text-align: center;
}
.bfs-rec-header h2 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.bfs-rec-header p { margin: 0; opacity: 0.85; font-size: 14px; }

.bfs-rec-privacy-notice {
  background: #fef3c7;
  border-bottom: 1px solid #fcd34d;
  padding: 12px 24px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
}

.bfs-rec-section {
  padding: 24px;
  border-bottom: 1px solid #f3f4f6;
}
.bfs-rec-section:last-child { border-bottom: none; }
.bfs-rec-section h3 {
  font-size: 15px;
  margin: 0 0 12px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bfs-rec-section-tip {
  font-size: 12px;
  color: #6b7280;
  margin: -6px 0 12px;
  font-style: italic;
}

.bfs-rec-row {
  margin-bottom: 14px;
}
.bfs-rec-row:last-child { margin-bottom: 0; }
.bfs-rec-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}
.bfs-rec-row input[type="text"],
.bfs-rec-row input[type="email"],
.bfs-rec-row input[type="tel"],
.bfs-rec-row input[type="number"],
.bfs-rec-row input[type="date"],
.bfs-rec-row input[type="month"],
.bfs-rec-row select,
.bfs-rec-row textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.bfs-rec-row input:focus,
.bfs-rec-row select:focus,
.bfs-rec-row textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.bfs-rec-row textarea {
  resize: vertical;
  min-height: 60px;
}

.bfs-rec-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .bfs-rec-row-2col { grid-template-columns: 1fr; }
}

.bfs-rec-radio-group,
.bfs-rec-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bfs-rec-radio,
.bfs-rec-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  transition: all .15s;
}
.bfs-rec-radio:has(input:checked),
.bfs-rec-checkbox:has(input:checked) {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
  font-weight: 600;
}
/* Fallback for browsers without :has() — using a workaround via JS class is too much overhead */
.bfs-rec-radio:hover,
.bfs-rec-checkbox:hover {
  background: #f3f4f6;
}
.bfs-rec-radio input,
.bfs-rec-checkbox input {
  margin: 0;
  accent-color: #3b82f6;
}

.bfs-rec-job-desc {
  margin-top: 8px;
  padding: 10px 14px;
  background: #f0f9ff;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Photo upload */
.bfs-rec-photo-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .bfs-rec-photo-row { grid-template-columns: 1fr; }
}
.bfs-rec-photo-upload {
  position: relative;
}
.bfs-rec-photo-preview {
  width: 140px;
  height: 140px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #f9fafb;
  text-align: center;
  font-size: 11px;
  color: #6b7280;
  transition: all .15s;
  overflow: hidden;
}
.bfs-rec-photo-preview:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}
.bfs-rec-photo-preview span { font-size: 36px; }
.bfs-rec-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bfs-rec-photo-fields {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Work history cards */
.bfs-rec-work-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}
.bfs-rec-card-head-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: #374151;
}
.bfs-rec-empty-list {
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
  padding: 10px 0;
}

/* Skills row */
.bfs-rec-skill-row {
  display: grid;
  grid-template-columns: 1fr 130px 32px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.bfs-rec-skill-row input,
.bfs-rec-skill-row select {
  padding: 8px 10px !important;
  font-size: 13px !important;
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}

/* Buttons */
.bfs-rec-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.bfs-rec-btn-primary {
  background: #1e293b;
  color: #fff;
}
.bfs-rec-btn-primary:hover { background: #0f172a; }
.bfs-rec-btn-light {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.bfs-rec-btn-light:hover { background: #e5e7eb; }
.bfs-rec-btn-icon {
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 18px;
  color: #ef4444;
  border-radius: 6px;
}
.bfs-rec-btn-icon:hover { background: #fee2e2; }
.bfs-rec-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Math captcha */
.bfs-rec-section-math {
  background: #fffbeb;
}
.bfs-rec-math-box {
  background: #fff;
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 16px;
  max-width: 100%;
  box-sizing: border-box;
}
.bfs-rec-math-expr {
  font-size: 20px;
  font-weight: 700;
  color: #92400e;
  text-align: center;
  padding: 12px 8px;
  background: #fef3c7;
  border-radius: 8px;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}
.bfs-rec-math-expr small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  font-family: inherit;
  color: #78350f;
  margin-top: 4px;
  white-space: normal;
}
.bfs-rec-math-input {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bfs-rec-math-input input {
  flex: 1 1 100px;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  font-weight: 700;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .bfs-rec-math-expr { font-size: 17px; padding: 10px 6px; }
}

/* Consent */
.bfs-rec-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: #f0fdf4;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}
.bfs-rec-consent input { margin-top: 3px; accent-color: #10b981; }

/* Submit */
.bfs-rec-submit-row {
  padding: 24px;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}
.bfs-rec-error {
  background: #fee2e2;
  border-left: 3px solid #ef4444;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  display: none;
}
.bfs-rec-error:not(:empty) { display: block; }
.bfs-rec-btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.bfs-rec-btn-submit:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Success */
.bfs-rec-success {
  text-align: center;
  padding: 60px 30px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: 12px;
}
.bfs-rec-success-icon { font-size: 64px; }
.bfs-rec-success h2 {
  color: #065f46;
  margin: 16px 0 12px;
  font-size: 24px;
}
.bfs-rec-success p {
  color: #065f46;
  font-size: 15px;
  line-height: 1.6;
  max-width: 480px;
  margin: 8px auto;
}
.bfs-rec-success-meta {
  font-size: 12px !important;
  font-style: italic;
  opacity: 0.8;
}

/* ── Date of Birth dropdowns (3-column) ───────────────────── */
.bfs-rec-dob-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 6px;
}
.bfs-rec-dob-grid select {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}
.bfs-rec-dob-grid select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}

.bfs-rec-age-info {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 4px;
}
.bfs-rec-age-info:empty { display: none; }
.bfs-rec-age-info.bfs-rec-age-ok {
  background: #d1fae5;
  color: #065f46;
}
.bfs-rec-age-info.bfs-rec-age-warn {
  background: #fee2e2;
  color: #991b1b;
}

/* ── Rejection screen ─────────────────────────────────────── */
.bfs-rec-rejection {
  text-align: center;
  padding: 60px 30px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-radius: 12px;
}
.bfs-rec-rejection-icon { font-size: 64px; }
.bfs-rec-rejection h2 {
  color: #991b1b;
  margin: 16px 0 12px;
  font-size: 24px;
}
.bfs-rec-rejection p {
  color: #991b1b;
  font-size: 15px;
  line-height: 1.6;
  max-width: 480px;
  margin: 8px auto;
}
.bfs-rec-rejection-meta {
  font-size: 13px !important;
  margin-top: 16px !important;
  padding: 12px;
  background: rgba(255,255,255,.5);
  border-radius: 8px;
}

/* ── Success CTA button (post-submit) ─────────────────────── */
.bfs-rec-success-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  font-size: 15px;
  text-decoration: none;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 700;
  transition: all .15s;
  border: none;
  cursor: pointer;
}
.bfs-rec-success-cta:hover {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  color: #fff !important;
  text-decoration: none;
}

/* ── Karpet Aladin joke option ──────────────────────────── */
.bfs-rec-checkbox.bfs-rec-joke-option {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fbbf24;
  position: relative;
}
.bfs-rec-checkbox.bfs-rec-joke-option:has(input:checked) {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-color: #d97706;
  color: #78350f;
  font-weight: 700;
}
.bfs-rec-joke-msg {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #78350f;
  text-align: center;
  font-weight: 600;
  animation: bfs-rec-aladin-pop .3s ease-out;
}
@keyframes bfs-rec-aladin-pop {
  0% { transform: scale(.9); opacity: 0; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

/* SIM cards (within the conditional row) */
.bfs-rec-checkbox.bfs-rec-sim-card {
  background: #eff6ff;
  border-color: #bfdbfe;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  align-items: flex-start;
  padding: 8px 12px;
  min-width: 140px;
}
.bfs-rec-checkbox.bfs-rec-sim-card:has(input:checked) {
  background: #1e40af;
  border-color: #1e3a8a;
  color: #fff;
}
.bfs-rec-checkbox.bfs-rec-sim-card small {
  font-size: 10px;
  color: #6b7280;
  font-weight: 400;
  margin-left: 22px;
}
.bfs-rec-checkbox.bfs-rec-sim-card:has(input:checked) small {
  color: rgba(255,255,255,.85);
}

.bfs-rec-tip-mini {
  display: block;
  font-size: 11px;
  color: #6b7280;
  font-style: italic;
  margin-top: 6px;
}

/* ── Mobile responsive padding fix ────────────────────────── */
@media (max-width: 600px) {
  .bfs-rec-section { padding: 16px; }
  .bfs-rec-header { padding: 18px 16px; }
  .bfs-rec-header h2 { font-size: 19px; }
  .bfs-rec-privacy-notice { padding: 10px 16px; font-size: 12px; }
  .bfs-rec-submit-row { padding: 16px; }
  .bfs-rec-section h3 { font-size: 14px; }
  .bfs-rec-photo-row { gap: 12px; }
  .bfs-rec-row input,
  .bfs-rec-row select,
  .bfs-rec-row textarea { font-size: 16px; }
  .bfs-rec-checkbox-group,
  .bfs-rec-radio-group { gap: 6px; }
  .bfs-rec-checkbox,
  .bfs-rec-radio { padding: 7px 11px; font-size: 12px; }
  .bfs-rec-skill-row { grid-template-columns: 1fr 110px 28px; gap: 6px; }
}
@media (max-width: 380px) {
  .bfs-rec-section { padding: 14px; }
  .bfs-rec-math-expr { font-size: 15px; }
  .bfs-rec-checkbox.bfs-rec-sim-card { min-width: unset; flex: 1 1 100%; }
}


.bfs-rec-english-question{font-size:22px;font-weight:700;margin-bottom:14px}.bfs-rec-english-options{display:flex;gap:12px;flex-wrap:wrap}.bfs-rec-eng-opt{border:2px solid #ddd;padding:14px 18px;border-radius:14px}


/* v1.45 Manual position fallback when no active jobs */
.bfs-rec-clue{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-size:12px;
  line-height:1.45;
}
