.select2-container--education {
  max-width: 100%;
  min-width: 0;
  font: inherit;
  color: var(--bs-body-color);
}
.select2-container--education.select2-container--open {
  z-index: 10000006;
}
.select2-container--education .select2-selection {
  display: flex;
  align-items: center;
  min-height: calc(1.5em + 0.75rem + 2px);
  height: auto;
  padding: 0.375rem 0.75rem;
  border: var(--bs-border-width, 1px) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background: var(--bs-body-bg);
  color: inherit;
  line-height: 1.5;
}
.select2-container--education .select2-selection:focus-visible {
  outline: 1px solid var(--bs-primary);
  outline-offset: 2px;
}
#authDropdown .select2-selection:focus {
  outline: none;
}
.select2-container--education .select2-selection--single {
  padding-right: 2.25rem;
}
.select2-container--education .select2-selection--single .select2-selection__rendered {
  flex: 1;
  min-width: 0;
  padding: 0;
}
.select2-container--education .select2-selection__arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.375rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.select2-container--education .select2-selection__arrow b {
  display: none;
}
.select2-container--education .select2-selection--multiple {
  flex-wrap: wrap;
  gap: 0.25rem;
}
.select2-container--education .select2-selection--multiple .select2-selection__rendered {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}
.select2-container--education .select2-selection__choice {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 0.125rem 1.75rem 0.125rem 0.5rem;
  border-radius: var(--bs-border-radius-sm);
  background: var(--bs-tertiary-bg);
  overflow-wrap: anywhere;
}
.select2-container--education .select2-selection__choice__remove {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 0.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.select2-container--education .select2-search--inline {
  flex: 1;
  min-width: 4rem;
}
.select2-container--education .select2-search--inline .select2-search__field {
  width: 100% !important;
  min-height: 1.5em;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  resize: none;
}
.select2-container--education .select2-dropdown {
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  background: var(--bs-body-bg);
  box-shadow: var(--bs-box-shadow);
}
.select2-container--education .select2-search--dropdown {
  padding: 0.5rem;
}
.select2-container--education .select2-search--dropdown .select2-search__field {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  outline: none;
  background: var(--bs-body-bg);
  color: inherit;
  font: inherit;
  font-size: 1rem;
}
.select2-container--education .select2-results > .select2-results__options {
  max-height: min(18rem, var(--education-select-space, 40dvh));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.select2-container--education .select2-results__option {
  min-height: 2.5rem;
  padding: 0.625rem 0.75rem;
  overflow-wrap: anywhere;
}
.select2-container--education .select2-results__option--selected {
  position: relative;
  padding-inline-end: 2.25rem;
  background: var(--bs-primary-bg-subtle);
}
.select2-container--education .select2-results__option--selected::after {
  content: "✓";
  position: absolute;
  inset-inline-end: 0.75rem;
  font-weight: 700;
}
.select2-container--education .select2-results__option--highlighted {
  background: var(--bs-primary);
  color: #fff;
}
.select2-container--education .select2-results__option--disabled,
.select2-container--education.select2-container--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.select2-container--education.education-select-sm .select2-selection {
  min-height: calc(1.5em + 0.5rem + 2px);
  padding-block: 0.25rem;
  font-size: 0.875rem;
}
.select2-container--education.education-select-lg .select2-selection {
  padding-block: 0.5rem;
  font-size: 1.25rem;
}
:is(select.is-invalid, .was-validated select:invalid) + .select2-container--education .select2-selection {
  border-color: var(--bs-danger);
}
:is(select.is-valid, .was-validated select:valid) + .select2-container--education .select2-selection {
  border-color: var(--bs-success);
}

@media (max-width: 991.98px) {
  .education-theme .select2-container--education .select2-selection,
  .education-theme .select2-container--education .select2-search--dropdown .select2-search__field {
    min-height: 44px;
    border-radius: var(--bs-border-radius-lg);
    font-size: max(16px, 1rem);
  }

  .education-theme .select2-container--education .select2-selection--multiple {
    max-height: min(9rem, 25dvh);
    overflow-y: auto;
  }

  .education-theme .select2-container--education .select2-results__option {
    min-height: 44px;
    padding-block: 0.75rem;
  }

}

/* Floating label (all widths): same height as .form-floating inputs, value sits under the label. */
.education-theme .form-floating > .select2-container--education .select2-selection--single {
  height: calc(3.5rem + 2px);
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}
.education-theme .form-floating > .select2-container--education ~ label {
  z-index: 2;
  max-width: calc(100% - 2.5rem);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  pointer-events: none;
}
/* The open container is lifted (z-index) – keep the label visible above it. */
.education-theme .form-floating > .select2-container--open ~ label {
  z-index: 10000007;
}

/* Pilot on "My profile": native selects match the enhanced control, system picker on phones. */
body:has(#profileTabContent) select.form-select:not([multiple]):not([size]) {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7a89' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-size: 14px 10px;
  cursor: pointer;
  text-overflow: ellipsis;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body:has(#profileTabContent) select.form-select:not(:disabled):hover {
  border-color: #b8d3e8;
}
body:has(#profileTabContent) select.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb, 38, 150, 219), .15);
}
@media (pointer: coarse) {
  /* Finger-sized, and 16px so iOS does not zoom into the field. */
  body:has(#profileTabContent) select.form-select:not([multiple]):not([size]) {
    min-height: 44px;
    font-size: 1rem;
  }
  body:has(#profileTabContent) select.form-select.form-select-sm:not([multiple]):not([size]) {
    min-height: 40px;
  }
}

/* Pilot on "My profile", touch devices: bottom-sheet select. */
.sheet-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.sheet-select.form-select {
  display: block;
  width: 100%;
  min-height: 44px;
  overflow: hidden;
  color: var(--bs-body-color, #212529);
  font-size: 1rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sheet-select.form-select-sm {
  min-height: 40px;
}
.sheet-select.is-placeholder .sheet-select__value {
  color: var(--bs-secondary-color, #6c757d);
}
.sheet-select.is-invalid {
  border-color: var(--bs-danger, #dc3545);
}
.sheet-select:disabled {
  opacity: .6;
  cursor: default;
}
.sheet-select-layer {
  position: fixed;
  inset: 0;
  /* Above every floating layer: support widget (10000001), auth menu (10000002), open select2 (10000006/7). */
  z-index: 10000010;
}
.sheet-select-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  opacity: 0;
  transition: opacity .2s ease;
}
.sheet-select-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  max-height: min(80dvh, 640px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-radius: 20px 20px 0 0;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 -10px 40px rgba(16, 24, 40, .18);
  outline: none;
  transform: translateY(100%);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.sheet-select-layer.is-open .sheet-select-backdrop {
  opacity: 1;
}
.sheet-select-layer.is-open .sheet-select-panel {
  transform: none;
}
.sheet-select-handle {
  flex-shrink: 0;
  width: 40px;
  height: 4px;
  margin: 8px auto 4px;
  border-radius: 4px;
  background: #d0d7de;
}
.sheet-select-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding: 4px 16px 10px;
}
.sheet-select-title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--bs-body-color, #1f2d3d);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}
.sheet-select-close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f4f8;
  color: #475467;
  font-size: 1.5rem;
  line-height: 1;
}
.sheet-select-head.has-search {
  padding-bottom: 8px;
}
.sheet-select-search {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 0 16px 8px;
}
.sheet-select-search[hidden] {
  display: none;
}
.sheet-select-search .sheet-select-close {
  width: 44px;
  height: 44px;
}
.sheet-select-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid #e3e9f0;
  border-radius: 12px;
  background: #f6f9fc url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cg fill='none' stroke='%236b7a89' stroke-width='1.6' stroke-linecap='round'%3e%3ccircle cx='7' cy='7' r='5'/%3e%3cpath d='m11 11 3.5 3.5'/%3e%3c/g%3e%3c/svg%3e") no-repeat 14px center / 16px 16px;
  color: var(--bs-body-color, #212529);
  font-size: 1rem;
  outline: none;
}
.sheet-select-search input:focus {
  background-color: #fff;
}
.sheet-select-list {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 8px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.sheet-select-group {
  padding: 12px 12px 4px;
  color: #6b7a89;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sheet-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--bs-body-color, #1f2d3d);
  font-size: 1rem;
  line-height: 1.35;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.sheet-select-option:active {
  background: #f1f5f9;
}
.sheet-select-option:disabled {
  opacity: .45;
}
.sheet-select-option__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.sheet-select-option__check {
  display: inline-flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.sheet-select-option.is-selected {
  background: rgba(var(--bs-primary-rgb, 38, 150, 219), .1);
  color: var(--bs-primary, #1b7fbd);
  font-weight: 600;
}
.sheet-select-option.is-selected .sheet-select-option__check::before,
[aria-multiselectable] .sheet-select-option__check::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m3 8.5 3.2 3L13 4.5'/%3e%3c/svg%3e") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m3 8.5 3.2 3L13 4.5'/%3e%3c/svg%3e") center / contain no-repeat;
}
[aria-multiselectable] .sheet-select-option__check {
  border: 2px solid #c4ccd5;
  border-radius: 6px;
  color: transparent;
}
[aria-multiselectable] .sheet-select-option.is-selected .sheet-select-option__check {
  border-color: var(--bs-primary, #2696db);
  background: var(--bs-primary, #2696db);
  color: #fff;
}
[aria-multiselectable] .sheet-select-option__check::before {
  width: 14px;
  height: 14px;
}
.sheet-select-empty {
  padding: 24px 16px;
  color: #6b7a89;
  text-align: center;
}
.sheet-select-foot {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid #eef2f6;
}
.sheet-select-foot .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .sheet-select-backdrop,
  .sheet-select-panel {
    transition: none;
  }
}
