/* ==========================================================================
   /karta design harmonisation — layered on top of main.css / util.css.
   Only recolours existing elements to match the Adriatic Guardian site
   palette (navy / cyan / pale sky). No layout, no structural change.
   Source palette — adriatic-guardian.com:
       navy       #03032c
       navy-dark  #0a0a44
       cyan       #00a5cf
       cyan-dark  #0e7fa1
       pale sky   #d3eef5
       off-white  #f6f6f6
   ========================================================================== */

:root {
    --ag-site-navy:      #03032c;
    --ag-site-navy-soft: #0a0a44;
    --ag-site-cyan:      #00a5cf;
    --ag-site-cyan-dk:   #0e7fa1;
    --ag-site-sky:       #d3eef5;
    --ag-site-off:       #f6f6f6;
}

/* ----- Form title ----- */
.contact100-form-title,
#prijaviOtpad,
#prijaviAlat {
    color: var(--ag-site-navy) !important;
}

/* ----- Input focus underline (existing gradient uses teal — recolour to cyan) ----- */
.focus-input100::before {
    background: var(--ag-site-cyan) !important;
    background: -webkit-linear-gradient(45deg, var(--ag-site-cyan-dk), var(--ag-site-cyan)) !important;
    background:         linear-gradient(45deg, var(--ag-site-cyan-dk), var(--ag-site-cyan)) !important;
}

/* ----- Coordinate buttons — originally .btn.btn-primary (Bootstrap blue) -----
   Swapped: cyan default, navy on hover. */
.coord-btn,
.btn.btn-primary.coord-btn,
.coord-btn.btn.btn-primary {
    background-color: var(--ag-site-cyan) !important;
    border-color:     var(--ag-site-cyan) !important;
    color:            var(--ag-site-navy) !important;
}

.coord-btn:hover,
.btn.btn-primary.coord-btn:hover {
    background-color: var(--ag-site-navy) !important;
    border-color:     var(--ag-site-navy) !important;
    color:            var(--ag-site-sky) !important;
}

/* ----- Submit button background gradient (was teal) ----- */
.contact100-form-bgbtn {
    background: var(--ag-site-cyan) !important;
    background: -webkit-linear-gradient(-135deg, var(--ag-site-cyan-dk), var(--ag-site-cyan), var(--ag-site-cyan-dk), var(--ag-site-cyan)) !important;
    background:         linear-gradient(-135deg, var(--ag-site-cyan-dk), var(--ag-site-cyan), var(--ag-site-cyan-dk), var(--ag-site-cyan)) !important;
}

.contact100-form-btn {
    color: #ffffff !important;
}

/* The success state keeps its own green bg from main.css — override to a
   deeper cyan so it stays on-palette. */
.contact100-form-bgbtn-success {
    background: var(--ag-site-cyan-dk) !important;
    background: -webkit-linear-gradient(-135deg, var(--ag-site-navy-soft), var(--ag-site-cyan-dk), var(--ag-site-navy-soft), var(--ag-site-cyan-dk)) !important;
    background:         linear-gradient(-135deg, var(--ag-site-navy-soft), var(--ag-site-cyan-dk), var(--ag-site-navy-soft), var(--ag-site-cyan-dk)) !important;
}

/* ----- Filter menu + toggle-filters button accent ----- */
.filter-menu strong {
    color: var(--ag-site-navy) !important;
}

/* Drop the top-right rounded corner on the filter panel */
.filter-menu,
.filter-div {
    border-top-right-radius: 0 !important;
}

.toggle-filters {
    background: var(--ag-site-cyan) !important;
    color:      var(--ag-site-navy) !important;
}

.toggle-filters:hover {
    background: var(--ag-site-cyan-dk) !important;
    color:      #ffffff !important;
}

/* ----- Minimise toggles — long thin ribbons, white like the form, cyan arrows -----
   No box-shadow at all so the toggle merges seamlessly with the form/filter white
   panel on the attached side. Arrows are chunkier, with generous padding. */
.toggle-form {
    background: #ffffff !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    height: 140px !important;
    width: 28px !important;
    left: -28px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    color: var(--ag-site-cyan) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.toggle-form > i,
.toggle-form #horizontal-arrows {
    color: var(--ag-site-cyan) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    text-shadow: 0 0 0.5px var(--ag-site-cyan),
                 0.5px 0 0.5px var(--ag-site-cyan),
                -0.5px 0 0.5px var(--ag-site-cyan) !important;
    -webkit-text-stroke: 0.7px var(--ag-site-cyan) !important;
}

.toggle-form:hover {
    background: rgba(255, 255, 255, 0.55) !important;
    background-image: none !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    color: var(--ag-site-cyan) !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
}

.toggle-form:hover > i,
.toggle-form:hover #horizontal-arrows {
    color: var(--ag-site-cyan) !important;
}

/* No rotation of the arrow icon — JS already swaps the icon class */
#toggle-form,
body.hidden-form #toggle-form {
    transform: translateY(-50%) !important;
}

.toggle-filters {
    background: #ffffff !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    height: 26px !important;
    width: 180px !important;
    top: -26px !important;
    left: auto !important;
    right: 0 !important;
    padding: 0 !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    color: var(--ag-site-cyan) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.toggle-filters > i,
.toggle-filters #vertical-arrows {
    color: var(--ag-site-cyan) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-shadow: 0 0 0.5px var(--ag-site-cyan),
                 0 0.5px 0.5px var(--ag-site-cyan),
                 0 -0.5px 0.5px var(--ag-site-cyan) !important;
    -webkit-text-stroke: 0.7px var(--ag-site-cyan) !important;
}

.toggle-filters:hover {
    background: rgba(255, 255, 255, 0.55) !important;
    background-image: none !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    color: var(--ag-site-cyan) !important;
    box-shadow: none !important;
}

.toggle-filters:hover > i,
.toggle-filters:hover #vertical-arrows {
    color: var(--ag-site-cyan) !important;
}

/* No rotation of the vertical-arrow icon on filter state changes */
.toggle-filters-arrows,
body.hidden-filters .toggle-filters-arrows {
    transform: none !important;
}

/* ----- select2 chip pills — match brand cyan ----- */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(0, 165, 207, 0.12) !important;
    border: 1px solid rgba(0, 165, 207, 0.32) !important;
    color: var(--ag-site-navy) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--ag-site-navy) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--ag-site-cyan) !important;
    color: #ffffff !important;
}

/* ----- Links inside the form (if any) ----- */
.wrap-contact100 a:not(.coord-btn):not(.toggle-form):not(.contact100-form-btn) {
    color: var(--ag-site-cyan-dk);
}

/* ----- Form-title tooltip must float ABOVE the legend (legend z-index:3) ----- */
.contact100-form-title,
.gg-contact100-form-title {
    position: relative;
    z-index: 5;
}

.contact100-form-title .tooltiptext,
.gg-contact100-form-title .tooltiptext {
    z-index: 10 !important;
}
