/* Revathi WhatsApp consultation pop-up - isolated component. */

.consultation-popup {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 960;
  box-sizing: border-box;
  width: min(320px, calc(100vw - 40px));
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(21, 94, 239, 0.16);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(11, 27, 69, 0.18);
  color: #0B1B45;
  font-family: inherit;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.consultation-popup[hidden] {
  display: none !important;
}

.consultation-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.consultation-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #EEF4FF;
  color: #155EEF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.consultation-popup__close:hover {
  background: #155EEF;
  color: #FFFFFF;
}

.consultation-popup__close:focus-visible,
.consultation-popup__cta:focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.28);
  outline-offset: 2px;
}

.consultation-popup__header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 24px;
}

.consultation-popup__icon {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #155EEF;
  color: #FFFFFF;
  box-shadow: 0 5px 12px rgba(21, 94, 239, 0.24);
}

.consultation-popup__name {
  display: block;
  color: #0B1B45;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.consultation-popup__role {
  display: block;
  margin-top: 2px;
  color: #5B6B8C;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.consultation-popup__message {
  margin: 14px 0 16px;
  color: #31415F;
  font-size: 13px;
  line-height: 1.5;
}

.consultation-popup__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #155EEF;
  box-shadow: 0 6px 14px rgba(21, 94, 239, 0.24);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.consultation-popup__cta:hover {
  background: #0F4FD1;
  box-shadow: 0 8px 18px rgba(21, 94, 239, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .consultation-popup {
    right: max(20px, env(safe-area-inset-right)) !important;
    bottom: calc(max(20px, env(safe-area-inset-bottom)) + 66px) !important;
    width: min(320px, calc(100vw - 40px));
    padding: 16px;
    border-radius: 16px;
  }

  .consultation-popup__message {
    margin: 12px 0 14px;
    font-size: 12.5px;
  }

  .consultation-popup__cta {
    min-height: 44px;
    font-size: 12.5px;
  }
}

@media (max-width: 360px) {
  .consultation-popup {
    right: 16px !important;
    width: calc(100vw - 32px);
  }
}
