/* Contact float + QR overlays — aligned with dialjournal.com */
.contact-float {
  position: fixed;
  right: 18px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 90;
  display: grid;
  gap: 10px;
}
.contact-fab {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  background: #111;
  padding: 0;
}
.contact-fab svg {
  width: 24px;
  height: 24px;
  display: block;
}
.contact-fab--wa { background: #25d366; }
.contact-fab--tg { background: #2aabee; }
.contact-fab--wx { background: #09b83e; }
.contact-fab--mail { background: #111; }
.contact-fab:hover { transform: translateY(-1px); }

.contact-qr-overlay,
.wechat-overlay,
.mail-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
}
.contact-qr-overlay[hidden],
.wechat-overlay[hidden],
.mail-overlay[hidden] {
  display: none !important;
}
.contact-qr-card,
.wechat-card {
  position: relative;
  width: min(320px, 100%);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.contact-qr-card header,
.wechat-card header {
  margin: 0;
  padding: 14px 40px 14px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  word-break: break-word;
  background: #09b83e;
}
#whatsapp-overlay .contact-qr-card header { background: #25d366; }
#telegram-overlay .contact-qr-card header { background: #2aabee; }
#wechat-overlay .contact-qr-card header { background: #09b83e; }

.contact-qr-close,
.wechat-close,
.mail-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.contact-qr-card img,
.wechat-card img {
  width: min(260px, 78%);
  height: auto;
  margin: 22px auto 10px;
  display: block;
}
.contact-qr-card p,
.wechat-card p {
  margin: 0 0 16px;
  color: #888;
  font-size: 13px;
  line-height: 1.5;
}
.contact-qr-card small,
.wechat-card small {
  color: #555;
}
.contact-qr-link {
  display: inline-block;
  margin: 0 0 22px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.contact-qr-link:hover { opacity: 0.92; }

.mail-card {
  position: relative;
  width: min(440px, 100%);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.mail-card header {
  margin: 0;
  padding: 14px 44px 14px 18px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.mail-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.mail-form label {
  display: grid;
  gap: 6px;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mail-form input,
.mail-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ddd;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: #111;
  background: #fafafa;
  box-sizing: border-box;
}
.mail-form textarea {
  resize: vertical;
  min-height: 110px;
}
.mail-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.mail-form .btn-dark,
.mail-form button[type="submit"] {
  width: 100%;
  margin-top: 4px;
  border: 0;
  background: #111;
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.mail-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 13px;
  color: #666;
}
.mail-status.is-ok { color: #1a7a3a; }
.mail-status.is-error { color: #b42318; }

body.mail-open,
body.contact-qr-open,
body.wechat-open {
  overflow: hidden;
}
