/* Recruitment Fraud Alert (fraud-alert.css)
   Works on phones, tablets/iPads, desktops and large screens.
   Every rule is scoped to #rfa-alert so the site's own styles can't break it.
   The "rfa-" prefix avoids clashes with Font Awesome ("fa-") class names. */
 
#rfa-alert[hidden] { display: none !important; }
 
#rfa-alert {
  position: fixed !important;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0;
  background: rgba(15, 23, 42, 0.72);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}
#rfa-alert *,
#rfa-alert *::before,
#rfa-alert *::after { box-sizing: border-box; }
 
#rfa-alert .rfa-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: rfa-in 0.25s ease-out;
}
@keyframes rfa-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
 
/* Header band */
#rfa-alert .rfa-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 18px 60px 18px 20px;
  background: repeating-linear-gradient(-45deg, #b91c1c 0 14px, #a31616 14px 28px);
  color: #ffffff;
}
#rfa-alert .rfa-icon {
  flex: 0 0 40px;
  display: block;
  width: 40px !important;
  height: 40px !important;
  max-width: 40px;
}
#rfa-alert .rfa-label {
  display: inline-block;
  margin: 0 0 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #ffffff;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#rfa-alert .rfa-title {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #ffffff;
}
 
/* Countdown bar */
#rfa-alert .rfa-timer { height: 5px; margin: 0; background: #fee2e2; }
#rfa-alert .rfa-timer-fill {
  height: 100%;
  width: 100%;
  background: #f59e0b;
  transform-origin: left center;
  transition: transform 1s linear;
}
 
/* Close (x) */
#rfa-alert .rfa-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 40px;
  text-align: center;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}
#rfa-alert .rfa-x:hover,
#rfa-alert .rfa-x:focus-visible { background: rgba(255, 255, 255, 0.35); outline: 2px solid #ffffff; outline-offset: 2px; }
 
/* Body */
#rfa-alert .rfa-body { margin: 0; padding: 20px 22px 6px; color: #1f2937; }
#rfa-alert .rfa-body p { margin: 0 0 14px; padding: 0; font-size: 15px; line-height: 1.6; color: #1f2937; }
#rfa-alert .rfa-body strong { font-weight: 700; }
 
#rfa-alert .rfa-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 5px solid #b91c1c;
  border-radius: 6px;
  color: #7f1d1d;
  font-weight: 700;
}
#rfa-alert .rfa-callout svg { flex: 0 0 20px; width: 20px !important; height: 20px !important; margin-top: 2px; }
 
#rfa-alert .rfa-subhead {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #374151;
}
#rfa-alert .rfa-tips { margin: 0 0 16px; padding: 0; list-style: none; }
#rfa-alert .rfa-tips li {
  position: relative;
  margin: 0 0 6px;
  padding: 0 0 0 26px;
  list-style: none;
  background: none;
  font-size: 15px;
  line-height: 1.55;
  color: #1f2937;
}
#rfa-alert .rfa-tips li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 7px;
  height: 12px;
  border: solid #15803d;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  background: none;
  font-family: inherit;
}
#rfa-alert .rfa-tips li::marker { content: ""; }
 
/* Footer */
#rfa-alert .rfa-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 22px 20px;
  border-top: 1px solid #e5e7eb;
}
#rfa-alert .rfa-foot-text { margin: 0; font-size: 14px; font-weight: 600; color: #111827; }
#rfa-alert .rfa-countdown { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: #6b7280; }
#rfa-alert .rfa-actions { display: flex; flex-wrap: wrap; gap: 10px; }
 
#rfa-alert .rfa-btn {
  display: inline-block;
  margin: 0;
  padding: 11px 18px;
  border: 2px solid #b91c1c;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
}
#rfa-alert .rfa-btn-report { background: #ffffff; color: #b91c1c; }
#rfa-alert .rfa-btn-report:hover { background: #fef2f2; color: #b91c1c; }
#rfa-alert .rfa-btn-ok { background: #b91c1c; color: #ffffff; }
#rfa-alert .rfa-btn-ok:hover { background: #991b1b; border-color: #991b1b; color: #ffffff; }
#rfa-alert .rfa-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
 
/* ---------- Responsive ---------- */
 
/* Large desktops and big screens (1440px and up): slightly larger */
@media (min-width: 1440px) {
  #rfa-alert .rfa-dialog { max-width: 600px; }
  #rfa-alert .rfa-title { font-size: 22px; }
  #rfa-alert .rfa-body p,
  #rfa-alert .rfa-tips li { font-size: 16px; }
  #rfa-alert .rfa-btn { font-size: 15px; padding: 12px 20px; }
}
 
/* 4K / very large screens */
@media (min-width: 2200px) {
  #rfa-alert .rfa-dialog { max-width: 720px; }
  #rfa-alert .rfa-head { padding: 24px 70px 24px 26px; }
  #rfa-alert .rfa-icon { flex-basis: 48px; width: 48px !important; height: 48px !important; }
  #rfa-alert .rfa-title { font-size: 26px; }
  #rfa-alert .rfa-body { padding: 24px 28px 8px; }
  #rfa-alert .rfa-body p,
  #rfa-alert .rfa-tips li { font-size: 18px; }
  #rfa-alert .rfa-foot { padding: 18px 28px 24px; }
  #rfa-alert .rfa-foot-text { font-size: 16px; }
  #rfa-alert .rfa-btn { font-size: 17px; padding: 14px 24px; }
}
 
/* Tablets and iPads (481px to 1024px): roomier text, bigger touch targets */
@media (min-width: 481px) and (max-width: 1024px) {
  #rfa-alert .rfa-dialog { max-width: 560px; }
  #rfa-alert .rfa-title { font-size: 21px; }
  #rfa-alert .rfa-body p,
  #rfa-alert .rfa-tips li { font-size: 16px; }
  #rfa-alert .rfa-x { width: 44px; height: 44px; line-height: 44px; }
  #rfa-alert .rfa-btn { padding: 13px 20px; font-size: 15px; }
}
 
/* Short screens (phones turned sideways, small laptop windows) */
@media (max-height: 560px) {
  #rfa-alert { padding: 8px; align-items: center; }
  #rfa-alert .rfa-dialog { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  #rfa-alert .rfa-head { padding: 10px 56px 10px 16px; }
  #rfa-alert .rfa-icon { flex-basis: 28px; width: 28px !important; height: 28px !important; }
  #rfa-alert .rfa-title { font-size: 17px; }
  #rfa-alert .rfa-x { top: 6px; right: 8px; }
  #rfa-alert .rfa-body { padding: 12px 18px 2px; }
  #rfa-alert .rfa-body p { margin-bottom: 10px; }
  #rfa-alert .rfa-callout { padding: 8px 12px; margin-bottom: 10px; }
  #rfa-alert .rfa-tips { margin-bottom: 10px; }
  #rfa-alert .rfa-foot { padding: 10px 18px 12px; }
}
 
/* Phones (480px and below): bottom sheet with full-width buttons */
@media (max-width: 480px) {
  #rfa-alert { padding: 12px; align-items: flex-end; }
  #rfa-alert .rfa-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  #rfa-alert .rfa-head { padding: 16px 58px 16px 16px; gap: 12px; }
  #rfa-alert .rfa-icon { flex-basis: 34px; width: 34px !important; height: 34px !important; }
  #rfa-alert .rfa-title { font-size: 18px; }
  #rfa-alert .rfa-body { padding: 16px 16px 4px; }
  #rfa-alert .rfa-body p,
  #rfa-alert .rfa-tips li { font-size: 14.5px; }
  #rfa-alert .rfa-foot { flex-direction: column; align-items: stretch; padding: 14px 16px 16px; }
  #rfa-alert .rfa-actions { flex-direction: column-reverse; }
  #rfa-alert .rfa-btn { display: block; width: 100%; }
}
 
@media (prefers-reduced-motion: reduce) {
  #rfa-alert .rfa-dialog { animation: none; }
  #rfa-alert .rfa-timer-fill { transition: none; }
}