/* Forms: country and phone-code pickers, spam check, sent receipt (forms.js) */
.flagsel { position: relative; display: block; }
.tel { display: flex; gap: 8px; }
.tel input { flex: 1; min-width: 0; }
.tel .flagsel.cc { flex: 0 0 104px; }
.tel .pk-btn { padding-inline: 10px; gap: 7px; }
.pk { position: relative; }
.pk-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ink-2); color: var(--text); border: 1px solid var(--line); font: inherit; font-size: 1rem; text-align: start; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pk-btn span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pk-btn::after { content: ""; flex: none; margin-inline-start: auto; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.pk-btn:hover { border-color: #2B5562; }
.pk-btn:focus-visible, .pk-btn[aria-expanded="true"] { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(59,224,255,.18); }
.pk-btn[aria-invalid="true"] { border-color: var(--rose); }
.pk-btn img, .pk-list img { flex: none; width: 20px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.pk-ph { color: var(--muted); }
.pk-pop { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline-start: 0; width: max(100%, 290px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,.35); padding: 8px; }
.pk-q { min-height: 40px !important; padding: 8px 12px !important; margin-bottom: 6px; }
.pk-list { list-style: none; margin: 0; padding: 0; max-height: 264px; overflow: auto; }
.pk-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .94rem; }
.pk-list li b { margin-inline-start: auto; font-weight: 500; color: var(--muted); }
.pk-list li[aria-selected="true"] { font-weight: 600; }
.pk-list li.on, .pk-list li[data-v]:hover { background: var(--surface-2); }
.pk-list li.sep { height: 1px; padding: 0; margin: 6px 4px; background: var(--line); cursor: default; }
.pk-list li.none { color: var(--muted); cursor: default; }
.cf-box:not(:empty) { min-height: 65px; }
.trap { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* the sent receipt */
.sent2 { position: relative; text-align: center; overflow: hidden; padding: 34px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); animation: s-in .45s ease-out both; }
.sent2 .s-burst { position: absolute; top: 76px; left: 50%; width: 0; height: 0; pointer-events: none; }
.sent2 .s-burst i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--green); opacity: 0; rotate: var(--a); animation: s-burst .9s calc(.55s + var(--d)) cubic-bezier(.2,.7,.2,1) both; }
.sent2 .s-burst i:nth-child(3n) { background: var(--cyan); width: 6px; height: 6px; }
@keyframes s-burst { 0% { opacity: 1; transform: translateY(0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-78px) scale(1); } }
.sent2 > svg { display: block; width: 84px; height: 84px; margin: 4px auto 14px; overflow: visible; }
.sent2 .s-bg { fill: rgba(43,255,154,.1); transform-box: fill-box; transform-origin: center; animation: s-pop .5s cubic-bezier(.34,1.4,.64,1) both; }
.sent2 .s-ring { fill: none; stroke: url(#sg); stroke-width: 3.5; stroke-dasharray: 214; stroke-dashoffset: 214; transform: rotate(-90deg); transform-origin: 40px 40px; animation: s-draw .7s .15s ease-out forwards; }
.sent2 .s-tick { fill: none; stroke: var(--green-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: s-draw .35s .75s ease-out forwards; }
.sent2 h2 { font-size: 1.7rem; margin: 0 0 8px; outline: 0; animation: s-up .45s .5s ease-out both; }
.sent2 .s-line { color: var(--muted); margin: 0 auto; max-width: 460px; overflow-wrap: anywhere; animation: s-up .45s .6s ease-out both; }
.slip { position: relative; max-width: 420px; margin: 24px auto 0; text-align: start; background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 18px; animation: s-slip .6s .7s cubic-bezier(.2,.7,.2,1) both; }
.slip::before, .slip::after { content: ""; position: absolute; top: 52px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.slip::before { left: -9px; } .slip::after { right: -9px; }
.slip-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 2px dashed var(--line); margin-bottom: 12px; }
.slip-top span { display: flex; align-items: center; gap: 8px; font: 600 .9rem/1 var(--display); }
.slip-top img { border-radius: 6px; }
.slip-top .ref { margin-inline-start: auto; font: 700 .88rem/1 ui-monospace, Consolas, monospace; letter-spacing: .04em; color: var(--green-ink); user-select: all; }
.slip-top .copy { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 10px; font: 600 .75rem/1 var(--body); cursor: pointer; }
.slip-top .copy:hover { border-color: var(--green); }
.slip dl { margin: 0; display: grid; gap: 8px; }
.slip dl div { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; }
.slip dt { color: var(--muted); }
.slip dd { margin: 0; font-weight: 600; text-align: end; overflow-wrap: anywhere; }
.s-track { max-width: 420px; margin: 20px auto 0; text-align: start; animation: s-up .45s .9s ease-out both; }
.s-track > small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 12px; }
[dir="rtl"] .s-track > small { letter-spacing: 0; }
.s-track ol { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.s-track ol::before { content: ""; position: absolute; top: 16px; bottom: 16px; inset-inline-start: 15px; border-inline-start: 2px dashed var(--line); }
.s-track li { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.s-track li > i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 .82rem/1 var(--display); font-style: normal; background: var(--surface); color: var(--muted); border: 1.5px solid var(--line); }
.s-track li.done > i { background: linear-gradient(135deg, #0D8049, #0A6638); color: #fff; border: 0; }
.s-track li.now > i { color: var(--green-ink); border-color: var(--green); }
.s-track li span { display: grid; }
.s-track li b { font: 600 .95rem/1.3 var(--display); }
.s-track li small { color: var(--muted); font-size: .82rem; }
.s-track li:not(.done):not(.now) b { color: var(--muted); }
.sent2 .s-sum { margin: 18px auto 0; max-width: 420px; text-align: start; white-space: pre-wrap; font: .82rem/1.6 var(--body); background: var(--ink-2); border-radius: 14px; padding: 14px; user-select: all; }
.sent2 .s-act { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 24px; animation: s-up .45s 1.1s ease-out both; }
@keyframes s-in { from { opacity: 0; } }
@keyframes s-pop { from { transform: scale(.3); opacity: 0; } }
@keyframes s-draw { to { stroke-dashoffset: 0; } }
@keyframes s-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes s-slip { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .sent2, .sent2 *, .slip { animation: none !important; } .sent2 .s-ring, .sent2 .s-tick { stroke-dashoffset: 0; } .sent2 .s-burst { display: none; } }
@media (max-width: 520px) { .tel .flagsel.cc { flex-basis: 108px; } }
