/* ===== shared form validation + popup (all forms) ===== */
.wcp-invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.10) !important; }
.wcp-field-error { display: block; margin-top: 5px; color: #dc2626; font-size: 12.5px; font-weight: 500; line-height: 1.3; animation: wcpErrIn .2s ease; }
@keyframes wcpErrIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
form.wcp-shake { animation: wcpShake .4s ease; }
@keyframes wcpShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.wcp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

button.is-loading { position: relative; pointer-events: none; opacity: .85; }
button.is-loading::after { content: ""; width: 16px; height: 16px; margin-left: 10px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; display: inline-block; vertical-align: -3px; animation: wcpSpin .7s linear infinite; }
@keyframes wcpSpin { to { transform: rotate(360deg); } }

body.wcp-modal-lock { overflow: hidden; }
.wcp-modal { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(7,27,73,.55); backdrop-filter: blur(3px); }
.wcp-modal.is-open { display: flex; animation: wcpFade .25s ease; }
@keyframes wcpFade { from { opacity: 0; } to { opacity: 1; } }
.wcp-modal-box { width: 100%; max-width: 420px; padding: 38px 30px 30px; text-align: center; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(7,27,73,.35); animation: wcpPop .4s cubic-bezier(.2,1.2,.4,1); }
@keyframes wcpPop { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }
.wcp-modal-icon { overflow: visible; width: 96px; height: 96px; margin: 0 auto 18px; display: none; }
.wcp-modal.is-success .wcp-modal-icon.ok, .wcp-modal.is-error .wcp-modal-icon.bad { display: block; }
.wcp-modal-icon circle { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 166; stroke-dashoffset: 166; animation: wcpStroke .7s cubic-bezier(.65,0,.45,1) forwards; }
.wcp-modal-icon.ok circle { stroke: #119447; }
.wcp-modal-icon.bad circle { stroke: #dc2626; }
.wcp-modal-icon path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: wcpStroke .4s .6s cubic-bezier(.65,0,.45,1) forwards; }
.wcp-modal-icon.ok path { stroke: #119447; }
.wcp-modal-icon.bad path { stroke: #dc2626; }
.wcp-modal-icon.ok { animation: wcpScale .4s 1s ease both; }
@keyframes wcpStroke { to { stroke-dashoffset: 0; } }
@keyframes wcpScale { 0%,100% { transform: none; } 50% { transform: scale3d(1.08,1.08,1); } }
.wcp-modal-title { margin: 0 0 8px; font-family: "Poppins", sans-serif; font-size: 24px; font-weight: 700; color: #071B49; }
.wcp-modal-text { margin: 0 0 24px; color: #64748B; font-size: 15px; line-height: 1.6; }
.wcp-modal-btn { display: inline-block; padding: 12px 34px; border: 0; border-radius: 10px; background: #1747BD; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, transform .2s; }
.wcp-modal-btn:hover { background: #071B49; transform: translateY(-1px); }
.wcp-modal.is-error .wcp-modal-btn { background: #dc2626; }
@media (prefers-reduced-motion: reduce) { .wcp-modal *, .wcp-modal { animation: none !important; } .wcp-modal-icon circle, .wcp-modal-icon path { stroke-dashoffset: 0; } }
