/* Stage 4.4: Feedback tab + WhatsApp button (public and customer pages). */
.pm-help { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.pm-help-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
  background: #123b5d; color: #fff; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(18, 59, 93, .6); transition: background .15s, transform .15s;
}
.pm-help-btn:hover { background: #2f5d8a; transform: translateY(-1px); }
.pm-help-btn:focus-visible, .pm-help-item:focus-visible, .pm-fb-send:focus-visible, .pm-fb-x:focus-visible { outline: 3px solid #45b5e6; outline-offset: 2px; }
.pm-help-close { display: none; }
.pm-help.is-open .pm-help-open { display: none; }
.pm-help.is-open .pm-help-close { display: block; }
.pm-help-menu {
  width: min(300px, calc(100vw - 32px)); background: #fff; border-radius: 16px; padding: 8px;
  box-shadow: 0 24px 56px -18px rgba(18, 59, 93, .5), 0 0 0 1px rgba(18, 59, 93, .06);
  animation: pm-help-in .16s ease-out;
}
.pm-help-menu[hidden] { display: none; }
@keyframes pm-help-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pm-help-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px;
  background: none; color: #123b5d; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.pm-help-item:hover { background: #eef5fa; }
.pm-help-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e6eef5; color: #2f5d8a; }
.pm-help-ico--wa { background: #1f7a4d; color: #fff; }
.pm-help-words { display: flex; flex-direction: column; line-height: 1.3; }
.pm-help-words strong { font-size: .98rem; }
.pm-help-words small { font-size: .85rem; color: #4a6378; }
@media (prefers-reduced-motion: reduce) { .pm-help-menu { animation: none; } .pm-help-btn { transition: none; } }
.pm-fb { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 24px)); box-shadow: 0 24px 60px -16px rgba(18, 59, 93, .45); color: #123b5d; }
.pm-fb::backdrop { background: rgba(10, 24, 38, .45); }
.pm-fb-form { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; font-size: 1rem; }
.pm-fb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pm-fb-head h2 { margin: 0; font-size: 1.25rem; color: #123b5d; }
.pm-fb-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f5f7f5; color: #123b5d; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pm-fb-stars { border: 0; padding: 0; margin: 0 0 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.pm-fb-stars legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.pm-fb-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pm-fb-stars label { font-size: 2rem; line-height: 1; color: #c6d0d9; cursor: pointer; padding: 2px 3px; border-radius: 8px; }
.pm-fb-stars label:hover, .pm-fb-stars label:hover ~ label { color: #c6d0d9; }
.pm-fb-stars:hover label { color: #e3a33b; }
.pm-fb-stars label:hover ~ label { color: #c6d0d9; }
.pm-fb-stars input:checked + label, .pm-fb-stars label:has(~ input:checked) { color: #e3a33b; }
.pm-fb-stars input:focus-visible + label { outline: 3px solid #45b5e6; }
.pm-fb-form > label { font-weight: 600; font-size: .95rem; margin-top: 6px; }
.pm-fb-form textarea, .pm-fb-form input[type="email"] { width: 100%; font: inherit; padding: .6em .75em; border: 1px solid #a29278; border-radius: 8px; color: #123b5d; background: #fff; }
.pm-fb-form textarea:focus, .pm-fb-form input[type="email"]:focus { outline: none; border-color: #45b5e6; box-shadow: 0 0 0 3px rgba(69, 181, 230, .22); }
.pm-fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pm-fb-msg { margin: 6px 0 0; min-height: 1.3em; font-weight: 600; max-width: none; }
.pm-fb-msg.is-ok { color: #2c744e; }
.pm-fb-msg.is-err { color: #b3261e; }
.pm-fb-send { margin-top: 8px; background: #2f5d8a; color: #fff; border: 0; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.pm-fb-send:hover { background: #123b5d; }
.pm-fb-send:disabled { opacity: .6; }
@media (max-width: 639px) {
  .pm-help { right: 14px; bottom: 14px; }
  .pm-help-btn { width: 52px; padding: 0; justify-content: center; }
  .pm-help-text { display: none; }
}
@media print { .pm-help { display: none; } }
