/* Men in Motion — the Select2 boxes drawn by assets/js/searchable.js, dressed
   as the portal's own fields (app.css). Loaded after assets/css/libs/select2.min.css. */

.select2-container--default .select2-selection--single {
  display: flex; align-items: center; height: auto; min-height: 46px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  flex: 1; padding: 0 40px 0 13px; line-height: 1.4; font: 15px var(--body); color: var(--ink);
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ink-3); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; right: 10px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--ink-2) transparent transparent; }
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent var(--ink-2); }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 127, 230, .15);
}
.select2-selection:focus { outline: none; }
.select2-selection:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }

/* Locked (occupation, when he is a student) */
.select2-container--default.select2-container--disabled .select2-selection--single { background: var(--bg-soft); cursor: not-allowed; }
.select2-container--default.select2-container--disabled .select2-selection__rendered { color: var(--ink-2); }

/* In error, as .field.invalid does for a native control */
.field.invalid .select2-container--default .select2-selection--single { border-color: #e48a80; }

/* The open list */
.select2-dropdown { border: 1.5px solid var(--blue-500); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.select2-search--dropdown { padding: 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field {
  padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px; font: 15px var(--body);
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--blue-500); outline: none; }
.select2-container--default .select2-results > .select2-results__options { max-height: 280px; }
.select2-results__option { padding: 10px 14px; font-size: 14.5px; color: var(--ink); }
.select2-container--default .select2-results__option--selected { background: var(--blue-100); }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--blue-600); color: #fff; }
.select2-results__message { color: var(--ink-2); }

/* The Join card's larger fields (auth.css) */
.join-card .select2-container--default .select2-selection--single { min-height: 50px; border-radius: 12px; }
.join-card .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 15px; }

/* The plain dropdowns beside them wear the same arrow, so a row of answers reads as one kind of control. */
.join-card select, .pf-panel select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%234a5874'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.join-card select:disabled, .pf-panel select:disabled { background-color: var(--bg-soft); }
.join-card select { min-height: 50px; }
.pf-panel select { min-height: 46px; }
