/* CLUBi ERS searchable chapter picker */
.registration-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.registration-title-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #ef3345, #941522);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 5px 18px rgba(227, 38, 54, 0.25);
}
.chapter-field {
  position: relative;
}
.chapter-picker {
  position: relative;
  width: 100%;
  z-index: 5;
}
.chapter-picker-control {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid rgba(227, 38, 54, 0.65);
  border-radius: 12px;
  background: #101217;
  box-shadow: 0 0 0 3px rgba(227, 38, 54, 0.08);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.chapter-picker.is-open .chapter-picker-control,
.chapter-picker-control:focus-within {
  border-color: #ff4557;
  box-shadow:
    0 0 0 3px rgba(227, 38, 54, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.18);
}
.chapter-picker-icon {
  font-size: 21px;
  color: #ff5262;
  line-height: 1;
}
.chapter-search {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f5f6f8 !important;
  font: 600 14px/1.3 inherit !important;
}
.chapter-search::placeholder {
  color: #a1a7b2;
  opacity: 1;
}
.chapter-picker-toggle {
  width: 28px;
  height: 34px;
  flex: 0 0 28px;
  border: 0;
  background: transparent;
  color: #c7cbd2;
  font-size: 23px;
  cursor: pointer;
  transition: transform 0.2s;
}
.chapter-picker.is-open .chapter-picker-toggle {
  transform: rotate(180deg);
  color: #ff5968;
}
.chapter-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 285px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: #171a21;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  z-index: 100;
}
.chapter-options[hidden],
.chapter-empty[hidden] {
  display: none !important;
}
.chapter-option {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e5e7eb;
  text-align: left;
  font: 600 12px/1.4 inherit;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.chapter-option[hidden] {
  display: none !important;
}
.chapter-option:hover,
.chapter-option:focus-visible {
  outline: 0;
  background: rgba(227, 38, 54, 0.13);
  color: #fff;
}
.chapter-option.is-selected {
  background: linear-gradient(
    90deg,
    rgba(227, 38, 54, 0.2),
    rgba(227, 38, 54, 0.06)
  );
  color: #fff;
}
.chapter-option-mark {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #ff5968;
  font-size: 15px;
}
.chapter-option-check {
  margin-left: auto;
  color: #ff5968;
  font-size: 14px;
  opacity: 0;
}
.chapter-option.is-selected .chapter-option-check {
  opacity: 1;
}
.chapter-empty {
  padding: 18px 12px;
  color: #a6acb6;
  text-align: center;
  font-size: 11px;
}
.chapter-help {
  display: block;
  margin-top: 8px;
  color: #929aa6;
  font-size: 10px;
}
@media (max-width: 600px) {
  .chapter-picker-control {
    height: 55px;
  }
  .chapter-options {
    max-height: 245px;
  }
  .chapter-option {
    min-height: 45px;
    font-size: 13px;
  }
}

/* Strongly scoped presentation overrides */
body.auth-page .chapter-picker-control {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(236, 55, 72, 0.72) !important;
  border-radius: 13px !important;
  background: #0e1015 !important;
}
body.auth-page .chapter-search {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 54px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  background: transparent !important;
  color: #f5f6f8 !important;
  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}
body.auth-page .chapter-picker-toggle {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #ff6674 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
body.auth-page .chapter-options {
  display: block;
  max-height: 270px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 7px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 13px !important;
  background: #171a22 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.62) !important;
  scrollbar-width: thin;
  scrollbar-color: #555d69 #171a22;
}
body.auth-page .chapter-options[hidden] {
  display: none !important;
}
body.auth-page .chapter-option {
  display: flex !important;
  width: 100% !important;
  min-height: 44px !important;
  margin: 2px 0 !important;
  padding: 9px 11px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #e7e9ee !important;
  text-align: left !important;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
body.auth-page .chapter-option[hidden] {
  display: none !important;
}
body.auth-page .chapter-option:hover,
body.auth-page .chapter-option:focus-visible,
body.auth-page .chapter-option.is-active {
  background: rgba(232, 45, 63, 0.14) !important;
  color: #fff !important;
  outline: none !important;
}
body.auth-page .chapter-option.is-selected {
  background: linear-gradient(
    90deg,
    rgba(227, 38, 54, 0.23),
    rgba(227, 38, 54, 0.06)
  ) !important;
  color: #fff !important;
}
body.auth-page .chapter-option-mark {
  display: grid !important;
  flex: 0 0 27px !important;
  width: 27px !important;
  height: 27px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ff6674 !important;
}
body.auth-page .chapter-option-check {
  margin-left: auto !important;
  color: #ff6674 !important;
}
body.auth-page .chapter-empty {
  display: block;
  padding: 18px 12px !important;
  color: #aeb5c0 !important;
  text-align: center !important;
  font-family: Arial, sans-serif !important;
  font-size: 12px !important;
}
body.auth-page .chapter-empty[hidden] {
  display: none !important;
}
body.auth-page .chapter-help {
  display: block !important;
  margin-top: 8px !important;
  color: #929aa6 !important;
  font-size: 10px !important;
}
body.auth-page .chapter-options::-webkit-scrollbar {
  width: 8px;
}
body.auth-page .chapter-options::-webkit-scrollbar-track {
  background: #171a22;
  border-radius: 8px;
}
body.auth-page .chapter-options::-webkit-scrollbar-thumb {
  background: #4b535f;
  border: 2px solid #171a22;
  border-radius: 8px;
}
body.auth-page .chapter-options::-webkit-scrollbar-thumb:hover {
  background: #e23849;
}
