@font-face {
  font-family: "IBMPlexSansArabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://hmm.gov.sa/assets2/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Regular.woff2") format("woff2"),
       url("https://hmm.gov.sa/assets2/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Regular.woff") format("woff");
}

@font-face {
  font-family: "IBMPlexSansArabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://hmm.gov.sa/assets2/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Medium.woff2") format("woff2"),
       url("https://hmm.gov.sa/assets2/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Medium.woff") format("woff");
}

@font-face {
  font-family: "IBMPlexSansArabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://hmm.gov.sa/assets2/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-SemiBold.woff2") format("woff2"),
       url("https://hmm.gov.sa/assets2/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-SemiBold.woff") format("woff");
}

@font-face {
  font-family: "IBMPlexSansArabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://hmm.gov.sa/assets2/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Bold.woff2") format("woff2"),
       url("https://hmm.gov.sa/assets2/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Bold.woff") format("woff");
}

.hgi-stroke,
.hgi-bulk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
}

.hgi-stroke > svg,
.hgi-bulk > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hmm-footer-bg {
  background-color: #094d31;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: auto;
  font-family: "IBMPlexSansArabic", "IBM Plex Sans Arabic", sans-serif;
  direction: rtl;
}

.hmm-footer-bg *,
.hmm-footer-bg *::before,
.hmm-footer-bg *::after {
  box-sizing: border-box;
}

.hmm-footer-bg :where(button) {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
}

body.hmm-greyscale .hmm-footer-bg {
  filter: grayscale(100%) !important;
  transition: filter 0.3s ease;
}

body.hmm-scale-n2 { zoom: 0.8; }
body.hmm-scale-n1 { zoom: 0.9; }
body.hmm-scale1   { zoom: 1.1; }
body.hmm-scale2   { zoom: 1.2; }
body.hmm-scale3   { zoom: 1.3; }

.hmm-c-ontent {
  padding: 0 80px;
}

.hmm-cw-full {
  max-width: 1280px;
  margin: auto;
}

.hmm-footer-container {
  gap: 48px;
  display: grid;
  padding-top: 40px;
  padding-bottom: 24px;
}

.hmm-footer-cols {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 40px;
}

.hmm-footer-item {
  gap: 8px;
}

.hmm-footer-title {
  color: #fff !important;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
}

.hmm-line-title {
  display: flex;
  padding-bottom: 8px;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.hmm-footer-contnet {
  gap: 8px;
  padding-top: 8px;
  display: grid;
}

ul.hmm-footer-contnet {
  list-style: none;
  margin: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
  padding-bottom: 0;
}

ul.hmm-footer-contnet li::marker {
  content: none;
}

.hmm-footer-li {
  display: flex;
  gap: 4px;
  align-items: center;
}

.hmm-footer-link {
  font-size: 14px;
  font-family: "IBM Plex Sans Arabic", "IBMPlexSansArabic", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hmm-footer-link:hover {
  color: #ffffff;
  opacity: 0.8;
  text-decoration: underline;
}

.hmm-footer-link:active {
  color: #ffffff;
  opacity: 0.6;
}

.hmm-footer-link:focus {
  border: 2px solid #fff;
  color: #ffffff;
  opacity: 1;
  border-radius: 4px;
}

.hmm-footer-link--underline {
  text-decoration: underline;
}

.hmm-ext-icon {
  font-size: 14px;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #fff;
}

.hmm-footer-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hmm-footer-social-list li::marker {
  content: none;
}

.hmm-border-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

a.hmm-border-green:hover {
  background-color: #39715a;
}

a.hmm-border-green:focus {
  background-color: #6a9483;
}

.hmm-border-green .hgi-stroke {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hmm-access-group {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.hmm-footer-item-stack {
  gap: 32px;
  display: grid;
}

.hmm-secondary-list {
  gap: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hmm-secondary-list li::marker {
  content: none;
}

.hmm-bottom-bar {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.hmm-bottom-col {
  gap: 24px;
  display: grid;
  text-align: start;
}

.hmm-bottom-text {
  gap: 12px;
  display: grid;
  justify-content: flex-start;
}

.hmm-bottom-text p {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.hmm-bottom-text p.hmm-bold {
  font-weight: 700;
}

.hmm-bottom-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.hmm-bottom-logos-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.hmm-bottom-logos img {
  display: block;
  width: auto;
}

@media (min-width: 768px) {
  .hmm-secondary-list {
    flex-direction: row;
  }
  .hmm-bottom-bar {
    grid-template-columns: 2fr 2fr;
  }
  .hmm-bottom-logos {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hmm-footer-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .hmm-c-ontent {
    padding: 0 30px;
  }
}

@media only screen and (max-width: 580px) {
  .hmm-c-ontent {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ---------- الرسائل والنوافذ فوق الهيدر ---------- */
.top-alert      { z-index: 10050 !important; }
.swal-overlay   { z-index: 10060 !important; }
.modal-backdrop { z-index: 10040 !important; }
.modal          { z-index: 10045 !important; }

/* القوائم المنسدلة داخل الخدمات تطلع فوق المحتوى وتحت الهيدر */
.custom-dropdown .dropdown-menu { z-index: 1050; }

/* ---------- توافق الخدمات (منقول من الهيدرات السابقة) ---------- */
.hh  { display: none !important; }
.rtl { direction: rtl !important; }
.ltr { direction: ltr !important; }
.chkbx { appearance: auto; }

.text-successx { color: #074d31 !important; }
.text-warningx { color: #9c7a38 !important; }

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.random-code {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: bold;
    padding: 15px 30px;
    margin: 20px 100px;
    background-color: #005914;
    color: #fff;
    border-radius: 8px;
    text-align: center;
    letter-spacing: 2px;
}
@media (max-width: 580px) {
    .random-code { margin: 20px auto; }
}

.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ---------- صندوق الإقرار ---------- */
.agreement-checkbox {
    margin: 20px 0;
    padding: 15px;
    border: 2px solid #dc3545;
    border-radius: 8px;
    background-color: #fff5f5;
}
.agreement-text {
    color: #dc3545;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.checkbox-wrapper { display: flex; align-items: flex-start; gap: 12px; }
.checkbox-wrapper input[type="checkbox"] { width: 20px; height: 20px; margin: 0; cursor: pointer; }
.checkbox-wrapper label { color: #dc3545; font-weight: bold; cursor: pointer; margin: 0; }

#div_btn { transition: opacity 0.3s ease; }
#agreement-checkbox:not(:checked) ~ #div_btn { opacity: 0.5; pointer-events: none; }
#agreement-checkbox:not(:checked) ~ #div_btn .btn {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
}
#agreement-checkbox:checked ~ #div_btn { opacity: 1; pointer-events: auto; }
#agreement-checkbox:checked ~ #div_btn .btn {
    background-color: #198754 !important;
    border-color: #198754 !important;
    cursor: pointer !important;
}

/* ---------- خدمة الاستبيانات (body class="hmm-svc-survey") ---------- */
body.hmm-svc-survey .random-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    padding: 0;
    margin: 40px auto;
    background-color: #1b8254;
    border-radius: 25px;
    font-size: 50px;
}
@keyframes hmm-pulse-scale {
    0%   { transform: scale(1);    opacity: 1;   }
    50%  { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1);    opacity: 1;   }
}
body.hmm-svc-survey .pulse { animation-name: hmm-pulse-scale; }
body.hmm-svc-survey .inputmask-placeholder { display: none !important; }

.custom-dropdown { position: relative; }
.custom-dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    margin-top: 4px;
    z-index: 1050;
}
