/* RwandAir help & feedback hub (2026-10-15). Loaded only when RWX_FLAG_HELP_HUB is on for the visitor. */
.rwxh, .rwxh * { box-sizing: border-box; }
.rwxh {
  --b: #005daf; --b-dark: #00468a; --b-soft: #e8f1fa; --g: #94c746; --g-dark: #5e8f1f;
  --ink: #1b2533; --muted: #5a6575; --line: #dfe5ec; --bg: #f5f7fa; --err: #c62828; --err-soft: #fdecec;
  --warn-soft: #fff6e0; --ok-soft: #eef7e3; --r: 14px; --focus: 0 0 0 3px rgba(0, 93, 175, .35);
  position: fixed; inset: 0; z-index: 2147483000; font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
.rwxh[hidden] { display: none; }
.rwxh-ov { position: absolute; inset: 0; background: rgba(15, 23, 38, .5); opacity: 0; transition: opacity .2s ease; }
.rwxh.is-open .rwxh-ov { opacity: 1; }
.rwxh-sheet {
  position: absolute; top: 0; right: 0; height: 100%; height: 100dvh; width: min(520px, 100vw);
  background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(15, 23, 38, .18);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); outline: none;
}
.rwxh.is-open .rwxh-sheet { transform: none; }
@media (prefers-reduced-motion: reduce) { .rwxh-ov, .rwxh-sheet { transition: none; } }

/* header */
.rwxh-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--line); min-height: 64px; }
.rwxh-head h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: 0; line-height: 1.25; }
.rwxh-ib { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.rwxh-ib:hover { background: var(--bg); }
.rwxh-ib:focus-visible, .rwxh button:focus-visible, .rwxh a:focus-visible, .rwxh input:focus-visible, .rwxh textarea:focus-visible, .rwxh select:focus-visible { outline: none; box-shadow: var(--focus); }
.rwxh-ib svg { width: 22px; height: 22px; }
.rwxh-prog { height: 4px; background: var(--bg); }
.rwxh-prog i { display: block; height: 100%; width: 0; background: var(--b); transition: width .25s ease; }

/* body + footer */
.rwxh-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 28px; -webkit-overflow-scrolling: touch; }
.rwxh-foot { border-top: 1px solid var(--line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; background: #fff; }
.rwxh-foot[hidden] { display: none; }
.rwxh-foot .rwxh-note { flex: 1; font-size: 13px; color: var(--muted); }
.rwxh-btn { appearance: none; border: 0; border-radius: 999px; padding: 0 22px; height: 48px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.rwxh-btn-p { background: var(--b); color: #fff; min-width: 140px; }
.rwxh-btn-p:hover { background: var(--b-dark); }
.rwxh-btn-p[disabled] { background: #9db8d3; cursor: not-allowed; }
.rwxh-btn-s { background: #fff; color: var(--b); box-shadow: inset 0 0 0 1.5px var(--b); }
.rwxh-btn-s:hover { background: var(--b-soft); }
.rwxh-btn-t { background: transparent; color: var(--b); padding: 0 8px; }
.rwxh-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: rwxh-spin .8s linear infinite; }
@keyframes rwxh-spin { to { transform: rotate(360deg); } }

/* home */
.rwxh-lead { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.rwxh-cards { display: grid; gap: 12px; }
.rwxh-card { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rwxh-card:hover { border-color: var(--b); box-shadow: 0 6px 18px rgba(0, 93, 175, .10); }
.rwxh-card:active { transform: scale(.99); }
.rwxh-card .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--b-soft); color: var(--b); }
.rwxh-card .ic svg { width: 24px; height: 24px; }
.rwxh-card .ic.g { background: var(--ok-soft); color: var(--g-dark); }
.rwxh-card .ic.o { background: var(--warn-soft); color: #9a6a00; }
.rwxh-card b { display: block; font-size: 16px; margin-bottom: 2px; color: var(--ink); }
.rwxh-card span { display: block; color: var(--muted); font-size: 14px; }
.rwxh-card em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--b); background: var(--b-soft); border-radius: 999px; padding: 2px 9px; }
.rwxh-card .chev { margin-left: auto; align-self: center; color: #98a2b3; flex: none; }
.rwxh-alt { margin-top: 22px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); font-size: 14px; color: var(--muted); }
.rwxh-alt a { color: var(--b); font-weight: 700; }

/* form elements */
.rwxh-q { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.rwxh-sub { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.rwxh-f { margin: 0 0 16px; }
.rwxh-f label, .rwxh-lbl { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; color: var(--ink); }
.rwxh-f label small, .rwxh-lbl small { font-weight: 400; color: var(--muted); }
.rwxh-in { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: border-color .15s; }
textarea.rwxh-in { height: auto; min-height: 112px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.rwxh-in:hover { border-color: #b9c4d0; }
.rwxh-in:focus { border-color: var(--b); }
.rwxh-in::placeholder { color: #98a2b3; }
.rwxh-f.has-err .rwxh-in { border-color: var(--err); background: #fffafa; }
.rwxh-err { display: none; color: var(--err); font-size: 13px; margin-top: 6px; font-weight: 700; }
.rwxh-f.has-err .rwxh-err { display: block; }
.rwxh-hint { color: var(--muted); font-size: 13px; margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; }
.rwxh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .rwxh-row { grid-template-columns: 1fr; gap: 0; } }
.rwxh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rwxh-chip { appearance: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; cursor: pointer; min-height: 40px; }
.rwxh-chip:hover { border-color: var(--b); }
.rwxh-chip[aria-checked="true"], .rwxh-chip[aria-pressed="true"] { background: var(--b); border-color: var(--b); color: #fff; }
.rwxh-f.has-err .rwxh-chips .rwxh-chip { border-color: #f0b4b4; }
.rwxh-more { appearance: none; background: none; border: 0; color: var(--b); font: inherit; font-weight: 700; font-size: 14px; padding: 6px 0; cursor: pointer; }
.rwxh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* banners */
.rwxh-ban { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 16px; display: flex; gap: 10px; align-items: flex-start; }
.rwxh-ban.err { background: var(--err-soft); color: #8e1c1c; }
.rwxh-ban.info { background: var(--b-soft); color: #0b3d6b; }
.rwxh-ban svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.rwxh-ban button { margin-left: auto; }

/* big rating (quick feedback) */
.rwxh-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0 8px; }
.rwxh-face { appearance: none; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 2px 8px; cursor: pointer; font: inherit; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; line-height: 1.2; min-height: 84px; transition: all .15s; }
.rwxh-face svg { width: 34px; height: 34px; }
.rwxh-face:hover { border-color: var(--b); color: var(--ink); }
.rwxh-face[aria-checked="true"] { border-color: var(--b); background: var(--b-soft); color: var(--b-dark); font-weight: 700; }
.rwxh-reveal { animation: rwxh-in .25s ease; }
@keyframes rwxh-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* survey */
.rwxh-step { font-size: 13px; font-weight: 700; color: var(--b); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.rwxh-asp { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rwxh-asp:last-of-type { border-bottom: 0; }
.rwxh-asp .nm { font-size: 15px; font-weight: 700; min-width: 0; }
.rwxh-asp .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; min-height: 16px; }
.rwxh-stars { display: flex; gap: 2px; flex: none; }
.rwxh-star { appearance: none; border: 0; background: none; padding: 4px; width: 38px; height: 40px; cursor: pointer; color: #c8d0da; border-radius: 8px; display: grid; place-items: center; }
.rwxh-star svg { width: 28px; height: 28px; transition: transform .12s; }
.rwxh-star.on { color: #f5a623; }
.rwxh-star:hover svg { transform: scale(1.12); }
@media (max-width: 400px) { .rwxh-asp { flex-direction: column; align-items: flex-start; gap: 4px; } .rwxh-star { width: 44px; } }
.rwxh-count { font-size: 13px; color: var(--muted); }

/* result */
.rwxh-res { text-align: center; padding: 28px 8px 8px; }
.rwxh-res .badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--ok-soft); color: var(--g-dark); }
.rwxh-res .badge.q { background: var(--b-soft); color: var(--b); }
.rwxh-res .badge svg { width: 38px; height: 38px; }
.rwxh-res h3 { font-size: 22px; margin: 0 0 8px; }
.rwxh-res p { color: var(--muted); margin: 0 auto 18px; max-width: 380px; }
.rwxh-ref { display: inline-flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 12px; padding: 10px 10px 10px 16px; font-size: 14px; margin-bottom: 20px; }
.rwxh-ref b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .03em; }
.rwxh-ref button { appearance: none; border: 0; background: #fff; color: var(--b); font: inherit; font-weight: 700; font-size: 13px; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.rwxh-next { text-align: left; background: var(--bg); border-radius: var(--r); padding: 14px 16px; font-size: 14px; color: var(--muted); max-width: 420px; margin: 0 auto; }
.rwxh-next b { color: var(--ink); }

/* floating launcher (replaces the old green tab while the hub is on) */
.rwxh-launch { position: fixed; right: 18px; bottom: 18px; z-index: 2147482000; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--rwxh-b, #005daf); color: #fff; font: 700 15px/1 Lato, "Helvetica Neue", Arial, sans-serif; box-shadow: 0 8px 24px rgba(0, 45, 95, .28); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.rwxh-launch:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 45, 95, .34); }
.rwxh-launch:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #005daf; }
.rwxh-launch svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .rwxh-launch { right: 12px; bottom: 12px; height: 46px; padding: 0 14px 0 12px; } .rwxh-launch .t { display: none; } .rwxh-launch { padding: 0; width: 50px; justify-content: center; } }
html.rwxh-lock, html.rwxh-lock body { overflow: hidden !important; }

/* "Feedback & help" edge tab (replaces the old rotated "Share Feedback" button while the hub is on) */
html body #popup.feedback-button.rwxh-tab {
  position: fixed !important; right: 0 !important; left: auto !important; top: 50% !important; bottom: auto !important;
  transform: translateY(-50%) !important; width: auto !important; height: auto !important; margin: 0 !important;
  display: flex !important; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 9px 16px !important; border: 0 !important; border-radius: 14px 0 0 14px !important;
  background: linear-gradient(180deg, #a3d150 0%, #8bbf3d 100%) !important; color: #fff !important;
  box-shadow: -6px 8px 22px rgba(0, 45, 95, .22) !important; cursor: pointer; z-index: 2147482000 !important;
  font: 700 14px/1 Lato, "Helvetica Neue", Arial, sans-serif !important; letter-spacing: .02em;
  transition: padding .18s ease, box-shadow .18s ease, background .18s ease; -webkit-font-smoothing: antialiased;
}
html body #popup.rwxh-tab:hover { padding-right: 13px !important; background: linear-gradient(180deg, #96c642 0%, #7aae2e 100%) !important; box-shadow: -8px 10px 26px rgba(0, 45, 95, .3) !important; }
html body #popup.rwxh-tab:focus-visible { outline: 3px solid #005daf !important; outline-offset: 2px; }
html body #popup.rwxh-tab[aria-expanded="true"] { opacity: 0; pointer-events: none; }
#popup.rwxh-tab .rwxh-tab-ic { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; flex: none; }
#popup.rwxh-tab .rwxh-tab-ic svg { width: 19px; height: 19px; }
#popup.rwxh-tab .rwxh-tab-t { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; text-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
#popup.rwxh-tab.rwxh-tab-cjk .rwxh-tab-t { transform: none; letter-spacing: .12em; }
@media (max-width: 640px) {
  html body #popup.feedback-button.rwxh-tab { padding: 9px 6px 12px !important; gap: 7px; font-size: 12px !important; border-radius: 12px 0 0 12px !important; }
  #popup.rwxh-tab .rwxh-tab-ic { width: 26px; height: 26px; }
  #popup.rwxh-tab .rwxh-tab-ic svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) { html body #popup.rwxh-tab { transition: none; } }
