.avreg-modal{--av:#513585;--av2:#7656b7;position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:20px;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.avreg-modal.is-open{display:flex}
.avreg-overlay{position:absolute;inset:0;background:rgba(25,15,42,.68);backdrop-filter:blur(8px);animation:avregFade .2s ease}
.avreg-dialog{position:relative;z-index:2;width:min(720px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:30px;background:#fff;box-shadow:0 35px 100px rgba(24,12,43,.35);animation:avregUp .3s ease}
.avreg-head{padding:32px 34px 18px;background:linear-gradient(135deg,#f7f2fd,#fff)}
.avreg-kicker{display:inline-flex;padding:7px 11px;border-radius:999px;background:#eee6fa;color:var(--av);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.avreg-head h2{margin:12px 0 8px!important;color:var(--av)!important;font-size:clamp(28px,5vw,40px)!important;line-height:1!important;letter-spacing:-.035em!important}
.avreg-head p{margin:0;color:#6c6377;line-height:1.55}
.avreg-close{position:absolute;right:16px;top:16px;z-index:3;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#4f4260;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 8px 24px rgba(46,29,70,.12)}
.avreg-form{padding:24px 34px 34px}
.avreg-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.avreg-form label{display:block;margin-bottom:14px}
.avreg-form label>span{display:block;margin-bottom:7px;color:#493d57;font-size:13px;font-weight:800}
.avreg-form label small{font-weight:500;color:#887e92}
.avreg-form input[type=text],.avreg-form input[type=tel],.avreg-form input[type=email],.avreg-form select,.avreg-form textarea{width:100%;border:1px solid #ddd5e7;border-radius:14px;background:#fff;color:#2d2438;padding:13px 14px;font:inherit;outline:none;transition:.2s ease}
.avreg-form input:focus,.avreg-form select:focus,.avreg-form textarea:focus{border-color:var(--av2);box-shadow:0 0 0 4px rgba(81,53,133,.09)}
.avreg-consent{position:relative;display:grid!important;grid-template-columns:28px 1fr;gap:12px;align-items:start;margin:7px 0 20px!important;padding:14px 15px;border:1px solid #e3d9ef;border-radius:16px;background:linear-gradient(135deg,#fbf9fe,#fff);cursor:pointer;transition:.2s ease}
.avreg-consent:hover{border-color:#cbb8e2;background:#faf6ff}
.avreg-consent input{position:absolute;opacity:0;pointer-events:none}
.avreg-checkmark{width:26px;height:26px;border:2px solid #c9b9dc;border-radius:9px;background:#fff;display:grid!important;place-items:center;margin:0!important;transition:.2s ease;box-shadow:0 3px 10px rgba(81,53,133,.06)}
.avreg-checkmark::after{content:"";width:10px;height:6px;border-left:3px solid #fff;border-bottom:3px solid #fff;transform:rotate(-45deg) scale(0);margin-top:-2px;transition:.18s ease}
.avreg-consent input:checked + .avreg-checkmark{border-color:var(--av);background:linear-gradient(135deg,var(--av),var(--av2));box-shadow:0 7px 18px rgba(81,53,133,.22)}
.avreg-consent input:checked + .avreg-checkmark::after{transform:rotate(-45deg) scale(1)}
.avreg-consent input:focus-visible + .avreg-checkmark{outline:3px solid rgba(81,53,133,.17);outline-offset:2px}
.avreg-consent-copy{display:block!important;margin:0!important;line-height:1.35!important}
.avreg-consent-copy strong{display:block;color:#493d57;font-size:13px;font-weight:850;margin:0 0 3px}
.avreg-consent-copy small{display:block;color:#766b81;font-size:12px;font-weight:500;line-height:1.45}
.avreg-submit{width:100%;min-height:54px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--av),var(--av2));color:#fff;font:inherit;font-weight:900;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;box-shadow:0 15px 34px rgba(81,53,133,.24)}
.avreg-submit:disabled{opacity:.65;cursor:not-allowed}
.avreg-status{margin-top:13px;padding:0;font-size:14px;font-weight:700}
.avreg-status.success{padding:13px 14px;border-radius:13px;background:#eaf8ef;color:#237141}
.avreg-status.error{padding:13px 14px;border-radius:13px;background:#fff0f0;color:#a23434}
.avreg-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
body.avreg-lock{overflow:hidden}
@keyframes avregFade{from{opacity:0}to{opacity:1}}
@keyframes avregUp{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:620px){.avreg-modal{padding:10px}.avreg-dialog{max-height:calc(100vh - 20px);border-radius:24px}.avreg-head{padding:26px 20px 16px}.avreg-form{padding:20px}.avreg-grid{grid-template-columns:1fr}.avreg-close{right:10px;top:10px}}
@media(prefers-reduced-motion:reduce){.avreg-overlay,.avreg-dialog{animation:none}}


/* Elementor editor helper za page-specific listu kurseva */
.avreg-page-config{display:none!important}
.avreg-editor-preview{
  padding:16px 18px;
  border:1px dashed #cbbce0;
  border-radius:14px;
  background:#faf7fe;
  color:#4d3a68;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.avreg-editor-preview strong,
.avreg-editor-preview span,
.avreg-editor-preview small{display:block}
.avreg-editor-preview strong{font-size:15px;color:#513585;margin-bottom:4px}
.avreg-editor-preview span{font-size:13px;font-weight:700;margin-bottom:5px}
.avreg-editor-preview small{font-size:12px;line-height:1.45;color:#776b84}
