/* ==========================================================
   Scopus Peer Review Submission full-stack integrations
   Form feedback, spam honeypot, and floating WhatsApp button
   ========================================================== */

/* Keep the anti-spam field available to bots but invisible to visitors. */
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-status.success {
  color: #1e7a4b;
}

.form-status.error {
  color: #b42318;
}

/* A separate left-side launcher prevents overlap with the support chat. */
.peerpaper-whatsapp-launcher {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1095;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 38px rgba(12, 105, 55, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.peerpaper-whatsapp-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(12, 105, 55, 0.38);
}

.peerpaper-whatsapp-launcher svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .peerpaper-whatsapp-launcher {
    left: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}

/* Hidden anti-spam field: available to bots but not visible to visitors. */
.website-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Backend submission feedback shown below each enquiry form. */
.form-status.success {
  color: #16784b;
}

.form-status.error {
  color: #b42318;
}

button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

/* Keep the shared footer subscription message on its own row. */
.newsletter {
  flex-wrap: wrap;
}

.newsletter .form-status {
  flex: 0 0 100%;
  margin-top: 8px;
  color: #bcd1dc;
}

.newsletter .form-status.success {
  color: #8ed83f;
}

.newsletter .form-status.error {
  color: #ffb4ba;
}

/* Prevent the original back-to-top button from covering the chat launcher. */
.to-top {
  right: 92px;
}
