/* Copyright 2026 Nabtech Digitalnet Limited. Proprietary.
 * Bot protection on client pages. Follows the active theme (its text colour, link colour and fonts through
 * currentColor and inherit), wraps on narrow screens, never scrolls sideways. */
.nt-captcha-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.nt-captcha-box { border: 1px solid rgba(127, 127, 127, .35); border-radius: 10px; padding: 12px 14px; margin: 12px 0; max-width: 100%; box-sizing: border-box; min-width: 0; }
.nt-captcha-box legend { font-size: 1rem; font-weight: 600; padding: 0 6px; margin: 0; width: auto; border: 0; }
.nt-captcha-box p { margin: 0 0 8px; }
.nt-captcha-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; max-width: 100%; }
.nt-captcha-tile { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 4px; background: #fff; border: 2px solid rgba(127, 127, 127, .35); border-radius: 8px; cursor: pointer; }
.nt-captcha-tile img { display: block; width: 56px; height: 56px; max-width: 100%; }
.nt-captcha-tile[aria-checked="true"] { border-color: currentColor; box-shadow: 0 0 0 3px rgba(37, 99, 235, .35); }
.nt-captcha-alt { margin-top: 8px; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.nt-captcha-text { margin-top: 8px; display: grid; gap: 6px; }
.nt-captcha-text[hidden] { display: none; }
.nt-captcha-text input { max-width: 12rem; padding: 6px 10px; border: 1px solid rgba(127, 127, 127, .5); border-radius: 6px; font: inherit; }

/* The visible "I am not a robot" box. --ntc-accent is the form's own send-button colour, so each theme keeps its look. */
.nt-captcha-check { --ntc-accent: #2563eb; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px;
  margin: 12px 0; padding: 10px 12px; border: 1px solid rgba(127, 127, 127, .35); border-radius: 10px; max-width: 360px; box-sizing: border-box; }
.nt-captcha-tick { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.nt-captcha-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px;
  border: 2px solid rgba(127, 127, 127, .6); border-radius: 6px; background: #fff; color: #fff; transition: background .2s ease, border-color .2s ease; }
.nt-captcha-mark svg { opacity: 0; }
.nt-captcha-mark svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.nt-captcha-tick.is-busy .nt-captcha-mark { border-color: var(--ntc-accent); border-right-color: transparent; border-radius: 50%; animation: nt-captcha-spin .8s linear infinite; }
.nt-captcha-tick[aria-checked="true"] .nt-captcha-mark { background: var(--ntc-accent); border-color: var(--ntc-accent); }
.nt-captcha-tick[aria-checked="true"] .nt-captcha-mark svg { opacity: 1; }
.nt-captcha-tick[aria-checked="true"] .nt-captcha-mark svg path { animation: nt-captcha-draw .35s ease-out forwards; }
.nt-captcha-brand { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; opacity: .75; color: var(--ntc-accent); }
@keyframes nt-captcha-spin { to { transform: rotate(360deg); } }
@keyframes nt-captcha-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .nt-captcha-tick.is-busy .nt-captcha-mark { animation-duration: 2.4s; }
  .nt-captcha-tick[aria-checked="true"] .nt-captcha-mark svg path { animation: none; stroke-dashoffset: 0; }
}

.nt-captcha-toasts { position: fixed; z-index: 100000; right: 16px; bottom: 16px; left: auto; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.nt-captcha-toast { background: #1e293b; color: #fff; padding: 12px 14px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; transition: opacity .3s ease; }
.nt-captcha-toast.is-bad { background: #9f1239; }
.nt-captcha-toast.is-gone { opacity: 0; }
@media (max-width: 480px) { .nt-captcha-toasts { right: 12px; left: 12px; max-width: none; } }

.nt-captcha-noscript { margin: 12px auto; max-width: 960px; padding: 0 16px; text-align: center; }

/* The no-JavaScript page (stands alone, no theme). */
.nt-captcha-page { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #f1f5f9; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #0f172a; overflow-x: hidden; }
.nt-captcha-card { background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); padding: 28px; width: min(440px, calc(100vw - 32px)); box-sizing: border-box; }
.nt-captcha-card h1 { font-size: 1.3rem; margin: 0 0 12px; }
.nt-captcha-card form { display: grid; gap: 10px; }
.nt-captcha-card input { padding: 10px 12px; border: 1px solid #94a3b8; border-radius: 8px; font: inherit; }
.nt-captcha-btn { display: inline-block; background: #1d4ed8; color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.nt-captcha-alert { background: #fff1f2; color: #9f1239; border-radius: 8px; padding: 8px 12px; }

/* Scrollbars: 3px, shown only while the area is hovered (WebKit/Blink); Firefox in its own feature query. */
.nt-captcha-tiles::-webkit-scrollbar { width: 3px; height: 3px; }
.nt-captcha-tiles::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.nt-captcha-tiles:hover::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .55); }
@supports (-moz-appearance: none) {
  .nt-captcha-tiles { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  .nt-captcha-tiles:hover { scrollbar-color: rgba(100, 116, 139, .55) transparent; }
}
