/* Small additions for the static, self-contained copy of the Ajeer landing page. */
.search-results {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 60;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #d2d6db;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(5, 18, 52, 0.12);
  padding: 6px;
}
.search-results[hidden] { display: none; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #161616;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
}
.search-result-item:hover, .search-result-item:focus-visible { background: #f3f4f6; outline: none; }
.search-result-item .result-kind { color: #1b8354; font-size: 12px; font-weight: 600; }
.search-empty { padding: 12px; font-size: 14px; color: #6c737f; text-align: center; }

.aj-toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 100;
  max-width: min(90vw, 420px);
  padding: 12px 18px;
  border-radius: 10px;
  background: #052c57;
  color: #fff;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: 0 10px 30px rgba(5, 18, 52, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.aj-toast.show { opacity: 1; transform: translateX(50%) translateY(-4px); }

.aj-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 18, 52, .45);
  display: flex;
  justify-content: flex-start;
}
.aj-drawer {
  height: 100%;
  width: min(86vw, 360px);
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0,0,0,.15);
}
.aj-drawer h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: #052c57; }
.aj-drawer a { display: block; padding: 12px 8px; border-bottom: 1px solid #e5e7eb; color: #161616; font-size: 15px; }
.aj-drawer a:hover { color: #1b8354; background: #f9fafb; }
.aj-drawer-close { float: inline-start; border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: #161616; }

[data-expanded-panel="open"] > div:first-child > div:first-child { transform: none !important; opacity: 1 !important; }

.theme-home-services-tab[aria-pressed="true"] .theme-home-services-tab-label { font-weight: 700; color: #161616; }
.theme-home-services-tab[aria-pressed="false"] .theme-home-services-tab-label { font-weight: 500; color: #384250; }
.theme-home-services-tab[aria-pressed="true"] svg { transform: rotate(180deg); }
.theme-home-services-tab[aria-pressed="false"] svg { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .aj-toast { transition: none; }
}

/* ---------- Login dialog ---------- */
.aj-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 18, 52, .55);
  backdrop-filter: blur(2px);
}
.aj-login-overlay[hidden] { display: none; }
.aj-login-card {
  width: min(100%, 460px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(5, 18, 52, .28);
}
.aj-login-head {
  position: relative;
  padding: 22px 24px;
  background: linear-gradient(135deg, #0b174f, #052c57);
  color: #fff;
}
.aj-login-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.aj-login-head p { margin: 6px 0 0; font-size: 13px; color: #cbd5e1; line-height: 1.6; }
.aj-login-close {
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.aj-login-close:hover { background: rgba(255, 255, 255, .25); }
.aj-login-body { padding: 22px 24px 24px; }
.aj-login-step[hidden] { display: none; }
.aj-login-label { display: block; font-size: 13px; font-weight: 600; color: #1f2a37; margin-bottom: 6px; }
.aj-login-input {
  width: 100%;
  height: 44px;
  border: 1px solid #d2d6db;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  color: #161616;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.aj-login-input:focus { border-color: #1b8354; box-shadow: 0 0 0 3px rgba(27, 131, 84, .12); }
.aj-login-input::placeholder { color: #98a1ad; }
.aj-login-field { margin-bottom: 16px; }
.aj-login-password-wrap { position: relative; }
.aj-login-password-wrap .aj-login-input { padding-inline-end: 44px; }
.aj-login-eye {
  position: absolute;
  inset-inline-end: 4px;
  top: 4px;
  height: 36px;
  width: 36px;
  border: 0;
  background: transparent;
  color: #5b6572;
  font-size: 17px;
  cursor: pointer;
  border-radius: 6px;
}
.aj-login-eye:hover { background: #f3f4f6; }
.aj-login-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 18px; font-size: 13px; }
.aj-login-check { display: flex; align-items: center; gap: 6px; color: #384250; cursor: pointer; }
.aj-login-link { border: 0; background: transparent; color: #1b8354; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.aj-login-link:hover { text-decoration: underline; }
.aj-login-primary {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: #1b8354;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.aj-login-primary:hover { background: #157045; }
.aj-login-primary:active { transform: translateY(1px); }
.aj-login-secondary {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border: 1px solid #d2d6db;
  border-radius: 8px;
  background: #fff;
  color: #384250;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.aj-login-secondary:hover { background: #f9fafb; }
.aj-login-error { min-height: 18px; margin-top: 10px; color: #b42318; font-size: 13px; text-align: start; }
.aj-login-demo {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  color: #1849a9;
  font-size: 12px;
  line-height: 1.7;
  text-align: start;
}
.aj-login-demo b { font-family: monospace; letter-spacing: 1px; }
.aj-login-segment { display: flex; gap: 6px; margin-bottom: 18px; padding: 4px; border-radius: 10px; background: #f3f4f6; }
.aj-login-segment button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5b6572;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.aj-login-segment button[aria-pressed="true"] { background: #fff; color: #052c57; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.aj-login-otp {
  width: 100%;
  height: 52px;
  border: 1px solid #d2d6db;
  border-radius: 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 8px;
  direction: ltr;
  outline: none;
}
.aj-login-otp:focus { border-color: #1b8354; box-shadow: 0 0 0 3px rgba(27, 131, 84, .12); }
.aj-login-success { text-align: center; }
.aj-login-success .aj-login-checkicon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e7f7ee;
  color: #1b8354;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
}
.aj-login-success h3 { margin: 0 0 6px; font-size: 19px; color: #161616; }
.aj-login-success p { margin: 0 0 18px; font-size: 14px; color: #5b6572; line-height: 1.7; }
.aj-login-dashboard { text-align: start; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; background: #f9fafb; margin-bottom: 16px; }
.aj-login-dashboard h4 { margin: 0 0 10px; font-size: 14px; color: #052c57; }
.aj-login-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.aj-login-stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 8px; text-align: center; }
.aj-login-stat b { display: block; font-size: 17px; color: #1b8354; }
.aj-login-stat span { font-size: 11px; color: #5b6572; }
.aj-login-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.aj-login-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d2d6db; }
.aj-login-dots i.active { width: 18px; border-radius: 99px; background: #1b8354; }
@media (max-width: 480px) {
  .aj-login-head, .aj-login-body { padding-inline: 18px; }
}
