
/*
 * UL CGP LimeSurvey theme
 * Based on Fruity.
 *
 * IMPORTANT:
 * Univerza Sans font files are intentionally NOT distributed in this theme ZIP.
 * Upload the licensed .woff2 files to this theme's /files/ directory using the
 * exact filenames referenced below.
 */

@font-face {
  font-family: "Univerza Sans";
  src: url("../files/UniverzaSans-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Univerza Sans";
  src: url("../files/UniverzaSans-LightItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Univerza Sans";
  src: url("../files/UniverzaSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Univerza Sans";
  src: url("../files/UniverzaSans-RegularItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Univerza Sans";
  src: url("../files/UniverzaSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Univerza Sans";
  src: url("../files/UniverzaSans-MediumItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Univerza Sans";
  src: url("../files/UniverzaSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Univerza Sans";
  src: url("../files/UniverzaSans-BoldItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ul-red: #E03127;
  --ul-red-dark: #B42E34;
  --ul-anthracite: #58595B;
  --ul-midgrey: #A7A8AA;
  --ul-lightgrey: #E6E7E8;
  --ul-background: #F7F7F7;
  --ul-white: #FFFFFF;
}

/* Base */
html,
body,
body.fruity,
.fruity,
.font-arial,
.font-noto {
  font-family: "Univerza Sans", Arial, Helvetica, sans-serif !important;
  color: var(--ul-anthracite) !important;
}
body,
body.fruity {
  background: var(--ul-background) !important;
}

/* Institutional header */
#survey-nav.navbar {
  background: var(--ul-white) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ul-lightgrey) !important;
  box-shadow: 0 1px 7px rgba(0,0,0,.045) !important;
  min-height: 118px !important;
}
#survey-nav > .container-fluid {
  min-height: 118px !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}
#survey-nav .logo-container {
  float: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: calc(100vw - 140px) !important;
  overflow: visible !important;
}
#survey-nav .logo-container > img.logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-height: 108px !important;
  max-width: min(1000px, calc(100vw - 140px)) !important;
  padding: 10px 18px !important;
  margin: 0 auto !important;
}
#survey-nav .navbar-toggler {
  position: absolute !important;
  left: 12px !important;
  border-color: var(--ul-lightgrey) !important;
}
#survey-nav .navbar-action-link {
  position: absolute !important;
  right: 12px !important;
}
body.brand-logo {
  padding-top: 138px !important;
}

/* Typography */
h1,h2,h3,h4,h5,h6,
.group-title,
.question-title-container,
.ls-label-question,
.question-text {
  color: var(--ul-anthracite) !important;
}
h1,h2,h3,
.group-title {
  font-weight: 700 !important;
}
.question-title-container,
.question-text,
.ls-label-question {
  font-weight: 500 !important;
}
p, li, label, td, th, input, textarea, select, button {
  font-family: "Univerza Sans", Arial, Helvetica, sans-serif !important;
}
.text-info,
.ls-questionhelp {
  color: var(--ul-anthracite) !important;
}
a,
.fruity a {
  color: var(--ul-red) !important;
}
a:hover,
a:focus,
.fruity a:hover,
.fruity a:focus {
  color: var(--ul-red-dark) !important;
}

/* Progress */
.top-container .progress,
.progress {
  background-color: var(--ul-lightgrey) !important;
  box-shadow: none !important;
}
.progress-bar,
.fruity .progress-bar {
  background-color: var(--ul-red) !important;
}

/* Group/page heading */
.group-title-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.group-title-container .group-name,
.group-title-container h1,
.group-title-container h2 {
  border-left: 4px solid var(--ul-red);
  padding-left: 14px;
}

/* Question cards */
.question-container {
  background: var(--ul-white) !important;
  border: 1px solid var(--ul-lightgrey) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.question-title-container,
.answer-container,
.question-help-container {
  background: var(--ul-white) !important;
  border-color: var(--ul-lightgrey) !important;
}
.question-title-container {
  border-bottom: 0 !important;
}
.answer-container {
  padding-top: 10px !important;
}

/* Buttons */
.btn-primary,
.fruity .btn-primary,
.ls-move-next-btn,
.ls-move-submit-btn {
  color: #fff !important;
  background-color: var(--ul-red) !important;
  border-color: var(--ul-red) !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.fruity .btn-primary:hover,
.fruity .btn-primary:focus,
.fruity .btn-primary:active,
.ls-move-next-btn:hover,
.ls-move-submit-btn:hover {
  color: #fff !important;
  background-color: var(--ul-red-dark) !important;
  border-color: var(--ul-red-dark) !important;
}
.btn-default,
.btn-secondary,
.fruity .btn-default {
  color: var(--ul-anthracite) !important;
  background-color: #fff !important;
  border-color: var(--ul-midgrey) !important;
  box-shadow: none !important;
}
.btn-default:hover,
.btn-secondary:hover,
.fruity .btn-default:hover {
  color: var(--ul-anthracite) !important;
  background-color: #F2F2F2 !important;
  border-color: var(--ul-anthracite) !important;
}

/* Inputs */
.form-control,
.form-select,
input[type="text"],
input[type="number"],
textarea,
select {
  border-color: var(--ul-midgrey) !important;
  color: var(--ul-anthracite) !important;
  background-color: #fff !important;
}
.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--ul-red) !important;
  box-shadow: 0 0 0 .2rem rgba(224,49,39,.16) !important;
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--ul-red) !important;
}
.form-check-input:checked {
  background-color: var(--ul-red) !important;
  border-color: var(--ul-red) !important;
}

/* Fruity/Bootstrap selection overrides */
.radio-item input[type="radio"]:checked + label::before,
.checkbox-item input[type="checkbox"]:checked + label::before,
.answer-item input[type="radio"]:checked + label::before,
.answer-item input[type="checkbox"]:checked + label::before {
  border-color: var(--ul-red) !important;
}
.radio-item input[type="radio"]:checked + label::after,
.checkbox-item input[type="checkbox"]:checked + label::after,
.answer-item input[type="radio"]:checked + label::after,
.answer-item input[type="checkbox"]:checked + label::after {
  background-color: var(--ul-red) !important;
}

/* Arrays */
.table {
  color: var(--ul-anthracite) !important;
  background: #fff !important;
}
.table > thead > tr > th,
.ls-answers .ls-heading th {
  background-color: #F2F2F2 !important;
  color: var(--ul-anthracite) !important;
  border-color: var(--ul-lightgrey) !important;
  font-weight: 500 !important;
}
.table > tbody > tr > td,
.table > tbody > tr > th {
  border-color: var(--ul-lightgrey) !important;
}
.ls-even {
  background-color: #FAFAFA !important;
}

/* Stimuli */
.lk-stimulus {
  text-align: center;
  margin: 8px auto 22px auto;
}
.lk-stimulus img {
  display: inline-block;
  max-width: 100%;
  max-height: 760px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
}
.lk-stimulus.multi {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.lk-stimulus.multi img {
  max-width: min(100%, 520px);
  max-height: 720px;
}

/* Navigation/footer */
#navigator-container hr {
  border-color: var(--ul-lightgrey) !important;
}
footer,
#surveyListFooter {
  color: var(--ul-anthracite) !important;
}
*:focus-visible {
  outline-color: var(--ul-red) !important;
}

/* Mobile */
@media (max-width: 767px) {
  #survey-nav.navbar,
  #survey-nav > .container-fluid {
    min-height: 92px !important;
  }
  #survey-nav .logo-container.d-none {
    display: block !important;
  }
  #survey-nav .logo-container {
    max-width: calc(100vw - 82px) !important;
  }
  #survey-nav .logo-container > img.logo {
    max-height: 84px !important;
    max-width: calc(100vw - 82px) !important;
    padding: 8px 3px !important;
  }
  body.brand-logo {
    padding-top: 108px !important;
  }
  .question-container {
    margin-bottom: 1rem !important;
  }
}

/* =========================================================
   UL polish 2026-10-09
   ========================================================= */

/* Vprasanja: bel card z UL rdecim okvirjem */
.question-container {
    border: 1px solid #E03127 !important;
    box-shadow: none !important;
}

/* Likert / array anchors: UL rdeca + bel tekst */
.ls-answers .ls-heading th,
.ls-answers table thead th,
table.ls-answers thead th {
    background-color: #E03127 !important;
    color: #FFFFFF !important;
    border-color: #E6E7E8 !important;
    font-weight: 500 !important;
}

/* Prva, prazna celica nad besedilom trditve ostane nevtralna */
.ls-answers .ls-heading th:first-child,
.ls-answers table thead th:first-child,
table.ls-answers thead th:first-child {
    background-color: #FFFFFF !important;
    color: #58595B !important;
}

/* Malo manj zraka med institucionalnim headerjem in anketo */
body.brand-logo {
    padding-top: 120px !important;
}

.top-container {
    margin-top: 0 !important;
    padding-top: 8px !important;
    min-height: 0 !important;
}

.top-container .container,
.top-container .container-fluid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Progress naj bo blizje vsebini */
.top-container .progress,
.progress {
    margin-top: 0 !important;
    margin-bottom: 22px !important;
}

/* Mobile */
@media (max-width: 767px) {
    body.brand-logo {
        padding-top: 94px !important;
    }

    .top-container {
        padding-top: 4px !important;
    }
}


/* =========================================================
   UL polish v2 — 2026-10-09
   Append to BOTH FRIFPPLK/css/custom.css and
   FRI_default/css/custom.css
   ========================================================= */

/* 1) Likert/array anchors: vertically centered */
.ls-answers .ls-heading th,
.ls-answers table thead th,
table.ls-answers thead th {
    vertical-align: middle !important;
    text-align: center !important;
    line-height: 1.25 !important;
    height: 72px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* The top-left empty array header stays neutral */
.ls-answers .ls-heading th:first-child,
.ls-answers table thead th:first-child,
table.ls-answers thead th:first-child {
    vertical-align: middle !important;
}

/* 3) Yes/No: unselected = grey fill + strong UL-red border */
.yes-no .btn,
.yes-no label.btn,
.question-container.yes-no .btn,
.question-container.yes-no label.btn {
    background: #F2F2F2 !important;
    color: #58595B !important;
    border: 2px solid #E03127 !important;
    box-shadow: none !important;
}

/* Preserve visible separation where the two buttons touch */
.yes-no .btn + .btn,
.yes-no label.btn + label.btn {
    border-left-width: 2px !important;
}

/* Selected = white text on UL-red */
.yes-no .btn-check:checked + .btn,
.yes-no input[type="radio"]:checked + label.btn,
.question-container.yes-no .btn-check:checked + .btn,
.question-container.yes-no input[type="radio"]:checked + label.btn {
    background: #E03127 !important;
    color: #FFFFFF !important;
    border-color: #E03127 !important;
}

/* Hover/focus without falsely looking selected */
.yes-no .btn:hover,
.yes-no label.btn:hover {
    background: #E6E7E8 !important;
    color: #58595B !important;
    border-color: #B42E34 !important;
}

.yes-no .btn-check:checked + .btn:hover,
.yes-no input[type="radio"]:checked + label.btn:hover {
    background: #B42E34 !important;
    color: #FFFFFF !important;
    border-color: #B42E34 !important;
}

/* =========================================================
   UL polish v3 — left-align array statements
   ========================================================= */

.ls-answers tbody th.answertext,
.ls-answers tbody td.answertext,
.ls-answers .answertext {
    text-align: left !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
}

/* Some LimeSurvey question themes wrap the text one level deeper */
.ls-answers .answertext label,
.ls-answers .answertext .control-label,
.ls-answers .answertext div,
.ls-answers .answertext span {
    text-align: left !important;
}


/* =========================================================
   UL polish v4 — remove residual Fruity green
   ========================================================= */

.fruity .text-primary,
.fruity .text-info,
.fruity .survey-name,
.fruity .survey-welcome h1,
.fruity .survey-welcome h2,
.fruity .group-title,
.fruity .question-title-container {
    color: #58595B !important;
}

/* Keep actual links in UL red */
.fruity a,
.fruity a:visited {
    color: #E03127 !important;
}

.fruity a:hover,
.fruity a:focus {
    color: #B42E34 !important;
}

