/* Help centre (contact.html): instant search suggestions, popular questions,
   per-answer actions and contact-form suggestions. Self-contained so it does
   not depend on Tailwind classes being present in the purged build. */

/* Search suggestions (combobox listbox) */
.hc-suggest { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; max-height: min(26rem, 70vh); overflow-y: auto; padding: 6px; border-radius: 18px; background: #fff; color: #0f172a; box-shadow: 0 24px 48px rgb(15 23 42 / .22), 0 0 0 1px rgb(15 23 42 / .06); text-align: left; }
.hc-suggest-head { margin: 6px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.hc-option { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.hc-option:hover, .hc-option[aria-selected="true"] { background: #eef2ff; }
.hc-option-icon { flex: 0 0 32px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #eef2ff; color: #4338ca; font-size: 15px; font-weight: 800; }
.hc-option-text { min-width: 0; }
.hc-option-cat { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6366f1; }
.hc-option-title { display: block; font-size: 15px; font-weight: 650; line-height: 1.4; color: #0f172a; }
.hc-option mark, .knowledge-title mark { padding: 0 1px; border-radius: 3px; background: #fde68a; color: inherit; }
.hc-option--device .hc-option-icon { background: #ecfdf5; color: #047857; }
.hc-option--all { justify-content: center; margin-top: 2px; border-top: 1px solid #e2e8f0; border-radius: 0 0 12px 12px; font-size: 14px; font-weight: 700; color: #4338ca; }

/* Popular questions */
.hc-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.hc-popular-label { margin-inline-end: 4px; font-size: 13px; font-weight: 700; color: #c7d2fe; }
.hc-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; background: rgb(255 255 255 / .1); color: #fff; font-size: 14px; font-weight: 650; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.hc-chip:hover { background: rgb(255 255 255 / .2); border-color: rgb(255 255 255 / .5); }
.hc-chip:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

/* Category counts on the existing filter buttons */
.hc-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; background: rgb(15 23 42 / .08); font-size: 12px; font-weight: 700; }
.knowledge-filter[aria-pressed="true"] .hc-count { background: rgb(255 255 255 / .22); }

/* Article focus flash and actions */
.knowledge-article.hc-flash { animation: hc-flash 1.6s ease-out; }
@keyframes hc-flash { 0%, 30% { box-shadow: 0 0 0 4px rgb(165 180 252 / .9); } 100% { box-shadow: 0 1px 2px rgb(15 23 42 / .05); } }
.knowledge-article { scroll-margin-top: 96px; }
.hc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e2e8f0; font-size: 14px; }
.hc-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #475569; font-weight: 600; }
.hc-feedback button, .hc-copy { min-height: 36px; padding: 4px 14px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: #334155; cursor: pointer; }
.hc-feedback button:hover, .hc-copy:hover { border-color: #818cf8; color: #4338ca; }
.hc-feedback-done { color: #047857; font-weight: 700; }
.hc-feedback-sorry { color: #4338ca; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.knowledge-answer .hc-feedback-sorry { text-decoration-color: #a5b4fc; }

/* Contact form suggestions: quiet, dismissible, never blocks sending */
.hc-form-suggest { padding: 16px; border: 1px solid #c7d2fe; border-radius: 16px; background: #f5f7ff; }
.hc-form-suggest-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hc-form-suggest-title { margin: 0; font-size: 14px; font-weight: 800; color: #312e81; }
.hc-link-button { min-height: 32px; padding: 0 6px; border: 0; background: none; font-size: 13px; font-weight: 700; color: #4338ca; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hc-form-suggest-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.hc-form-suggest-list li { border: 1px solid #e0e7ff; border-radius: 12px; background: #fff; }
.hc-form-suggest-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 12px; background: none; font-size: 14px; font-weight: 700; color: #0f172a; text-align: left; cursor: pointer; }
.hc-form-suggest-toggle::after { content: "+"; flex: 0 0 auto; font-size: 18px; color: #4338ca; transition: transform .15s ease; }
.hc-form-suggest-toggle[aria-expanded="true"]::after { transform: rotate(45deg); }
.hc-form-suggest-answer { padding: 0 14px 14px; font-size: 14px; line-height: 1.6; color: #475569; }
.hc-form-suggest-answer a { color: #4338ca; font-weight: 600; text-decoration: underline; }
.hc-solved { margin-top: 10px; min-height: 36px; padding: 4px 14px; border: 1px solid #a7f3d0; border-radius: 999px; background: #ecfdf5; font-size: 13px; font-weight: 700; color: #065f46; cursor: pointer; }
.hc-form-suggest-note { margin: 10px 0 0; font-size: 12px; color: #64748b; }
.hc-form-suggest-solved { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #ecfdf5; font-size: 14px; font-weight: 700; color: #065f46; }

@media (max-width: 640px) {
  .hc-suggest { max-height: 55vh; }
  .hc-actions { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .knowledge-article.hc-flash { animation: none; }
}

/* Expanding one answer should not stretch the card beside it. */
#knowledge-results { align-items: start; }

/* Hero: search on the left, quick help on the right */
.hc-hero-grid { display: grid; gap: 32px; align-items: center; }
.hc-hero-main { min-width: 0; }
@media (min-width: 1024px) { .hc-hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
.hc-quick { padding: 20px; border: 1px solid rgb(255 255 255 / .18); border-radius: 22px; background: rgb(255 255 255 / .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgb(15 23 42 / .18); }
.hc-quick-title { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c7d2fe; }
.hc-quick-link { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px; border-radius: 14px; color: #fff; font-weight: 700; text-decoration: none; transition: background-color .15s ease; }
.hc-quick-link + .hc-quick-link { margin-top: 4px; }
.hc-quick-link:hover { background: rgb(255 255 255 / .12); }
.hc-quick-link:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.hc-quick-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #4338ca; }
.hc-quick-icon svg { width: 20px; height: 20px; }
.hc-quick-arrow { margin-inline-start: auto; color: #c7d2fe; transition: transform .15s ease; }
.hc-quick-link:hover .hc-quick-arrow { transform: translateX(3px); }
[dir="rtl"] .hc-quick-arrow { transform: scaleX(-1); }
[dir="rtl"] .hc-quick-link:hover .hc-quick-arrow { transform: scaleX(-1) translateX(3px); }

/* Knowledge base: the 12 most useful answers first */
.knowledge-article.hc-collapsed { display: none; }
.hc-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.hc-more { min-height: 48px; padding: 10px 24px; border: 1px solid #c7d2fe; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 800; color: #4338ca; box-shadow: 0 1px 2px rgb(15 23 42 / .05); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.hc-more:hover { border-color: #818cf8; box-shadow: 0 8px 20px rgb(15 23 42 / .07); }
.hc-more:focus-visible { outline: 3px solid #6366f1; outline-offset: 3px; }

/* Contact: email option */
.hc-email { display: flex; gap: 16px; padding: 16px; border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0; }
.hc-email .hc-quick-icon { background: #eef2ff; }
.hc-email-link { display: inline-block; margin-top: 6px; font-weight: 800; color: #4338ca; text-decoration: underline; text-decoration-color: #a5b4fc; text-underline-offset: 4px; overflow-wrap: anywhere; }
