/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/

/* ==========================================================
   INDUX — custom.css for the "indux" theme (extends fruity_twentythree)
   Paste this whole file at the END of css/custom.css in the theme editor.
   Files expected in the theme's "files" folder:
     indux-logo.png      (logo)
     Vazirmatn.woff2     (Persian font — optional, falls back to Tahoma)
   ========================================================== */

/* ---------- Brand variables ---------- */
:root {
  --indux-navy: #022B54;
  --indux-teal: #00BEC7;
  --indux-teal-dark: #0095A0;
  --indux-bg: #F4F7FB;
  --indux-font: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;

  --bs-primary: #00BEC7;
  --bs-primary-rgb: 0, 190, 199;
  --bs-link-color: #0095A0;
}

/* ---------- Persian font ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../files/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
body, .fruity_twentythree,
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
p, label, .btn, input, textarea, select, table, td, th,
.question-text, .ls-label-question, .answer-item, .survey-name, .survey-description,
.survey-welcome, .group-title, .group-description, .dropdown-menu, .navbar {
  font-family: var(--indux-font) !important;
}
body { background: var(--indux-bg); line-height: 1.9; }

/* ---------- Buttons ---------- */
.btn-primary,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active,
.btn-check:checked + .btn-primary, .btn-check:active + .btn-primary,
.btn-check + .btn-primary:hover {
  background-color: var(--indux-navy) !important;
  border-color: var(--indux-navy) !important;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--indux-teal-dark) !important;
  border-color: var(--indux-teal-dark) !important;
}
.btn-outline-primary { color: var(--indux-navy) !important; border-color: var(--indux-navy) !important; border-radius: 10px; }
.btn-outline-primary:hover { background: var(--indux-navy) !important; color: #fff !important; }

a, .btn-link, .link-primary { color: var(--indux-teal-dark); }
a:hover, .btn-link:hover { color: var(--indux-navy); }

/* ---------- Radios / checkboxes / inputs ---------- */
.radio-item input[type=radio]:checked + label::before,
.checkbox-item input[type=checkbox]:checked + label::before { border-color: var(--indux-teal) !important; }
.radio-item label::after,
.radio-item input[type=radio] + label::after,
.radio-item input[type=radio]:checked + label::after,
body .answer-item label::after { background-color: var(--indux-teal) !important; }
.radio-item input[type=radio]:checked + label,
.checkbox-item input[type=checkbox]:checked + label,
.checkbox-item input[type=checkbox]:checked + label::after { color: var(--indux-navy) !important; }
input[type=checkbox]:checked:after { background-color: var(--indux-teal) !important; border-color: var(--indux-teal) !important; }
.input-group-text, label .input-group-text { background-color: var(--indux-navy) !important; }
.form-control:focus, .form-select:focus {
  border-color: var(--indux-teal) !important;
  box-shadow: 0 0 0 3px rgba(0, 190, 199, .25) !important;
}
.has-success .form-control, .has-success .form-control:focus { box-shadow: -4px 4px 0 var(--indux-teal) !important; }

/* ---------- Progress bar ---------- */
.progress { height: 10px; border-radius: 10px; background: #E3E9F1; }
.progress-bar { background-color: var(--indux-teal) !important; color: transparent; }

/* ---------- Survey pages: header, cards ---------- */
#survey-nav.navbar { background: #fff !important; border-bottom: 3px solid var(--indux-teal); box-shadow: 0 2px 8px rgba(2,43,84,.06); }
.survey-name, .group-title { color: var(--indux-navy) !important; }
.question-container {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(2,43,84,.08);
  margin-bottom: 18px;
  border: none !important;
}
.question-title-container { border-bottom: 1px solid #EEF2F7; }
.asterisk, .text-danger { color: #D94452 !important; }
/* welcome page: smaller title on phones */
@media (max-width: 576px) {
  .survey-name, h1.survey-name { font-size: 1.5rem !important; line-height: 1.6; }
  .survey-welcome table { font-size: .85rem; }
}

/* ---------- Public survey-list (home page) ---------- */
/* replace LimeSurvey logo + site name with INDUX logo */
#surveys-list-jumbotron { padding-top: 24px; }
#surveys-list-jumbotron > div[role="img"],
#surveys-list-jumbotron > span.h3 { display: none !important; }
#surveys-list-jumbotron::before {
  content: "";
  display: block;
  width: 260px; max-width: 70vw; height: 90px;
  margin: 0 auto 8px;
  background: url('../files/indux-logo.png') center / contain no-repeat;
}
.survey-list-heading h2 { color: var(--indux-navy); font-size: 1.15rem; text-align: center !important; margin-bottom: 12px !important; }
.surveys-list .surveytitle {
  white-space: normal;
  padding: 16px 18px;
  margin-bottom: 12px;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(2,43,84,.12);
}
/* hide "powered by LimeSurvey" footer and the admin contact line */
#surveyListFooter, .survey-contact { display: none !important; }

/* hide "There are X questions" + duplicate home logo */
.number-of-questions { display: none !important; }
#surveys-list-jumbotron::before { display: none !important; }

.form-change-lang { display: none !important; }

#survey-nav .container-fluid { flex-direction: row-reverse; }
