/* Prijava za učešće (31.10.2026, David's brief v4 part 3): the participant registration form. The admission ticket:
   honey strip with a perforated edge, honey fee cards, the honey send button. Never reuse this look for the works form
   (/prijava-radova/ is ink and paper): v4 „Vizuelno se ne sme mešati sa prijavom za učešće". */
.pg-prijava{--err:#B42318;--err-t:#FDECEA}

/* 1 opening */
.rg-hero{padding:124px 0 clamp(22px,2.4vw,36px)}
.rg-h-g{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(30px,5vw,90px);align-items:end}
.rg-pt{font-size:clamp(44px,5.4vw,84px);line-height:.92;margin-top:clamp(8px,1vw,14px);text-wrap:balance}
.rg-pt em{display:block;margin-top:.06em;font-size:1.04em}
.rg-when{display:inline-flex;align-items:center;gap:10px;margin-top:clamp(20px,2.2vw,30px);padding:9px 18px 9px 12px;border-radius:999px;background:var(--wax2);font-weight:600;font-size:17px;line-height:1.3}
.rg-when .ic{width:22px;height:22px;fill:var(--amber)}
.rg-lead{margin-top:16px;max-width:44ch;font-size:clamp(18px,1.5vw,21px);line-height:1.5;color:var(--ink2)}
.rg-th0{display:block;width:44px;height:2px;margin-top:6px}
.rg-h-comb{position:relative;--c:clamp(140px,11.2vw,176px);width:calc(var(--c)*2 + 10px);height:calc(var(--c)*1.1547*1.75 + 8px);margin-bottom:-6px}
.rg-hx{position:absolute;width:var(--c);aspect-ratio:.8660254;clip-path:var(--hx);background:var(--wax3)}
.rg-hx picture,.rg-hx img{display:block;width:100%;height:100%;object-fit:cover}
.rg-hx1{left:calc(var(--c)*.5 + 5px);top:calc(var(--c)*1.1547*.75 + 8px)}
.rg-hx2{left:calc(var(--c) + 10px);top:0}
.rg-hx2 img{object-position:40% 50%}
.rg-hx3{left:0;top:0;background:var(--honey)}
html.js.m-desk .rg-hx2.rv-cell{transition-delay:.12s}
html.js.m-desk .rg-hx3.rv-cell{transition-delay:.22s}

/* 2 the form + the side column */
.rg-main{padding:clamp(10px,2vw,28px) 0 clamp(70px,8vw,120px)}
.rg-g{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,372px);gap:clamp(28px,4vw,60px);align-items:start}
.rg-col{min-width:0}
.rg-form{position:relative;background:var(--white);border-radius:32px;box-shadow:0 34px 70px -38px rgba(90,50,0,.5),0 2px 8px rgba(70,45,10,.05);overflow:hidden}
.rg-form[aria-busy="true"] .rg-fs{opacity:.72;transition:opacity .2s}

/* the ticket strip: honey, a perforated lower edge */
.rg-f-top{position:relative;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px clamp(22px,3vw,40px) 26px;background:var(--honey)}
.rg-f-top::after{content:"";position:absolute;left:0;right:0;bottom:-7px;height:14px;background:radial-gradient(circle at 11px 7px,var(--white) 6px,transparent 6.6px) 0 0/22px 14px repeat-x}
.rg-f-top ::selection{background:#1A1612;color:#FFF6E3}
.rg-f-h{font-family:var(--fd);font-weight:800;font-stretch:112%;font-size:clamp(26px,2.4vw,34px);line-height:1;letter-spacing:-.02em}
.rg-f-d{display:flex;flex-direction:column;align-items:flex-end;text-align:right;font-size:14.5px;font-weight:600;line-height:1.25}
.rg-f-d b{font-family:var(--fd);font-weight:780;font-size:17px;letter-spacing:-.01em}

.rg-fs{border:0;margin:0;padding:clamp(24px,2.6vw,34px) clamp(22px,3vw,40px) 0;min-width:0}
.rg-lg{float:left;width:100%;padding:0;margin:0 0 16px;font-family:var(--fd);font-weight:780;font-stretch:100%;font-size:19px;line-height:1.2;color:var(--amberd)}
.rg-lg::before{content:"";display:inline-block;width:15px;aspect-ratio:.8660254;clip-path:var(--hx);background:var(--honey);margin-right:10px;vertical-align:-1px}
.rg-fs>legend+*{clear:both}
.rg-fld{display:grid;align-content:start;gap:7px;margin-bottom:18px;min-width:0}
.rg-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.rg-l{font-size:15.5px;font-weight:600;line-height:1.3;color:var(--ink)}
.rg-in{display:block;font:inherit;font-size:17px;font-weight:400;width:100%;height:56px;padding:0 18px;border-radius:16px;border:2px solid rgba(26,22,18,.14);background-color:var(--wax);color:var(--ink);transition:border-color .2s,background-color .2s,box-shadow .2s;-webkit-appearance:none;appearance:none;margin:0}
.rg-in:hover{border-color:rgba(26,22,18,.3)}
.rg-in:focus{outline:none;border-color:var(--ink);background-color:var(--white);box-shadow:0 0 0 4px rgba(242,160,7,.38)}
.rg-in[aria-invalid="true"]{border-color:var(--err);background-color:#FFF7F5}
.rg-in:disabled{opacity:1}
.rg-sel{position:relative;display:block}
.rg-sel select{padding-right:50px;cursor:pointer;text-overflow:ellipsis}
.rg-sel select:invalid{color:var(--ink3)}
.rg-sel option,.rg-sel optgroup{color:var(--ink)}
.rg-sel .ic{position:absolute;right:16px;top:50%;width:24px;height:24px;transform:translateY(-50%);pointer-events:none;fill:var(--ink2)}
.rg-hint{font-size:14.5px;line-height:1.4;color:var(--ink3)}
.rg-err{display:flex;align-items:flex-start;gap:7px;font-size:15px;font-weight:600;line-height:1.35;color:var(--err);animation:rgIn .3s var(--ease) both}
.rg-err[hidden]{display:none}
.rg-err .ic{width:19px;height:19px;fill:var(--err);margin-top:1px}

/* the fee: three cards, honey when chosen; the amount and the conditional field under them */
.rg-fees{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rg-fee{position:relative;display:flex;min-height:104px;border-radius:20px;background:var(--wax);box-shadow:inset 0 0 0 2px rgba(26,22,18,.12);cursor:pointer;transition:background-color .25s,box-shadow .25s,transform .4s var(--ease)}
.rg-fee:hover{box-shadow:inset 0 0 0 2px rgba(26,22,18,.34)}
.rg-fee input{position:absolute;left:14px;top:14px;width:20px;height:20px;margin:0;opacity:0;pointer-events:none}
.rg-fee-c{display:flex;flex-direction:column;gap:6px;padding:18px 46px 16px 18px;min-width:0}
.rg-fee-c b{font-family:var(--fd);font-weight:800;font-stretch:112%;font-size:clamp(21px,1.75vw,26px);line-height:1.05;letter-spacing:-.02em}
.rg-fee-c span{font-size:15px;line-height:1.3;color:var(--ink2);font-weight:500}
.rg-fee-k{position:absolute;right:12px;top:12px;display:grid;place-items:center;width:28px;aspect-ratio:.8660254;clip-path:var(--hx);background:rgba(26,22,18,.1);transition:background-color .25s,transform .45s var(--ease)}
.rg-fee-k .ic{width:17px;height:17px;fill:transparent;transition:fill .2s}
.rg-fee.is-on{background:var(--honey);box-shadow:inset 0 0 0 2px var(--honey),0 16px 30px -18px rgba(150,90,0,.8)}
.rg-fee.is-on .rg-fee-c span{color:var(--ink)}
.rg-fee.is-on .rg-fee-k{background:var(--ink);transform:rotate(30deg) scale(1.08)}
.rg-fee.is-on .rg-fee-k .ic{fill:var(--honey);transform:rotate(-30deg)}
.rg-fee.is-fv{outline:3px solid var(--amber);outline-offset:3px}
.rg-fee ::selection{background:#1A1612;color:#FFF6E3}
.rg-fees.is-bad .rg-fee{box-shadow:inset 0 0 0 2px var(--err);background-color:#FFF7F5}
.rg-fs-fee>.rg-err{margin-top:10px}
.rg-sum{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-top:14px;padding:14px 18px;border-radius:16px;background:var(--wax2);font-weight:600;animation:rgIn .35s var(--ease) both}
.rg-sum[hidden]{display:none}
.rg-sum b{font-family:var(--fd);font-weight:800;font-stretch:112%;font-size:clamp(22px,2vw,28px);line-height:1.1;letter-spacing:-.02em}
.rg-cond{margin:16px 0 0;animation:rgIn .45s var(--ease) both}
.rg-cond[hidden]{display:none}
@keyframes rgIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* consent + news: a 28 px box in a 48 px row */
.rg-fs-ck{padding-top:clamp(20px,2.2vw,28px)}
.rg-fs-ck .rg-fld{margin-bottom:4px;gap:0}
.rg-ck{position:relative;display:flex;align-items:flex-start;gap:14px;min-height:48px;padding:10px 0;cursor:pointer;font-size:16.5px;line-height:1.45}
.rg-ck input{position:absolute;left:0;top:10px;width:28px;height:28px;margin:0;opacity:0}
.rg-ck-b{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:9px;border:2px solid rgba(26,22,18,.32);background:var(--wax);transition:background-color .2s,border-color .2s}
.rg-ck-b .ic{width:20px;height:20px;fill:transparent;transition:fill .15s}
.rg-ck:hover .rg-ck-b{border-color:var(--ink)}
.rg-ck input:checked+.rg-ck-b{background:var(--ink);border-color:var(--ink)}
.rg-ck input:checked+.rg-ck-b .ic{fill:var(--honey)}
.rg-ck input:focus-visible+.rg-ck-b{outline:3px solid var(--amber);outline-offset:3px}
.rg-ck input[aria-invalid="true"]+.rg-ck-b{border-color:var(--err);background:#FFF7F5}
.rg-ck-t{padding-top:1px}
.rg-ck-pl{margin:-6px 0 4px 42px}
.rg-ck-pl a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:600;font-size:15.5px;color:var(--amberd);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.rg-ck-pl a:hover{color:var(--ink)}
.rg-ck-pl a{display:inline-block;padding:11px 0;min-height:44px}
.rg-ck-pl .ic{display:inline-block;width:18px;height:18px;margin-left:6px;vertical-align:-3px}
.rg-fs-ck .rg-err{margin:0 0 8px 42px}

/* the honeypot: off screen, out of the tab order, never announced */
.rg-hp{position:absolute;left:-9999px;top:0;width:1px;height:1px;overflow:hidden}

/* send */
.rg-go-w{display:grid;gap:14px;margin-top:14px;padding:clamp(20px,2.4vw,28px) clamp(22px,3vw,40px) clamp(24px,3vw,38px);border-top:2px dashed var(--wax3)}
.rg-go{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:66px;padding:8px 9px 8px 30px;border:0;border-radius:999px;background:var(--honey);color:var(--ink);font-family:var(--fd);font-weight:800;font-stretch:112%;font-size:clamp(19px,1.7vw,22px);line-height:1.1;letter-spacing:-.01em;text-align:left;cursor:pointer;box-shadow:0 16px 34px -18px rgba(150,90,0,.85);transition:transform .35s var(--ease),background-color .25s,box-shadow .35s}
.rg-go:hover{background:var(--honey2);transform:translateY(-2px);box-shadow:0 22px 40px -20px rgba(150,90,0,.9)}
.rg-go:active{transform:translateY(0)}
.rg-go ::selection{background:#1A1612;color:#FFF6E3}
.rg-go .bi{position:relative;display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:var(--ink);flex:none;transition:transform .45s var(--ease)}
.rg-go:hover .bi{transform:rotate(-12deg) scale(1.05)}
.rg-go .rg-go-i{width:23px;height:23px;fill:var(--honey)}
.rg-go-b{display:none}
.rg-spin{display:none;position:absolute;inset:12px;border-radius:50%;border:3px solid rgba(242,160,7,.28);border-top-color:var(--honey);animation:rgSpin .8s linear infinite}
.rg-go.is-busy{cursor:progress;background:var(--honey2);transform:none}
.rg-go.is-busy .rg-go-t,.rg-go.is-busy .rg-go-i{display:none}
.rg-go.is-busy .rg-go-b,.rg-go.is-busy .rg-spin{display:block}
@keyframes rgSpin{to{transform:rotate(360deg)}}
.rg-msg{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;border-radius:16px;background:var(--err-t);color:#7A1A12;font-weight:600;font-size:16px;line-height:1.45;animation:rgIn .3s var(--ease) both}
.rg-msg[hidden]{display:none}
.rg-msg .ic{width:22px;height:22px;fill:var(--err);margin-top:1px}
.rg-msg a{color:inherit;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}

/* the confirmation (only after {"ok":true}) */
.rg-ok{position:relative;background:var(--white);border-radius:32px;padding:clamp(28px,4vw,56px);box-shadow:0 34px 70px -38px rgba(90,50,0,.5),0 2px 8px rgba(70,45,10,.05);overflow:hidden;animation:rgOk .6s var(--ease) both}
.rg-ok[hidden]{display:none}
.rg-ok:focus{outline:none}
.rg-ok:focus-visible{outline:3px solid var(--amber);outline-offset:4px}
.rg-ok::before{content:"";position:absolute;right:-70px;top:-60px;width:clamp(170px,18vw,240px);aspect-ratio:.8660254;clip-path:var(--hx);background:var(--honey);pointer-events:none}
@keyframes rgOk{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}
.rg-ok-hx{position:relative;display:grid;place-items:center;width:74px;aspect-ratio:.8660254;clip-path:var(--hx);background:var(--ink)}
.rg-ok-hx .ic{width:34px;height:34px;fill:var(--honey)}
.rg-ok-h{position:relative;margin-top:22px;max-width:16ch;font-family:var(--fd);font-weight:860;font-stretch:122%;font-size:clamp(34px,4vw,58px);line-height:.98;letter-spacing:-.03em;overflow-wrap:anywhere}
.rg-ok-p{margin-top:18px;max-width:42ch;font-size:clamp(18px,1.6vw,21px);line-height:1.5}
.rg-ok-p[hidden]{display:none}
.rg-ok-p b{overflow-wrap:anywhere}
.rg-ok-no{display:inline-grid;gap:4px;margin-top:26px;padding:18px 24px 18px;border-radius:22px;background:var(--wax2)}
.rg-ok-no[hidden]{display:none}
.rg-ok-nl{font-weight:600;font-size:15px;color:var(--amberd)}
.rg-ok-nv{font-family:var(--fd);font-weight:400;font-stretch:58%;font-size:clamp(58px,6vw,86px);line-height:.92;letter-spacing:.01em;color:var(--ink)}
.rg-ok-ref{font-size:15px;line-height:1.4;color:var(--ink2)}
.rg-ok-ref[hidden]{display:none}
.rg-ok-go{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:30px}
.rg-again{display:inline-flex;align-items:center;gap:10px;min-height:56px;padding:8px 14px;border:0;border-radius:999px;background:transparent;color:var(--ink);font-weight:600;font-size:17px;cursor:pointer;text-decoration:underline;text-decoration-color:var(--honey);text-decoration-thickness:2px;text-underline-offset:5px}
.rg-again .ic{width:22px;height:22px;fill:var(--amber)}
.rg-again:hover{text-decoration-color:var(--ink)}

/* the side column: what the fee includes, help, the works form is separate */
.rg-side{display:grid;gap:16px;position:sticky;top:112px}
.rg-tk{border-radius:28px;background:var(--wax2);padding:clamp(22px,2.4vw,30px)}
.rg-s-h{font-family:var(--fd);font-weight:780;font-stretch:100%;font-size:22px;line-height:1.15;margin-bottom:8px}
.rg-inc li{display:flex;align-items:center;gap:12px;padding:9px 0;font-weight:500;font-size:16.5px;line-height:1.3;border-bottom:1px solid rgba(138,83,0,.16)}
.rg-inc li:last-child{border-bottom:0}
.rg-inc .ic{width:22px;height:22px;fill:var(--amberd);flex:none}
.rg-cap{display:flex;align-items:center;gap:14px;margin-top:12px;padding-top:16px;border-top:2px dashed rgba(138,83,0,.26);font-size:15px;line-height:1.4;font-weight:500}
.rg-cap b{flex:none;font-family:var(--fd);font-weight:400;font-stretch:58%;font-size:60px;line-height:.8;letter-spacing:-.01em;color:var(--amber)}
.rg-help{border-radius:28px;background:var(--ink);color:var(--wax);padding:clamp(22px,2.4vw,30px)}
.rg-help ::selection{background:#F2A007;color:#1A1612}
.rg-help-q{font-family:var(--fd);font-weight:780;font-stretch:100%;font-size:21px;line-height:1.15}
.rg-help-p{margin-top:8px;font-size:15.5px;line-height:1.5;color:rgba(255,246,227,.82)}
.rg-help-a{display:grid;gap:2px;margin-top:10px}
.rg-help-a a{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:700;font-size:18px;color:var(--wax);text-decoration:none;overflow-wrap:anywhere}
.rg-help-a .ic{width:22px;height:22px;fill:var(--honey)}
.rg-help-a a:hover{color:var(--honey2)}
.rg-pap{padding:4px 6px 0;font-size:15.5px;line-height:1.45;color:var(--ink2)}
.rg-pap .lnk{margin-top:2px;color:var(--ink)}

/* the fee as rows where three cards would squeeze it: 901 to 1100 px, and English everywhere (its price carries the
   approx. EUR amount, too long for a third of the form) */
@media (max-width:1100px) and (min-width:901px){
  .rg-fees{grid-template-columns:minmax(0,1fr)}
  .rg-fee{min-height:70px}
  .rg-fee-c{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 14px}
}
html[lang="en"] .rg-fees{grid-template-columns:minmax(0,1fr)}
html[lang="en"] .rg-fee{min-height:70px}
html[lang="en"] .rg-fee-c{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 14px;padding-right:56px}
html[lang="en"] .rg-fee-k{top:50%;margin-top:-16px}
/* phones: the opening shrinks so the form starts on the first screen; the side column follows the form */
@media (max-width:900px){
  .rg-hero{padding:92px 0 16px}
  .rg-h-g{grid-template-columns:minmax(0,1fr)}
  .rg-h-comb{display:none}
  .rg-pt{font-size:clamp(34px,10vw,54px);margin-top:2px}
  .rg-when{margin-top:12px;padding:7px 14px 7px 10px;font-size:15px;gap:8px}
  .rg-when .ic{width:20px;height:20px}
  .rg-lead{margin-top:10px;font-size:16.5px;line-height:1.45}
  .rg-main{padding:4px 0 60px}
  .rg-g{grid-template-columns:minmax(0,1fr);gap:20px}
  .rg-side{position:static}
  .rg-form,.rg-ok{border-radius:26px}
  .rg-f-top{padding:16px 18px 20px}
  .rg-f-h{font-size:24px}
  .rg-f-d{font-size:13.5px}
  .rg-f-d b{font-size:15.5px}
  .rg-fs{padding:22px 18px 0}
  .rg-row{grid-template-columns:minmax(0,1fr)}
  .rg-fees{grid-template-columns:minmax(0,1fr);gap:10px}
  .rg-fee{min-height:68px}
  .rg-fee-c{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 12px;padding:14px 54px 14px 16px}
  .rg-fee-c b{font-size:22px}
  .rg-fee-k{top:50%;margin-top:-16px}
  .rg-go-w{padding:18px 18px 22px}
  .rg-go{min-height:64px;padding-left:24px}
  .rg-ok{padding:28px 20px}
  .rg-ok::before{right:-90px;top:-70px}
  .rg-ok-go .btn{flex:1 1 auto;justify-content:space-between}
  .rg-tk,.rg-help{border-radius:24px;padding:22px 20px}
}
@media (max-width:600px){
  .rg-f-d{display:none}
}
@media (max-width:360px){
  .rg-fs{padding-left:14px;padding-right:14px}
  .rg-go{font-size:18px;padding-left:20px}
}
