/* ============================================================================
   PMC FLOATING WIDGETS — ARIA + Email windows that travel every page.
   House style: light-blue glass, Inter, blue #03507c / red #c62828 (main.css).
   ============================================================================ */

.pmcw-dock {
  position: fixed;
  right: 18px;
  bottom: 84px; /* clear of page corner controls (send buttons, scroll FABs) */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9000;
}
.pmcw-dock.pmcw-dock-raised { bottom: 110px; } /* leave room for the public ARIA bubble */

.pmcw-launcher {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(73, 131, 189, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.pmcw-launcher:hover { transform: scale(1.08); background: rgba(3, 80, 124, 0.75); }
.pmcw-launcher.pmcw-active { background: rgba(3, 80, 124, 0.85); }
.pmcw-launcher img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.pmcw-launcher.pmcw-active img { box-shadow: inset 0 0 0 2px #03507c; }
.pmcw-title-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -5px;
  margin-right: 2px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.pmcw-launcher .pmcw-tip {
  position: absolute;
  right: 62px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.pmcw-launcher:hover .pmcw-tip { opacity: 1; }

.pmcw-window {
  position: fixed;
  display: none;
  flex-direction: column;
  min-width: 320px;
  min-height: 360px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  z-index: 9100;
}
.pmcw-window.pmcw-open { display: flex; }
.pmcw-window.pmcw-front { z-index: 9200; }

.pmcw-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(73, 131, 189, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
  font-family: "Inter", -apple-system, sans-serif;
}
.pmcw-titlebar:active { cursor: grabbing; }
.pmcw-title { flex: 1; font-size: 13px; font-weight: 800; color: #000; letter-spacing: 0.3px; }
.pmcw-title span { color: #c62828; }
.pmcw-btn {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  color: rgba(0, 0, 0, 0.7);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pmcw-btn:hover { background: #fff; color: #000; }

.pmcw-body { flex: 1; min-height: 0; position: relative; }
.pmcw-body iframe { width: 100%; height: 100%; border: none; display: block; background: #fff; }
.pmcw-body.pmcw-noevents iframe { pointer-events: none; }

.pmcw-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  cursor: nwse-resize;
  z-index: 5;
  background:
    linear-gradient(135deg, transparent 50%, rgba(3, 80, 124, 0.55) 50%);
  border-bottom-right-radius: 12px;
}

/* Public contact form (inline, no iframe) */
.pmcw-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Inter", -apple-system, sans-serif;
  overflow-y: auto;
}
.pmcw-form h3 { font-size: 15px; font-weight: 800; color: #000; }
.pmcw-form p { font-size: 12.5px; color: rgba(0, 0, 0, 0.6); line-height: 1.5; }
.pmcw-form input, .pmcw-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-family: inherit;
  font-size: 13.5px;
}
.pmcw-form input:focus, .pmcw-form textarea:focus { outline: none; border-color: #03507c; }
.pmcw-form textarea { resize: vertical; min-height: 110px; }
.pmcw-form button {
  padding: 10px;
  background: #03507cd9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.pmcw-form button:hover { background: #03507c; }
.pmcw-form .pmcw-note { font-size: 12px; font-weight: 600; }
.pmcw-form .pmcw-note.ok { color: rgba(2, 138, 59, 0.95); }
.pmcw-form .pmcw-note.err { color: #9b0202; }

@media (max-width: 760px) {
  .pmcw-window {
    left: 8px !important;
    right: 8px !important;
    top: 8px !important;
    bottom: 8px !important;
    width: auto !important;
    height: auto !important;
  }
  .pmcw-resize { display: none; }
}
