:root {
  --aiic-color: #0f3a5d;
  --aiic-font-family: "Raleway", sans-serif;
  --bs-body-font-family: var(--aiic-font-family);
}

html {
  scroll-padding-top: 60px;
}

body {
  font-family: var(--bs-body-font-family);
}

.bg-aiic {
  background-color: var(--aiic-color);
  color: #fff;
}

.navbar-brand > img {
  width: 110px;
}

.main-content {
  padding: 67px 0px 0px 0px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.card-header {
  font-size: 2rem;
  font-weight: bold;
  padding: 1rem 1.5rem;
}

.bs-callout {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e9ecef;
  border-left-width: 0.25rem;
  border-radius: 0.25rem;
}

.bs-callout-danger {
  border-left-width: 0.4rem;
  border-left-color: var(--bs-danger);
}

.bs-callout-warning {
  border-left-width: 0.4rem;
  border-left-color: var(--bs-warning);
}

/* Page shell */
.aiic-page {
  background: var(--bs-light);
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Section titles */
.section-title {
  font-weight: 800;
  color: #111827;
  margin: 18px 0 20px;
  font-size: 1.05rem;
}
.section-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 18px 0;
  margin: 18px 0 30px;
}

/* "Two-column row" question layout */
.q-row {
  padding: 14px 0;
}
.q-row:last-of-type {
  border-bottom: 0;
}
.q-label {
  color: #374151;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25rem;
}
.q-label .q-help {
  margin-top: 0.35rem;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Yii2 field spacing (we don't want big margins inside the right column) */
.q-input .form-group {
  margin-bottom: 0;
}

/* Labels inside ActiveForm fields should be hidden (we render label in left column) */
.q-input label.form-label,
.q-input .control-label {
  display: none !important;
}

/* Inputs */
.q-input .form-control,
.q-input .form-select {
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: none;
}
.q-input .form-control:focus,
.q-input .form-select:focus {
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

/* DatePicker (Kartik) */
.q-input .input-group .input-group-text {
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-right: 0;
  background: #f3f4f6;
  color: #374151;
}
.q-input .input-group .form-control {
  border-radius: 0 12px 12px 0;
}
.q-input .kv-datepicker .input-group {
  width: 100%;
}

/* Select2 (Kartik) */
.q-input .select2-container .select2-selection--single {
  height: calc(2.55rem + 2px);
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
}
.q-input .select2-container .select2-selection__rendered {
  padding-left: 0.65rem !important;
  color: #111827;
}
.q-input .select2-container--default .select2-selection__arrow {
  height: calc(2.55rem + 2px);
  right: 0.5rem;
}

/* Errors */
.q-input .invalid-feedback {
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

/* Footer buttons */
.aiic-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.btn-soft {
  border-radius: 12px;
  padding: 0.7rem 1.05rem;
  font-weight: 700;
}
.btn-soft-primary {
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.18);
}

/* Minor: hide asterisk if you’re using custom 'notasteritch' */
.notasteritch .required .control-label:after,
.notasteritch label.required:after {
  content: "";
}

/* Unified placeholder color across: native inputs, selects, Select2, and DatePicker */
:root {
  --ph-color: #5e5d5d; /* Bootstrap 'text-secondary' vibe */
  --ph-opacity: 1;
}

/* Native inputs (including Kartik DatePicker input) */
.aiic-form .form-control::placeholder,
.aiic-form input.form-control::placeholder,
.aiic-form textarea.form-control::placeholder {
  color: var(--ph-color) !important;
  opacity: var(--ph-opacity) !important;
}

/* Some browsers (Edge/older) */
.aiic-form .form-control::-ms-input-placeholder {
  color: var(--ph-color) !important;
  opacity: var(--ph-opacity) !important;
}

/* Native selects: only affects the "prompt" option when it shows as selected (limited by browser) */
.aiic-form select.form-select {
  color: #111827; /* selected value color */
}
.aiic-form select.form-select:has(option:checked[value=""]) {
  color: var(--ph-color);
}

/* Select2 placeholder */
.aiic-form
  .select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: var(--ph-color) !important;
  opacity: var(--ph-opacity) !important;
}
/* Select2 "empty selection" text sometimes lives in rendered container */
.aiic-form
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #111827;
}
.aiic-form
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered:has(.select2-selection__placeholder) {
  color: var(--ph-color) !important;
}

/* Kartik DatePicker icon color (optional but helps consistency) */
.aiic-form .input-group .input-group-text {
  color: #4b5563;
}

.aiic-callout {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left-width: 6px;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  margin: 20px 0 18px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.aiic-callout--warn {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.1);
}
.aiic-callout--info {
  border-left-color: #0dcaf0;
  background: rgba(13, 202, 240, 0.1);
}
.aiic-callout__title {
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.aiic-callout__body {
  margin: 0;
}
.aiic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
  font-size: 0.95rem;
}
.aiic-pill strong {
  font-size: 1.05rem;
}

.aiic-note {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.65);
  font-weight: 400;
}

.aiic-note--soft {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.55);
}

.aiic-note--staff {
  font-style: italic;
}

.aiic-page {
  text-align: justify;
}

.sections-menu-wrapper {
  position: relative;
}

.sections-floating-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  z-index: 2000;
  margin-top: 8px;
}

.sections-floating-menu .card {
  border-radius: 0.5rem;
}

.sections-floating-menu .btn {
  white-space: normal;
}


