/* HR CHAT WIDGET */
.hr-chat-launcher{
  position: fixed;
  right: 18px;
  bottom: 90px; /* 👈 move ABOVE WhatsApp */
  z-index: 9998;

  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  cursor: pointer;

  color: #081120;
  font-weight: 700;
  font-size: 14px;

  background: linear-gradient(135deg, #fff27a 0%, #ffd83a 26%, #f5b21a 58%, #d98a12 100%);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);

  transition: transform .25s ease, box-shadow .25s ease;
}
.hr-chat-launcher:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0,0,0,.34);
}

.hr-chat-launcher i{
  font-size: 16px;
}

.hr-chat-overlay{
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 24, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
  z-index: 9996;
}

.hr-chat-overlay.show{
  opacity: 1;
  visibility: visible;
}

.hr-chat-panel{
  position: fixed;
  top: 0;
  right: 0;
  width: 410px;
  max-width: 95%;
  height: 100vh;
  background: #ffffff;
  box-shadow: -18px 0 50px rgba(0,0,0,.20);
  transform: translateX(105%);
  transition: transform .35s ease;
  z-index: 9997;
  overflow-y: auto;
}

.hr-chat-panel.show{
  transform: translateX(0);
}

.hr-chat-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  background: #081120;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hr-chat-agent{
  display: flex;
  align-items: center;
  gap: 12px;
}

.hr-chat-agent img{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,216,58,.45);
}
/* Female badge */
.hr-chat-agent::after{
  content: "\f182"; /* 👩 female icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;

  position: absolute;
  bottom: 0;
  left: 32px;

  width: 20px;
  height: 20px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  color: #fff;

  background: linear-gradient(135deg, #ff6aa2, #ff3c7e);
  border: 2px solid #081120;
  z-index: 2;
}
.hr-chat-agent h4{
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.hr-chat-agent p{
  margin: 3px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.hr-chat-close,
.hr-modal-close{
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.hr-chat-body{
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(47,107,255,.07), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hr-chat-intro{
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8,17,32,.08);
  margin-bottom: 16px;
}

.hr-chat-intro h5,
.hr-chat-card h5{
  margin: 0 0 8px;
  color: #081120;
}

.hr-chat-intro p,
.hr-chat-card p{
  margin: 0;
  color: #566072;
  font-size: 14px;
  line-height: 1.7;
}

.hr-chat-actions{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.hr-action-btn{
  border: none;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 16px;
  background: #fff;
  color: #081120;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(8,17,32,.08);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.hr-action-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(8,17,32,.12);
}

.hr-action-btn i{
  font-size: 18px;
  color: #1f4fd1;
}

.hr-chat-card{
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(8,17,32,.08);
  margin-bottom: 16px;
}

.hr-chat-card-top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hr-chat-card-top img{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.hr-chat-card-top small{
  color: #6c7483;
}

.hr-inline-form{
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(8,17,32,.08);
}

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hr-inline-form input,
.hr-inline-form textarea,
.hr-modal-form input,
.hr-modal-form textarea{
  width: 100%;
  border: 1px solid #dde5f0;
  border-radius: 14px;
  padding: 14px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #081120;
  outline: none;
  margin-bottom: 12px;
  background: #fff;
}

.hr-inline-form input:focus,
.hr-inline-form textarea:focus,
.hr-modal-form input:focus,
.hr-modal-form textarea:focus{
  border-color: #1f4fd1;
  box-shadow: 0 0 0 4px rgba(31,79,209,.08);
}

.hr-submit-btn{
  width: 100%;
  justify-content: center;
}

.hr-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 12, 24, 0.62);
  z-index: 10000;
  padding: 18px;
}

.hr-modal.show{
  display: flex;
}

.hr-modal-box{
  position: relative;
  width: 520px;
  max-width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 28px 60px rgba(0,0,0,.28);
}

.hr-modal-close{
  position: absolute;
  top: 14px;
  right: 16px;
  color: #556070;
}

.hr-modal-agent{
  text-align: center;
  margin-bottom: 16px;
}

.hr-modal-agent img{
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.hr-modal-agent h4{
  margin: 0;
  color: #081120;
}

.hr-modal-agent p{
  margin: 5px 0 0;
  color: #667085;
  font-size: 14px;
}

.hr-modal-box h3{
  margin: 0 0 8px;
  text-align: center;
  color: #081120;
}

.hr-modal-sub{
  text-align: center;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}

@media (max-width: 640px){
  .hr-chat-actions{
    grid-template-columns: 1fr;
  }

  .form-grid{
    grid-template-columns: 1fr;
  }

  .hr-chat-launcher{
    right: 14px;
    bottom: 16px;
    padding: 13px 16px;
  }
}