/* Explain: Styles for UI components like buttons, cards, forms, accessibility widgets, chat buttons, and form confirmations. */
/* Global brutalist overrides removed */

/* Sakrij plutajuće widgete (pristupačnost, podrška, kolačići) dok je full-screen izbornik otvoren */
html.nav-overlay-open #a11y-widget,
html.nav-overlay-open #a11y-fab,
html.nav-overlay-open #a11y-panel,
html.nav-overlay-open #a11y-backdrop,
html.nav-overlay-open #cc-fab {
    display: none !important;
}

/* iTSmedia Primary Button */
.btn.btn-primary {
    background-color: var(--primary-color);
    color: #0A0A0A;
    border: none;
    border-radius: 0.5rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
    min-height: 48px;
}
.btn.btn-primary:hover, .btn.btn-primary:focus-visible {
    background-color: var(--primary-hover);
    color: #0A0A0A;
}

/* iTS Servis Accent Button */
.btn.btn-accent {
    background-color: var(--accent-color);
    color: #FFFFFF;
    border: none;
    border-radius: 0.5rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    transition: background-color 0.2s, color 0.2s;
    min-height: 48px;
}
.btn.btn-accent:hover, .btn.btn-accent:focus-visible {
    background-color: var(--accent-hover);
    color: #FFFFFF;
}

/* Secondary / Outline Action - Changed to softer "Ghost" style */
.btn.btn-outline {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-color);
    border: none;
    border-radius: 0.5rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    transition: background-color 0.2s, color 0.2s;
    min-height: 48px;
}
.btn.btn-outline:hover, .btn.btn-outline:focus-visible {
    background-color: rgba(255,255,255,0.1);
    color: var(--primary-color);
}

/* Surface Cards */
.card-surface {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: background-color 0.2s, border-color 0.2s;
}
.card-surface:hover {
    background-color: var(--surface-hover);
    border-color: var(--text-muted);
}

/* Forms & Inputs Brutalist Standard */
input[type="text"], input[type="email"], input[type="tel"], 
input[type="password"], input[type="url"], input[type="number"],
textarea, select, .input, .textarea, .select,
.form-group input, .form-group textarea, .form-group select {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 0 !important; /* Sharp brutalist corners */
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
input[type="password"]:focus, input[type="url"]:focus, input[type="number"]:focus,
textarea:focus, select:focus, .input:focus, .textarea:focus, .select:focus,
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--text-color) !important;
    background-color: var(--surface-color) !important;
}

/* Checkbox & Radio Brutalist Standard */
.checkbox, .radio {
    border-radius: 0 !important;
    cursor: pointer;
}

/* Sector Color Coding Utilities */
.sector-sys { border-top: 2px solid var(--sector-sys) !important; }
.sector-sec { border-top: 2px solid var(--sector-sec) !important; }
.sector-web { border-top: 2px solid var(--sector-web) !important; }
.sector-ai { border-top: 2px solid var(--sector-ai) !important; }
.sector-b2b { border-top: 2px solid var(--sector-b2b) !important; }

.text-sys { color: var(--sector-sys) !important; }
.text-sec { color: var(--sector-sec) !important; }
.text-web { color: var(--sector-web) !important; }
.text-ai  { color: var(--sector-ai) !important; }
.text-b2b { color: var(--sector-b2b) !important; }

.bg-sys { background-color: var(--sector-sys) !important; color: #fff !important; }
.bg-sec { background-color: var(--sector-sec) !important; color: #fff !important; }
.bg-web { background-color: var(--sector-web) !important; color: #0a0a0a !important; }
.bg-ai  { background-color: var(--sector-ai) !important; color: #fff !important; }
.bg-b2b { background-color: var(--sector-b2b) !important; color: #0a0a0a !important; }

/* ===================== Vlastiti sustav privole za kolačiće ===================== */
#cc-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 99998;
    background: var(--surface-color);
    border-top: 2px solid var(--sector-sys);
    box-shadow: 0 -12px 40px rgba(0,0,0,0.6);
    transform: translateY(115%);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
    will-change: transform;
    pointer-events: none;
}
#cc-banner.is-open { transform: translateY(0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
    #cc-banner { transition: none; }
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.65rem 1.4rem;
    border-radius: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, filter 0.2s;
    white-space: nowrap;
}
.cc-btn-primary { background: var(--sector-sys); color: #fff; border: none; }
.cc-btn-primary:hover { filter: brightness(1.1); }
.cc-btn-ghost { background: rgba(255,255,255,0.05); color: var(--text-color); border: 1px solid var(--border-color); }
.cc-btn-ghost:hover { border-color: var(--sector-sys); color: var(--sector-sys); }

/* ===================== Modal: Postavke kolačića ===================== */
#cc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 3, 4, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
#cc-modal[hidden] { display: none; }

#cc-modal .cc-modal-panel {
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    max-height: min(90dvh, 820px);
    display: flex;
    flex-direction: column;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

/* Zaglavlje */
#cc-modal .cc-head {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
#cc-modal .cc-head::before { content: none; }
#cc-modal .cc-head > div { min-width: 0; }
#cc-modal .cc-head h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #fff;
}
#cc-modal .cc-head p {
    margin: 0;
    max-width: 40rem;
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.55;
    color: var(--text-muted);
}
#cc-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}
#cc-close:hover,
#cc-close:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* Tijelo - ravan popis bez kartica */
#cc-modal .cc-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1.5rem;
    display: block;
    scrollbar-gutter: stable;
}

#cc-modal .cc-category {
    position: relative;
    display: block;
    padding: 1.2rem 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    overflow: visible;
    transition: none;
}
#cc-modal .cc-category::before { content: none; }
#cc-modal .cc-body > .cc-category:last-child { border-bottom: none; }
#cc-modal .cc-locked { cursor: default; }
#cc-modal .cc-category:not(.cc-locked):hover .cc-switch { border-color: rgba(255, 255, 255, 0.35); }

#cc-modal .cc-cat-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
#cc-modal .cc-cat-left > .flex {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    margin-bottom: 0;
}
#cc-modal .cc-cat-left > .flex > div:first-child {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}
#cc-modal .cc-cat-left h3 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    white-space: normal;
    overflow-wrap: anywhere;
}

#cc-modal .cc-category > input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#cc-modal .cc-switch {
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
#cc-modal .cc-knob {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#cc-modal .cc-category input:checked ~ .cc-cat-left .cc-switch {
    background: var(--accent);
    border-color: var(--accent);
}
#cc-modal .cc-category input:checked ~ .cc-cat-left .cc-switch .cc-knob {
    left: calc(100% - 19px);
}
#cc-modal .cc-category input:focus-visible ~ .cc-cat-left .cc-switch {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

#cc-modal .cc-cat-right {
    margin-top: 0.55rem;
    padding-top: 0;
    border-top: none;
}
#cc-modal .cc-cat-right p {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.55;
    color: var(--text-muted);
    overflow-wrap: break-word;
}
#cc-modal .cc-examples {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem 1.5rem;
}
@media (min-width: 560px) {
    #cc-modal .cc-examples { grid-template-columns: 1fr 1fr; }
}
#cc-modal .cc-examples li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
    font-size: 0.76rem;
    font-weight: 300;
    line-height: 1.45;
    color: var(--text-muted);
}
#cc-modal .cc-examples li::before {
    content: "";
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
}

/* Podnožje */
#cc-modal .cc-foot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Mobilni prikaz - donja ploča */
@media (max-width: 640px) {
    #cc-modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    #cc-modal .cc-modal-panel {
        width: 100%;
        max-width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        border: none;
    }
    #cc-modal .cc-head {
        padding: 1.15rem 1.15rem 1rem;
        align-items: center;
    }
    #cc-modal .cc-head h2 {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }
    #cc-modal .cc-head p {
        font-size: 0.78rem;
        line-height: 1.5;
    }
    #cc-modal #cc-close {
        width: 44px;
        height: 44px;
    }
    #cc-modal .cc-body {
        padding: 0;
    }
    #cc-modal .cc-category {
        padding: 1.1rem 1.15rem;
    }
    #cc-modal .cc-cat-right {
        margin-top: 0.6rem;
    }
    #cc-modal .cc-cat-right p {
        font-size: 0.78rem;
        margin-bottom: 0.6rem;
    }
    #cc-modal .cc-examples li {
        font-size: 0.74rem;
    }
    #cc-modal .cc-foot {
        padding: 1rem 1.15rem calc(1rem + env(safe-area-inset-bottom));
        gap: 0.85rem;
        flex-direction: column;
        align-items: stretch;
    }
    #cc-modal .cc-foot > div {
        width: 100%;
    }
    #cc-modal .cc-foot .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #cc-modal .cc-category,
    #cc-modal .cc-switch,
    #cc-modal .cc-knob,
    #cc-close { transition: none; }
}



/* ===================== Vlastiti alat za pristupačnost (Accessibility Widget) ===================== */
#a11y-widget {
    position: relative;
    z-index: 9992;
}

/* Gumb pristupačnosti ostaje vidljiv i dok je panel otvoren (jednako kao gumb kolačića) */

/* Plutajući gumb */
#a11y-fab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9992;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 0.55rem;
    border-radius: 1rem 0 0 1rem;
    background: linear-gradient(160deg, var(--sector-sec), #0284c7);
    color: #fff;
    border: none;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    box-shadow: -8px 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, filter 0.25s ease;
}
#a11y-fab i { font-size: 1.3rem; }
#a11y-fab .a11y-fab-text { writing-mode: vertical-rl; text-orientation: mixed; }
#a11y-fab:hover,
#a11y-fab:focus-visible {
    transform: translateY(-50%) translateX(-4px);
    filter: brightness(1.1);
}
#a11y-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Pozadinski zastor (zatvaranje klikom izvan popup-a) */
#a11y-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(2, 3, 4, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
#a11y-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* Panel - popup iznad gumba za pristupačnost */
#a11y-panel {
    position: fixed;
    top: 50%;
    right: 3.25rem;
    z-index: 9991;
    width: min(408px, calc(100vw - 5rem));
    max-height: min(82vh, 720px);
    display: flex;
    flex-direction: column;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(20px) scale(0.95);
    transform-origin: right center;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
}
#a11y-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) scale(1);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

/* Zaglavlje panela */
.a11y-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.35rem 1.25rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--sector-sec) 20%, var(--surface-color)), var(--surface-color) 72%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.a11y-head-main { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.a11y-head-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: linear-gradient(160deg, var(--sector-sec), #0284c7);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--sector-sec) 42%, transparent);
}
.a11y-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #fff;
}
.a11y-sub {
    margin: 0.22rem 0 0;
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--text-muted);
}
.a11y-close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.a11y-close:hover,
.a11y-close:focus-visible { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); }

.a11y-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 1.4rem;
}

.a11y-section { display: flex; flex-direction: column; gap: 1.1rem; }

.a11y-section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}
.a11y-section-icon { color: var(--sector-sec); font-size: 0.9rem; flex-shrink: 0; }
.a11y-section-title { flex: 1 1 auto; }
.a11y-font-value {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-color);
}

.a11y-fontsteps { display: flex; gap: 0.6rem; }
.a11y-step {
    flex: 1 1 0;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: none;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.a11y-step i { font-size: 0.95rem; }
.a11y-step:hover,
.a11y-step:focus-visible { background: var(--sector-sec); color: #fff; }
.a11y-step:active { transform: scale(0.97); }

/* Redci s prekidačima unutar kartice */
.a11y-toggles { display: flex; flex-direction: column; }
.a11y-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s ease;
}
.a11y-row:hover { opacity: 0.92; }
.a11y-row-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.a11y-row:hover .a11y-row-icon { color: var(--sector-sec); }
.a11y-row:has(.a11y-toggle-input:checked) .a11y-row-icon {
    color: var(--sector-sec);
    border-color: color-mix(in srgb, var(--sector-sec) 45%, var(--border-color));
    background: color-mix(in srgb, var(--sector-sec) 12%, transparent);
}
.a11y-row-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.a11y-row-title { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-color); }
.a11y-row-desc { font-size: 0.7rem; font-weight: 300; line-height: 1.35; color: var(--text-muted); }

.a11y-toggle-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.a11y-switch {
    margin-left: auto;
    flex-shrink: 0;
    width: 50px;
    height: 28px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border-color);
    position: relative;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.a11y-knob {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.a11y-toggle-input:checked ~ .a11y-switch { background: var(--sector-sec); border-color: var(--sector-sec); }
.a11y-toggle-input:checked ~ .a11y-switch .a11y-knob { left: calc(100% - 23px); }
.a11y-toggle-input:focus-visible ~ .a11y-switch { outline: 2px solid #fff; outline-offset: 3px; }

.a11y-foot {
    flex-shrink: 0;
    padding: 1.1rem 1.3rem;
    background: rgba(0, 0, 0, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.a11y-reset {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    background: transparent;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.a11y-reset:hover,
.a11y-reset:focus-visible { background: #fff; color: #0a0a0a; border-color: #fff; }

@media (max-width: 1023.98px) {
    #a11y-fab {
        padding: 0.85rem 0.45rem;
        border-radius: 0.9rem 0 0 0.9rem !important;
    }
    #a11y-fab .a11y-fab-text { font-size: 0.62rem; letter-spacing: 0.12em; }

    #a11y-panel {
        right: 0;
        left: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        max-height: 92dvh;
        border-radius: 1.25rem 1.25rem 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        transform: translateY(100%) scale(1);
        transform-origin: bottom center;
    }
    #a11y-panel.is-open { transform: translateY(0) scale(1); }

    /* "Ručka" na vrhu ploče kao jasan znak za povlačenje/zatvaranje */
    #a11y-panel::before {
        content: "";
        position: absolute;
        top: 0.6rem;
        left: 50%;
        transform: translateX(-50%);
        width: 42px;
        height: 4px;
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.2);
        z-index: 5;
    }

    .a11y-head {
        padding: 1.5rem 1.15rem 1.1rem;
        align-items: center;
    }
    .a11y-head-icon { width: 42px; height: 42px; font-size: 1.05rem; border-radius: 0.8rem; }
    .a11y-title { font-size: 1.05rem; }
    .a11y-sub { font-size: 0.72rem; line-height: 1.4; }
    .a11y-close { width: 44px; height: 44px; }

    .a11y-body {
        padding: 1.1rem 1.15rem;
        gap: 1.75rem;
        -webkit-overflow-scrolling: touch;
    }
    .a11y-step { height: 56px; font-size: 0.75rem; }

    .a11y-row {
        padding: 0.9rem 0;
        gap: 0.8rem;
        align-items: center;
    }
    .a11y-row-icon { width: 42px; height: 42px; font-size: 1rem; }
    .a11y-row-title { font-size: 0.78rem; }
    .a11y-row-desc { font-size: 0.72rem; line-height: 1.45; }
    .a11y-switch { width: 50px; height: 28px; }
    .a11y-knob { width: 20px; height: 20px; }
    .a11y-toggle-input:checked ~ .a11y-switch .a11y-knob { left: calc(100% - 23px); }

    .a11y-foot {
        padding: 0.95rem 1.15rem calc(0.95rem + env(safe-area-inset-bottom));
    }
    .a11y-reset { min-height: 52px; font-size: 0.72rem; }
}

/* ===================== Pristupačnost: VISOKI KONTRAST (tamni način prikaza) ===================== */
html.a11y-contrast,
html.a11y-contrast body {
    background: #000 !important;
    color: #fff !important;
}
html.a11y-contrast body *:not(#a11y-widget):not(#a11y-widget *) {
    background-color: #000 !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
html.a11y-contrast a:not(#a11y-widget a),
html.a11y-contrast button:not(#a11y-widget button) {
    color: #ffff00 !important;
    text-decoration: underline !important;
}
html.a11y-contrast :focus-visible {
    outline: 3px solid #ffff00 !important;
    outline-offset: 2px !important;
}

/* ===================== Pristupačnost: PRILAGODBA ZA DISLEKSIJU ===================== */
html.a11y-dyslexia body,
html.a11y-dyslexia body *:not(#a11y-widget):not(#a11y-widget *) {
    font-family: 'Atkinson Hyperlegible', 'Verdana', 'Tahoma', sans-serif !important;
    letter-spacing: 0.04em !important;
    word-spacing: 0.16em !important;
    line-height: 1.75 !important;
}

/* ===================== Pristupačnost: ISTICANJE LINKOVA ===================== */
html.a11y-links a:not(#a11y-widget a) {
    outline: 2px solid #ffd400 !important;
    outline-offset: 2px !important;
    background-color: rgba(255, 212, 0, 0.14) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}
html.a11y-links button:not(#a11y-widget button),
html.a11y-links [role="button"]:not(#a11y-widget [role="button"]),
html.a11y-links summary:not(#a11y-widget summary) {
    outline: 2px solid #38bdf8 !important;
    outline-offset: 2px !important;
}
html.a11y-links input:not(.a11y-toggle-input):not(#a11y-widget input),
html.a11y-links select:not(#a11y-widget select),
html.a11y-links textarea:not(#a11y-widget textarea) {
    outline: 2px solid #38bdf8 !important;
    outline-offset: 2px !important;
}

/* ===================== Pristupačnost: VELIKI KURSOR ===================== */
html.a11y-cursor #custom-cursor .cursor-inner {
    width: 46px !important;
    height: 46px !important;
    margin-left: -23px !important;
    margin-top: -23px !important;
    border-width: 3px !important;
}
html.a11y-cursor #custom-cursor .cursor-inner::after {
    width: 7px !important;
    height: 7px !important;
}

/* ===================== Pristupačnost: ZAUSTAVI ANIMACIJE ===================== */
html.a11y-motion *:not(#a11y-widget):not(#a11y-widget *),
html.a11y-motion *:not(#a11y-widget):not(#a11y-widget *)::before,
html.a11y-motion *:not(#a11y-widget):not(#a11y-widget *)::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
}
html.a11y-motion {
    scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    #a11y-panel { transition: none; }
    #a11y-backdrop { transition: none; }
}

.a11y-row-arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.25s ease, transform 0.25s ease;
}
.a11y-row:hover .a11y-row-arrow,
.a11y-row:focus-visible .a11y-row-arrow {
    color: var(--sector-sys);
    transform: translateX(3px);
}

/* ===================== Potvrda obrasca unutar stranice ===================== */
.form-confirm {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--success-color);
    border-radius: 0.75rem;
    background: var(--surface-color);
    color: var(--text-color);
    outline: none;
}
.form-confirm:focus-visible { outline: 2px solid var(--text-color); outline-offset: 3px; }

.form-confirm-head { display: flex; align-items: flex-start; gap: 1rem; }
.form-confirm-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    font-size: 1.5rem;
    color: var(--success-color);
    background: color-mix(in srgb, var(--success-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--success-color) 35%, transparent);
}
.form-confirm-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--text-color);
}
.form-confirm-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.55;
    color: var(--text-muted);
}

.form-confirm-subtitle {
    display: block;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}
.form-confirm-summary {
    margin: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    overflow: hidden;
    background: var(--background-color);
}
.form-confirm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border-color);
}
.form-confirm-row:last-child { border-bottom: none; }
.form-confirm-row:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.form-confirm-row dd a {
    color: var(--sector-sys);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.form-confirm-row dd a:hover { text-decoration-thickness: 2px; }
.form-confirm-row dt {
    flex: 0 0 auto;
    min-width: 9.5rem;
    padding-top: 0.15rem;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.form-confirm-row dd {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-color);
    overflow-wrap: anywhere;
}
.form-confirm-deadline {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 0.6rem;
    background: color-mix(in srgb, var(--sector-sys) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--sector-sys) 30%, transparent);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-color);
}
.form-confirm-deadline i { color: var(--sector-sys); flex-shrink: 0; }

.form-confirm-info { display: flex; flex-direction: column; gap: 0.6rem; }
.form-confirm-hotline {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 0.6rem;
    background: color-mix(in srgb, var(--error-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--error-color) 30%, transparent);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-color);
}
.form-confirm-hotline i { color: var(--error-color); flex-shrink: 0; }
.form-confirm-hotline a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.form-confirm-hotline a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form-confirm-actions { display: flex; }
.form-confirm-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.form-confirm-new:hover,
.form-confirm-new:focus-visible { background: #fff; color: #0a0a0a; border-color: #fff; }

.btn.is-sending { opacity: 0.65; cursor: progress; pointer-events: none; }

@media (max-width: 480px) {
    .form-confirm { padding: 1.25rem; gap: 1rem; }
    .form-confirm-row { flex-direction: column; gap: 0.15rem; }
    .form-confirm-row dt { min-width: 0; }
}

/* ===================== Prilozi uz prijavu kvara ===================== */
#servisDropzone.is-drag {
    border-color: var(--accent-color) !important;
    border-style: solid !important;
    background-color: color-mix(in srgb, var(--accent-color) 12%, transparent) !important;
}

/* ===================== Postavke kolačića (plutajući gumb) ===================== */
#cc-fab {
    position: fixed;
    left: max(1.25rem, env(safe-area-inset-left));
    bottom: 1.75rem;
    z-index: 9992;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 9999px;
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
#cc-fab .cc-fab-text { display: none; }
#cc-fab i { font-size: 1.25rem; }
#cc-fab:hover,
#cc-fab:focus-visible {
    background: var(--sector-web);
    color: #0a0a0a;
    border-color: var(--sector-web);
    transform: translateY(-2px);
}
#cc-fab:focus-visible { outline: 3px solid var(--sector-web); outline-offset: 3px; }

@media (max-width: 767px) {
    #cc-fab {
        left: calc(0.85rem + env(safe-area-inset-left));
        bottom: calc(0.85rem + env(safe-area-inset-bottom));
    }
}

/* ===================== Ujednačen oblik gumba (zaobljeni pravokutnik, bez pilula) ===================== */
.btn:not(.btn-circle):not(.btn-square),
button.btn:not(.btn-circle):not(.btn-square),
button[type="submit"],
input[type="submit"],
input[type="button"],
.cc-btn,
.filter-btn,
.form-confirm-new {
    border-radius: 0.5rem !important;
}
#cc-fab {
    border-radius: 9999px !important;
}
#a11y-fab {
    border-radius: 1rem 0 0 1rem !important;
}
#a11y-panel .a11y-step,
#a11y-panel .a11y-reset {
    border-radius: 0.8rem !important;
}
#cc-modal .cc-close,
#cc-modal .cc-foot .btn {
    border-radius: 0.6rem !important;
}

/* ===================== Brzi chat kanali (WhatsApp / Viber) ===================== */
.msg-chat {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.msg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border-radius: 0.5rem;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.msg-btn i { font-size: 1.15rem; }
.msg-btn:hover,
.msg-btn:focus-visible { transform: translateY(-2px); }
.msg-btn-wa { border-color: rgba(37, 211, 102, 0.4); }
.msg-btn-wa i { color: #25D366; }
.msg-btn-wa:hover,
.msg-btn-wa:focus-visible { background: #25D366; border-color: #25D366; color: #0a0a0a; }
.msg-btn-wa:hover i,
.msg-btn-wa:focus-visible i { color: #0a0a0a; }
.msg-btn-viber { border-color: rgba(115, 96, 242, 0.45); }
.msg-btn-viber i { color: #7360F2; }
.msg-btn-viber:hover,
.msg-btn-viber:focus-visible { background: #7360F2; border-color: #7360F2; color: #fff; }
.msg-btn-viber:hover i,
.msg-btn-viber:focus-visible i { color: #fff; }
.msg-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 12.5px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--text-muted);
}
.msg-note i {
    color: var(--sector-ai);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ===================== PODNOŽJE: mobilno sažimanje stupaca ===================== */
/* Samo na mobitelu skrivamo dodatne poveznice i tijelo stupca dok se ne otvore. */
@media (max-width: 767px) {
    .footer-panel:not(.footer-panel-open) { display: none; }
    .footer-extra:not(.footer-extra-open) { display: none; }
}

/* ===================== PODNOŽJE: jasan razmak naslova i popisa veza ===================== */
/* Osigurava odvojenost naslova stupca od popisa i sprječava prelijevanje teksta u okvir iznad. */
footer .footer-panel {
    min-width: 0;
    overflow: hidden;
}
footer .footer-panel ul,
footer .footer-panel ul li,
footer .footer-panel ul li a {
    min-width: 0;
}
footer .footer-panel ul li a {
    align-items: flex-start;
}
footer .footer-panel ul li a > i {
    flex-shrink: 0;
    margin-top: 0.15rem;
}
@media (min-width: 768px) {
    footer .footer-panel > div {
        padding-top: 1.5rem;
    }
}

/* ===================== PREKIDAČ JEZIKA (HR / EN) ===================== */
.lang-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 76px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.lang-toggle:hover { border-color: rgba(255, 255, 255, 0.4); }
.lang-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lang-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: var(--sector-sys);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
    z-index: 1;
}
.lang-toggle.is-en .lang-toggle-knob {
    transform: translateX(38px);
    background: var(--sector-sec);
}
.lang-toggle-opt {
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.25s ease;
}
.lang-toggle:not(.is-en) .lang-toggle-opt-hr { color: #fff; }
.lang-toggle.is-en .lang-toggle-opt-en { color: #fff; }
@media (prefers-reduced-motion: reduce) {
    .lang-toggle-knob { transition: none; }
}

/* ===================== Modal: Postavke kolačića (redizajn — čisti popis) ===================== */
#cc-modal .cc-head {
    align-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--sector-sys) 20%, var(--surface-color)), var(--surface-color) 72%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#cc-modal .cc-head-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
#cc-modal .cc-head-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: linear-gradient(160deg, var(--sector-sys), #EA580C);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--sector-sys) 42%, transparent);
}
#cc-modal .cc-head h2.cc-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #fff;
}
#cc-modal .cc-head p.cc-sub {
    margin: 0.22rem 0 0;
    font-size: 0.74rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--text-muted);
}

#cc-modal .cc-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}
#cc-modal .cc-body > .cc-row:last-child { border-bottom: none; }
#cc-modal .cc-row.cc-locked { cursor: default; }
#cc-modal .cc-row-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.98rem;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
#cc-modal .cc-row:not(.cc-locked):hover .cc-row-icon { color: var(--accent); }
#cc-modal .cc-row:has(.cc-toggle-input:checked) .cc-row-icon,
#cc-modal .cc-row.cc-locked .cc-row-icon {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border-color));
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}
#cc-modal .cc-row-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
#cc-modal .cc-row-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
}
#cc-modal .cc-row-desc {
    font-size: 0.74rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--text-muted);
}
#cc-modal .cc-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
#cc-modal .cc-row .cc-switch { margin-left: auto; }
#cc-modal .cc-row input:checked ~ .cc-switch {
    background: var(--accent);
    border-color: var(--accent);
}
#cc-modal .cc-row input:checked ~ .cc-switch .cc-knob { left: calc(100% - 19px); }
#cc-modal .cc-row input:focus-visible ~ .cc-switch {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
#cc-modal .cc-locked-badge {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

@media (max-width: 640px) {
    #cc-modal .cc-head h2.cc-title { font-size: 1.05rem; }
    #cc-modal .cc-head p.cc-sub { font-size: 0.72rem; }
    #cc-modal .cc-row { padding: 1rem 1.15rem; }
    #cc-modal .cc-row-icon { width: 40px; height: 40px; font-size: 0.95rem; }
    #cc-modal .cc-row-desc { font-size: 0.72rem; }
    #cc-modal .cc-locked-badge { padding: 0.3rem 0.55rem; font-size: 0.58rem; gap: 0.3rem; }
}
