:root {
  --portal-ink: #0f172a;
  --portal-muted: #5b6475;
  --portal-line: #d9e2ec;
  --portal-navy: #0b2f63;
  --portal-blue: #123c7c;
  --portal-gold: #9a6700;
  --portal-red: #b42318;
}

body {
  font-size: 0.875rem;
  background: #f6f8fb;
  color: var(--portal-ink);
  font-family: "Manrope", sans-serif;
}

.layout-navbar-fixed .wrapper .content-wrapper {
  margin-top: calc(3.5rem + 1px);
}

.main-header.navbar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.main-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.brand-text,
.nav-sidebar .nav-link p,
.content-header h1,
h2,
h3,
h4,
h5,
label {
  font-family: "Manrope", sans-serif;
}

.sidebar .nav-link p {
  font-size: 0.8rem;
  line-height: 1.25;
  white-space: normal;
}

.nav-sidebar .nav-header {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.nav-sidebar .nav-link {
  border-radius: 0.5rem;
  margin-bottom: 0.2rem;
}

.nav-sidebar .nav-link.active {
  background: #e7f1fb;
  box-shadow: none;
  color: var(--portal-navy);
  font-weight: 800;
}

.nav-sidebar .text-primary {
  color: var(--portal-navy) !important;
}

.sidebar-light-primary .nav-sidebar .nav-link.active,
.sidebar-light-primary .nav-sidebar .nav-link.active p,
.sidebar-light-primary .nav-sidebar .nav-link.active i,
.sidebar-light-primary .nav-sidebar .nav-link.active .nav-icon,
.sidebar-light-primary .nav-sidebar .nav-link.active .text-primary {
  color: var(--portal-navy) !important;
}

.sidebar-light-primary .nav-sidebar > .nav-item > .nav-treeview > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-treeview > .nav-item > .nav-link.active p,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-treeview > .nav-item > .nav-link.active i,
body[data-survey="barriers-to-entry"] .sidebar-light-primary .nav-sidebar .nav-treeview .nav-link.active,
body[data-survey="barriers-to-entry"] .sidebar-light-primary .nav-sidebar .nav-treeview .nav-link.active p,
body[data-survey="barriers-to-entry"] .sidebar-light-primary .nav-sidebar .nav-treeview .nav-link.active i {
  color: var(--portal-navy) !important;
}

.nav-treeview .nav-link {
  padding-left: 2rem;
}

.main-header .navbar-nav .nav-link.active {
  font-weight: 800;
}

.main-header .navbar-nav .nav-link {
  color: var(--portal-navy);
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
}

.page-shell {
  padding-bottom: 1rem;
}

.survey-panel {
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 0.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.survey-hero {
  border-bottom: 1px solid var(--portal-line);
  padding: 1.25rem;
}

.survey-icon {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.survey-icon.info {
  background: #e8eef8;
  color: var(--portal-navy);
}

.survey-icon.warning {
  background: #fff4df;
  color: var(--portal-gold);
}

.survey-icon.danger {
  background: #ffe9e9;
  color: var(--portal-red);
}

.survey-icon.primary {
  background: #e8eef8;
  color: var(--portal-navy);
}

.section-kicker {
  color: var(--portal-navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0.4rem 0 0.4rem;
}

.section-copy {
  color: var(--portal-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.survey-tools {
  gap: 0.5rem;
}

.step-strip {
  border-bottom: 1px solid var(--portal-line);
  padding: 1rem 1.25rem 0.5rem;
}

.survey-form-wrap {
  padding: 1.25rem;
}

.survey-section {
  border: 1px solid var(--portal-line);
  border-radius: 0.5rem;
  padding: 1rem;
}

.survey-section[hidden] {
  display: none;
}

.survey-section-header {
  border-bottom: 1px solid var(--portal-line);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
}

.survey-section-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.participant-notice {
  align-items: flex-start;
  background: #f2f7fd;
  border: 1px solid #cfe0f4;
  border-radius: 0.5rem;
  color: #263244;
  display: flex;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.participant-notice .bi {
  color: var(--portal-navy);
  font-size: 1.05rem;
  margin-top: 0.15rem;
}

.participant-image-preview {
  height: 170px;
  object-fit: cover;
  width: 170px;
}

.survey-input-icon {
  background: #eef4fb;
  color: var(--portal-navy);
  justify-content: center;
  min-width: 2.4rem;
}

.binary-field.has-icon {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
}

.binary-field-icon,
.file-field-icon {
  align-items: center;
  background: #eef4fb;
  border: 1px solid #ced4da;
  border-radius: 0.35rem;
  color: var(--portal-navy);
  display: inline-flex;
  flex: 0 0 auto;
  height: 2rem;
  justify-content: center;
  width: 2.4rem;
}

.binary-field-icon {
  margin-top: -0.1rem;
}

.file-field-control {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.survey-panel .select2-container--bootstrap4 {
  width: 100% !important;
}

.survey-panel .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.2rem 0.25rem !important;
  white-space: normal !important;
}

.survey-panel .select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline {
  flex: 1 1 180px !important;
}

.survey-select-helper {
  line-height: 1.45;
}

.form-group label {
  color: #263244;
  font-size: 0.84rem;
  font-weight: 800;
}

.custom-switch .custom-control-label {
  color: #263244;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.binary-field {
  background: #f9fbfd;
  border: 1px solid var(--portal-line);
  border-radius: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 0.9rem 0.65rem;
  width: 100%;
}

.draft-status {
  min-height: 1.5rem;
}

.progress {
  background: #e8eef5;
  border-radius: 999px;
  height: 0.55rem;
}

.progress-bar {
  background: linear-gradient(90deg, var(--portal-navy), var(--portal-blue));
}

.btn-primary {
  background-color: var(--portal-navy);
  border-color: var(--portal-navy);
}

.btn-outline-primary {
  border-color: var(--portal-navy);
  color: var(--portal-navy);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--portal-navy);
  border-color: var(--portal-navy);
  color: #fff;
}

.draft-status.text-primary {
  color: var(--portal-navy) !important;
}

.form-actions {
  border-top: 1px solid var(--portal-line);
  gap: 0.5rem;
  padding-top: 1rem;
}

.btn-icon {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  justify-content: center;
}

.file-list {
  color: var(--portal-muted);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.survey-local-note {
  border-radius: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.5;
}

.survey-hub-card {
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 0.35rem;
  color: inherit;
  display: block;
  height: 100%;
  min-height: 210px;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.survey-hub-card:hover {
  border-color: #b8c7d8;
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.survey-hub-card > span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-bottom: 0.85rem;
  width: 42px;
}

.survey-hub-card strong,
.survey-hub-card small,
.survey-hub-card em {
  display: block;
}

.survey-hub-card strong {
  color: #172b4d;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.survey-hub-card small {
  color: var(--portal-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.survey-hub-card em {
  color: #124f86;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  margin-top: 0.85rem;
}

.survey-hub-card-blue > span {
  background: #e7f1fb;
  color: #124f86;
}

.survey-hub-card-gold > span {
  background: #fff7df;
  color: #9a6700;
}

.survey-hub-card-green > span {
  background: #e6f4ea;
  color: #2f855a;
}

.survey-hub-card-red > span {
  background: #fff0f0;
  color: #9b2c2c;
}

@media (max-width: 767.98px) {
  .survey-hero,
  .step-strip,
  .survey-form-wrap {
    padding: 1rem;
  }

  .survey-tools,
  .form-actions {
    align-items: stretch !important;
    flex-direction: column;
  }

  .survey-tools .btn,
  .form-actions .btn {
    width: 100%;
  }

}
