/* =============================================
   NAV ACTIVE LINK
   ============================================= */
.nav-links a.nav-active {
    color: var(--accent-primary);
}

.nav-links a.nav-active::after {
    width: 100%;
}

/* =============================================
   PROCESS — RTL text alignment fix
   ============================================= */
[dir="rtl"] .process-step {
    text-align: center;
}

[dir="rtl"] .process-step h3,
[dir="rtl"] .process-step p {
    text-align: center;
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
#wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 58px;
    height: 58px;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 9000;
    box-shadow: 0 4px 20px rgba(255, 184, 0, 0.35);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#wa-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 184, 0, 0.5);
    color: var(--bg-primary);
}

#wa-float:active {
    transform: scale(0.96);
}

/* tooltip */
#wa-float::before {
    content: 'تواصل معنا';
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    color: var(--text-light);
    font-size: 0.8rem;
    font-family: var(--font-body);
    white-space: nowrap;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 184, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#wa-float:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    #wa-float {
        bottom: 1.4rem;
        right: 1.4rem;
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    #wa-float::before {
        display: none;
    }
}

/* =============================================
   CONTACT FORM — feedback states
   ============================================= */
.contact-form .form-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.contact-form .form-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.contact-form button[type="submit"].loading {
    opacity: 0.6;
    pointer-events: none;
}

.contact-form button[type="submit"]:disabled {
    cursor: wait;
}
