/* MobileFixer UX motion + form validation
   Colors and layout stay the same. Only motion, hints, and error text. */

html { scroll-behavior: smooth; }

body.ux-page-in {
    animation: uxPageIn .38s ease both;
}

@keyframes uxPageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes uxShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@keyframes uxSpin {
    to { transform: rotate(360deg); }
}

/* Buttons: hover lift + press scale. No color changes. */
a.btn, button:not(.hamburger):not(.nav-group-toggle):not(.close),
.btn, .btn-primary, .btn-outline, .btn-auth, .btn-ghost, .btn-success,
.btn-danger, .btn-sm, .contact-submit, .login-btn, .logout-btn,
.btn-logout-confirm, input[type="submit"], input[type="button"],
.btn-primary.hero-actions a {
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

a.btn:hover, button:not(.hamburger):not(.nav-group-toggle):hover,
.btn:hover, .btn-primary:hover, .btn-outline:hover, .btn-auth:hover,
.btn-ghost:hover, .contact-submit:hover, .login-btn:hover, .logout-btn:hover,
.btn-logout-confirm:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
}

a.btn:active, button:not(.hamburger):not(.nav-group-toggle):active,
.btn:active, .btn-primary:active, .btn-outline:active, .btn-auth:active,
.btn-ghost:active, .contact-submit:active, .login-btn:active, .logout-btn:active,
.btn-logout-confirm:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(0) scale(.97);
    transition-duration: .08s !important;
}

.ux-req {
    color: #ef4444;
    font-weight: 700;
    margin-left: 2px;
}

.ux-hint,
.ux-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    font-family: inherit;
}

.ux-hint {
    color: inherit;
    opacity: .62;
}

.ux-error {
    color: #ef4444;
    font-weight: 600;
}

.ux-invalid {
    animation: uxShake .38s ease;
}

input.ux-invalid,
select.ux-invalid,
textarea.ux-invalid,
.ux-invalid input,
.ux-invalid select,
.ux-invalid textarea {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, .28);
}

.ux-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, .45);
    backdrop-filter: blur(4px);
}

.ux-loading-overlay.is-on {
    display: flex;
    animation: uxPageIn .2s ease;
}

.ux-spinner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 36px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}

.ux-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, .12);
    border-top-color: #ff6b35;
    animation: uxSpin .7s linear infinite;
}

.ux-spinner-wrap span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #1a1a26;
}

button.ux-busy,
.btn.ux-busy,
.btn-auth.ux-busy,
.contact-submit.ux-busy,
input[type="submit"].ux-busy {
    pointer-events: none;
    opacity: .82;
    position: relative;
}
