/**
 * Home page — لجنة النظام
 * Loaded only on the public home route for clearer layering over Regna theme.
 */

:root {
  --home-accent: #2dc997;
  --home-accent-dim: rgba(45, 201, 151, 0.28);
  --home-accent-deep: #1a7a5f;
  --home-ink: #0a1815;
  --home-muted: #3d4f49;
  --home-surface: #f3f6f5;
  --home-surface-warm: #eef2f0;
  --home-surface-elevated: #ffffff;
  --home-radius: 14px;
  --home-radius-lg: 20px;
  --home-radius-xl: 26px;
  --home-shadow-sm: 0 1px 3px rgba(15, 31, 28, 0.06);
  --home-shadow-md: 0 8px 30px rgba(15, 31, 28, 0.08);
  --home-shadow-lg: 0 24px 60px rgba(15, 31, 28, 0.12);
  --home-wave-cta: #121a1f;
  /* Glass / “liquid” surfaces (iOS-style vibrancy) */
  --home-glass-blur: 22px;
  --home-glass-blur-lg: 32px;
  --home-glass-saturate: saturate(1.75);
  --home-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --home-glass-highlight-soft: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --home-glass-fill-light: rgba(255, 255, 255, 0.62);
  --home-glass-fill-mid: rgba(255, 255, 255, 0.42);
  --home-glass-fill-hero: rgba(255, 255, 255, 0.14);
  --home-glass-stroke-light: rgba(255, 255, 255, 0.38);
  --home-glass-stroke-mid: rgba(255, 255, 255, 0.22);
  --home-glass-stroke-dark: rgba(255, 255, 255, 0.12);
  --home-glass-shadow: 0 20px 50px rgba(8, 18, 24, 0.22);
}

/*
 * layout.home is RTL: align select value + options to the right; reserve inline-end for chevron.
 * (Regna/BS mix used physical padding-left for the arrow — wrong for RTL text alignment.)
 */
body.layout-home .form-select:not([multiple]),
body.layout-home select.form-control:not([multiple]),
.home-livewire .form-select:not([multiple]),
.home-livewire select.form-control:not([multiple]) {
  direction: rtl !important;
  text-align: right !important;
  text-align-last: right !important;
  padding-inline-start: 0.9rem !important;
  padding-inline-end: 2.35rem !important;
  background-position: left 0.75rem center !important;
}

body.layout-home .form-select option,
body.layout-home select.form-control option,
.home-livewire .form-select option,
.home-livewire select.form-control option {
  direction: rtl;
  text-align: right;
}

.form-select[multiple],
select.form-control[multiple] {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  background-image: none !important;
}

.home-livewire ::selection {
  background: rgba(45, 201, 151, 0.28);
  color: var(--home-ink);
}

/* ---- layout.home: avoid horizontal scroll / iOS text zoom ---- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.layout-home {
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* Inner public routes: cool mist backdrop so glass panels can refract */
body.layout-home:not(.layout-home-landing) {
  background: linear-gradient(
    165deg,
    #c5d4dc 0%,
    #d8e3ea 28%,
    #e8eef4 58%,
    #f2f6fa 100%
  );
}

@media (min-width: 1024px) and (hover: hover) {
  body.layout-home:not(.layout-home-landing) {
    background-attachment: fixed;
  }
}

body.layout-home .home-livewire {
  min-width: 0;
  max-width: 100%;
}

/* ---- Hero ---- */
#hero.home-hero-section {
  position: relative;
  background-color: #080f0d;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

/* Landing: background image (Regna default: img/hero-bg.jpg) */
#hero.home-hero-section--landing {
  background-color: #d7dde0;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /*
   * Regna style.css: #hero { height: 100vh } and section { overflow: hidden }.
   * That clips in-flow hero content (bulletin cards, announcement, FB card CTA).
   */
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: visible;
}

@media (min-width: 1400px) {
  #hero.home-hero-section--landing {
    background-position: center 45%;
  }
}

/* Fixed attachment: desktop pointer devices only (avoids iOS / mobile viewport glitches) */
@media (min-width: 1024px) and (hover: hover) {
  #hero.home-hero-section--landing {
    background-attachment: fixed;
  }
}

#hero.home-hero-section::before {
  content: "";
  background: linear-gradient(
    165deg,
    rgba(8, 22, 32, 0.42) 0%,
    rgba(4, 14, 22, 0.28) 45%,
    rgba(6, 18, 26, 0.4) 100%
  );
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#hero.home-hero-section--landing::before {
  background: linear-gradient(
    165deg,
    rgba(12, 28, 38, 0.28) 0%,
    rgba(6, 16, 24, 0.14) 42%,
    rgba(8, 22, 30, 0.32) 100%
  );
}

/* Soft vignette for depth (modern stacked layers) */
#hero.home-hero-section--landing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 80% 10%, rgba(120, 200, 255, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse 90% 70% at 15% 85%, rgba(45, 201, 151, 0.1) 0%, transparent 50%),
    radial-gradient(
      ellipse 95% 75% at 50% 38%,
      rgba(0, 0, 0, 0) 0%,
      rgba(4, 12, 18, 0.38) 100%
    );
}

#hero .hero-container {
  position: relative;
  z-index: 1;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
  padding-top: clamp(6rem, 15vh, 10rem);
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
}

#hero.home-hero-section--landing .hero-container {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: clamp(3.5rem, 8vh, 5.5rem);
  /* Extra space so last cards / CTA sit above the decorative wave */
  padding-bottom: calc(clamp(2.25rem, 6vh, 4.25rem) + clamp(42px, 7vw, 78px));
}

/* No fixed header on landing — less top offset */
body.layout-home-landing #hero.home-hero-section--landing .hero-container {
  padding-top: clamp(2.5rem, 7vh, 4.75rem);
}

/* Constrain and inset main hero stack for clearer margins */
#hero.home-hero-section--landing .home-hero-inner {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0.5rem, 2vw, 1rem);
  padding-right: clamp(0.5rem, 2vw, 1rem);
}

/* Frosted “liquid glass” plate behind landing hero stack */
#hero.home-hero-section--landing .home-hero-inner::before {
  content: "";
  position: absolute;
  inset: -0.85rem clamp(-0.5rem, -1.5vw, -0.35rem);
  z-index: -1;
  border-radius: calc(var(--home-radius-xl) + 12px);
  background: linear-gradient(
    168deg,
    var(--home-glass-fill-hero) 0%,
    rgba(255, 255, 255, 0.06) 48%,
    rgba(255, 255, 255, 0.11) 100%
  );
  border: 1px solid var(--home-glass-stroke-mid);
  box-shadow: var(--home-glass-shadow), var(--home-glass-highlight-soft);
  backdrop-filter: blur(var(--home-glass-blur-lg)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur-lg)) var(--home-glass-saturate);
  pointer-events: none;
}

@media (max-width: 991.98px) {
  #hero.home-hero-section--landing .home-hero-inner {
    max-width: 34rem;
  }
}

/* Bottom wave: soft transition from hero into CTA band */
.home-hero-wave-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.home-hero-wave-wrap svg {
  display: block;
  width: 100%;
  height: clamp(52px, 9vw, 84px);
}

.home-hero-portraits {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.home-hero-portraits figure {
  margin: 0;
  padding: 0.45rem;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 100%
  );
  border-radius: 50%;
  outline: 2px solid var(--home-glass-stroke-light);
  outline-offset: 3px;
  box-shadow:
    var(--home-shadow-md),
    var(--home-glass-highlight);
  backdrop-filter: blur(12px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(12px) var(--home-glass-saturate);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease, outline-color 0.3s ease;
}

.home-hero-portraits figure:hover {
  transform: translateY(-6px) scale(1.02);
  outline-color: rgba(45, 201, 151, 0.45);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.home-hero-portraits img {
  width: clamp(112px, 26vw, 140px);
  height: clamp(112px, 26vw, 140px);
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: block;
}

.home-hero-title {
  margin: 1.15rem 0 0.4rem;
  font-size: clamp(1.85rem, 5.2vw, 3.05rem);
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

#hero.home-hero-section .home-hero-title,
#hero.home-hero-section .home-hero-title > span,
#hero.home-hero-section .home-hero-title__line2,
#hero.home-hero-section .home-hero-subtitle {
  color: #ffffff !important;
}

.home-hero-title__line2 {
  margin-top: 0.2rem;
  font-size: clamp(1.35rem, 4vw, 2.35rem);
  font-weight: 600;
  opacity: 0.96;
  color: #ffffff !important;
}

.home-hero-subtitle {
  margin: 0 0 1.25rem;
  font-size: clamp(1.02rem, 2.6vw, 1.45rem);
  font-weight: 600;
  color: #ffffff !important;
  line-height: 1.55;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.26),
    0 8px 24px rgba(0, 0, 0, 0.3);
}

.home-hero-divider {
  width: min(300px, 78vw);
  height: 4px;
  margin: 0 auto 1.35rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 201, 151, 0.35),
    var(--home-accent),
    rgba(45, 201, 151, 0.35),
    transparent
  );
  box-shadow: 0 0 28px rgba(45, 201, 151, 0.28);
  opacity: 0.98;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: stretch;
}

.home-hero-actions .btn-get-started {
  margin: 0;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.75rem;
  border-radius: 999px;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  gap: 0.4rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.home-hero-actions .btn-get-started:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.home-hero-actions .btn-get-started:active {
  transform: scale(0.98);
}

/* Hero: Facebook-style page card (main landing) */
.home-hero-fb-card-wrap {
  width: 100%;
  max-width: 22.5rem;
  margin: clamp(1.25rem, 3.2vh, 1.85rem) auto 0;
}

.home-hero-fb-card {
  display: block;
  overflow: hidden;
  border-radius: var(--home-radius-lg);
  text-decoration: none !important;
  color: inherit;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.52) 100%
  );
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.06),
    0 22px 48px rgba(0, 0, 0, 0.26),
    var(--home-glass-highlight);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  transition: transform 0.25s cubic-bezier(0.34, 1.25, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.home-hero-fb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 8px 14px rgba(0, 0, 0, 0.08),
    0 28px 56px rgba(0, 0, 0, 0.3),
    var(--home-glass-highlight);
}

.home-hero-fb-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

.home-hero-fb-card__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  background: #1877f2;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  direction: ltr;
  justify-content: flex-start;
}

.home-hero-fb-card__bar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.95rem;
  line-height: 1;
}

.home-hero-fb-card__main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1rem 0.85rem;
  text-align: right;
  direction: rtl;
}

.home-hero-fb-card__avatar {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #e7f1ff 0%, #cfe4ff 100%);
  color: #1877f2;
  font-size: 1.65rem;
  line-height: 1;
  border: 1px solid rgba(24, 119, 242, 0.2);
}

.home-hero-fb-card__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.home-hero-fb-card__page-name {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #050505;
  letter-spacing: -0.01em;
}

.home-hero-fb-card__page-type {
  font-size: 0.78rem;
  color: #65676b;
  font-weight: 600;
}

.home-hero-fb-card__page-hint {
  font-size: 0.8rem;
  color: #65676b;
  line-height: 1.45;
  margin-top: 0.15rem;
}

.home-hero-fb-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.35rem 0.85rem 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  background: #1877f2;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  transition: filter 0.2s ease, background 0.2s ease;
}

.home-hero-fb-card__cta .bi {
  font-size: 0.95em;
  opacity: 0.95;
}

.home-hero-fb-card:hover .home-hero-fb-card__cta {
  filter: brightness(1.06);
}

#hero.home-hero-section .btn-get-started.btn-quiz {
  border-color: rgba(45, 201, 151, 0.75);
  background: linear-gradient(
    180deg,
    rgba(45, 201, 151, 0.58) 0%,
    rgba(26, 122, 95, 0.45) 100%
  );
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), var(--home-glass-highlight-soft);
  backdrop-filter: blur(10px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(10px) var(--home-glass-saturate);
}

#hero.home-hero-section .btn-get-started.btn-quiz:hover {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: #fff;
}

#hero.home-hero-section .btn-get-started.btn-success {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  border-color: rgba(255, 255, 255, 0.95);
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), var(--home-glass-highlight-soft);
  backdrop-filter: blur(12px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(12px) var(--home-glass-saturate);
}

#hero.home-hero-section .btn-get-started.btn-success:hover {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: #fff;
}

.home-hero-announcement {
  max-width: 44rem;
  margin: 0.85rem auto 1.35rem;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-glass-stroke-mid);
  color: #ffffff !important;
  font-size: clamp(0.88rem, 2vw, 1.04rem);
  line-height: 1.65;
  backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.22),
    var(--home-glass-highlight-soft);
}

.home-hero-bulletin-card__title,
.home-hero-bulletin-card__body {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767.98px) {
  #hero.home-hero-section--landing {
    background-position: center 35%;
  }

  #hero.home-hero-section--landing .hero-container {
    justify-content: flex-start;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: clamp(1.35rem, 4vh, 2.25rem);
    padding-bottom: calc(clamp(1.15rem, 3vh, 1.75rem) + 42px);
  }

  #hero.home-hero-section--landing .home-hero-inner {
    max-width: 30rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .home-hero-portraits {
    gap: 0.7rem;
    margin-bottom: 0.2rem;
  }

  .home-hero-portraits figure {
    padding: 0.28rem;
    outline-width: 1px;
    outline-offset: 2px;
  }

  .home-hero-portraits img {
    width: clamp(82px, 21vw, 106px);
    height: clamp(82px, 21vw, 106px);
  }

  .home-hero-title {
    margin-top: 0.75rem;
    font-size: clamp(1.7rem, 8.2vw, 2.25rem);
    line-height: 1.16;
  }

  .home-hero-title__line2 {
    font-size: clamp(1.2rem, 5.7vw, 1.7rem);
  }

  .home-hero-subtitle {
    margin-bottom: 0.9rem;
    font-size: clamp(0.95rem, 4.1vw, 1.08rem);
    line-height: 1.45;
  }

  .home-hero-divider {
    margin-bottom: 0.95rem;
  }

  .home-hero-actions {
    gap: 0.62rem;
  }

  .home-hero-actions .btn-get-started {
    min-height: 45px;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
  }

  .home-hero-announcement {
    margin-top: 0.8rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .home-hero-bulletins {
    margin-top: 0.85rem;
  }

  .home-hero-bulletin-card {
    padding: 0.8rem 0.8rem 0.85rem;
  }

  .home-hero-bulletin-card__head {
    margin-bottom: 0.35rem;
  }

  .home-hero-bulletin-card__title {
    font-size: 0.92rem;
  }

  .home-hero-bulletin-card__body {
    font-size: 0.83rem;
    line-height: 1.6;
  }

  .home-hero-wave-wrap svg {
    height: clamp(38px, 8vw, 58px);
  }

  .home-hero-fb-card-wrap {
    margin-top: 1rem;
    max-width: 20rem;
  }
}

.home-hero-announcement--after-cta {
  margin-top: clamp(1.35rem, 3.5vh, 2rem);
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

/* Hero bulletins (news + notices) */
.home-hero-bulletins {
  width: min(100%, 54rem);
  margin: clamp(1rem, 2.8vh, 1.55rem) auto 0;
}

.home-hero-bulletins__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 992px) {
  .home-hero-bulletins__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.home-hero-bulletin-card {
  position: relative;
  height: 100%;
  padding: 1rem 1.05rem 1rem;
  border-radius: calc(var(--home-radius-lg) - 2px);
  text-align: right;
  color: #fff;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(255, 255, 255, 0.08) 55%,
    rgba(255, 255, 255, 0.14) 100%
  );
  border: 1px solid var(--home-glass-stroke-light);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.22),
    var(--home-glass-highlight-soft);
  backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-hero-bulletin-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
  background: rgba(255, 255, 255, 0.65);
}

.home-hero-bulletin-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.home-hero-bulletin-card--news::before {
  background: linear-gradient(180deg, #2dc997 0%, #1a7a5f 100%);
}

.home-hero-bulletin-card--notice::before {
  background: linear-gradient(180deg, #ffc107 0%, #e0a800 100%);
}

.home-hero-bulletin-card__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.home-hero-bulletin-card__icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.home-hero-bulletin-card--news .home-hero-bulletin-card__icon {
  color: #7bf0cd;
}

.home-hero-bulletin-card--notice .home-hero-bulletin-card__icon {
  color: #ffe082;
}

.home-hero-bulletin-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.home-hero-bulletin-card__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

/* ---- CTA band ---- */
#call-to-action.home-cta-band {
  position: relative;
  margin-top: -1px;
  padding: clamp(4.5rem, 12vw, 6.5rem) 0 !important;
  overflow: hidden;
  /* call-to-action-bg.jpg: scroll attachment keeps image centered in this section (fixed = viewport crop / “strip at bottom”) */
  background-image: linear-gradient(
      rgba(6, 16, 24, 0.45),
      rgba(4, 12, 20, 0.55)
    ),
    url("../img/call-to-action-bg.jpg");
  background-size: cover;
  /* CTA bg: lower vertical % (6–11) moves the pyramids / caravan higher in the band (cover). */
  background-position: center 6%;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

@media (min-width: 768px) {
  #call-to-action.home-cta-band {
    background-position: center 9%;
  }
}

@media (min-width: 1200px) {
  #call-to-action.home-cta-band {
    background-position: center 11%;
  }
}

/* Neutral transition to registration note — no green tint */
.home-cta-data-bridge {
  display: block;
  height: clamp(20px, 4vw, 36px);
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(236, 242, 247, 0.95) 100%);
}

/* Removed green wash over CTA */
#call-to-action.home-cta-band::before {
  display: none;
}

#call-to-action.home-cta-band .container {
  position: relative;
  z-index: 1;
}

.home-cta-band .cta-title {
  font-size: clamp(1.4rem, 3.6vw, 1.95rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #ffffff !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.3);
}

.home-cta-band .cta-text {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 1;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

/*
 * Employee registration (/employee-registration): uses .home-cta-band without #call-to-action,
 * so it does not inherit the dark photo overlay — title/subtitle were low-contrast. Apply the
 * same treatment explicitly on this subpage only.
 */
.home-main--employee-registration .employee-registration-hero.home-cta-band {
  position: relative;
  margin-top: -1px;
  padding: clamp(2.75rem, 9vw, 4.5rem) 0 !important;
  overflow: hidden;
  background-image: linear-gradient(120deg, rgba(8, 22, 32, 0.82) 0%, rgba(6, 18, 28, 0.78) 45%, rgba(4, 14, 24, 0.88) 100%),
    url("../img/call-to-action-bg.jpg");
  background-size: cover;
  background-position: center 8%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(4, 12, 20, 0.25);
}

@media (min-width: 768px) {
  .home-main--employee-registration .employee-registration-hero.home-cta-band {
    background-position: center 10%;
  }
}

@media (min-width: 1200px) {
  .home-main--employee-registration .employee-registration-hero.home-cta-band {
    background-position: center 12%;
  }
}

.home-main--employee-registration .employee-registration-hero.home-cta-band .container {
  position: relative;
  z-index: 1;
}

.home-main--employee-registration .employee-registration-hero.home-cta-band .cta-title {
  font-size: clamp(1.45rem, 3.8vw, 2.05rem);
}

.home-main--employee-registration .employee-registration-hero.home-cta-band .cta-text {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.75;
}

/* Sector highlight card on employee registration form */
.employee-reg-sector-card {
  position: relative;
  margin-bottom: 1.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.96) 100%);
  border: 1px solid rgba(12, 40, 64, 0.1);
  box-shadow: 0 4px 24px rgba(12, 28, 48, 0.07), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
}

.employee-reg-sector-card__accent {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 5px;
  background: linear-gradient(180deg, #2dc997 0%, #1fa87a 45%, #157f5c 100%);
  border-radius: 0 1rem 1rem 0;
}

[dir="rtl"] .employee-reg-sector-card__accent {
  inset-inline-end: auto;
  inset-inline-start: 0;
  border-radius: 1rem 0 0 1rem;
}

.employee-reg-sector-card__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.1rem 1.35rem;
}

[dir="rtl"] .employee-reg-sector-card__inner {
  padding: 1.1rem 1.35rem 1.1rem 1.25rem;
}

.employee-reg-sector-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  font-size: 1.45rem;
  color: #fff;
  background: linear-gradient(145deg, #2dc997 0%, #1fa87a 100%);
  box-shadow: 0 6px 18px rgba(31, 168, 122, 0.35);
}

.employee-reg-sector-card__text {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.employee-reg-sector-card__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(12, 40, 64, 0.55);
}

.employee-reg-sector-card__name {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--home-ink, #0f172a);
  word-break: break-word;
}

.employee-reg-sector-card__name-main {
  font-weight: 800;
}

.employee-reg-sector-card__name-father {
  font-weight: 600;
  font-size: 0.92em;
  color: rgba(15, 23, 42, 0.72);
}

.employee-reg-sector-card__name-father-sep {
  font-weight: 500;
  color: rgba(15, 23, 42, 0.32);
}

.employee-reg-sector-card__inner--stack {
  flex-direction: column;
  align-items: stretch;
  text-align: start;
}

.employee-reg-sector-card__inner--stack .employee-reg-sector-card__icon {
  align-self: flex-start;
}

.employee-reg-sector-card--picker .employee-reg-sector-card__hint {
  color: rgba(12, 40, 64, 0.62) !important;
}

/* Select2 on employee registration (public home layout) */
.home-main--employee-registration .select2-container--default .select2-selection--single {
  min-height: 46px;
  border-radius: 0.5rem;
  border: 1px solid rgba(12, 40, 64, 0.18);
  padding-top: 0.35rem;
}

.home-main--employee-registration .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5;
  padding-inline: 0.75rem;
}

.home-main--employee-registration .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
}

/* ---- Employee registration: modern form shell (2026 refresh) ---- */
.home-main--employee-registration .employee-reg-body {
  position: relative;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(45, 201, 151, 0.14), transparent 55%),
    linear-gradient(180deg, var(--home-surface-warm) 0%, var(--home-surface) 38%, #e8eeeb 100%);
}

.home-main--employee-registration .employee-reg-hero__eyebrow {
  margin-bottom: 0.5rem;
}

.home-main--employee-registration .employee-reg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  box-shadow: var(--home-glass-highlight-soft), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-main--employee-registration .employee-reg-card {
  position: relative;
  max-width: 44rem;
  padding: clamp(1.35rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.75rem, 5vw, 2.75rem);
  border-radius: var(--home-radius-xl);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(252, 253, 252, 0.99) 100%);
  border: 1px solid rgba(12, 40, 64, 0.08);
  box-shadow:
    var(--home-shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.home-main--employee-registration .employee-reg-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--home-accent-deep), var(--home-accent) 45%, #5ee1b8);
  opacity: 0.95;
  pointer-events: none;
}

.home-main--employee-registration .employee-reg-card--narrow {
  max-width: 26rem;
  padding: 2rem 1.5rem;
}

.home-main--employee-registration .employee-reg-card__title {
  font-weight: 800;
  color: var(--home-ink);
}

.home-main--employee-registration .employee-reg-empty-icon {
  width: 4.25rem;
  height: 4.25rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--home-accent-deep);
  background: linear-gradient(145deg, rgba(45, 201, 151, 0.18), rgba(45, 201, 151, 0.06));
  border-radius: 1.15rem;
  border: 1px solid rgba(45, 201, 151, 0.22);
}

.home-main--employee-registration .employee-reg-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 44rem;
  margin-inline: auto;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(10, 24, 21, 0.82);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 40, 64, 0.1);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow-sm);
}

.home-main--employee-registration .employee-reg-banner--muted {
  background: rgba(255, 255, 255, 0.55);
}

.home-main--employee-registration .employee-reg-banner__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--home-accent-deep);
  font-size: 1.1rem;
}

.home-main--employee-registration .employee-reg-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-main--employee-registration .employee-reg-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(12, 40, 64, 0.05);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

[dir="rtl"] .home-main--employee-registration .employee-reg-step {
  padding: 0.4rem 0.65rem 0.4rem 0.85rem;
}

.home-main--employee-registration .employee-reg-step__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 50%;
  color: rgba(10, 24, 21, 0.45);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 40, 64, 0.12);
}

.home-main--employee-registration .employee-reg-step__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(10, 24, 21, 0.55);
}

.home-main--employee-registration .employee-reg-step--current {
  background: rgba(45, 201, 151, 0.12);
  border-color: rgba(45, 201, 151, 0.35);
  box-shadow: 0 6px 20px rgba(45, 201, 151, 0.15);
}

.home-main--employee-registration .employee-reg-step--current .employee-reg-step__circle {
  color: #fff;
  background: linear-gradient(145deg, var(--home-accent) 0%, var(--home-accent-deep) 100%);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(31, 168, 122, 0.35);
}

.home-main--employee-registration .employee-reg-step--current .employee-reg-step__label {
  color: var(--home-ink);
}

.home-main--employee-registration .employee-reg-step--done .employee-reg-step__circle {
  color: #fff;
  background: linear-gradient(145deg, #2dc997, #1fa87a);
  border-color: transparent;
}

.home-main--employee-registration .employee-reg-step--done .employee-reg-step__label {
  color: rgba(10, 24, 21, 0.75);
}

.home-main--employee-registration .employee-reg-step--pending {
  opacity: 0.72;
}

.home-main--employee-registration .employee-reg-steps__connector {
  flex: 1 1 2rem;
  max-width: 4rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(12, 40, 64, 0.1);
  transition: background 0.25s ease;
}

.home-main--employee-registration .employee-reg-steps__connector--active {
  background: linear-gradient(90deg, rgba(45, 201, 151, 0.35), var(--home-accent));
}

.home-main--employee-registration .employee-reg-intro .employee-reg-intro__text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--home-muted);
}

.home-main--employee-registration .employee-reg-intro .employee-reg-section-title {
  color: var(--home-ink);
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
}

.home-main--employee-registration .employee-reg-section-title {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(10, 24, 21, 0.45);
}

.home-main--employee-registration .employee-reg-kicker {
  letter-spacing: 0.08em;
}

.home-main--employee-registration .employee-reg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(12, 40, 64, 0.08);
}

.home-main--employee-registration .employee-reg-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
}

.home-main--employee-registration .employee-reg-badge--renew {
  color: #0b3d52;
  background: linear-gradient(135deg, rgba(110, 210, 255, 0.35), rgba(45, 201, 151, 0.22));
  border: 1px solid rgba(45, 201, 151, 0.35);
}

.home-main--employee-registration .employee-reg-badge--new {
  color: #2a2a2a;
  background: rgba(12, 40, 64, 0.06);
  border: 1px solid rgba(12, 40, 64, 0.1);
}

.home-main--employee-registration .employee-reg-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--home-ink);
}

.home-main--employee-registration .employee-reg-label__icon {
  display: inline-flex;
  color: var(--home-accent-deep);
  font-size: 1.05rem;
}

.home-main--employee-registration .employee-reg-label__hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(10, 24, 21, 0.45);
}

.home-main--employee-registration .employee-reg-input {
  min-height: 3rem;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  border-radius: var(--home-radius);
  border: 1px solid rgba(12, 40, 64, 0.14);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-main--employee-registration .employee-reg-input:focus {
  border-color: rgba(45, 201, 151, 0.65);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 0 0 3px var(--home-accent-dim);
}

.home-main--employee-registration .employee-reg-input--nid {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.home-main--employee-registration .employee-reg-input--readonly {
  background: linear-gradient(180deg, rgba(12, 40, 64, 0.04), rgba(12, 40, 64, 0.02)) !important;
  color: rgba(10, 24, 21, 0.72);
  cursor: default;
}

.home-main--employee-registration .employee-reg-upload {
  position: relative;
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--home-radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 248, 0.98));
  border: 1px dashed rgba(12, 40, 64, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-main--employee-registration .employee-reg-upload--busy {
  border-color: rgba(45, 201, 151, 0.35);
  box-shadow: inset 0 0 0 1px rgba(45, 201, 151, 0.12);
}

.home-main--employee-registration .employee-reg-upload__loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: inherit;
  background: rgba(8, 22, 32, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.home-main--employee-registration .employee-reg-upload__loading .spinner-border {
  width: 2.25rem;
  height: 2.25rem;
  border-width: 0.2rem;
}

.home-main--employee-registration .employee-reg-upload:hover {
  border-color: rgba(45, 201, 151, 0.45);
  box-shadow: 0 8px 28px rgba(15, 31, 28, 0.06);
}

.home-main--employee-registration .employee-reg-upload--error {
  border-color: rgba(220, 53, 69, 0.45);
  background: rgba(255, 245, 245, 0.65);
}

.home-main--employee-registration .employee-reg-upload__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.home-main--employee-registration .employee-reg-upload__head-icon {
  flex-shrink: 0;
  font-size: 1.35rem;
  color: var(--home-accent-deep);
  line-height: 1;
}

.home-main--employee-registration .employee-reg-upload__title {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--home-ink);
}

.home-main--employee-registration .employee-reg-upload__meta {
  display: block;
  font-size: 0.75rem;
  color: rgba(10, 24, 21, 0.5);
  margin-top: 0.15rem;
}

.home-main--employee-registration .employee-reg-upload__control {
  border-radius: var(--home-radius);
  border: 1px solid rgba(12, 40, 64, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.home-main--employee-registration .employee-reg-upload__preview {
  margin-top: 0.8rem;
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(12, 40, 64, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.home-main--employee-registration .employee-reg-upload__preview--slot {
  min-height: 180px;
}

.home-main--employee-registration .employee-reg-upload__preview-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.home-main--employee-registration .employee-reg-upload__preview-empty {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(10, 24, 21, 0.45);
  background: repeating-linear-gradient(
    -45deg,
    rgba(12, 40, 64, 0.02),
    rgba(12, 40, 64, 0.02) 10px,
    rgba(12, 40, 64, 0.04) 10px,
    rgba(12, 40, 64, 0.04) 20px
  );
}

.home-main--employee-registration .employee-reg-upload__preview-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 22, 32, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.home-main--employee-registration .employee-reg-upload--saved {
  border-style: solid;
  border-color: rgba(45, 201, 151, 0.28);
  background: linear-gradient(165deg, rgba(245, 252, 249, 0.98), rgba(255, 255, 255, 0.96));
}

.home-main--employee-registration .employee-reg-replace-upload {
  margin-top: 0.85rem;
}

.home-main--employee-registration .employee-reg-replace-upload__summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--home-accent-deep);
  list-style: none;
}

.home-main--employee-registration .employee-reg-replace-upload__summary::-webkit-details-marker {
  display: none;
}

.home-main--employee-registration .employee-reg-replace-upload__body {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(12, 40, 64, 0.12);
}

.home-main--employee-registration .employee-reg-sector-change-notice {
  padding: 1rem 1.15rem;
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(234, 179, 8, 0.45);
  background: linear-gradient(165deg, rgba(255, 251, 235, 0.95), rgba(255, 248, 230, 0.9));
  color: rgba(10, 24, 21, 0.88);
}

.home-main--employee-registration .employee-reg-sector-change-notice__title {
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(120, 53, 15, 0.95);
  margin-bottom: 0.45rem;
}

.home-main--employee-registration .employee-reg-sector-change-notice__text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(10, 24, 21, 0.82);
}

.home-main--employee-registration .employee-reg-sector-change-notice__father {
  font-weight: 600;
  color: rgba(10, 24, 21, 0.65);
}

.home-main--employee-registration .employee-reg-btn-primary {
  font-weight: 800;
  color: #fff !important;
  border: none;
  background: linear-gradient(135deg, #1fa87a 0%, var(--home-accent) 48%, #5ee4bc 160%);
  box-shadow: 0 10px 28px rgba(31, 168, 122, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-main--employee-registration .employee-reg-btn-primary:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(31, 168, 122, 0.45);
}

.home-main--employee-registration .employee-reg-btn-primary:disabled {
  opacity: 0.72;
  transform: none;
}

.home-main--employee-registration .employee-reg-btn-submit {
  font-weight: 800;
  color: #fff !important;
  border: none;
  background: linear-gradient(135deg, #157a5c 0%, #1fa87a 40%, var(--home-accent) 100%);
  box-shadow: 0 12px 32px rgba(21, 122, 92, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-main--employee-registration .employee-reg-btn-submit:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(21, 122, 92, 0.42);
}

.home-main--employee-registration .employee-reg-btn-submit:disabled {
  opacity: 0.72;
  transform: none;
}

.home-main--employee-registration .employee-reg-btn-ghost {
  font-weight: 700;
  color: var(--home-ink) !important;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(12, 40, 64, 0.14);
}

.home-main--employee-registration .employee-reg-btn-ghost:hover {
  background: rgba(45, 201, 151, 0.1);
  border-color: rgba(45, 201, 151, 0.35);
  color: var(--home-accent-deep) !important;
}

.home-main--employee-registration .employee-reg-card .select2-container {
  width: 100% !important;
}

.home-main--employee-registration .employee-reg-card .select2-container--default .select2-selection--single {
  min-height: 48px;
  border-radius: var(--home-radius);
  border: 1px solid rgba(12, 40, 64, 0.14);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65);
}

@media (max-width: 575.98px) {
  .home-main--employee-registration .employee-reg-body .container,
  .home-main--employee-registration .employee-registration-hero .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .home-main--employee-registration .employee-reg-card {
    padding: 1rem 0.9rem 1.3rem;
    border-radius: 18px;
  }

  .home-main--employee-registration .employee-reg-banner {
    padding: 0.55rem 0.72rem;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .home-main--employee-registration .employee-reg-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-main--employee-registration .employee-reg-toolbar .btn {
    width: 100%;
    min-height: 2.5rem;
  }

  .home-main--employee-registration .employee-reg-input {
    min-height: 2.7rem;
    font-size: 0.96rem;
  }

  .home-main--employee-registration .employee-reg-upload {
    padding: 0.82rem 0.85rem 0.95rem;
  }

  .home-main--employee-registration .employee-reg-upload__head {
    margin-bottom: 0.5rem;
  }

  .home-main--employee-registration .employee-reg-upload__preview--slot,
  .home-main--employee-registration .employee-reg-upload__preview-img,
  .home-main--employee-registration .employee-reg-upload__preview-empty {
    min-height: 130px;
    height: 130px;
  }

  .home-main--employee-registration .employee-reg-actions {
    padding-top: 1rem !important;
    margin-top: 0.5rem !important;
  }

  .home-main--employee-registration .employee-reg-actions .btn,
  .home-main--employee-registration .employee-reg-btn-primary {
    width: 100%;
    min-height: 3rem;
  }

  .home-main--employee-registration .employee-reg-steps__list {
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .home-main--employee-registration .employee-reg-steps__connector {
    display: block;
    flex: 1 1 1.1rem;
    max-width: 2rem;
  }

  .home-main--employee-registration .employee-reg-step {
    justify-content: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    min-width: 0;
  }

  .home-main--employee-registration .employee-reg-step__circle {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.74rem;
  }

  .home-main--employee-registration .employee-reg-step__label {
    font-size: 0.76rem;
    white-space: nowrap;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .home-main--employee-registration .employee-reg-card {
    max-width: 46rem;
    padding: 1.35rem 1.25rem 1.7rem;
  }

  .home-main--employee-registration .employee-reg-upload__preview--slot,
  .home-main--employee-registration .employee-reg-upload__preview-img,
  .home-main--employee-registration .employee-reg-upload__preview-empty {
    min-height: 150px;
    height: 150px;
  }

  .home-main--employee-registration .employee-reg-actions .btn {
    min-width: 17rem;
  }
}

.home-cta-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 58rem;
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 768px) {
  .home-cta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1200px) {
  .home-cta-grid {
    gap: 1.5rem;
  }
}

.home-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.65rem 1.35rem 1.55rem;
  border-radius: var(--home-radius-xl);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  border: 1px solid var(--home-glass-stroke-mid);
  color: #ffffff !important;
  text-decoration: none !important;
  text-align: center;
  box-shadow: var(--home-shadow-md), var(--home-glass-highlight-soft);
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.home-action-card__title {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.home-action-card__hint {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.home-action-card__icon {
  color: #ffffff !important;
}

.home-action-card:hover:not(.home-action-card--disabled) {
  transform: translateY(-6px);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.14) 100%
  );
  border-color: var(--home-glass-stroke-light);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.34), var(--home-glass-highlight-soft);
}

.home-action-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.home-action-card--disabled {
  opacity: 0.82;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.12);
}

.home-action-card--closed-clickable {
  cursor: pointer;
  pointer-events: auto;
}

.home-action-card--primary {
  border-top: 3px solid #4dabf7;
  border-inline-end: 3px solid rgba(77, 171, 247, 0.55);
}

.home-action-card--success {
  border-top: 3px solid #51cf66;
  border-inline-end: 3px solid rgba(81, 207, 102, 0.55);
}

.home-action-card--muted {
  border-top: 3px solid rgba(255, 255, 255, 0.55);
  border-inline-end: 3px solid rgba(255, 255, 255, 0.35);
}

.home-action-card__status {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(220, 53, 69, 0.55);
  border-radius: 6px;
}

.home-action-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  margin-bottom: 0.95rem;
  font-size: 1.55rem;
  line-height: 1;
  border-radius: 50%;
  opacity: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.home-action-card--primary .home-action-card__icon {
  background: rgba(77, 171, 247, 0.22);
  border-color: rgba(77, 171, 247, 0.45);
}

.home-action-card--success .home-action-card__icon {
  background: rgba(81, 207, 102, 0.22);
  border-color: rgba(81, 207, 102, 0.45);
}

.home-action-card--muted .home-action-card__icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.home-action-card__title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.home-action-card__hint {
  font-size: 0.86rem;
  opacity: 0.88;
  margin: 0;
  line-height: 1.6;
  flex-grow: 1;
  max-width: 17.5rem;
}

/* ---- Data / panels ---- */
.home-data-section {
  margin-top: -1px;
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(4rem, 10vw, 6rem);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(240, 246, 250, 0.92) 22%,
    rgba(232, 240, 246, 0.98) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.home-section-heading {
  text-align: center;
  margin-bottom: 1.75rem;
}

.home-section-heading h2 {
  font-size: clamp(1.28rem, 3.1vw, 1.65rem);
  font-weight: 800;
  color: var(--home-ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.home-section-heading p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.95rem;
}

/* Old-user flow: two-step progress (search -> select user) */
.home-user-steps {
  max-width: min(100%, 760px);
  margin-inline: auto;
}

.home-user-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
}

.home-user-step {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 88px;
  padding: 0.65rem 0.5rem;
  border-radius: 18px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--home-shadow-sm), var(--home-glass-highlight-soft);
  backdrop-filter: blur(14px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(14px) var(--home-glass-saturate);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-user-step__circle {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 800;
  color: #5c6670;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 31, 28, 0.12);
}

.home-user-step__label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: #4a5963;
}

.home-user-step--current {
  border-color: rgba(45, 201, 151, 0.52);
  box-shadow: 0 0 0 2px rgba(45, 201, 151, 0.16), var(--home-shadow-sm), var(--home-glass-highlight-soft);
}

.home-user-step--current .home-user-step__circle {
  color: #ffffff;
  background: linear-gradient(180deg, #2dc997 0%, #1a7a5f 100%);
  border-color: transparent;
}

.home-user-step--current .home-user-step__label {
  color: var(--home-accent-deep);
}

.home-user-step--done .home-user-step__circle {
  color: #ffffff;
  background: linear-gradient(180deg, #22b8cf 0%, #1971c2 100%);
  border-color: transparent;
}

.home-user-step--done .home-user-step__label {
  color: #1d5f94;
}

.home-user-step--pending {
  opacity: 0.88;
}

.home-user-steps__connector {
  width: clamp(16px, 4vw, 32px);
  height: 2px;
  border-radius: 999px;
  background: rgba(92, 102, 112, 0.32);
  margin-top: -2.05rem;
}

.home-user-steps__connector--active {
  background: linear-gradient(90deg, #22b8cf 0%, #2dc997 100%);
}

@media (max-width: 767.98px) {
  .home-user-steps__list {
    gap: 0.35rem;
  }

  .home-user-step {
    min-height: 82px;
    padding: 0.5rem 0.35rem;
    gap: 0.3rem;
    border-radius: 14px;
  }

  .home-user-step__circle {
    width: 1.78rem;
    height: 1.78rem;
    font-size: 0.75rem;
  }

  .home-user-step__label {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .home-user-steps__connector {
    width: clamp(10px, 3.6vw, 22px);
    margin-top: -1.75rem;
  }
}

.home-panel {
  background: linear-gradient(
    165deg,
    var(--home-glass-fill-light) 0%,
    rgba(255, 255, 255, 0.45) 100%
  );
  border-radius: var(--home-radius-xl);
  padding: clamp(1.45rem, 4vw, 2.1rem);
  box-shadow: var(--home-shadow-sm), var(--home-shadow-md), var(--home-glass-highlight);
  border: 1px solid rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
}

.home-panel__title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--home-ink);
  margin-bottom: 1rem;
  text-align: center;
}

.home-panel .form-control,
.home-panel .form-select {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-panel .form-control {
  padding: 0.62rem 0.9rem;
}

.home-panel .form-control:focus,
.home-panel .form-select:focus {
  border-color: var(--home-accent);
  box-shadow: 0 0 0 0.2rem var(--home-accent-dim);
}

.home-btn-search {
  border-radius: 12px !important;
  font-weight: 600;
  padding-top: 0.62rem !important;
  padding-bottom: 0.62rem !important;
  background: linear-gradient(180deg, #ffc107 0%, #e0a800 100%) !important;
  border: none !important;
  color: #1a1a1a !important;
  box-shadow: 0 4px 14px rgba(224, 168, 0, 0.35);
}

.home-btn-search:hover {
  filter: brightness(1.05);
  color: #111 !important;
}

/* ---- User result cards ---- */
.home-user-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-user-card {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  gap: 1.15rem;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(
    165deg,
    var(--home-glass-fill-light) 0%,
    rgba(255, 255, 255, 0.38) 100%
  );
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--home-shadow-sm), var(--home-glass-highlight-soft);
  backdrop-filter: blur(18px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(18px) var(--home-glass-saturate);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-user-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 201, 151, 0.35);
  box-shadow: var(--home-shadow-md);
}

.home-user-card__avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #e9ecef, #dee2e6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.home-user-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.home-user-card__avatar .bi {
  font-size: 2.25rem;
  color: #868e96;
}

.home-user-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  text-align: right;
}

.home-user-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--home-ink);
  margin: 0;
}

.home-user-card__sector {
  font-size: 0.92rem;
  color: var(--home-muted);
  margin: 0;
}

.home-user-card__sector span {
  color: var(--home-accent-deep);
  font-weight: 600;
}

.home-user-card__action .btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

/* ---- Home header bar ---- */
#header.home-header-brand {
  padding: 0.65rem 0;
}

/* Landing: no white bar — sits on hero image */
#header.home-header-over-hero {
  min-height: 72px;
  height: auto !important;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

#header.home-header-over-hero.header-transparent {
  background: transparent !important;
}

#header.home-header-over-hero.header-scrolled {
  background: linear-gradient(
    180deg,
    rgba(14, 24, 32, 0.58) 0%,
    rgba(10, 18, 26, 0.42) 100%
  ) !important;
  backdrop-filter: blur(var(--home-glass-blur-lg)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur-lg)) var(--home-glass-saturate);
  border-bottom: 1px solid var(--home-glass-stroke-mid);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

#header.home-header-over-hero .home-brand {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

#header.home-header-over-hero .home-brand:hover {
  color: #fff !important;
  opacity: 0.95;
}

#header.home-header-over-hero .home-brand.home-brand--active {
  color: #fff !important;
  text-shadow:
    0 0 14px rgba(45, 201, 151, 0.55),
    0 1px 10px rgba(0, 0, 0, 0.45);
}

#header.home-header-over-hero .home-brand img {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Light frosted bar (inner pages) */
#header.home-header-public {
  min-height: 72px;
  height: auto !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(248, 252, 255, 0.62) 100%
  ) !important;
  backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 1px 12px rgba(12, 28, 40, 0.06);
}

#header.home-header-public.header-transparent {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(248, 252, 255, 0.62) 100%
  ) !important;
}

#header.home-header-public.header-scrolled {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(252, 254, 255, 0.82) 100%
  ) !important;
  box-shadow: 0 10px 36px rgba(12, 28, 40, 0.1);
}

.home-header-brand .home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  transition: color 0.2s ease, opacity 0.2s ease;
}

#header.home-header-public .home-brand > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#header.home-header-public .home-brand {
  color: var(--home-ink);
  text-shadow: none;
}

.home-header-brand .home-brand:hover {
  color: #fff;
  opacity: 0.92;
}

#header.home-header-public .home-brand:hover {
  color: #0f1f1c;
  opacity: 1;
}

#header.home-header-public .home-brand.home-brand--active {
  color: var(--home-accent-deep);
}

.home-header-brand .home-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#header.home-header-public .home-brand img {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.home-header-actions {
  flex-shrink: 0;
}

.home-header-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--home-ink) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.55) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(12, 28, 40, 0.08), var(--home-glass-highlight-soft);
  backdrop-filter: blur(12px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(12px) var(--home-glass-saturate);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.home-header-home-btn:hover {
  background: rgba(45, 201, 151, 0.18) !important;
  border-color: rgba(45, 201, 151, 0.42) !important;
  color: var(--home-accent-deep) !important;
  box-shadow: 0 4px 16px rgba(45, 201, 151, 0.2);
}

.home-header-home-btn:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 2px;
}

.home-brand.home-brand--active {
  opacity: 1;
}

/* Subpages: offset fixed header (no full-viewport hero) */
.home-main--subpage {
  padding-top: 88px;
}

/* Landing shortcuts under hero wave — same art as hero, heavy white wash */
.home-landing-next {
  position: relative;
  background-color: #ffffff;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Regna uses section { overflow: hidden }; allow tile shadows not to clip */
  overflow: visible;
}

.home-landing-next::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(248, 252, 255, 0.72) 40%,
    rgba(242, 248, 252, 0.88) 100%
  );
  backdrop-filter: blur(14px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(14px) var(--home-glass-saturate);
  pointer-events: none;
}

.home-landing-next .container {
  position: relative;
  z-index: 1;
}

.home-landing-next__header {
  margin-bottom: 2rem;
}

.home-landing-next__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  backdrop-filter: blur(10px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(10px) var(--home-glass-saturate);
  box-shadow: 0 2px 12px rgba(12, 28, 40, 0.06);
}

.home-landing-next__title {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--home-ink);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .home-landing-next__header {
    margin-bottom: 2.5rem;
  }
}

.home-landing-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.85rem 1.45rem;
  border-radius: var(--home-radius-xl);
  text-decoration: none !important;
  color: var(--home-ink) !important;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.48) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--home-shadow-sm), var(--home-shadow-md), var(--home-glass-highlight);
  backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  height: 100%;
  min-height: 210px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.home-landing-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #5c6670 0%,
    #3d4a5c 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-landing-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--home-shadow-lg), var(--home-glass-highlight);
}

.home-landing-tile:hover::before {
  opacity: 1;
}

.home-landing-tile:focus-visible {
  outline: 2px solid #495057;
  outline-offset: 3px;
}

.home-landing-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #2c3844;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(12, 28, 40, 0.06);
  backdrop-filter: blur(8px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(8px) var(--home-glass-saturate);
}

.home-landing-tile__title {
  font-weight: 800;
  font-size: 1.13rem;
  margin-bottom: 0.5rem;
  color: var(--home-ink);
  letter-spacing: -0.02em;
}

.home-landing-tile__hint {
  font-size: 0.89rem;
  color: var(--home-muted);
  line-height: 1.55;
  margin: 0;
}

/* /data hub (no flow selected) */
.home-data-section--hub {
  padding-top: clamp(2.25rem, 5vw, 3.25rem);
}

.home-hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .home-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.45rem 1.1rem;
  border-radius: var(--home-radius-lg);
  background: linear-gradient(
    165deg,
    var(--home-glass-fill-light) 0%,
    rgba(255, 255, 255, 0.42) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-decoration: none !important;
  color: var(--home-ink) !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: var(--home-shadow-sm), var(--home-glass-highlight-soft);
  backdrop-filter: blur(16px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(16px) var(--home-glass-saturate);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-hub-card .bi {
  font-size: 1.9rem;
  color: var(--home-accent-deep);
}

.home-hub-card:hover:not(.home-hub-card--disabled) {
  transform: translateY(-3px);
  border-color: rgba(45, 201, 151, 0.4);
  box-shadow: var(--home-shadow-md);
}

.home-hub-card--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.home-hub-hint {
  color: var(--home-muted);
  font-size: 0.92rem;
}

.home-hub-hint a {
  color: var(--home-accent-deep);
  font-weight: 600;
}

.home-registration-note {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(240, 246, 250, 0.85) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(12px) var(--home-glass-saturate);
}

.home-registration-note__text {
  font-size: 0.95rem;
  color: var(--home-muted);
  line-height: 1.6;
}

.home-registration-note__text a {
  color: var(--home-accent-deep);
  font-weight: 700;
}

/* Wraps /registration/* main content; autocomplete=off applies to descendant controls */
.home-registration-shell {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Form block (livewire form-user) inside data section */
.home-data-section .container > .card.card-body {
  border-radius: var(--home-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--home-shadow-sm), var(--home-shadow-md), var(--home-glass-highlight);
  padding: clamp(1.15rem, 3vw, 1.85rem);
  background: linear-gradient(
    165deg,
    var(--home-glass-fill-light) 0%,
    rgba(255, 255, 255, 0.5) 100%
  ) !important;
  backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
}

.home-data-section .container > .card.card-body.home-form-user {
  padding: clamp(1.25rem, 3.5vw, 2rem);
  border-inline-start: 4px solid var(--home-accent);
  background: linear-gradient(
    180deg,
    rgba(45, 201, 151, 0.06) 0%,
    var(--home-surface-elevated) 14%,
    var(--home-surface-elevated) 100%
  );
  box-shadow:
    var(--home-shadow-sm),
    var(--home-shadow-md),
    0 0 0 1px rgba(45, 201, 151, 0.1);
}

/* ---- User registration / update form (form-user) ---- */
.home-form-user {
  --home-form-focus: rgba(45, 201, 151, 0.28);
  direction: rtl;
  text-align: start;
  font-feature-settings: "kern" 1;
}

.home-form-user__input-text {
  text-align: start !important;
}

.home-form-user__input-mono {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}

.home-form-user__section-head {
  margin-top: 0.1rem;
}

.home-form-user__section-head--spaced {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px dashed rgba(45, 201, 151, 0.35);
}

.home-form-user__section-head--urgent {
  border-top-color: rgba(220, 53, 69, 0.45);
}

.home-form-user__section-head--urgent .home-form-user__section-kicker {
  color: #842029;
  border-color: rgba(220, 53, 69, 0.35);
  background: linear-gradient(
    180deg,
    rgba(220, 53, 69, 0.2) 0%,
    rgba(220, 53, 69, 0.08) 100%
  );
}

.home-form-user__section-head--urgent .home-form-user__section-label,
.home-form-user__section-head--urgent .home-form-user__section-label .bi {
  color: #b02a37;
  font-weight: 800;
}

.home-form-user__section-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--home-accent-deep);
  margin-bottom: 0.45rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(45, 201, 151, 0.18) 0%,
    rgba(45, 201, 151, 0.08) 100%
  );
  border: 1px solid var(--home-accent-dim);
}

.home-form-user__section-label {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--home-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.35;
}

.home-form-user__section-label .bi {
  color: var(--home-accent-deep);
  opacity: 0.88;
  font-size: 1.08rem;
  flex-shrink: 0;
}

.home-form-user__deacon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  min-height: 2.85rem;
  padding: 0.5rem 0.85rem;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.home-form-user__deacon .form-check-inline {
  margin: 0;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

.home-form-user__header {
  margin-bottom: 1.35rem;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.35rem) 1.1rem;
  border-bottom: 1px solid rgba(45, 201, 151, 0.22);
  border-radius: var(--home-radius-lg);
  background: linear-gradient(
    135deg,
    rgba(45, 201, 151, 0.12) 0%,
    rgba(238, 242, 240, 0.95) 40%,
    #ffffff 100%
  );
  text-align: center;
  box-shadow: 0 6px 24px rgba(15, 31, 28, 0.05);
}

@media (min-width: 768px) {
  .home-form-user__header {
    text-align: start;
  }
}

.home-form-user__title {
  font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  font-weight: 800 !important;
  color: var(--home-ink) !important;
  margin: 0 0 0.35rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .home-form-user__title {
    justify-content: flex-start;
  }
}

.home-form-user__title .bi {
  opacity: 0.85;
  font-size: 1.1em;
}

.home-form-user__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.5;
}

.home-form-user label.block,
.home-form-user__field label:not(.form-check-label) {
  font-size: 0.875rem;
  font-weight: 600;
}

.home-form-user label.block {
  color: var(--home-muted) !important;
}

.home-form-user__field {
  min-width: 0;
}

/*
 * Bootstrap only shows .invalid-feedback as display:block when it is a *sibling* after .is-invalid.
 * Some fields (e.g. checkbox + wrapper) break that pairing; keep server/Livewire messages visible.
 */
.home-form-user__field .invalid-feedback,
.home-form-user__instructions .invalid-feedback {
  display: block !important;
}

.home-form-user__value {
  min-height: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: start;
  padding: 0.55rem 1rem;
  background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-inline-start: 3px solid rgba(45, 201, 151, 0.45);
  border-radius: 12px;
  font-weight: 600;
  color: var(--home-ink);
  line-height: 1.4;
}

.home-form-user__value--mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.home-form-user .form-control,
.home-form-user .form-select,
.home-form-user__control {
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  font-size: 0.95rem;
}

.home-form-user .form-control:not(select),
.home-form-user textarea.home-form-user__control,
.home-form-user input.home-form-user__control:not([type="file"]) {
  padding: 0.62rem 0.9rem !important;
}

/*
 * Bootstrap “is-invalid” paints the info icon on the physical right; for RTL home forms
 * we move it to the physical left and mirror padding (requested UX).
 */
.home-form-user input.form-control.is-invalid:not([type="file"]),
.home-form-user input.home-form-user__control.is-invalid:not([type="file"]) {
  padding: 0.62rem 0.9rem !important;
  padding-left: calc(0.9rem + 1.5em + 0.1875rem) !important;
  background-position: left calc(0.375em + 0.1875rem) center !important;
}

.home-form-user textarea.form-control.is-invalid,
.home-form-user textarea.home-form-user__control.is-invalid {
  padding: 0.62rem 0.9rem !important;
  padding-left: calc(0.9rem + 1.5em + 0.1875rem) !important;
  background-position: top calc(0.375em + 0.1875rem) left calc(0.375em + 0.1875rem) !important;
}

.home-form-user .form-select.is-invalid:not([multiple]):not([size]),
.home-form-user select.form-select.is-invalid:not([multiple]):not([size]) {
  padding-inline-start: 0.9rem !important;
  padding-inline-end: calc(2.35rem + 1.125rem) !important;
  background-position:
    left 0.75rem center,
    left 2.35rem center !important;
  background-size:
    16px 12px,
    calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.home-form-user .form-control:focus,
.home-form-user .form-select:focus {
  border-color: rgba(26, 122, 95, 0.55) !important;
  box-shadow: 0 0 0 0.2rem var(--home-form-focus) !important;
}

.home-form-user__textarea {
  min-height: 3.5rem;
  resize: vertical;
  line-height: 1.55;
  text-align: start;
}

.home-form-user__divider {
  margin: 0.5rem 0 1rem;
  opacity: 0.15;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.home-form-user__section-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--home-ink);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.home-form-user__section-title .bi {
  color: var(--home-accent-deep);
  opacity: 0.9;
}

.home-form-user__instructions {
  background: linear-gradient(165deg, #f6f9fc 0%, #eef2f7 100%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--home-radius-lg);
  padding: 1.25rem 1.35rem;
  margin-top: 0.25rem;
}

.home-form-user__instructions--urgent {
  background: linear-gradient(165deg, #fff6f6 0%, #ffe9ea 100%);
  border-color: rgba(220, 53, 69, 0.35);
}

.home-form-user__instructions--urgent .home-form-user__instructions-title {
  color: #842029;
  font-weight: 800;
}

.home-form-user__instructions--urgent .home-form-user__instructions-lead,
.home-form-user__instructions--urgent .home-form-user__instructions-list {
  color: #6f1d24;
  font-weight: 700;
}

.home-form-user__instructions--urgent .home-form-user__confirm {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(220, 53, 69, 0.22);
}

.home-form-user__instructions--urgent .home-form-user__confirm-row .form-check-label {
  font-weight: 700;
}

.home-form-user__instructions-title {
  color: var(--home-ink);
}

.home-form-user__instructions-lead {
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.55;
}

.home-form-user__instructions-list {
  margin: 0 0 1rem;
  padding-inline-start: 1.1rem;
  font-size: 0.92rem;
  color: var(--home-muted);
  line-height: 1.65;
}

.home-form-user__instructions-list li + li {
  margin-top: 0.35rem;
}

.home-form-user__confirm {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-form-user__confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  order: 1;
  width: 100%;
  max-width: 100%;
}

.home-form-user__confirm-row .form-check-input {
  float: none;
  margin: 0.3rem 0 0;
  flex-shrink: 0;
}

.home-form-user__confirm-row .form-check-label {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--home-ink);
  flex: 1;
  min-width: 0;
}

/* Force validation copy to its own row under the checkbox (never inline with the label). */
.home-form-user__confirm-feedback {
  width: 100%;
  max-width: 100%;
  display: block;
  flex: 0 0 auto;
  order: 2;
}

.home-form-user__confirm .invalid-feedback,
.home-form-user__confirm-feedback .invalid-feedback {
  width: 100% !important;
  max-width: 100%;
  display: block !important;
  margin-top: 0.2rem !important;
  margin-bottom: 0;
  text-align: start;
  clear: both;
}

.home-form-user__confirm--invalid {
  border-color: rgba(220, 53, 69, 0.5) !important;
  background: rgba(253, 242, 242, 0.75) !important;
}

.home-form-user__instructions .invalid-feedback {
  color: #b02a37;
  font-weight: 600;
}

.home-form-user__footer {
  margin-top: 1.5rem;
  padding: 1rem clamp(0.75rem, 3vw, 1.25rem);
  background: linear-gradient(180deg, #f8faf9 0%, #eef2f0 100%);
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(45, 201, 151, 0.18);
  box-shadow: 0 -4px 20px rgba(15, 31, 28, 0.04);
}

.home-form-user__submit {
  min-width: 12rem;
  box-shadow: 0 4px 18px rgba(45, 201, 151, 0.28);
  border-radius: 12px !important;
  font-weight: 700 !important;
}

/* Pending state driven by wire:loading.class on the button + wire:target (submit only) */
.home-form-user__submit .home-form-user__submit-loading {
  display: none !important;
}

.home-form-user__submit.home-form-user__submit--pending .home-form-user__submit-label {
  display: none !important;
}

.home-form-user__submit.home-form-user__submit--pending .home-form-user__submit-loading {
  display: inline-flex !important;
}

.home-form-user__submit--pending .spinner-border {
  border-width: 0.2em;
}

.home-form-user__grid--uploads {
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px dashed rgba(45, 201, 151, 0.28);
}

.home-form-user__city-loading {
  min-height: 1.35rem;
}

.home-form-user__grid--final-step {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 31, 28, 0.09);
}

.home-form-user__grid--uploads .home-form-user__field {
  padding: 1rem 1.05rem 1.15rem;
  background: linear-gradient(
    165deg,
    rgba(45, 201, 151, 0.05) 0%,
    #ffffff 55%
  );
  border: 1px dashed rgba(45, 201, 151, 0.32);
  border-radius: var(--home-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-form-user__grid--uploads .home-form-user__field:hover {
  border-color: rgba(26, 122, 95, 0.45);
  box-shadow: 0 6px 20px rgba(15, 31, 28, 0.06);
}

/* Military approval card uses same framed upload style outside uploads grid. */
.home-form-user__field--upload-card {
  padding: 1rem 1.05rem 1.15rem;
  background: linear-gradient(
    165deg,
    rgba(45, 201, 151, 0.05) 0%,
    #ffffff 55%
  );
  border: 1px dashed rgba(45, 201, 151, 0.32);
  border-radius: var(--home-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-form-user__field--upload-card:hover {
  border-color: rgba(26, 122, 95, 0.45);
  box-shadow: 0 6px 20px rgba(15, 31, 28, 0.06);
}

/* Image preview area sizing (spinner: assets/css/lw-upload-preview.css + upload-preview-loading component) */
.home-form-user__upload-preview {
  min-height: 5.5rem;
  min-width: 7.5rem;
  margin-top: 0.5rem;
}

.home-form-user__upload-thumb {
  display: block;
  position: relative;
  z-index: 1;
  width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--home-radius, 12px);
}

.home-form-user__upload-thumb--sm {
  width: 100px;
}

.home-form-user .lw-upload-loading {
  border-radius: var(--home-radius, 12px);
}

.home-form-user .lw-upload-loading::after {
  border-color: rgba(45, 201, 151, 0.28);
  border-top-color: var(--home-accent, #2dc997);
}

@media (prefers-reduced-motion: reduce) {
  .home-form-user .lw-upload-loading::after {
    border-top-color: var(--home-accent-deep, #1a7a5f);
  }
}

.home-form-user__layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-form-user--update .home-form-user__header,
.home-form-user--edit-mode .home-form-user__header {
  border-bottom-color: rgba(13, 110, 253, 0.18);
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1) 0%,
    rgba(238, 244, 252, 0.98) 45%,
    #ffffff 100%
  );
}

.home-form-user__identity-summary {
  background: linear-gradient(165deg, #f0f7ff 0%, #e8f4fc 100%);
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: var(--home-radius-lg);
  padding: 1rem 1.15rem 1.15rem;
  margin-bottom: 0.15rem;
}

.home-form-user__identity-summary-head {
  margin-bottom: 0.85rem;
}

.home-form-user__identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0a58ca;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, 0.2);
  margin-bottom: 0.45rem;
}

.home-form-user__identity-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--home-ink);
}

.home-form-user__identity-summary .home-form-user__value {
  min-height: auto;
  padding: 0.65rem 1rem;
  justify-content: flex-start;
  text-align: start;
}

.home-form-user__section-head--edit .home-form-user__section-hint {
  font-size: 0.88rem;
  color: var(--home-muted);
  line-height: 1.55;
  margin-top: 0.35rem;
}

.home-form-user__service-panel {
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.25rem 0.15rem 0.5rem;
  margin-top: 0.35rem;
}

.home-form-user__service-panel .home-form-user__divider {
  margin-top: 0;
}

.home-form-user__service-panel .home-form-user__section-title {
  padding-inline: 0.35rem;
}

.home-form-user__service-panel .home-form-user__section-hint {
  font-size: 0.88rem;
  color: var(--home-muted);
  padding-inline: 0.35rem;
}

.home-form-user__pick-file {
  font-size: 0.9rem;
  border-radius: 12px !important;
  padding: 0.5rem 1rem !important;
}

.home-form-user__upload-hint {
  line-height: 1.45;
}

.home-form-user__preview-img {
  max-width: 100%;
  width: 200px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
}

.home-form-user__preview-img--saved {
  width: 160px;
  opacity: 0.95;
}

/* ---- Service response slot: loading state (phone search) ---- */
.home-service-response-slot {
  min-height: 0;
}

/* Relative box so loading layer can cover results without wire:loading.remove */
.home-service-response-slot--overlay {
  position: relative;
  min-height: 200px;
}

.home-service-response-slot__content {
  position: relative;
  z-index: 1;
}

.home-response-loading {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 2rem 1.25rem;
  border-radius: var(--home-radius-xl);
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
  box-shadow: var(--home-shadow-sm), 0 8px 32px rgba(15, 31, 28, 0.07);
}

.home-response-loading--overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  min-height: 200px;
  margin: 0;
}

.home-response-loading__hero {
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(217, 119, 6, 0.35);
  box-shadow: 0 4px 18px rgba(15, 31, 28, 0.08);
}

.home-response-loading__spinner {
  width: 2.25rem;
  height: 2.25rem;
  border-width: 0.2rem;
}

.home-response-loading__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--home-ink);
}

.home-response-loading__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.5;
}

/* ---- Service / registration response (status & related flashes) ---- */
.home-service-response {
  position: relative;
  margin-top: 1.75rem;
  margin-bottom: 0;
  padding: 1.5rem 1.25rem 1.6rem;
  border-radius: var(--home-radius-xl);
  border: 1px solid transparent;
  box-shadow: var(--home-shadow-sm), 0 8px 32px rgba(15, 31, 28, 0.07);
  overflow: hidden;
}

.home-service-response--wait {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
  border-color: rgba(245, 158, 11, 0.28);
  color: var(--home-ink);
}

.home-service-response--success {
  background: linear-gradient(180deg, #f6fffc 0%, #d1fae5 50%, #a7f3d0 100%);
  border-color: rgba(45, 201, 151, 0.32);
}

.home-service-response--error {
  background: linear-gradient(180deg, #fffafa 0%, #ffe4e6 50%, #fecdd3 100%);
  border-color: rgba(220, 53, 69, 0.26);
}

/* Text dismiss — avoids looking like an “error X” next to status */
.home-service-response__dismiss {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  margin: 0;
  border: none;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--home-muted);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.2s ease, background 0.2s ease;
}

.home-service-response__dismiss:hover {
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.9);
}

.home-service-response__dismiss .bi {
  font-size: 0.85rem;
  opacity: 0.75;
}

.home-service-response__shell {
  max-width: 32rem;
  margin-inline: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 0.35rem;
}

.home-service-response__hero {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(15, 31, 28, 0.08);
  box-shadow: 0 4px 18px rgba(15, 31, 28, 0.08);
}

.home-service-response--wait .home-service-response__hero {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(255, 255, 255, 0.85);
}

.home-service-response--success .home-service-response__hero {
  color: var(--home-accent-deep);
  border-color: rgba(45, 201, 151, 0.4);
}

.home-service-response--error .home-service-response__hero {
  color: #c92a2a;
  border-color: rgba(201, 42, 42, 0.35);
}

.home-service-response__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.home-service-response__badge {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 31, 28, 0.1);
  color: var(--home-ink);
  box-shadow: 0 1px 2px rgba(15, 31, 28, 0.05);
}

.home-service-response--wait .home-service-response__badge {
  border-color: rgba(217, 119, 6, 0.35);
  color: #92400e;
}

.home-service-response--success .home-service-response__badge {
  border-color: rgba(26, 122, 95, 0.38);
  color: var(--home-accent-deep);
}

.home-service-response--error .home-service-response__badge {
  border-color: rgba(201, 42, 42, 0.38);
  color: #9b2226;
}

.home-service-response__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.95rem;
  color: var(--home-muted);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 31, 28, 0.08);
  cursor: help;
}

.home-service-response__hint:hover {
  color: var(--home-accent-deep);
  border-color: rgba(45, 201, 151, 0.35);
}

.home-service-response__title {
  margin: 0 0 1rem;
  width: 100%;
  font-size: clamp(1.12rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--home-ink);
  line-height: 1.35;
}

.home-service-response__verse {
  margin: 0 0 1rem;
  width: 100%;
  max-width: 28rem;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--home-muted);
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--home-radius);
  border: 1px solid rgba(15, 31, 28, 0.06);
  border-inline-start: 3px solid var(--home-accent);
  text-align: start;
}

.home-service-response__verse-ref {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  color: var(--home-accent-deep);
  letter-spacing: 0.02em;
}

.home-service-response__rule {
  width: min(100%, 20rem);
  height: 1px;
  margin: 0.75rem auto;
  background: rgba(15, 31, 28, 0.12);
  border: 0;
}

.home-service-response__rule--soft {
  opacity: 0.55;
}

.home-service-response__body {
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--home-ink);
  text-align: center;
}

.home-service-response__body hr {
  margin: 1.1rem auto;
  max-width: 16rem;
  border: 0;
  border-top: 1px solid rgba(15, 31, 28, 0.14);
}

.home-service-response__body b,
.home-service-response__body strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--home-ink);
  line-height: 1.5;
}

.home-service-response__footer {
  margin: 0.75rem 0 0;
  max-width: 26rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--home-muted);
}

@media (max-width: 575.98px) {
  .home-service-response {
    padding: 1.35rem 1rem 1.45rem;
  }

  .home-service-response__dismiss span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .home-service-response__dismiss {
    padding: 0.45rem;
    border-radius: 12px;
  }

  .home-service-response__hero {
    width: 3.85rem;
    height: 3.85rem;
    font-size: 1.75rem;
  }

  .home-service-response__verse {
    font-size: 0.8rem;
    padding: 0.75rem 0.85rem;
  }
}

/* ---- Small screens & notched devices ---- */
@media (max-width: 480px) {
  #hero.home-hero-section--landing {
    background-position: center 32%;
  }

  .home-hero-actions {
    width: 100%;
    padding-inline: 0.2rem;
  }

  .home-hero-actions .btn-get-started {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
  }

  .home-hero-wave-wrap {
    display: none;
  }

  .home-action-card {
    padding: 1.35rem 1.05rem 1.2rem;
  }

  .home-header-home-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
  }

  #header.home-header-public .home-brand {
    font-size: 0.86rem;
    gap: 0.35rem;
  }

  #header.home-header-public .home-brand > span {
    max-width: min(50vw, 10.5rem);
  }
}

@media (max-width: 575.98px) {
  .home-user-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-user-card__body {
    text-align: center;
    align-items: center;
  }

  .home-user-card__action {
    width: 100%;
  }

  .home-user-card__action .btn {
    width: 100%;
  }

  .home-form-user__submit {
    min-width: 0;
    width: 100%;
  }
}

/* Regna default back-to-top is brand green; glass pill on home bundle pages */
.back-to-top {
  background: linear-gradient(
    180deg,
    rgba(52, 62, 72, 0.88) 0%,
    rgba(36, 44, 52, 0.82) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), var(--home-glass-highlight-soft) !important;
  backdrop-filter: blur(14px) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(14px) var(--home-glass-saturate);
  bottom: max(15px, env(safe-area-inset-bottom, 0px) + 8px) !important;
  right: max(15px, env(safe-area-inset-right, 0px) + 4px) !important;
}
.back-to-top:hover {
  background: linear-gradient(
    180deg,
    rgba(64, 74, 84, 0.95) 0%,
    rgba(44, 52, 60, 0.9) 100%
  ) !important;
  color: #fff;
}

/* Livewire DOM updates don’t re-run AOS — neutralize any leftover data-aos in this tree */
.home-livewire [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---- Full-page preloader (initial load) + Livewire overlay ---- */
.home-preloader {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #0a1210 0%, #152a24 45%, var(--home-accent-deep, #1a7a5f) 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-preloader.home-preloader--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-preloader__inner {
  text-align: center;
  color: #fff;
}

.home-preloader__text {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.home-preloader__jumper {
  position: relative;
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.home-preloader__jumper > div {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: home-preloader-jump 1s linear infinite;
  animation-fill-mode: both;
}

.home-preloader__jumper > div:nth-child(2) {
  animation-delay: 0.33333s;
}

.home-preloader__jumper > div:nth-child(3) {
  animation-delay: 0.66666s;
}

@keyframes home-preloader-jump {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  5% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-preloader__jumper > div {
    animation: none;
    opacity: 0.85;
    transform: scale(1);
  }

  .home-preloader {
    transition: opacity 0.2s ease;
  }
}

/* Respect system “reduce transparency” (close to iOS accessibility) */
@media (prefers-reduced-transparency: reduce) {
  #hero.home-hero-section--landing .home-hero-inner::before,
  .home-hero-portraits figure,
  .home-hero-announcement,
  .home-hero-bulletin-card,
  .home-hero-fb-card,
  .home-action-card,
  .home-panel,
  .home-user-card,
  .home-landing-next::before,
  .home-landing-tile,
  .home-landing-tile__icon,
  .home-landing-next__eyebrow,
  .home-hub-card,
  .home-registration-note,
  .home-data-section .container > .card.card-body,
  .home-service-suspended__card,
  #header.home-header-public,
  #header.home-header-over-hero.header-scrolled,
  .home-header-home-btn,
  #hero.home-hero-section .btn-get-started.btn-quiz,
  #hero.home-hero-section .btn-get-started.btn-success,
  .back-to-top {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ---- Suspended user (blocked) — full page notice ---- */
.home-service-suspended {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
  min-height: 42vh;
}

.home-service-suspended__card {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.35rem) clamp(1.35rem, 4vw, 2rem) 1.5rem;
  background: linear-gradient(
    165deg,
    var(--home-glass-fill-light, rgba(255, 255, 255, 0.88)) 0%,
    rgba(255, 255, 255, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--home-radius-lg, 20px);
  box-shadow: var(--home-shadow-lg, 0 24px 60px rgba(15, 31, 28, 0.12)),
    var(--home-glass-highlight, inset 0 1px 0 rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  -webkit-backdrop-filter: blur(var(--home-glass-blur)) var(--home-glass-saturate);
  text-align: center;
  overflow: hidden;
}

.home-service-suspended__icon-wrap {
  margin-bottom: 1rem;
}

.home-service-suspended__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
}

.home-service-suspended__greeting {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 600;
  color: var(--home-ink, #0f1f1c);
  margin: 0 0 0.35rem;
  line-height: 1.55;
}

.home-service-suspended__greeting-mark {
  color: #dc3545;
  font-size: 1.1em;
  vertical-align: -0.12em;
  margin-inline-start: 0.35rem;
}

.home-service-suspended__rule {
  margin: 1rem auto;
  max-width: 85%;
  opacity: 0.35;
}

.home-service-suspended__body {
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  color: var(--home-muted, #5c6d67);
  margin: 0 0 1.25rem;
  line-height: 1.65;
}

.home-service-suspended__accent {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 3.5rem;
  height: 4px;
  border-radius: 3px 0 0 0;
  background: var(--home-accent, #2dc997);
}

.home-service-suspended__footer {
  padding-top: 0.25rem;
}

/* ---- Global responsive guardrails (public/home pages) ---- */
body.layout-home .home-livewire,
body.layout-home .home-livewire .container,
body.layout-home .home-livewire .row > [class*="col-"] {
  min-width: 0;
}

body.layout-home .home-livewire img,
body.layout-home .home-livewire video,
body.layout-home .home-livewire iframe,
body.layout-home .home-livewire canvas {
  max-width: 100%;
}

body.layout-home .home-livewire img {
  height: auto;
}

body.layout-home .home-livewire .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
  body.layout-home .home-livewire .card,
  body.layout-home .home-livewire .card-body {
    min-width: 0;
  }

  body.layout-home .home-livewire .input-group {
    flex-wrap: wrap;
  }

  body.layout-home .home-livewire .input-group > .form-control,
  body.layout-home .home-livewire .input-group > .form-select,
  body.layout-home .home-livewire .input-group > .btn,
  body.layout-home .home-livewire .input-group > .input-group-text {
    width: 100%;
    border-radius: 0.45rem !important;
    margin-top: 0.35rem;
  }

  body.layout-home .home-livewire .input-group > :first-child {
    margin-top: 0;
  }
}