/* MestoPlus · formulár „Chcem MestoPlus“: overovanie polí a potvrdenie odoslania */
.want-form { position: relative; }
.want-form label { position: relative; }
.want-form label.bad input { border-color: #E5372B; background: #FFFBFA; }
.want-form label.bad input:focus { box-shadow: 0 0 0 4px rgba(229,55,43,.14); }
.want-form label.good input { border-color: #BFE3CD; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F9D57' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") right 14px center/18px no-repeat; }
.ferr { display: block; font-size: 13.5px; font-weight: 600; color: #C2271D; line-height: 1.4; }
.ferr:empty { display: none; }
.ferr:not(:empty) { animation: ferr .3s ease; }
.ferr::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: -2px 6px 0 0; vertical-align: middle; border-radius: 50%; background: #E5372B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17v.2'/%3E%3C/svg%3E") center/12px no-repeat; }
@keyframes ferr { from { opacity: 0; transform: translateY(-4px); } }
.want-form .fhint { justify-self: start; height: auto; margin: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: #5B4B8A; background: #ECE8F5; border: 0; border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.want-form .fhint:hover { background: #E2DCF0; transform: none; }
.fhint b { text-decoration: underline; text-underline-offset: 2px; }
.fhint[hidden] { display: none; }
.fcount { position: absolute; right: 12px; bottom: 10px; font-size: 12px; font-weight: 700; color: var(--mute); pointer-events: none; }
.want-form button.busy { position: relative; color: rgba(255,255,255,.75); }
.want-form button.busy::before { content: ""; display: inline-block; width: 16px; height: 16px; margin: -3px 10px 0 0; vertical-align: middle; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: fspin .8s linear infinite; }
@keyframes fspin { to { transform: rotate(360deg); } }
.want-form.shake { animation: fshake .4s ease; }
@keyframes fshake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.want-form.sent > :not(.fdone) { visibility: hidden; }
.fdone { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 36px; border-radius: inherit; background: var(--card); outline: none; animation: fdone .5s cubic-bezier(.2,.7,.2,1); }
.fdone-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/28px no-repeat; animation: fpop .5s .1s cubic-bezier(.2,.8,.2,1.3) both; }
.fdone h3 { margin-top: 22px; font-size: 26px; letter-spacing: -.025em; color: var(--brand); }
.fdone p { margin-top: 8px; color: var(--ink2); font-size: 16px; max-width: 400px; }
.want-form .fdone .fagain { margin-top: 24px; height: auto; padding: 0; background: none; color: #5B4B8A; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@keyframes fdone { from { opacity: 0; transform: scale(.98); } }
@keyframes fpop { from { opacity: 0; transform: scale(.6); } }
@media (max-width: 860px) { .fdone { padding: 26px; } }
@media (prefers-reduced-motion: reduce) { .ferr, .fdone, .fdone-ic, .want-form.shake, .want-form button.busy::before { animation: none; } }
