/* ── Custom Select Dropdown ── */
.cs-wrap {
  position: relative;
  width: 100%;
}
.cs-wrap select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Trigger button */
.cs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(15,44,110,0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #0f2c6e;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.cs-trigger:focus,
.cs-wrap.cs-open .cs-trigger {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
  background: #fff;
}
.cs-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-label.cs-placeholder { color: #9ca3af; }
.cs-arrow {
  width: 16px; height: 16px; flex-shrink: 0;
  color: #0f2c6e;
  transition: transform 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.cs-arrow svg { width: 16px; height: 16px; }
.cs-wrap.cs-open .cs-arrow { transform: rotate(180deg); color: #4f46e5; }

/* Dropdown list */
.cs-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid rgba(79,70,229,0.2);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(15,44,110,0.14), 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  z-index: 9999;
  display: none;
  max-height: 260px;
  overflow-y: auto;
}
.cs-wrap.cs-open .cs-dropdown { display: block; }

/* Option rows */
.cs-option {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #0f2c6e;
  cursor: pointer;
  transition: background 0.12s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-option:hover { background: rgba(79,70,229,0.07); }
.cs-option.cs-selected {
  background: rgba(79,70,229,0.1);
  font-weight: 600;
  color: #4f46e5;
}
.cs-option.cs-selected::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4f46e5;
  margin-left: auto;
  flex-shrink: 0;
}
.cs-option.cs-disabled {
  color: #9ca3af;
  cursor: default;
  font-style: italic;
  font-size: 0.82rem;
}
.cs-option.cs-disabled:hover { background: none; }

/* Main-site variant — larger padding to match form-input */
.cs-trigger.cs-lg { padding: 13px 16px; font-size: 0.9rem; border-radius: var(--radius, 10px); }
