/* ================================================================
   assets/css/custom-select.css  –  Reusable Custom Select Styles
   Used by ManualAadhaar.php and ManualPanCard.php
   ================================================================ */

.custom-select-wrap {
  position: relative;
}
.custom-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgb(125 137 155 / 24%);
  border-radius: 0.75rem;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.custom-select-trigger:hover {
  background: rgba(255,255,255,0.08);
}
.custom-select-wrap:focus-within .custom-select-trigger,
.custom-select-trigger[aria-expanded="true"] {
  border-color: #53ddfc;
  box-shadow: 0 0 0 0.2rem rgba(83, 221, 252, 0.12);
}
.custom-select-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select-icon {
  color: rgba(255,255,255,0.72);
  transition: color 0.25s ease, transform 0.25s ease;
}
.custom-select-trigger[aria-expanded="true"] .custom-select-icon,
.custom-select-wrap:focus-within .custom-select-icon {
  color: #53ddfc;
  transform: rotate(180deg);
}
.custom-select-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, calc(100vw - 1.5rem));
  max-height: 240px;
  overflow-y: auto;
  padding: 0.4rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(14, 19, 31, 0.98);
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1200;
}
.custom-select-menu.dropdown-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.custom-select-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.88);
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  font-size: 0.94rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.custom-select-option:hover,
.custom-select-option.is-active {
  background: rgba(83, 221, 252, 0.14);
  color: #fff;
}
