/* =====================================================
   BIVA TALENT — ASSOCIATE PICKER MODAL
   FULL REPLACEMENT
===================================================== */


/* =====================================================
   BACKDROP
===================================================== */

.talent-associate-picker-backdrop {
  position: fixed;

  inset: 0;

  z-index: 5000;

  padding: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    rgba(2, 8, 23, 0.72);

  backdrop-filter:
    blur(8px);

  overflow-y: auto;

  animation:
    talent-associate-picker-backdrop-in
    0.18s ease;
}

@keyframes talent-associate-picker-backdrop-in {

  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }

}


/* =====================================================
   MODAL
===================================================== */

.talent-associate-picker-modal {
  width: min(880px, 100%);
  max-height:
    calc(100vh - 48px);

  display: flex;
  flex-direction: column;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 22px;

  background:
    #ffffff;

  box-shadow:
    0 32px 90px
    rgba(2, 8, 23, 0.32);

  overflow: hidden;

  animation:
    talent-associate-picker-modal-in
    0.22s ease;
}

@keyframes talent-associate-picker-modal-in {

  from {
    opacity: 0;

    transform:
      translateY(10px)
      scale(0.985);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }

}


/* =====================================================
   HEADER
===================================================== */

.talent-associate-picker-header {
  position: relative;

  padding: 24px 26px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 22px;

  color:
    #ffffff;

  background:
    radial-gradient(
      circle at 94% 4%,
      rgba(37, 99, 235, 0.38),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      #071324,
      #10233f 58%,
      #173675
    );

  overflow: hidden;
}

.talent-associate-picker-header::before {
  content: "";

  position: absolute;

  inset:
    0 0 auto 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      #2563eb,
      #fbbf24,
      transparent 84%
    );
}

.talent-associate-picker-header::after {
  content: "";

  position: absolute;

  width: 190px;
  height: 190px;

  right: -75px;
  bottom: -145px;

  border:
    1px solid
    rgba(255, 255, 255, 0.05);

  border-radius: 50%;

  box-shadow:
    0 0 0 35px
    rgba(255, 255, 255, 0.018),

    0 0 0 70px
    rgba(255, 255, 255, 0.009);

  pointer-events: none;
}

.talent-associate-picker-header > * {
  position: relative;

  z-index: 1;
}

.talent-associate-picker-header > div {
  min-width: 0;
}

.talent-associate-picker-kicker {
  display: block;

  margin-bottom: 7px;

  color:
    #fbbf24;

  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.talent-associate-picker-header h2 {
  margin: 0;

  color:
    #ffffff;

  font-size:
    clamp(1.65rem, 3vw, 2.35rem);

  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.talent-associate-picker-header p {
  max-width: 650px;

  margin:
    10px 0 0;

  color:
    rgba(255, 255, 255, 0.67);

  font-size: 11px;
  line-height: 1.6;
}

.talent-associate-picker-header p strong {
  color:
    #ffffff;

  font-weight: 850;
}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.talent-associate-picker-close {
  width: 40px;
  height: 40px;

  flex:
    0 0 40px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

  border-radius: 11px;

  color:
    #ffffff;

  background:
    rgba(255, 255, 255, 0.08);

  cursor: pointer;

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.talent-associate-picker-close:hover {
  border-color:
    rgba(255, 255, 255, 0.3);

  background:
    rgba(255, 255, 255, 0.15);

  transform:
    rotate(4deg);
}

.talent-associate-picker-close svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =====================================================
   SEARCH SECTION
===================================================== */

.talent-associate-picker-search-section {
  padding:
    18px 22px 14px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: end;

  gap: 12px;

  border-bottom:
    1px solid #e2e8f0;

  background:
    #f8fafc;
}

.talent-associate-picker-search-section
> label {
  grid-column:
    1 / -1;

  color:
    #334155;

  font-size: 10px;
  font-weight: 820;
}

.talent-associate-picker-search {
  position: relative;

  min-width: 0;

  display: flex;
  align-items: center;
}

.talent-associate-picker-search > span {
  position: absolute;

  left: 13px;

  z-index: 2;

  width: 18px;
  height: 18px;

  display: grid;
  place-items: center;

  color:
    #64748b;

  pointer-events: none;
}

.talent-associate-picker-search svg {
  width: 16px;
  height: 16px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.talent-associate-picker-search input {
  width: 100%;
  min-height: 44px;

  padding:
    0 14px 0 42px;

  border:
    1px solid #dbe4ee;

  border-radius: 11px;

  color:
    #0f172a;

  background:
    #ffffff;

  font: inherit;

  font-size: 11px;

  outline: none;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.talent-associate-picker-search
input::placeholder {
  color:
    #94a3b8;
}

.talent-associate-picker-search
input:focus {
  border-color:
    #2563eb;

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.13);
}


/* =====================================================
   RESULT COUNT
===================================================== */

.talent-associate-picker-count {
  min-width: 126px;
  min-height: 44px;

  padding:
    7px 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  border:
    1px solid #dbeafe;

  border-radius: 11px;

  color:
    #1d4ed8;

  background:
    #eff6ff;
}

.talent-associate-picker-count span {
  font-size: 8px;
  font-weight: 760;
  line-height: 1.25;
}

.talent-associate-picker-count strong {
  min-width: 25px;
  height: 25px;

  padding:
    0 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  color:
    #ffffff;

  background:
    #2563eb;

  font-size: 10px;
  font-weight: 900;
}


/* =====================================================
   ASSOCIATE LIST
===================================================== */

.talent-associate-picker-list {
  min-height: 260px;
  max-height: 390px;

  padding: 14px 18px;

  display: grid;

  align-content: start;

  gap: 10px;

  background:
    #ffffff;

  overflow-y: auto;

  scrollbar-width: thin;

  scrollbar-color:
    #cbd5e1
    transparent;
}

.talent-associate-picker-list::-webkit-scrollbar {
  width: 8px;
}

.talent-associate-picker-list::-webkit-scrollbar-track {
  background:
    transparent;
}

.talent-associate-picker-list::-webkit-scrollbar-thumb {
  border:
    2px solid #ffffff;

  border-radius: 999px;

  background:
    #cbd5e1;
}


/* =====================================================
   ASSOCIATE CARD
===================================================== */

.talent-associate-picker-card {
  position: relative;

  min-width: 0;

  padding: 14px;

  display: grid;

  grid-template-columns:
    44px
    minmax(0, 1fr);

  align-items: start;

  gap: 12px;

  border:
    1px solid #dce5ef;

  border-radius: 15px;

  background:
    #ffffff;

  cursor: pointer;

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.talent-associate-picker-card:hover {
  border-color:
    #bfdbfe;

  background:
    #f8fbff;

  box-shadow:
    0 8px 22px
    rgba(37, 99, 235, 0.07);

  transform:
    translateY(-1px);
}

.talent-associate-picker-card.is-selected {
  border-color:
    #2563eb;

  background:
    linear-gradient(
      145deg,
      #eff6ff,
      #ffffff
    );

  box-shadow:
    0 0 0 2px
    rgba(37, 99, 235, 0.1),
    0 9px 24px
    rgba(37, 99, 235, 0.09);
}

.talent-associate-picker-card
> input[type="radio"] {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;

  pointer-events: none;
}


/* =====================================================
   AVATAR
===================================================== */

.talent-associate-picker-avatar {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border:
    1px solid #dbeafe;

  border-radius: 13px;

  color:
    #1d4ed8;

  background:
    #eff6ff;

  font-size: 12px;
  font-weight: 900;
}

.talent-associate-picker-card.is-selected
.talent-associate-picker-avatar {
  color:
    #ffffff;

  background:
    #2563eb;
}


/* =====================================================
   DETAILS
===================================================== */

.talent-associate-picker-details {
  min-width: 0;

  display: grid;

  gap: 5px;
}

.talent-associate-picker-name-row {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.talent-associate-picker-name-row
> strong {
  overflow-wrap: anywhere;

  color:
    #0f172a;

  font-size: 12px;
  font-weight: 870;
  line-height: 1.35;
}

.talent-associate-picker-details
> small {
  overflow-wrap: anywhere;

  color:
    #64748b;

  font-size: 9px;
  line-height: 1.4;
}


/* =====================================================
   SELECTED ICON
===================================================== */

.talent-associate-picker-selected-icon {
  width: 25px;
  height: 25px;

  flex:
    0 0 25px;

  display: grid;
  place-items: center;

  border:
    1px solid #dbe4ee;

  border-radius: 999px;

  color:
    transparent;

  background:
    #f8fafc;
}

.talent-associate-picker-selected-icon svg {
  width: 15px;
  height: 15px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.talent-associate-picker-card.is-selected
.talent-associate-picker-selected-icon {
  border-color:
    #2563eb;

  color:
    #ffffff;

  background:
    #2563eb;
}


/* =====================================================
   META INFORMATION
===================================================== */

.talent-associate-picker-meta {
  margin-top: 6px;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 8px;
}

.talent-associate-picker-meta
> span {
  min-width: 0;

  padding: 8px 9px;

  display: grid;

  gap: 3px;

  border:
    1px solid #e2e8f0;

  border-radius: 10px;

  background:
    #f8fafc;
}

.talent-associate-picker-meta small {
  color:
    #94a3b8;

  font-size: 7px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.talent-associate-picker-meta strong {
  overflow-wrap: anywhere;

  color:
    #334155;

  font-size: 9px;
  font-weight: 820;
  line-height: 1.35;
}

.talent-associate-picker-card.is-selected
.talent-associate-picker-meta
> span {
  border-color:
    #dbeafe;

  background:
    rgba(255, 255, 255, 0.8);
}


/* =====================================================
   REPLACEMENT REASON
===================================================== */

.talent-associate-picker-reason {
  padding:
    16px 22px;

  display: grid;

  gap: 8px;

  border-top:
    1px solid #e2e8f0;

  background:
    #f8fafc;
}

.talent-associate-picker-reason label {
  color:
    #334155;

  font-size: 10px;
  font-weight: 820;
}

.talent-associate-picker-reason textarea {
  width: 100%;
  min-height: 100px;

  padding: 12px 13px;

  border:
    1px solid #dbe4ee;

  border-radius: 11px;

  color:
    #0f172a;

  background:
    #ffffff;

  font:
    inherit;

  font-size: 11px;
  line-height: 1.55;

  resize: vertical;

  outline: none;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.talent-associate-picker-reason
textarea::placeholder {
  color:
    #94a3b8;
}

.talent-associate-picker-reason
textarea:focus {
  border-color:
    #2563eb;

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.13);
}

.talent-associate-picker-reason-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.talent-associate-picker-reason-footer
small {
  color:
    #64748b;

  font-size: 8px;
  line-height: 1.4;
}

.talent-associate-picker-reason-footer
span {
  color:
    #64748b;

  font-size: 8px;
  font-weight: 780;

  white-space: nowrap;
}


/* =====================================================
   ERROR MESSAGE
===================================================== */

.talent-associate-picker-error {
  margin:
    0 22px 14px;

  padding: 11px 13px;

  border:
    1px solid #fecaca;

  border-radius: 10px;

  color:
    #b91c1c;

  background:
    #fff1f2;

  font-size: 10px;
  font-weight: 730;
  line-height: 1.5;
}

.talent-associate-picker-error[hidden] {
  display: none;
}


/* =====================================================
   ACTIONS
===================================================== */

.talent-associate-picker-actions {
  padding:
    15px 22px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 9px;

  border-top:
    1px solid #e2e8f0;

  background:
    #ffffff;
}

.talent-associate-picker-primary-btn,
.talent-associate-picker-secondary-btn {
  min-height: 42px;

  padding:
    0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border-radius: 11px;

  font: inherit;

  font-size: 10px;
  font-weight: 840;

  white-space: nowrap;

  cursor: pointer;

  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.talent-associate-picker-primary-btn {
  border:
    1px solid #2563eb;

  color:
    #ffffff;

  background:
    #2563eb;

  box-shadow:
    0 7px 18px
    rgba(37, 99, 235, 0.2);
}

.talent-associate-picker-primary-btn:hover {
  background:
    #1d4ed8;

  transform:
    translateY(-1px);
}

.talent-associate-picker-secondary-btn {
  border:
    1px solid #cbd5e1;

  color:
    #334155;

  background:
    #ffffff;
}

.talent-associate-picker-secondary-btn:hover {
  border-color:
    #94a3b8;

  background:
    #f8fafc;
}

.talent-associate-picker-primary-btn:disabled,
.talent-associate-picker-secondary-btn:disabled {
  opacity: 0.5;

  cursor:
    not-allowed;

  transform: none;

  box-shadow: none;
}

.talent-associate-picker-primary-btn svg,
.talent-associate-picker-secondary-btn svg {
  width: 16px;
  height: 16px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =====================================================
   LOADING STATE
===================================================== */

.talent-associate-picker-loading {
  min-height: 245px;

  padding: 34px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.talent-associate-picker-spinner {
  width: 35px;
  height: 35px;

  margin-bottom: 13px;

  border:
    3px solid
    rgba(37, 99, 235, 0.14);

  border-top-color:
    #2563eb;

  border-radius: 50%;

  animation:
    talent-associate-picker-spin
    760ms linear infinite;
}

@keyframes talent-associate-picker-spin {

  to {
    transform:
      rotate(360deg);
  }

}

.talent-associate-picker-loading strong {
  color:
    #0f172a;

  font-size: 13px;
  font-weight: 870;
}

.talent-associate-picker-loading p {
  margin:
    6px 0 0;

  color:
    #64748b;

  font-size: 9px;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.talent-associate-picker-empty {
  min-height: 245px;

  padding: 34px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.talent-associate-picker-empty
> span {
  width: 58px;
  height: 58px;

  margin-bottom: 14px;

  display: grid;
  place-items: center;

  border-radius: 17px;

  color:
    #1d4ed8;

  background:
    #eff6ff;
}

.talent-associate-picker-empty svg {
  width: 26px;
  height: 26px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.talent-associate-picker-empty h3 {
  margin: 0;

  color:
    #0f172a;

  font-size: 16px;
  font-weight: 900;
}

.talent-associate-picker-empty p {
  max-width: 430px;

  margin:
    7px auto 0;

  color:
    #64748b;

  font-size: 10px;
  line-height: 1.55;
}


/* =====================================================
   LOAD ERROR
===================================================== */

.talent-associate-picker-load-error {
  min-height: 245px;

  padding: 34px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.talent-associate-picker-load-error
> div:first-child {
  width: 58px;
  height: 58px;

  margin-bottom: 14px;

  display: grid;
  place-items: center;

  border-radius: 17px;

  color:
    #b91c1c;

  background:
    #fff1f2;

  font-size: 22px;
  font-weight: 900;
}

.talent-associate-picker-load-error h3 {
  margin: 0;

  color:
    #0f172a;

  font-size: 16px;
  font-weight: 900;
}

.talent-associate-picker-load-error p {
  max-width: 430px;

  margin:
    7px auto 0;

  color:
    #64748b;

  font-size: 10px;
  line-height: 1.55;
}

.talent-associate-picker-load-error
.talent-associate-picker-secondary-btn {
  margin-top: 16px;
}


/* =====================================================
   FOCUS
===================================================== */

.talent-associate-picker-backdrop
button:focus-visible,
.talent-associate-picker-backdrop
input:focus-visible,
.talent-associate-picker-backdrop
textarea:focus-visible,
.talent-associate-picker-card:focus-within {
  outline: 0;

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.2);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 760px) {

  .talent-associate-picker-backdrop {
    padding: 16px;
  }

  .talent-associate-picker-modal {
    max-height:
      calc(100vh - 32px);

    border-radius: 18px;
  }

  .talent-associate-picker-header {
    padding:
      22px 20px;
  }

  .talent-associate-picker-search-section {
    grid-template-columns: 1fr;
  }

  .talent-associate-picker-count {
    width: 100%;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 560px) {

  .talent-associate-picker-backdrop {
    padding: 0;

    align-items: flex-end;
  }

  .talent-associate-picker-modal {
    width: 100%;
    max-height: 96vh;

    border-radius:
      20px 20px 0 0;
  }

  .talent-associate-picker-header {
    padding:
      22px 17px;
  }

  .talent-associate-picker-header h2 {
    font-size:
      clamp(1.6rem, 8vw, 2.1rem);
  }

  .talent-associate-picker-close {
    width: 38px;
    height: 38px;

    flex-basis: 38px;
  }

  .talent-associate-picker-search-section {
    padding:
      16px 15px 13px;
  }

  .talent-associate-picker-list {
    min-height: 230px;
    max-height: 330px;

    padding:
      12px;
  }

  .talent-associate-picker-card {
    grid-template-columns:
      40px
      minmax(0, 1fr);

    padding: 12px;
  }

  .talent-associate-picker-avatar {
    width: 40px;
    height: 40px;
  }

  .talent-associate-picker-meta {
    grid-template-columns: 1fr;
  }

  .talent-associate-picker-reason {
    padding:
      14px 15px;
  }

  .talent-associate-picker-error {
    margin:
      0 15px 12px;
  }

  .talent-associate-picker-actions {
    padding:
      13px 15px;

    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .talent-associate-picker-primary-btn,
  .talent-associate-picker-secondary-btn {
    width: 100%;
  }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

  .talent-associate-picker-header {
    gap: 12px;
  }

  .talent-associate-picker-card {
    grid-template-columns: 1fr;
  }

  .talent-associate-picker-avatar {
    width: 42px;
    height: 42px;
  }

  .talent-associate-picker-actions {
    grid-template-columns: 1fr;
  }

  .talent-associate-picker-reason-footer {
    align-items: flex-start;
    flex-direction: column;

    gap: 4px;
  }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  .talent-associate-picker-backdrop,
  .talent-associate-picker-modal,
  .talent-associate-picker-close,
  .talent-associate-picker-card,
  .talent-associate-picker-primary-btn,
  .talent-associate-picker-secondary-btn,
  .talent-associate-picker-search input,
  .talent-associate-picker-reason textarea {
    animation: none;

    transition: none;
  }

  .talent-associate-picker-spinner {
    animation: none;
  }

}