/* Searchable select (assets/js/tac2027-combo.js): province / district / sub-district on the register form.
   The visible button reuses .form-control, so height, radius, border and focus ring match the other fields. */
.tac-combo{position:relative;width:100%}
.tac-combo-native{position:absolute!important;left:0;top:0;width:100%;height:100%;margin:0;padding:0;opacity:0;pointer-events:none;z-index:-1}
body.tac .tac-combo-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;cursor:pointer;background:#FFFFFF;padding-right:12px}
.tac-combo-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tac-combo-btn svg{flex:none;color:#6B7895;transition:transform .2s var(--tac-ease,ease)}
.tac-combo-btn[aria-expanded="true"] svg{transform:rotate(180deg);color:var(--tac-blue,#0B5BEA)}
body.tac .tac-combo-btn[aria-expanded="true"]{border-color:var(--tac-blue,#0B5BEA);box-shadow:var(--tac-ring,0 0 0 3px rgba(11,91,234,.15))}
.tac-combo.is-placeholder .tac-combo-text{color:#6B7895}
body.tac .tac-combo select.error ~ .tac-combo-btn{border-color:var(--tac-err,#A3262A)}
.tac-combo.is-disabled .tac-combo-btn{background:#F1F5F9;cursor:not-allowed}
.tac-combo.is-disabled .tac-combo-text,.tac-combo.is-disabled .tac-combo-btn svg{color:#94A3B8}

.tac-combo-panel{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;padding:8px;border-radius:14px;background:#FFFFFF;border:1px solid var(--tac-line,#DCE5F5);box-shadow:0 20px 44px rgba(11,91,234,.22)}
.tac-combo-panel[hidden]{display:none}
.tac-combo.is-up .tac-combo-panel{top:auto;bottom:calc(100% + 6px)}
.tac-combo-search{display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;border-radius:10px;border:1.5px solid var(--tac-input,#C9D6EE);background:#F8FAFF;color:#6B7895}
.tac-combo-search:focus-within{border-color:var(--tac-blue,#0B5BEA);background:#FFFFFF;box-shadow:0 0 0 3px rgba(11,91,234,.15)}
body.tac .tac-combo-search input{flex:1;min-width:0;width:auto;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;-webkit-appearance:none;appearance:none;font:inherit;font-size:16px;color:var(--tac-ink,#0F1B3D)}
.tac-combo-list{list-style:none;margin:6px 0 0;padding:0;max-height:248px;overflow-y:auto;overscroll-behavior:contain}
.tac-combo-list[hidden],.tac-combo-opt[hidden],.tac-combo-empty[hidden]{display:none}
.tac-combo-opt{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:8px 12px;border-radius:10px;font-size:15.5px;line-height:1.5;color:var(--tac-ink,#0F1B3D);cursor:pointer}
.tac-combo-opt.is-active{background:var(--tac-tint,#EAF2FF)}
.tac-combo-opt[aria-selected="true"]{color:var(--tac-blue,#0B5BEA);font-weight:600}
.tac-combo-opt[aria-selected="true"]::after{content:"";flex:none;width:16px;height:9px;border-left:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:translateY(-2px) rotate(-45deg)}
.tac-combo-empty{padding:16px 12px;text-align:center;font-size:15px;color:#6B7895}
@media(max-width:700px){.tac-combo-opt{min-height:46px}}

/* Open state: tinted trigger with blue text, like the province picker mock-up. */
body.tac .tac-combo-btn[aria-expanded="true"]{background:linear-gradient(180deg,#F6F9FF,#E9F1FF);color:var(--tac-blue,#0B5BEA)}
body.tac .tac-combo-btn[aria-expanded="true"] .tac-combo-text{color:var(--tac-blue,#0B5BEA)}
.tac-combo-list{padding-right:2px}
.tac-combo-list::-webkit-scrollbar{width:12px}
.tac-combo-list::-webkit-scrollbar-track{margin:4px 0;border-radius:8px;background:#EEF3FD}
.tac-combo-list::-webkit-scrollbar-thumb{border-radius:8px;border:2px solid #EEF3FD;background:#9DB4F5}
.tac-combo-list::-webkit-scrollbar-thumb:hover{background:#7C99EE}
@supports not selector(::-webkit-scrollbar){.tac-combo-list{scrollbar-width:thin;scrollbar-color:#9DB4F5 #EEF3FD}}

/* Short lists (10 options or fewer) have no search box; the input stays in the page only to take the arrow / Enter / Esc keys. */
.tac-combo.is-plain .tac-combo-search{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);opacity:0;pointer-events:none}
.tac-combo.is-plain .tac-combo-list{margin-top:0}
