/* IlajIndia — Premium top contact bar (reference-matched, mobile-first) */

.ilj-cbar {
  --cbar-navy: #071428;
  --cbar-edge: rgba(80, 190, 255, 0.55);
  --cbar-glow: rgba(70, 210, 160, 0.35);
  --cbar-wa: #25d366;
  --cbar-call: #1a73e8;
  --cbar-imo: #3b3f9c;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent;
  padding: 8px 10px 0;
}

.ilj-cbar *,
.ilj-cbar *::before,
.ilj-cbar *::after {
  box-sizing: border-box;
}

.ilj-cbar__shell {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.ilj-cbar__bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1c36 0%, #06101f 100%);
  border: 1.5px solid var(--cbar-edge);
  box-shadow:
    0 0 0 1px rgba(60, 220, 160, 0.12),
    0 0 18px rgba(40, 180, 255, 0.22),
    0 0 28px rgba(40, 210, 150, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

.ilj-cbar__icons {
  display: flex;
  align-items: stretch;
  flex: 0 0 40%;
  max-width: 42%;
  min-width: 0;
  height: 100%;
  position: relative;
  z-index: 1;
}

.ilj-cbar__seg {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  margin: 0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

.ilj-cbar__seg svg {
  width: clamp(18px, 5.2vw, 24px);
  height: clamp(18px, 5.2vw, 24px);
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.ilj-cbar__seg--wa {
  background:
    radial-gradient(ellipse 70% 80% at 45% 45%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(160deg, #2fe075 0%, #1ebe57 55%, #18a34a 100%);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 100%, 0 100%);
  z-index: 3;
}

.ilj-cbar__seg--call {
  background:
    radial-gradient(ellipse 70% 80% at 50% 45%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(160deg, #3d8dff 0%, #1a73e8 55%, #0d5ecf 100%);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 100%, 9px 100%);
  margin-inline-start: -9px;
  padding-inline-start: 9px;
  z-index: 2;
}

.ilj-cbar__seg--imo {
  background:
    radial-gradient(ellipse 70% 80% at 50% 45%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(160deg, #5558c4 0%, #3b3f9c 55%, #2f327f 100%);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 100%, 9px 100%);
  margin-inline-start: -9px;
  padding-inline-start: 9px;
  z-index: 1;
}

.ilj-cbar__seg:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: -2px;
}

.ilj-cbar__rule {
  flex: 0 0 1px;
  width: 1px;
  align-self: stretch;
  margin-block: 12px;
  margin-inline-end: 2px;
  background: rgba(148, 163, 184, 0.35);
}

.ilj-cbar__num {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px 0 6px;
  color: #fff;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 5.1vw, 26px);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* —— Tablet+ —— */
@media (min-width: 640px) {
  .ilj-cbar {
    padding: 10px 16px 0;
  }

  .ilj-cbar__bar {
    height: 72px;
    border-radius: 20px;
  }

  .ilj-cbar__icons {
    flex-basis: 38%;
    max-width: 40%;
  }

  .ilj-cbar__seg--wa {
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
  }

  .ilj-cbar__seg--call,
  .ilj-cbar__seg--imo {
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%);
    margin-inline-start: -14px;
    padding-inline-start: 14px;
  }

  .ilj-cbar__seg svg {
    width: 28px;
    height: 28px;
  }

  .ilj-cbar__num {
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: 0.06em;
    padding-inline: 16px;
  }

  .ilj-cbar__rule {
    margin-block: 16px;
  }
}

/* —— Desktop —— */
@media (min-width: 1024px) {
  .ilj-cbar {
    padding: 12px 20px 0;
  }

  .ilj-cbar__shell {
    max-width: var(--site-container-w, 1120px);
  }

  .ilj-cbar__bar {
    height: 96px;
    border-radius: 28px;
    border-width: 2px;
    box-shadow:
      0 0 0 1px rgba(60, 220, 160, 0.14),
      0 0 26px rgba(40, 180, 255, 0.28),
      0 0 40px rgba(40, 210, 150, 0.14),
      0 12px 28px rgba(0, 0, 0, 0.3);
  }

  .ilj-cbar__icons {
    flex-basis: 36%;
    max-width: 380px;
  }

  .ilj-cbar__seg--wa {
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%);
  }

  .ilj-cbar__seg--call,
  .ilj-cbar__seg--imo {
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 22px 100%);
    margin-inline-start: -22px;
    padding-inline-start: 22px;
  }

  .ilj-cbar__seg svg {
    width: 40px;
    height: 40px;
  }

  .ilj-cbar__num {
    font-size: clamp(42px, 4.2vw, 56px);
    letter-spacing: 0.08em;
    padding-inline: 24px;
  }

  .ilj-cbar__rule {
    margin-block: 22px;
  }
}

/* IMO fallback popup */
.ilj-imo-modal[hidden] {
  display: none !important;
}

.ilj-imo-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.ilj-imo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 20, 0.55);
}

.ilj-imo-modal__panel {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  padding: 22px 20px 18px;
  border-radius: 16px;
  background: #0b1c36;
  border: 1px solid rgba(80, 190, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  color: #fff;
  text-align: center;
}

.ilj-imo-modal__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.ilj-imo-modal__num {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.ilj-imo-modal__hint {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.4;
}

.ilj-imo-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.ilj-imo-modal__btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  background: #1a73e8;
  color: #fff;
}

.ilj-imo-modal__btn--ghost {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

html[dir="rtl"] .ilj-cbar__seg--wa {
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%);
}

html[dir="rtl"] .ilj-cbar__seg--call,
html[dir="rtl"] .ilj-cbar__seg--imo {
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%);
  margin-inline-start: 0;
  margin-inline-end: -9px;
  padding-inline-start: 0;
  padding-inline-end: 9px;
}

@media (min-width: 640px) {
  html[dir="rtl"] .ilj-cbar__seg--wa {
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
  }

  html[dir="rtl"] .ilj-cbar__seg--call,
  html[dir="rtl"] .ilj-cbar__seg--imo {
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
    margin-inline-end: -14px;
    padding-inline-end: 14px;
  }
}

@media (min-width: 1024px) {
  html[dir="rtl"] .ilj-cbar__seg--wa {
    clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  }

  html[dir="rtl"] .ilj-cbar__seg--call,
  html[dir="rtl"] .ilj-cbar__seg--imo {
    clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
    margin-inline-end: -22px;
    padding-inline-end: 22px;
  }
}
