/* phone field: country button (flag + dialling code) + number field + searchable country list */
.ph-field{position:relative;display:flex;align-items:stretch;width:100%;max-width:100%;border:1px solid var(--border-strong,#c9c5cc);border-radius:var(--r-md,10px);background:var(--surface,#fff);transition:border-color .12s,box-shadow .12s}
.ph-field:focus-within{border-color:var(--primary,#a21036);box-shadow:0 0 0 3px var(--ring,rgba(162,16,54,.18))}
.ph-field .ph-num{flex:1;min-width:0;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0 var(--r-md,10px) var(--r-md,10px) 0;padding:0 12px;min-height:var(--ctl,40px)}
.ph-num.invalid{color:var(--danger,#b42318)} .ph-field:has(.ph-num.invalid){border-color:var(--danger,#d92d20);box-shadow:0 0 0 3px rgba(217,45,32,.15)}
.ph-cc{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:var(--ctl,40px);padding:0 10px 0 12px;border:0;border-right:1px solid var(--border,#e5e1e6);border-radius:var(--r-md,10px) 0 0 var(--r-md,10px);background:var(--surface-2,#f6f3f6);color:var(--text,#1b1b1f);font:inherit;font-size:14px;cursor:pointer}
.ph-cc:hover:not(:disabled){background:var(--surface-3,#eee9ee)} .ph-cc:disabled{opacity:.6;cursor:not-allowed} .ph-cc .ic{width:14px;height:14px;color:var(--muted,#7a7580)} .ph-dialcode{font-variant-numeric:tabular-nums;font-weight:600}
.ph-flag{display:inline-grid;place-items:center;width:22px;height:15px;border-radius:3px;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.18);flex:none;line-height:1} .ph-flag svg{display:block;width:22px;height:15px} .ph-flag.ph-emoji{box-shadow:none;font-size:16px;width:auto;height:auto;overflow:visible}
.ph-flag.ph-code{width:22px;font-size:9px;font-weight:700;background:var(--surface-3,#e5e1e6);color:var(--text-2,#555)}
.ph-note{display:block;margin-top:4px;color:var(--danger,#b42318);font-size:12px}
.ph-panel{position:absolute;z-index:70;top:calc(100% + 6px);left:0;width:320px;max-width:calc(100vw - 24px);background:var(--surface,#fff);color:var(--text,#1b1b1f);border:1px solid var(--border,#e5e1e6);border-radius:var(--r-lg,14px);box-shadow:0 16px 40px rgba(0,0,0,.18);padding:8px} .ph-panel.up{top:auto;bottom:calc(100% + 6px)}
.ph-search{width:100%;margin-bottom:6px;border-radius:999px!important} .ph-list{list-style:none;margin:0;padding:0;max-height:260px;overflow:auto}
.ph-opt{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;cursor:pointer} .ph-opt:hover,.ph-opt.act{background:var(--surface-2,#f6f3f6)} .ph-opt.sel .ph-name{font-weight:700} .ph-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .ph-dial{color:var(--muted,#7a7580);font-variant-numeric:tabular-nums}
.ph-sep{height:1px;margin:4px 6px;background:var(--border,#e5e1e6)} .ph-none{padding:10px;color:var(--muted,#7a7580);font-size:13px}
@media(max-width:700px){.ph-panel{position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto;max-width:none} .ph-panel.up{bottom:12px} .ph-list{max-height:45vh}}

.ph-note[hidden]{display:none}
