/* Boje, slova i osnovni dijelovi (gumbi, polja). Narančasta je rezervirana za sljedeći korak. */
@font-face { font-family: Manrope; src: url(/fontovi/manrope-latin-ext.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: Manrope; src: url(/fontovi/manrope-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
:root {
  color-scheme: light;
  --mor: #0d1120; --mor2: #191e30; --mor3: #2a3046; --pl: #0d1120; --na-pl: #fff; --sjaj: #2a3556; --stupac: #3d5090;
  --nar: #fe4e02; --nar-svj: #ff7a3d; --nar-tekst: #a83400; --nar-blijeda: #fff0e9;
  --krem: #f5f5f7; --plava: #e4ebf5; --rub: #e1e1e6; --rub-polja: #85858f; --siva: #5b5e6c; --zelena: #1f7a4a; --zelena-blijeda: #def3e6; --crvena: #c02a22;
  --slova: -apple-system, BlinkMacSystemFont, Manrope, system-ui, sans-serif;
  --krivulja: cubic-bezier(.2, .8, .2, 1);
  --sjena: 0 1px 2px #0d11200a, 0 10px 30px #0d11200d;
}
/* Gumbi i izbori prate podlogu na kojoj stoje. */
:root, .prozor > div { --gumb: #0d112012; --gumb2: #0d11201f; --istak: var(--mor); --na-istaku: #fff; --siva: #5b5e6c; }
body.mrak, .sad, .istaknuto, .plakat, .potvrda { --gumb: #ffffff1c; --gumb2: #ffffff30; --istak: #fff; --na-istaku: var(--mor); --siva: #abb0c2; }
* { box-sizing: border-box; min-width: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-padding: 90px 0; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--krem); color: var(--mor); font: 400 17px/1.47 var(--slova); letter-spacing: -.012em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.mrak { background: #0a0c15 radial-gradient(120vw 70vh at 35% -10%, #1e2742, #0a0c1500) no-repeat fixed; color: #fff; color-scheme: dark; }
h1 { margin: 0; font-size: clamp(32px, 4.8vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--slova-naslova, inherit); }
h2 { margin: 0; font-size: 23px; line-height: 1.22; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
b { font-weight: 650; }
p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
p { overflow-wrap: anywhere; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--nar); outline-offset: 3px; }
.siva { color: var(--siva); }
.samo-citac { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.gumb { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: var(--kut-gumb, 23px); background: var(--gumb); font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; transition: background .2s, scale .25s var(--krivulja), opacity .2s; }
.gumb:hover { background: var(--gumb2); }
.gumb:active { scale: .97; }
.gumb.glavni { min-height: 54px; padding-inline: 30px; border-radius: var(--kut-gumb, 27px); background: var(--nar); color: var(--na-nar, #fff); font-weight: 700; font-size: 19px; }
.gumb.glavni:hover { background: var(--nar-pritisak, #e94500); }
.gumb.tamni { background: var(--istak); color: var(--na-istaku); } .gumb.tamni:hover { opacity: .86; }
.gumb.tih { background: none; color: var(--siva); padding-inline: 14px; } .gumb.tih:hover { background: var(--gumb); }
.gumb:disabled { opacity: .35; cursor: default; scale: 1; }
.gumb svg { width: 21px; height: 21px; }
svg.ik { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.polje { display: grid; gap: 7px; font-weight: 600; align-content: start; }
.polje small { color: var(--siva); font-weight: 400; font-size: 15px; }
.polje input, .polje textarea, .polje select { width: 100%; min-height: 50px; padding: 11px 16px; border: 1px solid var(--rub-polja); border-radius: 13px; background: #fff; color: var(--mor); color-scheme: light; font-size: 17px; font-weight: 400; transition: box-shadow .2s, border-color .2s; }
.polje :is(input, textarea, select):focus { outline: 0; border-color: var(--nar); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nar) 22%, transparent); }
.polje textarea { min-height: 108px; resize: vertical; line-height: 1.5; field-sizing: content; }
.izbor { display: flex; flex-wrap: wrap; gap: 8px; }
.izbor label, .izbor button { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 20px; border: 0; border-radius: 23px; background: var(--gumb); font-weight: 600; cursor: pointer; transition: background .2s; }
.izbor label:hover, .izbor button:hover { background: var(--gumb2); }
.izbor input { position: absolute; opacity: 0; width: 1px; min-height: 0; padding: 0; }
.izbor label:has(:checked), .izbor button[aria-pressed=true] { background: var(--istak); color: var(--na-istaku); }
.izbor label:has(:focus-visible) { outline: 3px solid var(--nar); outline-offset: 3px; }
.sklopka { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; font-weight: 600; cursor: pointer; }
.sklopka input { appearance: none; flex: none; position: relative; width: 52px; height: 32px; margin: 0; border-radius: 16px; background: var(--rub-polja); cursor: pointer; transition: background .25s; }
.sklopka input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #0003; transition: translate .3s var(--krivulja); }
.sklopka input:checked { background: #27924f; } .sklopka input:checked::after { translate: 20px; }
form { display: grid; gap: 18px; }
.mreza { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.redak { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.redak.dno { align-items: end; } .redak .polje { flex: 1 1 220px; }
.med { position: absolute; left: -999em; }

#poruka { position: fixed; left: 50%; top: 16px; z-index: 99; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); padding: 13px 24px; border-radius: 26px; background: var(--zelena); color: #fff; font-weight: 600; box-shadow: 0 12px 40px #0004; pointer-events: none; animation: spusti .4s var(--krivulja); }
#poruka.greska { background: var(--crvena); }
#poruka:empty { display: none; }
#poruka button { margin: -6px -14px -6px 16px; padding: 6px 16px; border: 0; border-radius: 18px; background: #fff; color: var(--mor); font-weight: 600; pointer-events: auto; }
@keyframes spusti { from { opacity: 0; translate: 0 -20px; } }
@keyframes pojava { from { opacity: 0; translate: 0 8px; } }
@keyframes otvori { from { opacity: 0; scale: .96; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
