/* Employee contact modal: loading state + fade-in animation */

.jl-contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 9999;
}

.jl-contact-modal.is-open {
  display: flex;
}

.jl-contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.jl-contact-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 716px;
  margin: 0;
  background: transparent;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  border: none;
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  padding: 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.jl-contact-modal.is-open .jl-contact-modal__dialog {
  opacity: 1;
  transform: translateY(0);
}

.jl-contact-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 2;
  color: rgba(55, 109, 137, 0.9);
  cursor: pointer;
  padding: 0.25rem;
}

.jl-contact-modal__close:hover {
  color: var(--jl-emp-accent);
}

.jl-contact-modal__content {
  padding: 0;
  background-image: none;
  background-color: #fff;
}

/* Loading state */
.jl-contact-modal__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--jl-emp-muted);
}

.jl-contact-modal__spinner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid rgba(55, 109, 137, 0.15);
  border-top-color: var(--jl-emp-accent);
  animation: jl-contact-spin 0.8s linear infinite;
  margin-right: 0.75rem;
}

@keyframes jl-contact-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Contact card (minimal layout) */
.jl-emp-contact-card {
  position: relative;
  border-radius: 16px !important;
  overflow: hidden;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;

  width: 100%;
  display: block;

  background: #f5f7fa !important;
  /* Background template image that covers the whole card. */
  background-image: url("../1-1ecae692-21e3-4091-91ee-b580b7be3ba1.png");
  background-size: cover;
  background-position: center;
}

.jl-emp-contact-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem;
  min-height: 260px;
}

.jl-emp-contact-card__avatar-wrap {
  width: 172px;
  height: 172px;
  border-radius: 999px;
  background: #ffffff;
  border: 6px solid #0b4b6b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  flex: 0 0 auto;
  overflow: hidden;
}

.jl-emp-contact-card__avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.jl-emp-contact-card__divider-col {
  flex: 0 0 auto;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(11, 75, 107, 0.65);
}

.jl-emp-contact-card__divider-star {
  font-size: 22px;
  line-height: 1;
}

.jl-emp-contact-card__divider-line {
  width: 2px;
  height: 118px;
  background: rgba(11, 75, 107, 0.25);
  display: block;
}

.jl-emp-contact-card__content-col {
  min-width: 0;
  flex: 1 1 auto;
}

.jl-emp-contact-card__name {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0b4b6b;
  line-height: 1;
  text-transform: uppercase;
}

.jl-emp-contact-card__role {
  margin: 0.25rem 0 1rem;
  color: rgba(11, 75, 107, 0.55);
  /* font-family: "Brush Script MT", "Segoe Script", cursive; */
  font-size: 1.2rem;
  font-weight: 400;
}

.jl-emp-contact-card__rows {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.jl-emp-contact-card__row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 1rem;
}

.jl-emp-contact-card__row-label {
  color: #0b4b6b;
  font-weight: 800;
  font-size: 1.25rem;
}

.jl-emp-contact-card__row-value {
  color: rgba(11, 75, 107, 0.55);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
}

.jl-emp-contact-card__row-value:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.jl-emp-contact-card__empty {
  margin: 0.5rem 0 0;
  color: rgba(11, 75, 107, 0.65);
  font-weight: 600;
}

@media (max-width: 520px) {
  .jl-emp-contact-card__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem 1.25rem;
  }

  .jl-emp-contact-card__avatar-wrap {
    width: 140px;
    height: 140px;
    border-width: 5px;
  }

  .jl-emp-contact-card__divider-col {
    width: 100%;
    flex-direction: row;
    gap: 1rem;
  }

  .jl-emp-contact-card__divider-line {
    width: 80%;
    height: 2px;
  }

  .jl-emp-contact-card__name {
    font-size: 2.2rem;
  }

  .jl-emp-contact-card__role {
    font-size: 1.05rem;
  }

  .jl-emp-contact-card__row {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .jl-emp-contact-card__row-label,
  .jl-emp-contact-card__row-value {
    font-size: 1.05rem;
  }
}
