/* ============================================================
   Gladiator Accessibility Widget — Front-End Styles
   Sidebar Edition — WCAG 2.2 AAA / IS 5568
   ============================================================ */

/* ── Skip Link ────────────────────────────────────────────── */
.gac-skip-link {
    position: absolute;
    top: -100px;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: fit-content;
    background: #1560bd;
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 15px;
    z-index: 99999;
    text-decoration: none;
    transition: top .25s;
}

.gac-skip-link:focus {
    top: 0;
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

/* ── Widget Wrapper ───────────────────────────────────────── */
#gac-widget-wrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    pointer-events: none;
}

/* ── Overlay (backdrop) ───────────────────────────────────── */
.gac-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

#gac-widget-wrapper.gac-open .gac-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* ── Sidebar Panel ────────────────────────────────────────── */
.gac-panel {
    position: fixed !important;
    top: 0 !important;
    height: 100vh !important;
    width: 320px !important;
    max-width: 85vw !important;
    background: #fff !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    font-family: -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .25s ease, transform .32s cubic-bezier(.4, 0, .2, 1) !important;
}

.gac-panel-right {
    right: 0 !important;
    left: auto !important;
    transform: translateX(110%) !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0) !important;
}

.gac-panel-left {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-110%) !important;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0) !important;
}

#gac-widget-wrapper.gac-open .gac-panel {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
}

#gac-widget-wrapper.gac-open .gac-panel-right {
    box-shadow: -8px 0 40px rgba(0, 0, 0, .18) !important;
}

#gac-widget-wrapper.gac-open .gac-panel-left {
    box-shadow: 8px 0 40px rgba(0, 0, 0, .18) !important;
}

/* ── Floating Trigger Button ──────────────────────────────── */
.gac-trigger {
    position: fixed !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-decoration: none !important;
    background-image: none !important;
    padding: 14px 12px !important;
    border-radius: 16px !important;
    min-width: 54px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .22) !important;
    transition: opacity .2s, transform .15s !important;
    pointer-events: auto !important;
}

.gac-trigger:hover,
.gac-trigger:focus,
.gac-trigger:active {
    color: #fff !important;
    background-image: none !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    opacity: 1 !important;
}

.gac-trigger:focus-visible {
    outline: 3px solid #ffcc00 !important;
    outline-offset: 3px !important;
}

/* Horizontal position — offset from edge */
.gac-trigger-right {
    right: var(--gac-offset-x, 24px) !important;
    left: auto !important;
}

.gac-trigger-left {
    left: var(--gac-offset-x, 24px) !important;
    right: auto !important;
}

/* Vertical position */
.gac-trigger-bottom {
    bottom: var(--gac-offset-y, 24px) !important;
    top: auto !important;
}

.gac-trigger-top {
    top: var(--gac-offset-y, 24px) !important;
    bottom: auto !important;
}

.gac-trigger-center {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.gac-trigger.gac-trigger-center:hover,
.gac-trigger.gac-trigger-center:focus,
.gac-trigger.gac-trigger-center:active {
    transform: translateY(calc(-50% - 2px)) !important;
}

/* When panel is open, hide the trigger */
#gac-widget-wrapper.gac-open .gac-trigger {
    opacity: 0 !important;
    pointer-events: none !important;
}

.gac-trigger-icon {
    line-height: 1;
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gac-trigger-icon svg,
.gac-trigger-icon img {
    display: block;
    width: 22px;
    height: 22px;
}

/* Trigger label */
.gac-trigger-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Sizes (class is on the trigger itself) */
.gac-trigger.gac-size-small { padding: 10px 9px !important; min-width: 44px !important; }
.gac-size-small .gac-trigger-icon svg { width: 18px !important; height: 18px !important; }
.gac-size-small .gac-trigger-label { font-size: 10px !important; }

.gac-trigger.gac-size-large { padding: 18px 14px !important; min-width: 64px !important; }
.gac-size-large .gac-trigger-icon svg { width: 26px !important; height: 26px !important; }
.gac-size-large .gac-trigger-label { font-size: 12px !important; max-width: 88px !important; }

/* Icon only (label hidden) — square button */
.gac-trigger.gac-no-label { padding: 14px !important; gap: 0 !important; }
.gac-trigger.gac-no-label.gac-size-small { padding: 10px !important; }
.gac-trigger.gac-no-label.gac-size-large { padding: 18px !important; }

/* ── Panel Header ─────────────────────────────────────────── */
.gac-panel-header {
    background: linear-gradient(135deg, #1560bd 0%, #0d3f80 100%);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.gac-panel-title {
    flex: 1;
    font-weight: 700;
    font-size: 15px;
}

.gac-reset-btn,
.gac-close-btn {
    background: rgba(255, 255, 255, .18) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: background .2s !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.gac-reset-btn:hover,
.gac-close-btn:hover {
    background: rgba(255, 255, 255, .35) !important;
}

.gac-reset-btn:focus-visible,
.gac-close-btn:focus-visible {
    outline: 2px solid #ffcc00 !important;
    outline-offset: 2px !important;
}

/* ── Language Switcher ────────────────────────────────────── */
.gac-lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e8ecf0;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.gac-lang-btn {
    background: transparent !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 6px !important;
    color: #64748b !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    transition: border-color .15s, background .15s, color .15s !important;
    font-family: inherit !important;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: 1.6 !important;
}

.gac-lang-btn:hover {
    border-color: #1560bd !important;
    color: #1560bd !important;
    background: #f0f5ff !important;
}

.gac-lang-btn.active,
.gac-lang-btn.active:hover {
    background: #1560bd !important;
    border-color: #1560bd !important;
    color: #fff !important;
}

/* ── Panel Body ───────────────────────────────────────────── */
.gac-panel-body {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    align-content: start;
}

/* ── Panel Footer ─────────────────────────────────────────── */
.gac-panel-footer {
    padding: 10px 14px;
    text-align: center;
    font-size: 11px;
    color: #aaa;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.gac-panel-footer a {
    color: #1560bd !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.gac-panel-footer a:hover {
    text-decoration: underline !important;
}

/* ── Feature Rows ─────────────────────────────────────────── */
.gac-row {
    border-radius: 10px;
    transition: background .15s;
}

/* Step rows & statement link span full width */
.gac-row-step,
.gac-statement-link {
    grid-column: 1 / -1;
}

.gac-row-active {
    background: #e8f1ff;
}

/* Kill theme button overrides */
#gac-widget-wrapper .gac-row-btn,
#gac-widget-wrapper .gac-row-btn:link,
#gac-widget-wrapper .gac-row-btn:visited {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    height: 72px !important;
    padding: 8px 6px !important;
    background: #fafafa !important;
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}

#gac-widget-wrapper .gac-row-btn:hover,
#gac-widget-wrapper .gac-row-btn:focus {
    border-color: #1560bd !important;
    background: #f0f5ff !important;
    color: #1560bd !important;
    box-shadow: none !important;
    outline: 2px solid rgba(21, 96, 189, .3) !important;
    outline-offset: 2px !important;
}

#gac-widget-wrapper .gac-row-active .gac-row-btn,
#gac-widget-wrapper .gac-row-active .gac-row-btn:hover,
#gac-widget-wrapper .gac-row-active .gac-row-btn:focus,
#gac-widget-wrapper .gac-row-active .gac-row-btn:active {
    background: #1560bd !important;
    border-color: #0d3f80 !important;
    color: #fff !important;
    box-shadow: none !important;
}

#gac-widget-wrapper .gac-row-active .gac-row-check { color: #fff !important; }

.gac-row-icon {
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.gac-row-icon svg {
    display: block;
}

.gac-row-label {
    font-size: 11px;
    line-height: 1.3;
    word-break: keep-all;
}

.gac-row-check {
    color: #1560bd;
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
}

/* Step row */
.gac-row-step .gac-row-btn { display: none; }

.gac-row-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: border-color .17s;
}

.gac-row-step.gac-row-active {
    border-color: #1560bd;
    background: #e8f1ff;
}

.gac-step-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
}

#gac-widget-wrapper .gac-step-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid #ddd !important;
    background: #fff !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    color: #333 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    transition: border-color .15s, background .15s !important;
}

#gac-widget-wrapper .gac-step-btn:hover {
    border-color: #1560bd !important;
    background: #e8f1ff !important;
    color: #1560bd !important;
}

#gac-widget-wrapper .gac-step-btn:focus,
#gac-widget-wrapper .gac-step-btn:focus-visible,
#gac-widget-wrapper .gac-step-btn:active {
    border-color: #1560bd !important;
    background: #e8f1ff !important;
    color: #1560bd !important;
    box-shadow: none !important;
    outline: 2px solid rgba(21, 96, 189, .35) !important;
    outline-offset: 2px !important;
}

.gac-step-val {
    font-size: 13px;
    font-weight: 700;
    color: #1560bd;
    min-width: 26px;
    text-align: center;
}

/* Statement link */
.gac-statement-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 4px;
    color: #1560bd !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: #f0f5ff !important;
    border-radius: 8px !important;
    padding: 8px !important;
    border: 1px solid #c5d8f7 !important;
    transition: background .17s !important;
    box-shadow: none !important;
}

.gac-statement-link:hover { background: #dde9fc !important; }

.gac-statement-link:focus-visible { outline: 2px solid #1560bd !important; }

/* ── TTS Indicator ────────────────────────────────────────── */
.gac-tts-indicator {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1560bd;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    z-index: 100000;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(21, 96, 189, .4);
}

/* ── Reading Guide ────────────────────────────────────────── */
#gac-reading-guide {
    position: fixed;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(21, 96, 189, .5);
    z-index: 99997;
    pointer-events: none;
    top: 0;
}

/* ── Reading Mask ─────────────────────────────────────────── */
#gac-reading-mask {
    position: fixed;
    inset: 0;
    z-index: 99996;
    pointer-events: none;
    background: rgba(0, 0, 0, .7);
}

/* ── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 600px) {
    .gac-panel {
        width: min(320px, 90vw) !important;
    }

    .gac-panel-body {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Body Classes applied by widget.js ─────────────────────── */

/* High Contrast — contrast(135%) filter comes from widget.js; these sharpen the rest.
   Widget is excluded so the panel stays usable. */
html.gac-high-contrast body *:not(#gac-widget-wrapper, #gac-widget-wrapper *) { text-shadow: none !important; }
html.gac-high-contrast body a[href]:not(#gac-widget-wrapper *) { text-decoration: underline !important; text-underline-offset: 3px !important; }
html.gac-high-contrast body :is(button, input, select, textarea, [role="button"]):not(#gac-widget-wrapper *) {
    outline: 2px solid currentColor !important;
    outline-offset: 1px !important;
}
html.gac-high-contrast body ::placeholder { color: #333 !important; opacity: 1 !important; }

/* Dark Mode / Invert — filter on <html> comes from widget.js. Media is flipped back,
   and the widget + overlays are counter-inverted so they keep their real colors. */
html.gac-dark-mode body img,
html.gac-dark-mode body video,
html.gac-dark-mode body iframe,
html.gac-dark-mode #gac-widget-wrapper,
html.gac-dark-mode #gac-reading-mask,
html.gac-dark-mode #gac-reading-guide { filter: invert(1) hue-rotate(180deg) !important; }
html.gac-dark-mode #gac-widget-wrapper img { filter: none !important; }

html.gac-invert #gac-widget-wrapper,
html.gac-invert #gac-reading-mask,
html.gac-invert #gac-reading-guide { filter: invert(1) !important; }

/* Line Spacing — applies to elements with their own line-height too */
html.gac-line-spacing body *:not(#gac-widget-wrapper, #gac-widget-wrapper *) { line-height: var(--gac-line-height) !important; }

/* Dyslexia Font */
/* Icon fonts (Font Awesome, Elementor, Dashicons, Material) are excluded so icons don't turn into letters */
body.gac-dyslexia :is(p, li, dt, dd, h1, h2, h3, h4, h5, h6, a, span, strong, em, b, u, small, label, td, th, caption, blockquote, figcaption, button, input, textarea, select, div, section, article):not(i):not([class^="fa"]):not([class*=" fa-"]):not([class^="icon-"]):not([class*=" icon-"]):not([class*="eicon"]):not(.dashicons):not([class*="material-icons"]):not([class*="material-symbols"]):not(#gac-widget-wrapper *) { font-family: 'OpenDyslexic', Arial, sans-serif !important; letter-spacing: .05em; word-spacing: .1em; }

/* Readable Font */
body.gac-readable-font :is(p, li, dt, dd, h1, h2, h3, h4, h5, h6, a, span, strong, em, b, u, small, label, td, th, caption, blockquote, figcaption, button, input, textarea, select, div, section, article):not(i):not([class^="fa"]):not([class*=" fa-"]):not([class^="icon-"]):not([class*=" icon-"]):not([class*="eicon"]):not(.dashicons):not([class*="material-icons"]):not([class*="material-symbols"]):not(#gac-widget-wrapper *) { font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important; }

/* Letter / word spacing (WCAG 1.4.12) */
html.gac-letter-spacing body *:not(#gac-widget-wrapper, #gac-widget-wrapper *) { letter-spacing: var(--gac-letter) !important; word-spacing: var(--gac-word) !important; }

/* Highlight Headings */
body.gac-highlight-headings :is(h1, h2, h3, h4, h5, h6, [role="heading"]):not(#gac-widget-wrapper *) {
    outline: 3px solid #1560bd !important;
    outline-offset: 3px !important;
    background-color: rgba(21, 96, 189, .08) !important;
    border-radius: 2px;
}

/* Highlight Links — text links get the yellow marker; buttons, tabs and any
   clickable element (.gac-hl = cursor:pointer, marked by widget.js) get a ring */
body.gac-highlight-links a[href]:not(#gac-widget-wrapper *) {
    background: #ffff00 !important;
    color: #000 !important;
    text-decoration: underline !important;
    padding: 0 2px;
    border-radius: 2px;
    outline: 2px solid #000 !important;
}
body.gac-highlight-links :is(button, summary, input[type="button"], input[type="submit"], input[type="reset"], [role="button"], [role="tab"], [role="link"], [role="menuitem"], [role="option"], [onclick], .gac-hl):not(a[href]):not(#gac-widget-wrapper, #gac-widget-wrapper *) {
    outline: 3px solid #ffd500 !important;
    outline-offset: 0 !important;
    box-shadow: 0 0 0 6px #000 !important;
}

/* Keyboard Navigation */
body.gac-keyboard-nav *:focus-visible,
body.gac-keyboard-nav *:focus { outline: 3px solid #1560bd !important; outline-offset: 4px !important; box-shadow: 0 0 0 6px rgba(21, 96, 189, .2) !important; border-radius: 4px; }

/* Large Cursor */
body.gac-large-cursor,
body.gac-large-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M5 2L35 22H20L12 38z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 5 2, auto !important; }

/* Focus Highlight */
body.gac-focus-highlight *:focus-visible { outline: 4px solid #ffcc00 !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px rgba(255, 204, 0, .3) !important; }

/* TTS mode */
body.gac-tts-mode { cursor: crosshair; }
body.gac-tts-mode *:hover { outline: 2px dashed #1560bd; outline-offset: 2px; }

/* Tooltip */
.gac-has-tooltip { position: relative; }
.gac-has-tooltip::after {
    content: attr(data-gac-tooltip);
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, .85);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 99999;
    max-width: 200px;
}
.gac-has-tooltip:hover::after,
.gac-has-tooltip:focus::after { opacity: 1; }

/* ── Statement link bar (every page) ──────────────────────── */
.gac-statement-footer-bar {
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    background: transparent;
}
.gac-statement-footer-bar a { color: inherit; text-decoration: underline; }
.gac-statement-footer-bar a:focus-visible { outline: 3px solid #1560bd; outline-offset: 2px; }

/* ── Report button (panel bottom) ─────────────────────────── */
#gac-widget-wrapper .gac-report-btn {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 4px;
    padding: 9px !important;
    width: 100%;
    background: #fff !important;
    color: #0d3f80 !important;
    border: 1.5px solid #1560bd !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    box-shadow: none !important;
}
#gac-widget-wrapper .gac-report-btn:hover { background: #f0f5ff !important; }
#gac-widget-wrapper .gac-report-btn:focus-visible { outline: 2px solid #1560bd !important; outline-offset: 2px !important; }

/* ── Sub-screens ──────────────────────────────────────────── */
.gac-panel-body[hidden], .gac-panel-view[hidden] { display: none !important; }
.gac-panel-view {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 14px 14px;
    color: #222;
}
.gac-view-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
#gac-widget-wrapper .gac-back-btn {
    background: none !important; border: none !important; box-shadow: none !important;
    color: #1560bd !important; font-size: 12px !important; font-weight: 700 !important;
    padding: 2px 0 !important; cursor: pointer !important; font-family: inherit !important;
}
#gac-widget-wrapper .gac-back-btn:focus-visible { outline: 2px solid #1560bd !important; outline-offset: 2px !important; }
#gac-widget-wrapper .gac-view-title { font-size: 16px !important; font-weight: 800 !important; margin: 0 !important; color: #0d3f80 !important; line-height: 1.3 !important; }
.gac-view-title:focus { outline: none; }

/* Report form */
#gac-widget-wrapper .gac-form { display: flex; flex-direction: column; gap: 4px; }
#gac-widget-wrapper .gac-form label { font-size: 12px !important; font-weight: 700 !important; color: #333 !important; margin: 6px 0 0 !important; }
#gac-widget-wrapper .gac-form input,
#gac-widget-wrapper .gac-form textarea {
    width: 100% !important; box-sizing: border-box !important;
    border: 1.5px solid #94a3b8 !important; border-radius: 8px !important;
    padding: 8px 10px !important; font-size: 14px !important; font-family: inherit !important;
    background: #fff !important; color: #111 !important; box-shadow: none !important;
    min-height: 0 !important; margin: 0 !important;
}
#gac-widget-wrapper .gac-form textarea { resize: vertical; }
#gac-widget-wrapper .gac-form input:focus,
#gac-widget-wrapper .gac-form textarea:focus { border-color: #1560bd !important; outline: 2px solid rgba(21, 96, 189, .35) !important; outline-offset: 1px !important; }
#gac-widget-wrapper .gac-form [aria-invalid="true"] { border-color: #b91c1c !important; }
.gac-form-intro { font-size: 13px; color: #444; margin: 0 0 4px; line-height: 1.5; }
.gac-form-hint { font-size: 11px; color: #555; margin: 8px 0 0; line-height: 1.4; }
.gac-req { color: #b91c1c; }
.gac-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.gac-form-status { font-size: 12px; min-height: 1em; margin-top: 6px; }
.gac-form-status.gac-error { color: #b91c1c; font-weight: 700; }
#gac-widget-wrapper .gac-form-submit {
    margin-top: 8px !important; padding: 10px !important; width: 100% !important;
    background: #1560bd !important; color: #fff !important; border: none !important;
    border-radius: 8px !important; font-size: 14px !important; font-weight: 700 !important;
    font-family: inherit !important; cursor: pointer !important; box-shadow: none !important;
}
#gac-widget-wrapper .gac-form-submit:hover { background: #0d3f80 !important; }
#gac-widget-wrapper .gac-form-submit:disabled { opacity: .6; cursor: default !important; }
#gac-widget-wrapper .gac-form-submit:focus-visible { outline: 3px solid #ffcc00 !important; outline-offset: 2px !important; }
.gac-form-ok { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; border-radius: 10px; padding: 14px; font-size: 14px; font-weight: 600; line-height: 1.5; margin: 0; }
.gac-form-ok:focus { outline: 2px solid #15803d; outline-offset: 2px; }

/* Page structure */
.gac-ps-group { font-size: 12px; font-weight: 800; color: #555; margin: 12px 0 6px; text-transform: none; }
.gac-ps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
#gac-widget-wrapper .gac-ps-item {
    display: block !important; width: 100% !important; text-align: start !important;
    background: #f8fafc !important; border: 1px solid #e2e8f0 !important; border-radius: 7px !important;
    padding: 7px 10px !important; font-size: 13px !important; font-weight: 500 !important; color: #1e293b !important;
    font-family: inherit !important; cursor: pointer !important; box-shadow: none !important; line-height: 1.35 !important;
}
#gac-widget-wrapper .gac-ps-item:hover,
#gac-widget-wrapper .gac-ps-item:focus-visible { background: #f0f5ff !important; border-color: #1560bd !important; color: #0d3f80 !important; outline: 2px solid rgba(21, 96, 189, .3) !important; }
#gac-widget-wrapper .gac-ps-h3 { padding-inline-start: 20px !important; }
#gac-widget-wrapper .gac-ps-h4,
#gac-widget-wrapper .gac-ps-h5,
#gac-widget-wrapper .gac-ps-h6 { padding-inline-start: 32px !important; font-size: 12px !important; }
.gac-ps-lvl { display: inline-block; font-size: 10px; font-weight: 800; color: #1560bd; background: #e8f1ff; border-radius: 4px; padding: 0 4px; margin-inline-end: 4px; }
